Add a client example program and move examples to the examples/ folder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user