Wed, 05 May 2021 15:42:47 +0200
Switched OS to Slackware again
567
6bf0afc33e70
Initial code for iSpindel support in the daemon
Michiel Broek <mbroek@mbse.eu>
parents:
502
diff
changeset
|
1 | # Makefile for the bmsd/bmsd. |
0 | 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 | |
567
6bf0afc33e70
Initial code for iSpindel support in the daemon
Michiel Broek <mbroek@mbse.eu>
parents:
502
diff
changeset
|
58 | mqtt.o: bms.h xutil.h mqtt.h nodes.h fermenters.h co2meters.h ispindels.h |
194
d202777ebae5
Added design notes for the csv log format from fermenters. In bmsd configuration added the web_root entry. Switched fermenter DLOG messages to store the log in flat csv files instead of the database. This is much faster and the graphs look better.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
59 | lock.o: lock.h bms.h futil.h |
672
23f959713fcb
Added websockets for node status changes.
Michiel Broek <mbroek@mbse.eu>
parents:
671
diff
changeset
|
60 | nodes.o: bms.h xutil.h nodes.h mysql.h websocket.h |
0 | 61 | futil.o: bms.h futil.h |
684
ccb9f24d0fe9
Report any online status change via websocket broadcast. When starting, load all in memory tables sorted. The websocket status on the web pages has it's own panel. Prepared the menu system for dynamic updates.
Michiel Broek <mbroek@mbse.eu>
parents:
680
diff
changeset
|
62 | fermenters.o: bms.h xutil.h fermenters.h mysql.h nodes.h websocket.h mqtt.h |
ccb9f24d0fe9
Report any online status change via websocket broadcast. When starting, load all in memory tables sorted. The websocket status on the web pages has it's own panel. Prepared the menu system for dynamic updates.
Michiel Broek <mbroek@mbse.eu>
parents:
680
diff
changeset
|
63 | co2meters.o: bms.h xutil.h co2meters.h mysql.h nodes.h websocket.h |
675
a27af02ab16a
Added iSpindel to the websockets. Better offline detection for websockets.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
64 | ispindels.o: bms.h xutil.h ispindels.h mysql.h nodes.h websocket.h |
671
4b54d6f79d25
Version 0.3.33 Added websockets framework. Added fermenter status messages to the websockets broadcast.
Michiel Broek <mbroek@mbse.eu>
parents:
567
diff
changeset
|
65 | bms.o: bms.h xutil.h futil.h rdconfig.h lock.h mqtt.h mysql.h nodes.h websocket.h |
0 | 66 | xutil.o: bms.h xutil.h |
67 | rdconfig.o: bms.h xutil.h futil.h rdconfig.h | |
194
d202777ebae5
Added design notes for the csv log format from fermenters. In bmsd configuration added the web_root entry. Switched fermenter DLOG messages to store the log in flat csv files instead of the database. This is much faster and the graphs look better.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
68 | mysql.o: bms.h xutil.h mysql.h nodes.h |
680
0bb48333d133
Fixed missing co2meters websocket data. Added websockets and removed polling for the mon-ispindel screen. The iSpindel SG gauge adjusts the resolution to the highest detected OG.
Michiel Broek <mbroek@mbse.eu>
parents:
679
diff
changeset
|
69 | websocket.o: bms.h xutil.h websocket.h fermenters.h co2meters.h ispindels.h |
0 | 70 | # End of generated dependencies |