coolers/Makefile

changeset 39
442357970a34
parent 27
4703cc10b99a
--- a/coolers/Makefile	Sat May 17 10:41:49 2014 +0200
+++ b/coolers/Makefile	Sat May 17 10:50:16 2014 +0200
@@ -2,9 +2,9 @@
 
 include ../Makefile.global
 
-SRCS		= coolers.c mosquitto.c sensors.c
-HDRS		= coolers.h mosquitto.h sensors.h
-OBJS		= coolers.o mosquitto.o sensors.o
+SRCS		= $(wildcard *.c)
+HDRS		= $(wildcard *.h)
+OBJS		= $(SRCS:.c=.o)
 SLIBS		= -lpthread ../lib/libmbse.a
 TARGET		= coolers
 OTHER		= Makefile
@@ -55,6 +55,6 @@
 # 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
+sensors.o: ../lib/mbselib.h sensors.h
 mosquitto.o: ../lib/mbselib.h mosquitto.h
-sensors.o: ../lib/mbselib.h sensors.h
 # End of generated dependencies

mercurial