aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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