summaryrefslogtreecommitdiffhomepage
path: root/plugins/cgi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cgi/Makefile')
-rw-r--r--plugins/cgi/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/cgi/Makefile b/plugins/cgi/Makefile
index b3e8548..8faebdc 100644
--- a/plugins/cgi/Makefile
+++ b/plugins/cgi/Makefile
@@ -19,7 +19,7 @@ endif
# -fprofile-instr-generate -fcoverage-mapping
# gcc:--coverage
-CXXFLAGS+= -Wall -I.
+CXXFLAGS+= -Wall -I. -I ../..
CXXFLAGS+= -pthread -fvisibility=hidden -fPIC
ifeq ($(CXX),clang++-10)
@@ -40,7 +40,8 @@ LIBS=\
-lboost_regex \
-lpthread \
-lssl -lcrypto \
--ldl
+-ldl \
+-lcommon
ifeq ($(CXX),clang++-10)
LIBS+= \
@@ -56,6 +57,8 @@ LIBS+= \
-lstdc++fs
endif
+LDFLAGS=-L../../libcommon
+
PROGSRC=\
cgi.cpp
@@ -73,8 +76,8 @@ all: $(PROJECTNAME).so
test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
-$(PROJECTNAME).so: $(SRC:.cpp=.o)
- $(CXX) -shared $(CXXFLAGS) $^ $(LIBS) -o $@
+$(PROJECTNAME).so: ../../libcommon/libcommon.a $(SRC:.cpp=.o)
+ $(CXX) -shared $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
dep: $(TESTSRC:.cpp=.d)