summaryrefslogtreecommitdiffhomepage
path: root/plugins/cgi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cgi/Makefile')
-rw-r--r--plugins/cgi/Makefile23
1 files changed, 2 insertions, 21 deletions
diff --git a/plugins/cgi/Makefile b/plugins/cgi/Makefile
index a4fdb15..2d86c50 100644
--- a/plugins/cgi/Makefile
+++ b/plugins/cgi/Makefile
@@ -28,8 +28,6 @@ else
CXXFLAGS+=-std=c++17
endif
-CXXTESTFLAGS=-Igoogletest/include -Igooglemock/include/ -Igoogletest -Igooglemock
-
LIBS=\
-lcommon \
-lboost_context \
@@ -62,33 +60,18 @@ LDFLAGS=-L../../libcommon
PROGSRC=\
cgi.cpp
-TESTSRC=\
- test-webserver.cpp \
- googlemock/src/gmock-all.cpp \
- googletest/src/gtest-all.cpp \
- $(PROGSRC)
-
SRC=$(PROGSRC)
all: $(PROJECTNAME).so
-# testsuite ----------------------------------------------
-test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
- $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
-
$(PROJECTNAME).so: ../../libcommon/libcommon.a $(SRC:.cpp=.o)
$(CXX) $(LDFLAGS) $^ -shared $(LDLIBS) $(LIBS) -o $@
-dep: $(TESTSRC:.cpp=.d)
-
%.d: %.cpp
- $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -MM -MP -MF $@ -c $<
+ $(CXX) $(CXXFLAGS) -MM -MP -MF $@ -c $<
%.o: %.cpp %.d
- $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
-
-googletest/src/%.o: googletest/src/%.cc
- $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
+ $(CXX) $(CXXFLAGS) -c $< -o $@
# dependencies
@@ -112,8 +95,6 @@ $(DISTROS): deb-src
debs: $(DISTROS)
clean:
- -rm -f test-$(PROJECTNAME) $(PROJECTNAME)
- -find . -name '*.o' -o -name '*.so' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' | xargs rm -f
zip: clean
-rm -f ../$(PROJECTNAME).zip