X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/19f3c8f545237f9db5e994220f3529b192b4bf39..d76b1a21fc014395cf9f7bd4e14180a3a0945e9c:/Makefile diff --git a/Makefile b/Makefile index 067ef57..945b5e3 100644 --- a/Makefile +++ b/Makefile @@ -2,45 +2,45 @@ # slstatus - suckless status monitor .POSIX: -include os.mk include config.mk REQ = util COM =\ - components/$(OS)/battery \ - components/$(OS)/cpu \ + components/battery\ + components/cpu\ components/datetime\ components/disk\ - components/$(OS)/entropy \ + components/entropy\ components/hostname\ components/ip\ components/kernel_release\ components/keyboard_indicators\ + components/keymap\ components/load_avg\ + components/netspeeds\ components/num_files\ - components/$(OS)/ram \ + components/ram\ components/run_command\ - components/$(OS)/swap \ - components/$(OS)/temperature \ - components/$(OS)/uptime \ + components/swap\ + components/temperature\ + components/uptime\ components/user\ components/volume\ components/wifi all: slstatus -slstatus: slstatus.o $(COM:=.o) $(REQ:=.o) -slstatus.o: slstatus.c slstatus.h arg.h config.h $(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)