X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/c28643ce5bc8c7fd825e4eabbd915bad2b91dbd0..3ac985eb0338773cfb1d1446fc0751f1f2afea94:/Makefile diff --git a/Makefile b/Makefile index b2b75b4..2f93b87 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ COM =\ components/num_files\ components/ram\ components/run_command\ + components/separator\ components/swap\ components/temperature\ components/uptime\ @@ -30,18 +31,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)