--- a/thermometers/Makefile Sun May 25 16:39:54 2014 +0200 +++ b/thermometers/Makefile Sun May 25 22:06:56 2014 +0200 @@ -2,10 +2,9 @@ include ../Makefile.global -SRCS = main.c -HDRS = main.h -OBJS = main.o -SLIBS = ../lib/libmbse.a +SRCS = $(wildcard *.c) +HDRS = $(wildcard *.h) +OBJS = $(SRCS:.c=.o) TARGET = thermometers OTHER = Makefile @@ -16,8 +15,8 @@ all: ${TARGET} -thermometers: ${OBJS} ${SLIBS} - ${CC} -o thermometers ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS} +thermometers: ${OBJS} + ${CC} -o thermometers ${OBJS} ${LDFLAGS} -lmosquitto ${LIBS} clean: rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak @@ -54,5 +53,8 @@ # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT # Dependencies generated by make depend -main.o: ../lib/mbselib.h main.h +rdconfig.o: thermometers.h +xutil.o: thermometers.h +lcd-pcf8574.o: thermometers.h +thermometers.o: thermometers.h # End of generated dependencies