Sat, 16 May 2015 17:39:30 +0200
Made the client-server protocol more robust. When a change to a unit is made using the web interface, the main process is stopped during the update. Splitted the PID in two PID's, one for heating and one for cooling. Adjusted the web edit scrreen for this, but there are still rough edges. Replaced the PID code, maybe this one works better for our purpose. The simulator air temperature changes on the simulator heater and cooler, but it is not realistic at all. This is a development version, do not use in production. The version is 0.3.0
3 | 1 | # Makefile for the mbsePi-apps/thermometers. |
2 | ||
3 | include ../Makefile.global | |
4 | ||
51
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
8
diff
changeset
|
5 | SRCS = $(wildcard *.c) |
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
8
diff
changeset
|
6 | HDRS = $(wildcard *.h) |
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
8
diff
changeset
|
7 | OBJS = $(SRCS:.c=.o) |
3 | 8 | TARGET = thermometers |
9 | OTHER = Makefile | |
10 | ||
11 | ############################################################################# | |
12 | ||
13 | .c.o: | |
14 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
15 | ||
16 | all: ${TARGET} | |
17 | ||
51
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
8
diff
changeset
|
18 | thermometers: ${OBJS} |
144
3446371e0bdb
Removed code dependencies to mosquitto and owfs
Michiel Broek <mbroek@mbse.eu>
parents:
59
diff
changeset
|
19 | ${CC} -o thermometers ${OBJS} ${LDFLAGS} ${LIBS} |
3 | 20 | |
21 | clean: | |
22 | rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak | |
23 | ||
24 | install: all | |
25 | ${INSTALL} -c -s -g root -o root -m 0755 thermometers ${BINDIR} | |
26 | ||
27 | filelist: Makefile | |
28 | BASE=`pwd`; \ | |
29 | BASE=`basename $${BASE}`; \ | |
30 | (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist | |
31 | ||
32 | depend: | |
33 | @rm -f Makefile.bak; \ | |
34 | mv Makefile Makefile.bak; \ | |
35 | sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \ | |
36 | ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \ | |
37 | >>Makefile; \ | |
38 | ${ECHO} '# Dependencies generated by make depend' >>Makefile; \ | |
39 | for f in ${SRCS}; \ | |
40 | do \ | |
41 | ${ECHO} "Dependencies for $$f:\c"; \ | |
42 | ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \ | |
43 | for h in `sed -n -e \ | |
44 | 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \ | |
45 | do \ | |
46 | ${ECHO} " $$h\c"; \ | |
47 | ${ECHO} " $$h\c" >>Makefile; \ | |
48 | done; \ | |
49 | ${ECHO} " done."; \ | |
50 | ${ECHO} "" >>Makefile; \ | |
51 | done; \ | |
52 | ${ECHO} '# End of generated dependencies' >>Makefile | |
53 | ||
54 | # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT | |
55 | # Dependencies generated by make depend | |
59 | 56 | thermometers.o: thermometers.h |
51
a03b6dac5398
Removed library, bumped to version 0.0.7
Michiel Broek <mbroek@mbse.eu>
parents:
8
diff
changeset
|
57 | lcd-pcf8574.o: thermometers.h |
59 | 58 | xutil.o: thermometers.h |
59 | rdconfig.o: thermometers.h | |
3 | 60 | # End of generated dependencies |