summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..009367e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+.POSIX:
+LDFLAGS=-static
+CFLAGS=-g -Og -Wshadow -Wall -Wextra -Wshadow
+
+all: parse receive
+parse: parse_cgi.o cJSON.o
+	$(CC) $(LDFLAGS) -o $@ parse_cgi.o cJSON.o
+
+clean:
+	rm -f parse_cgi.o cJSON.o parse receive
+
+test: parse test.json
+	./parse < test.json
+
+.PHONY: all clean test