Rename http.c/.h to chttp.c/.h and improve amalgamation formatting

This commit is contained in:
2025-07-20 18:33:51 +02:00
parent 8be1b8e3d6
commit dba15c946e
14 changed files with 87 additions and 28 deletions
+2 -8
View File
@@ -6,16 +6,10 @@ LFLAGS = -lssl -lcrypto
CFILES = $(shell find src -name "*.c")
HFILES = $(shell find src -name "*.h")
all: client_example server_example http.c http.h
all: chttp.c chttp.h
http.c http.h: $(HFILES) $(CFILES)
chttp.c chttp.h: $(HFILES) $(CFILES)
python misc/amalg.py
client_example: examples/client_example.c http.c http.h
$(CC) examples/client_example.c http.c $(CFLAGS) -o $@ $(LFLAGS)
server_example: examples/server_example.c http.c http.h
$(CC) examples/server_example.c http.c $(CFLAGS) -o $@ $(LFLAGS)
clean:
rm -f client_example server_example