aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-05-01 01:07:51 +0800
committerTeddy <[email protected]>2014-05-01 01:07:51 +0800
commit38dd138627bf6de02734d00e5df841c25a53855e (patch)
tree7fc2229d47b763c5eafb5121d05f327399318e9d /Makefile
parent09bd5680d97c5ef36158938c8d65eec455263557 (diff)
'&' operator
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dd26615..025649d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,9 @@ run:
db:
gdb cibic
-cibic: lex.yy.o cibic.tab.o ast.o main.o semantics.o ssa.o
+cibic: lex.yy.o cibic.tab.o ast.o main.o semantics.o ssa.o mips.o
mkdir -p bin
- gcc -o bin/cibic lex.yy.o cibic.tab.o ast.o main.o semantics.o ssa.o
+ gcc -o bin/cibic lex.yy.o cibic.tab.o ast.o main.o semantics.o ssa.o mips.o
cp bin/cibic cibic
lex.yy.o: lex.yy.c cibic.tab.c
gcc -c lex.yy.c
@@ -22,6 +22,8 @@ semantics.o: semantics.c semantics.h
gcc -c semantics.c -g -Wall -Wextra -DCIBIC_DEBUG
ssa.o: ssa.c ssa.h
gcc -c ssa.c -g -Wall -Wextra -DCIBIC_DEBUG
+mips.o: mips.c mips.h
+ gcc -c mips.c -g -Wall -Wextra -DCIBIC_DEBUG
lex.yy.c: cibic.l
flex cibic.l
cibic.tab.c: cibic.y