diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-06 15:40:09 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-06 15:40:09 -0400 |
commit | 4589135bdde2dfbf899ab22f5d82e5d6abf020f0 (patch) | |
tree | 9cc0bfb18a2a5b022a38c80be463aa253cc8b29f | |
parent | af85ccd5cda88601226323fbe7e922962ccf1ad0 (diff) |
Update makefile for gen_code files
-rw-r--r-- | makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,8 +3,8 @@ FLAGS = -g -O0 -Wall -ggdb3 -Wno-parentheses YACC = yacc LEX = lex -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 +mypc: y.tab.o lex.yy.o tree.o scope.o node.o pc.o sem_check.o gen_code.o + $(CC) $(FLAGS) -o mypc main.o tree.o scope.o sem_check.o gen_code.o node.o y.tab.o lex.yy.o -lfl -ly pc.o: main.c headers $(CC) $(FLAGS) -c main.c @@ -12,6 +12,9 @@ pc.o: main.c headers tree.o: tree.c headers $(CC) $(FLAGS) -c tree.c +gen_code.o: gen_code.c headers + $(CC) $(FLAGS) -c gen_code.c + sem_check.o: sem_check.c headers $(CC) $(FLAGS) -c sem_check.c @@ -33,7 +36,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 +headers: pc.h tree.h sem_check.h scope.h node.h y.tab.c gen_code.h clean: rm -f mypc *.o y.tab.* lex.yy.* |