diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..64facb5 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra +SERVER_HDRS = socks5.hpp +SERVER_SRCS = socks5.cpp main.cpp + +ifneq ($(ENABLE_SANITIZER),) +CXXFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=undefined +else +ifneq ($(ENABLE_THREAD_SANITIZER),) +CXXFLAGS += -fsanitize=thread -fsanitize=undefined +endif +endif +ifneq ($(DEBUG),) +CXXFLAGS += -g #-DBOOST_ASIO_ENABLE_HANDLER_TRACKING=1 +endif + +all: server + +server: $(SERVER_HDRS) $(SERVER_SRCS) + $(CXX) $(CXXFLAGS) $(SERVER_SRCS) -o $@ + +clean: + rm -f server + +.PHONY: clean |