-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
90 lines (65 loc) · 2.17 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
a.out: main.o parse.o prabsyn.o y.tab.o lex.yy.o errormsg.o util.o table.o absyn.o symbol.o semant.o types.o env.o tree.o temp.o escape.o printtree.o frame.o translate.o canon.o codegen.o assem.o graph.o flowgraph.o liveness.o color.o regalloc.o
gcc -g main.o parse.o prabsyn.o y.tab.o lex.yy.o errormsg.o util.o table.o absyn.o symbol.o semant.o types.o env.o tree.o temp.o escape.o printtree.o frame.o translate.o canon.o codegen.o assem.o graph.o flowgraph.o liveness.o color.o regalloc.o
main.o: main.c
gcc -g -c main.c
regalloc.o: regalloc.c regalloc.h
gcc -g -c regalloc.c
color.o: color.c color.h
gcc -g -c color.c
liveness.o: liveness.c liveness.h
gcc -g -c liveness.c
flowgraph.o: flowgraph.c flowgraph.h
gcc -g -c flowgraph.c
graph.o: graph.c graph.h
gcc -g -c graph.c
codegen.o: codegen.c codegen.h
gcc -g -c codegen.c
parse.o: parse.c errormsg.h util.h
gcc -g -c parse.c
assem.o: assem.c assem.h
gcc -g -c assem.c
canon.o: canon.c canon.h
gcc -g -c canon.c
translate.o: translate.c translate.h
gcc -g -c translate.c
frame.o: x86frame.c frame.h
gcc -g -c x86frame.c -o frame.o
temp.o: temp.c temp.h
gcc -g -c temp.c
escape.o: escape.c escape.h
gcc -g -c escape.c
tree.o: tree.c tree.h
gcc -g -c tree.c
printtree.o: printtree.c printtree.h
gcc -g -c printtree.c
prabsyn.o: prabsyn.c prabsyn.h
gcc -g -c prabsyn.c
semant.o: semant.c semant.h
gcc -g -c semant.c
env.o: env.c env.h
gcc -g -c env.c
types.o: types.c types.h
gcc -g -c types.c
y.tab.o: y.tab.c
gcc -g -c y.tab.c
y.tab.c: tiger.y
yacc -dv tiger.y
y.tab.h: y.tab.c
errormsg.o: errormsg.c errormsg.h util.h
gcc -g -c errormsg.c
lex.yy.o: lex.yy.c symbol.h absyn.h y.tab.h errormsg.h util.h
gcc -g -c lex.yy.c
lex.yy.c: tiger.lex
lex tiger.lex
util.o: util.c util.h
gcc -g -c util.c
table.o: table.c table.h
gcc -g -c table.c
absyn.o: absyn.h absyn.c
gcc -g -c absyn.c
symbol.o: symbol.c symbol.h
gcc -g -c symbol.c
handin:
tar -czf id.name.tar.gz absyn.[ch] errormsg.[ch] makefile gradeMe.sh parse.[ch] prabsyn.[ch] ref-6b symbol.[ch] table.[ch] testcases tiger.lex tiger.y util.[ch] env.[ch] semant.[ch] translate.[ch] *.h *.c
clean:
rm -f a.out *.o y.tab.c y.tab.h lex.yy.c y.output *~