X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/943b42de05cc3328ea74b0d9f527f17e1fcf47e7..e724907cc37749907cb8c63031d9fb35ef46a657:/Makefile diff --git a/Makefile b/Makefile index 7ed7099..945b5e3 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ include config.mk REQ = util COM =\ - components/backlight\ components/battery\ components/cpu\ components/datetime\ @@ -31,18 +30,17 @@ COM =\ all: slstatus -slstatus: slstatus.o $(COM:=.o) $(REQ:=.o) -slstatus.o: slstatus.c slstatus.h arg.h config.h config.mk $(REQ:=.h) $(COM:=.o): config.mk $(REQ:=.h) +slstatus.o: slstatus.c slstatus.h arg.h config.h config.mk $(REQ:=.h) + +.c.o: + $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< config.h: cp config.def.h $@ -.o: - $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS) - -.c.o: - $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< +slstatus: slstatus.o $(COM:=.o) $(REQ:=.o) + $(CC) -o $@ $(LDFLAGS) $(COM:=.o) $(REQ:=.o) slstatus.o $(LDLIBS) clean: rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)