summaryrefslogtreecommitdiffhomepage
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile
index c04cbcd..8df5a45 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -17,7 +17,7 @@ CXXFLAGS+= -I. -I.. -fPIE
CXXTESTFLAGS=
-CXXFLAGS+=$(shell pkg-config --cflags fmt)
+CXXFLAGS+=$(shell pkg-config --cflags fmt fcgi)
LIBS+=\
-lreichwein \
@@ -29,7 +29,7 @@ LIBS+=\
-lpthread \
-lssl -lcrypto \
-ldl \
-$(shell pkg-config --libs fmt)
+$(shell pkg-config --libs fmt fcgi)
LDFLAGS+=-pie
@@ -57,10 +57,13 @@ TESTSRC=\
test-server.cpp \
test-statistics.cpp \
test-webserver.cpp \
+ fastcgiprocess.cpp \
+ helper.cpp \
+ webserverprocess.cpp \
+ websocketserverprocess.cpp
- $(PROGSRC)
+build: $(PROJECTNAME) fcgi1
-build: $(PROJECTNAME)
ifeq ($(CXXTYPE),clang++)
LLVM_PROFILE_FILE="$(PROJECTNAME).profraw" ./$(PROJECTNAME)
$(LLVMPROFDATA) merge -sparse $(PROJECTNAME).profraw -o $(PROJECTNAME).profdata
@@ -73,6 +76,9 @@ endif
$(PROJECTNAME): $(TESTSRC:.cpp=.o) $(UNITS:.cpp=.o)
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
+fcgi1: fcgi1.o
+ $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
+
dep: $(TESTSRC:.cpp=.d)
%.d: %.cpp
@@ -109,7 +115,7 @@ ADD_DEP=Makefile
# misc ---------------------------------------------------
clean:
- -rm -f *.o *.a *.d $(PROJECTNAME) *.gcda *.gcno *.profraw *.profdata *.gcov
+ -rm -f *.o *.a *.d $(PROJECTNAME) *.gcda *.gcno *.profraw *.profdata *.gcov fcgi1
.PHONY: clean all install