Fri, 16 Nov 2018 16:20:17 +0100
Added javascript formulas for color calculations. Added IBU total calculation. Better IBI calculation for the hop entries. Blocked selection of IBU calculation for Garetz, Mosher and Noonan. Better sg calculation in the recipe print.
0 | 1 | # Makefile for the mbsePi-apps/thermferm. |
2 | ||
3 | include ../Makefile.global | |
4 | ||
5 | SRCS = $(wildcard *.c) | |
6 | HDRS = $(wildcard *.h) | |
7 | OBJS = $(SRCS:.c=.o) | |
8 | SLIBS = -lpthread | |
9 | TARGET = bmsd | |
10 | OTHER = Makefile | |
11 | ||
12 | ############################################################################# | |
13 | ||
14 | .c.o: | |
15 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
16 | ||
17 | all: ${TARGET} | |
18 | ||
19 | bmsd: ${OBJS} ${SLIBS} | |
20 | ${CC} -o bmsd ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS} | |
21 | ||
22 | clean: | |
23 | rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak | |
24 | ||
25 | install: all | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
26 | ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${BINDIR} |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
27 | ${INSTALL} -c -s -g 314 -o 314 -m 0755 bmsd ${BINDIR} |
0 | 28 | |
29 | filelist: Makefile | |
30 | BASE=`pwd`; \ | |
31 | BASE=`basename $${BASE}`; \ | |
32 | (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist | |
33 | ||
34 | depend: | |
35 | @rm -f Makefile.bak; \ | |
36 | mv Makefile Makefile.bak; \ | |
37 | sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \ | |
38 | ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \ | |
39 | >>Makefile; \ | |
40 | ${ECHO} '# Dependencies generated by make depend' >>Makefile; \ | |
41 | for f in ${SRCS}; \ | |
42 | do \ | |
43 | ${ECHO} "Dependencies for $$f:\c"; \ | |
44 | ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \ | |
45 | for h in `sed -n -e \ | |
46 | 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \ | |
47 | do \ | |
48 | ${ECHO} " $$h\c"; \ | |
49 | ${ECHO} " $$h\c" >>Makefile; \ | |
50 | done; \ | |
51 | ${ECHO} " done."; \ | |
52 | ${ECHO} "" >>Makefile; \ | |
53 | done; \ | |
54 | ${ECHO} '# End of generated dependencies' >>Makefile | |
55 | ||
56 | # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT | |
57 | # Dependencies generated by make depend | |
58 | mqtt.o: bms.h xutil.h mqtt.h nodes.h | |
59 | nodes.o: bms.h xutil.h nodes.h mysql.h | |
60 | futil.o: bms.h futil.h | |
61 | lock.o: lock.h bms.h futil.h | |
62 | bms.o: bms.h xutil.h rdconfig.h lock.h mqtt.h mysql.h | |
63 | xutil.o: bms.h xutil.h | |
64 | rdconfig.o: bms.h xutil.h futil.h rdconfig.h | |
65 | mysql.o: bms.h xutil.h mysql.h | |
66 | # End of generated dependencies |