-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
103 lines (96 loc) · 2.5 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright (c) 1992 The Regents of the University of California.
# 2016-2017 Docentes de la Universidad Nacional de Rosario.
# All rights reserved. See `copyright.h` for copyright notice and
# limitation of liability and disclaimer of warranty provisions.
MAKE = make
SH = bash
LDFLAGS = -std=c++17
.PHONY: allD allC cleanD cleanC
default: allC
g++ $(LDFLAGS) $(PROGRAM_OBJ_C) app.cpp -o tiger.exe
allC:
$(MAKE) -C AST depend
$(MAKE) -C AST all
$(MAKE) -C IRT depend
$(MAKE) -C IRT all
$(MAKE) -C Escapes depend
$(MAKE) -C Escapes all
$(MAKE) -C Syntax all
$(MAKE) -C Frame depend
$(MAKE) -C Frame all
$(MAKE) -C Semantic depend
$(MAKE) -C Semantic all
$(MAKE) -C Translation depend
$(MAKE) -C Translation all
$(MAKE) -C Liveness depend
$(MAKE) -C Liveness all
$(MAKE) -C Canon depend
$(MAKE) -C Canon all
$(MAKE) -C Munch depend
$(MAKE) -C Munch all
$(MAKE) -C RegAlloc depend
$(MAKE) -C RegAlloc all
$(MAKE) -C FileHandler depend
$(MAKE) -C FileHandler all
$(MAKE) -C Cmd depend
$(MAKE) -C Cmd all
test: allD # executes Testing main
g++ $(LDFLAGS) $(PROGRAM_OBJ_D) -o tiger.exe
allD:
$(MAKE) -C AST depend
$(MAKE) -C AST all
$(MAKE) -C IRT depend
$(MAKE) -C IRT all
$(MAKE) -C Escapes depend
$(MAKE) -C Escapes all
$(MAKE) -C Syntax all
$(MAKE) -C Frame depend
$(MAKE) -C Frame all
$(MAKE) -C Semantic depend
$(MAKE) -C Semantic all
$(MAKE) -C Translation depend
$(MAKE) -C Translation all
$(MAKE) -C Canon depend
$(MAKE) -C Canon all
$(MAKE) -C Liveness depend
$(MAKE) -C Liveness all
$(MAKE) -C Munch depend
$(MAKE) -C Munch all
$(MAKE) -C RegAlloc depend
$(MAKE) -C RegAlloc all
$(MAKE) -C Testing depend
$(MAKE) -C Testing all
$(MAKE) -C FileHandler depend
$(MAKE) -C FileHandler all
$(MAKE) -C Cmd depend
$(MAKE) -C Cmd all
clean: cleanD cleanC
cleanD:
$(MAKE) -C AST clean
$(MAKE) -C IRT clean
$(MAKE) -C Escapes clean
$(MAKE) -C Syntax clean
$(MAKE) -C Frame clean
$(MAKE) -C Semantic clean
$(MAKE) -C Translation clean
$(MAKE) -C Canon clean
$(MAKE) -C Munch clean
$(MAKE) -C RegAlloc clean
$(MAKE) -C Testing clean
$(MAKE) -C FileHandler clean
$(MAKE) -C Cmd clean
cleanC:
$(MAKE) -C AST clean
$(MAKE) -C IRT clean
$(MAKE) -C Escapes clean
$(MAKE) -C Syntax clean
$(MAKE) -C Frame clean
$(MAKE) -C Semantic clean
$(MAKE) -C Translation clean
$(MAKE) -C Canon clean
$(MAKE) -C Munch clean
$(MAKE) -C Liveness clean
$(MAKE) -C RegAlloc clean
$(MAKE) -C FileHandler clean
$(MAKE) -C Cmd clean
include Makefile.common