aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-03 20:48:13 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-03 20:48:39 -0400
commit8c59ccd6e23ac63d59f5839ad410c04b393ff0c0 (patch)
tree7f73ed2cf6450614599514ca77a2646624484da8 /makefile
parente9ae811ffaa08caef0acca643ca1e7a1ff72396f (diff)
parent12f50dec6a529784a360dfaec9dc562b810ae2fd (diff)
Merge branch 'scopes' into types
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/makefile b/makefile
index 2ae5ae0..27d0649 100644
--- a/makefile
+++ b/makefile
@@ -1,21 +1,24 @@
-CC = gcc
+CC = tcc
FLAGS = -g
YACC = yacc
LEX = lex
-mypc: y.tab.o lex.yy.o tree.o node.o pc.o
- $(CC) $(FLAGS) -o mypc main.o tree.o node.o y.tab.o lex.yy.o -lfl -ly
+mypc: y.tab.o lex.yy.o tree.o scope.o node.o pc.o sem_check.o
+ $(CC) $(FLAGS) -o mypc main.o tree.o scope.o sem_check.o node.o y.tab.o lex.yy.o -lfl -ly
-pc.o: main.c pc.h
+pc.o: main.c headers
$(CC) $(FLAGS) -c main.c
-tree.o: tree.c tree.h
+tree.o: tree.c headers
$(CC) $(FLAGS) -c tree.c
-hash.o: hash.c hash.h
- $(CC) $(FLAGS) -c hash.c
+sem_check.o: sem_check.c headers
+ $(CC) $(FLAGS) -c sem_check.c
-node.o: node.c node.h
+scope.o: scope.c headers
+ $(CC) $(FLAGS) -c scope.c
+
+node.o: node.c headers
$(CC) $(FLAGS) -c node.c
y.tab.o: y.tab.c
@@ -30,5 +33,7 @@ y.tab.c: pc.y
lex.yy.c: pc.l
$(LEX) -l pc.l
+headers: pc.h tree.h sem_check.h y.tab.h scope.h node.h y.tab.c
+
clean:
rm -f mypc *.o y.tab.* lex.yy.*