1 # Makefile for the mbsePi-apps/thermometers. |
1 # Makefile for the mbsePi-apps/thermometers. |
2 |
2 |
3 include ../Makefile.global |
3 include ../Makefile.global |
4 |
4 |
5 SRCS = main.c |
5 SRCS = $(wildcard *.c) |
6 HDRS = main.h |
6 HDRS = $(wildcard *.h) |
7 OBJS = main.o |
7 OBJS = $(SRCS:.c=.o) |
8 SLIBS = ../lib/libmbse.a |
|
9 TARGET = thermometers |
8 TARGET = thermometers |
10 OTHER = Makefile |
9 OTHER = Makefile |
11 |
10 |
12 ############################################################################# |
11 ############################################################################# |
13 |
12 |
14 .c.o: |
13 .c.o: |
15 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
14 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
16 |
15 |
17 all: ${TARGET} |
16 all: ${TARGET} |
18 |
17 |
19 thermometers: ${OBJS} ${SLIBS} |
18 thermometers: ${OBJS} |
20 ${CC} -o thermometers ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS} |
19 ${CC} -o thermometers ${OBJS} ${LDFLAGS} -lmosquitto ${LIBS} |
21 |
20 |
22 clean: |
21 clean: |
23 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
22 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
24 |
23 |
25 install: all |
24 install: all |
52 done; \ |
51 done; \ |
53 ${ECHO} '# End of generated dependencies' >>Makefile |
52 ${ECHO} '# End of generated dependencies' >>Makefile |
54 |
53 |
55 # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT |
54 # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT |
56 # Dependencies generated by make depend |
55 # Dependencies generated by make depend |
57 main.o: ../lib/mbselib.h main.h |
56 rdconfig.o: thermometers.h |
|
57 xutil.o: thermometers.h |
|
58 lcd-pcf8574.o: thermometers.h |
|
59 thermometers.o: thermometers.h |
58 # End of generated dependencies |
60 # End of generated dependencies |