Fix object order and stop using a GNU make idiom
authorLaslo Hunhold <dev@frign.de>
Mon, 28 May 2018 13:58:28 +0000 (15:58 +0200)
committerAaron Marcher <me@drkhsh.at>
Mon, 28 May 2018 14:16:20 +0000 (16:16 +0200)
Makefile

index 8c6f170cb988ea345ea687b676e9b02ed45e798d..5756418fc557395cfc41c92b1bc2c6edf7c7bc0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ config.h:
        cp config.def.h $@
 
 slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)
-       $(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS)
+       $(CC) -o $@ $(LDFLAGS) $(COM:=.o) $(REQ:=.o) slstatus.o $(LDLIBS)
 
 clean:
        rm -f slstatus slstatus.o $(COM:=.o) $(REQ:=.o)