X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/24b663d6570563a2dc601363c26ebd4d0bb36611..43a12832a343747b7317987b552a87eb8ed5b42d:/Makefile

diff --git a/Makefile b/Makefile
index b9d7695..945b5e3 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,9 @@ COM =\
 	components/ip\
 	components/kernel_release\
 	components/keyboard_indicators\
+	components/keymap\
 	components/load_avg\
+	components/netspeeds\
 	components/num_files\
 	components/ram\
 	components/run_command\
@@ -28,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)