Add blocking server example with engine

This commit is contained in:
2025-05-13 00:04:53 +02:00
parent 9b0248fb72
commit 3def70928f
3 changed files with 249 additions and 5 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
.PHONY: all report
#OSTAG = LINUX
OSTAG = WINDOWS
OSTAG = LINUX
#OSTAG = WINDOWS
EXT_WINDOWS = .exe
EXT_LINUX = .out
@@ -14,6 +14,7 @@ EXT = ${EXT_${OSTAG}}
all:
gcc -o simple_server$(EXT) examples/simple_server.c tinyhttp.c -Wall -Wextra -DHTTP_CLIENT=0 -DHTTP_ROUTER=0 $(LFLAGS)
gcc -o blocking_server_with_engine$(EXT) examples/blocking_server_with_engine.c tinyhttp.c -Wall -Wextra -DHTTP_CLIENT=0 -DHTTP_ROUTER=0 $(LFLAGS) -g3
gcc -o test$(EXT) tests/test.c tests/test_branch_coverage_parse.c tests/test_branch_coverage_engine.c tests/test_fuzz_engine.c tinyhttp.c -fprofile-arcs -ftest-coverage $(LFLAGS)
report: