From: James Bunton Date: Thu, 14 May 2020 05:27:07 +0000 (+1000) Subject: Makefile cleanups X-Git-Url: https://code.delx.au/proxy/commitdiff_plain/c2d6694dd8734cccc319d7c1b2846e3475d24ae7 Makefile cleanups --- diff --git a/.gitignore b/.gitignore index d188b21..334bebb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ socks5server -.*.swp +*.o out.log diff --git a/Makefile b/Makefile index 40cc5cd..0d2aab5 100644 --- 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