aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2010-11-15 13:11:08 +0200
committerSerge A. Zaitsev <devnull@localhost>2010-11-15 13:11:08 +0200
commitf22c2d30b7c73ebf1a7815b4a3eb5df18c251ed1 (patch)
treed57979b1a9c4299e4994b6806a154fa50c59ab3e /Makefile
Initial commit. Demo program is included in the jsmn.c code. Ugly names and no comments. Please, don't read this changeset
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..c6816e976
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CFLAGS=-Wall -W -std=c89
+
+all: jsmn_demo
+
+jsmn_demo: jsmn.o
+ gcc $(LDFLAGS) jsmn.o -o $@
+
+jsmn.o: jsmn.c jsmn.h
+ gcc $(CFLAGS) -c jsmn.c -o $@
+
+clean:
+ rm -f jsmn.o
+ rm -f jsmn_demo