Thu, 08 May 2014 22:36:51 +0200
Added library code to read DHT11 temperature/humidity sensor
7 | 1 | # Makefile for the library files. |
2 | ||
3 | include ../Makefile.global | |
4 | ||
31
89dd2b691701
Added library code to read DHT11 temperature/humidity sensor
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
5 | SRCS = xutil.c rdconfig.c lcd-pcf8574.c rc-switch.c dht11.c |
89dd2b691701
Added library code to read DHT11 temperature/humidity sensor
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
6 | OBJS = xutil.o rdconfig.o lcd-pcf8574.o rc-switch.o dht11.o |
7 | 7 | HDRS = mbselib.h |
8 | TARGET = libmbse.a | |
9 | ||
10 | ############################################################################# | |
11 | ||
12 | .c.o: | |
13 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
14 | ||
15 | all: ${TARGET} | |
16 | ||
17 | libmbse.a: ${OBJS} | |
18 | ar r $@ $? | |
19 | ${RANLIB} $@ | |
20 | ||
21 | clean: | |
22 | rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak | |
23 | ||
24 | depend: | |
25 | @rm -f Makefile.bak; \ | |
26 | mv Makefile Makefile.bak; \ | |
27 | sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \ | |
28 | ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' >>Makefile; \ | |
29 | ${ECHO} '# Dependencies generated by make depend' >>Makefile; \ | |
30 | for f in ${SRCS}; \ | |
31 | do \ | |
32 | ${ECHO} "Dependencies for $$f:\c"; \ | |
33 | ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \ | |
34 | for h in `sed -n -e \ | |
35 | 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \ | |
36 | do \ | |
37 | ${ECHO} " $$h\c"; \ | |
38 | ${ECHO} " $$h\c" >>Makefile; \ | |
39 | done; \ | |
40 | ${ECHO} " done."; \ | |
41 | ${ECHO} "" >>Makefile; \ | |
42 | done; \ | |
43 | ${ECHO} '# End of generated dependencies' >>Makefile | |
44 | ||
45 | # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT | |
46 | # Dependencies generated by make depend | |
47 | xutil.o: ../config.h mbselib.h | |
48 | rdconfig.o: ../config.h mbselib.h | |
16
f4cbe008da72
Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents:
7
diff
changeset
|
49 | lcd-pcf8574.o: ../config.h mbselib.h |
20
f7f9463cdefd
Added 433 MHz transmitter and receiver library and demo programs
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
50 | rc-switch.o: ../config.h mbselib.h |
31
89dd2b691701
Added library code to read DHT11 temperature/humidity sensor
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
51 | dht11.o: ../config.h mbselib.h |
7 | 52 | # End of generated dependencies |