aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-04 01:07:15 +0800
committerTeddy <[email protected]>2014-04-04 01:07:15 +0800
commita52fc0e7c5d05c7a4b18d8520826e448576826f9 (patch)
treee074fa63de537a34cdac5a3a78a5ae2788dad2ba /Makefile
parentef1c46b1eef2b22100d9eca9c4d0e6ffab7c7eab (diff)
...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fc9fe09..bce2e89 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,8 @@ run:
db:
gdb cibic
-cibic: lex.yy.o cibic.tab.o ast.o main.o
- gcc -o cibic lex.yy.o cibic.tab.o ast.o main.o
+cibic: lex.yy.o cibic.tab.o ast.o main.o semantics.o
+ gcc -o cibic lex.yy.o cibic.tab.o ast.o main.o semantics.o
lex.yy.o: lex.yy.c
gcc -c lex.yy.c
cibic.tab.o: cibic.tab.c
@@ -16,6 +16,8 @@ main.o: main.c
gcc -c main.c -g -Wall -Wextra
ast.o: ast.c
gcc -c ast.c -g -Wall -Wextra -DCIBIC_DEBUG
+semantics.o: semantics.c
+ gcc -c semantics.c -g -Wall -Wextra -DCIBIC_DEBUG
lex.yy.c: cibic.l
flex cibic.l
cibic.tab.c: cibic.y
@@ -26,7 +28,5 @@ clean:
sem: semantics.o test.o
gcc -o sem semantics.o test.o
-semantics.o: semantics.c
- gcc -c semantics.c -Wall -Wextra -g
test.o: test.c
gcc -c test.c -Wall -Wextra -g