-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
53 lines (35 loc) · 1.17 KB
/
makefile
File metadata and controls
53 lines (35 loc) · 1.17 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CC = gcc
CFLAGS = -w -g
DEPS = compiler.o DFA.o follow.o HashTable.o first.o lexer.o linklist.o parser.o set.o Tree.o AST.o codeGenerator.o SymbolTable.o typeChecker.o driver.o
stage2exe:$(DEPS)
$(CC) $(CFLAGS) -o stage2exe $(DEPS)
compiler.o: compiler.h compiler.c
$(CC) $(CFLAGS) -c compiler.c
DFA.o: DFA.c DFA.h
$(CC) $(CFLAGS) -c DFA.c
first.o: first.h set.h parser.h first.c compiler.h
$(CC) $(CFLAGS) -c first.c
follow.o: follow.c follow.h compiler.h
$(CC) $(CFLAGS) -c follow.c
HashTable.o: HashTable.h HashTable.c
$(CC) $(CFLAGS) -c HashTable.c
lexer.o: lexer.c lexer.h
$(CC) $(CFLAGS) -c lexer.c
linklist.o: linklist.c linklist.h
$(CC) $(CFLAGS) -c linklist.c
parser.o: parser.c parser.h compiler.h first.h follow.h
$(CC) $(CFLAGS) -c parser.c
set.o: set.c set.h
$(CC) $(CFLAGS) -c set.c
Tree.o: Tree.h Tree.c
$(CC) $(CFLAGS) -c Tree.c
AST.o: AST.c AST.h
$(CC) $(CFLAGS) -c AST.c
codeGenerator.o: codeGeneratorDef.h codeGenerator.c codeGenerator.h
$(CC) $(CFLAGS) -c codeGenerator.c
typeChecker.o: typeChecker.c
$(CC) $(CFLAGS) -c typeChecker.c
driver.o: driver.c compiler.h first.h follow.h
$(CC) $(CFLAGS) -c driver.c
clean:
-rm -f *.o core