-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (28 loc) · 1.1 KB
/
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
30
31
32
# BATCH NUMBER - 57
# Authors:-
# Rishabh Singh 2012B4A7691P [email protected]
# Anchit Jain 2012B3A7570P [email protected]
# nasm -felf64 first.asm && gcc first.o && ./a.out
all: toycompiler
toycompiler: driver.o lexer.o parser.o ast.o symbolTable.o typeCheck_and_semanticAnalysis.o codeGen.o
gcc -pg -g -fprofile-arcs driver.o lexer.o parser.o ast.o symbolTable.o typeCheck_and_semanticAnalysis.o codeGen.o -o toycompiler
lexer.o: lexer.c
gcc -pg -g -fprofile-arcs -c lexer.c
parser.o: parser.c
gcc -pg -g -fprofile-arcs -c parser.c
ast.o: ast.c
gcc -pg -g -fprofile-arcs -c ast.c
symbolTable.o: symbolTable.c
gcc -pg -g -fprofile-arcs -c symbolTable.c
typeCheck_and_semanticAnalysis.o: typeCheck_and_semanticAnalysis.c
gcc -pg -g -fprofile-arcs -c typeCheck_and_semanticAnalysis.c
codeGen.o: codeGen.c
gcc -pg -g -fprofile-arcs -c codeGen.c
driver.o: driver.c
gcc -pg -g -fprofile-arcs -c driver.c
clean:
rm -f *.o
rm -f toycompiler *.gcda gmon.out
rm -f FirstSet.txt FollowSet.txt comments.txt
rm -f syntax_errors.txt sematic_errors.txt
rm -f a.out *.asm