aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-03-24 20:54:55 +0800
committerTeddy <[email protected]>2014-03-24 20:54:55 +0800
commitf218a80d6ca8a69ba0b22cb87f99e8b82162bbee (patch)
tree796058d507c602ce76b91b862acb6fdf9912863f /Makefile
parentccab148f1310b3cadffb99005941e39fa932d295 (diff)
AST Construction: almost done
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4cf057a..9abe133 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,17 @@ all: cibic
run:
./cibic
+debug:
+ gdb cibic
+
cibic: lex.yy.o cibic.tab.o ast.o
gcc -o cibic lex.yy.o cibic.tab.o ast.o
lex.yy.o: lex.yy.c
- gcc -c lex.yy.c
+ gcc -c lex.yy.c -Wall -Wextra
cibic.tab.o: cibic.tab.c
- gcc -c cibic.tab.c
+ gcc -c cibic.tab.c -Wall -Wextra
ast.o: ast.c
- gcc -c ast.c -g
+ gcc -c ast.c -g -Wall -Wextra
lex.yy.c: cibic.l
flex cibic.l
cibic.tab.c: cibic.y