Add a client example program and move examples to the examples/ folder

This commit is contained in:
2025-11-22 00:13:43 +01:00
parent eec1174047
commit 4ca5b67d8e
8 changed files with 80 additions and 17 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
.PHONY: all clean example
all: chttp.c chttp.h example
all: chttp.c chttp.h simple_client simple_server
chttp.c chttp.h: $(wildcard src/*.c src/*.h) misc/amalg.py Makefile
python misc/amalg.py
example: main.c chttp.c chttp.h
gcc main.c chttp.c -o example -ggdb
%: examples/%.c chttp.c chttp.h
gcc $< chttp.c -o $@ -ggdb
clean:
rm chttp.c chttp.h