summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e69649..13d78c8 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ CXXFLAGS=-O0 -g -D_DEBUG
CXXFLAGS+= -Wall -I.
+CXXFLAGS+= -pthread
ifeq ($(CXX),clang++-10)
CXXFLAGS+=-std=c++20 -stdlib=libc++
else
@@ -26,7 +27,8 @@ LIBS=\
-lboost_thread \
-lboost_filesystem \
-lboost_regex \
--lpthread
+-lpthread \
+-lssl -lcrypto
ifeq ($(CXX),clang++-10)
LIBS+= \
@@ -60,6 +62,9 @@ all: test-$(PROJECTNAME) $(PROJECTNAME)
test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
+$(PROJECTNAME): $(SRC:.cpp=.o)
+ $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
+
dep: $(TESTSRC:.cpp=.d)
%.d: %.cpp