-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
29 lines (20 loc) · 830 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
exe: driver.o hashtable.o lexer.o parser.o stackTree.o astTree.o ast.o symbolTable.o
gcc -o stage2exe driver.o hashtable.o lexer.o parser.o stackTree.o astTree.o ast.o symbolTable.o
driver.o: lexerDef.h lexer.h parserDef.h parser.h stackTree.h driver.c
gcc -c -g driver.c -o driver.o
hashtable.o: lexerDef.h hashtable.c
gcc -c -g hashtable.c -o hashtable.o
lexer.o: lexerDef.h lexer.c
gcc -c -g lexer.c -o lexer.o
parser.o: lexerDef.h stackTree.h lexer.h parserDef.h parser.c
gcc -c -g parser.c -o parser.o
stackTree.o: lexerDef.h lexer.h parserDef.h stackTree.h stackTree.c
gcc -c -g stackTree.c -o stackTree.o
astTree.o: stackTree.h
gcc -c -g astTree.c -o astTree.o
ast.o: stackTree.h
gcc -c -g ast.c -o ast.o
symbolTable.o: symbolDef.h symbolTable.h
gcc -c -g symbolTable.c -o symbolTable.o
clean:
rm -rf *.o