-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (23 loc) · 668 Bytes
/
Makefile
File metadata and controls
40 lines (23 loc) · 668 Bytes
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
# note: bison and flex think they are generating C files but here all files
# are compiled with g++ (the C++ compiler)
objects = ast.tab.o lex.yy.o gen.o symtab.o ast.o
myprog.exe: $(objects)
g++ -o myprog.exe $(objects)
ast.tab.o : ast.tab.c ast.h gen.h symtab.h
g++ -c ast.tab.c
lex.yy.o : lex.yy.c ast.tab.h ast.h gen.h
g++ -c lex.yy.c
gen.o : gen.cpp ast.h gen.h
g++ -c gen.cpp
symtab.o : symtab.cpp symtab.h gen.h
g++ -c symtab.cpp
ast.o: ast.cpp gen.h symtab.h ast.h
g++ -c ast.cpp
ast.tab.c: ast.y
win_bison -d ast.y
ast.tab.h : ast.y
win_bison -d ast.y
lex.yy.c : ast.lex
win_flex ast.lex
clean :
rm $(objects) myprog.exe