Fri, 09 May 2014 20:39:01 +0200
Added user log function for program data
# Makefile for the mbsePi-apps/coolers. include ../Makefile.global SRCS = coolers.c mosquitto.c sensors.c HDRS = coolers.h mosquitto.h sensors.h OBJS = coolers.o mosquitto.o sensors.o SLIBS = -lpthread ../lib/libmbse.a TARGET = coolers OTHER = Makefile ############################################################################# .c.o: ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} coolers: ${OBJS} ${SLIBS} ${CC} -o coolers ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS} clean: rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak install: all ${INSTALL} -c -s -g root -o root -m 0755 thermometers ${BINDIR} filelist: Makefile BASE=`pwd`; \ BASE=`basename $${BASE}`; \ (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist depend: @rm -f Makefile.bak; \ mv Makefile Makefile.bak; \ sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \ ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \ >>Makefile; \ ${ECHO} '# Dependencies generated by make depend' >>Makefile; \ for f in ${SRCS}; \ do \ ${ECHO} "Dependencies for $$f:\c"; \ ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \ for h in `sed -n -e \ 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \ do \ ${ECHO} " $$h\c"; \ ${ECHO} " $$h\c" >>Makefile; \ done; \ ${ECHO} " done."; \ ${ECHO} "" >>Makefile; \ done; \ ${ECHO} '# End of generated dependencies' >>Makefile # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT # Dependencies generated by make depend coolers.o: ../lib/mbselib.h coolers.h mosquitto.h sensors.h mosquitto.o: ../lib/mbselib.h mosquitto.h sensors.o: ../lib/mbselib.h sensors.h # End of generated dependencies