-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
41 lines (28 loc) · 828 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
30
31
32
33
34
35
36
37
38
39
40
41
final: y.tab.o lex.yy.o errormsg.o util.o absyn.o symbol.o table.o prabsyn.o type.o
cc -g y.tab.o lex.yy.o errormsg.o util.o absyn.o symbol.o table.o prabsyn.o type.o -o final -lm
y.tab.o: y.tab.c
cc -g -c y.tab.c
y.tab.c: parser.y
yacc --debug -vd parser.y
y.tab.h: y.tab.c
echo "y.tab.h was created at the same time as y.tab.c"
errormsg.o: errormsg.c errormsg.h util.h
cc -g -c errormsg.c
lex.yy.o: lex.yy.c y.tab.h errormsg.h util.h
cc -g -c lex.yy.c
lex.yy.c: lexer.l
lex lexer.l
util.o: util.c util.h
cc -g -c util.c
absyn.o: absyn.c absyn.h
cc -g -c absyn.c
prabsyn.o: prabsyn.c prabsyn.h
cc -g -c prabsyn.c
symbol.o: symbol.c symbol.h
cc -g -c symbol.c
table.o: table.c table.h
cc -g -c table.c
type.o: type.c type.h
cc -g -c type.c
clean:
rm -f final *.o lex.yy.c y.tab.c y.tab.h y.output