From 702d32b41c1c4f496dba046c2017cb5b907e55cd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 12 Jan 2023 20:00:40 +0100 Subject: FCGI test --- tests/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'tests/Makefile') 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 -- cgit v1.2.3