summary refs log tree commit diff
path: root/minic/Makefile
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-02 15:34:38 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-02 15:34:38 -0400
commit30eced928c404caae41d62f238270f00bdf7c25b (patch)
tree6f305c2d318e4a9b2dbec9f5a38a704a090c96c1 /minic/Makefile
parentecaad8119f77601fec4cab61c510d697ec5bb939 (diff)
downloadroux-30eced928c404caae41d62f238270f00bdf7c25b.tar.gz
start an example compiler for a subset of C
Diffstat (limited to 'minic/Makefile')
-rw-r--r--minic/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/minic/Makefile b/minic/Makefile
new file mode 100644
index 0000000..39b2946
--- /dev/null
+++ b/minic/Makefile
@@ -0,0 +1,8 @@
+CFLAGS=-g -Wall
+
+minic: yacc minic.y
+	./yacc minic.y
+	$(CC) $(CFLAGS) -o $@ y.tab.c
+clean:
+	rm -f yacc minic y.*
+.PHONY: clean