]> code.delx.au - proxy/commitdiff
Makefile cleanups master
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 14 May 2020 05:27:07 +0000 (15:27 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 14 May 2020 05:27:07 +0000 (15:27 +1000)
.gitignore
Makefile

index d188b2122a4237d9797ab608cf4a7284b432bf11..334bebb4273fe205abfc1c7023e71a4d16ba98d6 100644 (file)
@@ -1,3 +1,3 @@
 socks5server
-.*.swp
+*.o
 out.log
index 40cc5cdc2f7df607e54d10ac65820944a7c52be9..0d2aab5c25df57281846b869375bd70f28cfc1e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,9 @@
 VERSION := 0.2
 PREFIX  := /usr/local
-CFLAGS  += -Wall -Wextra -Werror -std=c99 -DVERSION='"$(VERSION)"'
-LDFLAGS += -lpthread -lbsd
+CFLAGS  += -Wall -Wextra -std=c99 -DVERSION='"$(VERSION)"'
+LDLIBS  += -lpthread -lbsd
 
-socks5server: socks5server.c
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-
-all: socks5server
+socks5server: socks5server.o
 
 test: socks5server
        ./test_proxy.py
@@ -21,6 +18,6 @@ install: all
        sed -i 's|PREFIX|$(PREFIX)|g' $(PREFIX)/lib/systemd/system/socks5server.service
 
 clean:
-       rm -f socks5server
+       rm -f socks5server *.o
 
-.PHONY: all test analyze install clean
+.PHONY: test analyze install clean