diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-12 20:00:40 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-12 20:00:40 +0100 |
commit | 702d32b41c1c4f496dba046c2017cb5b907e55cd (patch) | |
tree | 271a48cc1dc9ef1d2fcc846ed4bebbcdd24242e2 /tests/Makefile | |
parent | 124646fe2a31b7211d12fb043fcb760cbe7313b0 (diff) |
FCGI test
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 16 |
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 |