Fix missing config.h in Makefile

This commit is contained in:
Quentin Rameau 2017-09-17 22:31:26 +02:00 committed by Aaron Marcher
parent 11d4bec648
commit e04a385364
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@
include config.mk include config.mk
REQ = util REQ = util
HDR = arg.h HDR = arg.h config.h
COM =\ COM =\
battery\ battery\
cpu\ cpu\
@ -52,6 +52,9 @@ user.o: user.c config.mk $(HDR) $(REQ:=.h)
volume.o: volume.c config.mk $(HDR) $(REQ:=.h) volume.o: volume.c config.mk $(HDR) $(REQ:=.h)
wifi.o: wifi.c config.mk $(HDR) $(REQ:=.h) wifi.o: wifi.c config.mk $(HDR) $(REQ:=.h)
config.h:
cp config.def.h $@
.o: .o:
$(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS) $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS)