aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-03-26 19:22:20 +0800
committerTeddy <ted.sybil@gmail.com>2014-03-26 19:22:20 +0800
commit5f2965bcaca608f0d9af84373565539ae384918d (patch)
treecae25013c6456dc28fc93440b2528622b730f628 /Makefile
parentd2f316adaeae270e6c4e9cba040e07de3d11e737 (diff)
semantics: symbol table now works
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 35fe25f..88bf597 100644
--- a/Makefile
+++ b/Makefile
@@ -23,3 +23,10 @@ cibic.tab.c: cibic.y
clean:
rm -f cibic lex.yy.c cibic.tab.c *.o
+
+sem: semantics.o test.o
+ gcc -o sem semantics.o test.o
+semantics.o: semantics.c
+ gcc -c semantics.c -Wall -Wextra
+test.o: test.c
+ gcc -c test.c -Wall -Wextra