-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
186 lines (173 loc) · 5.83 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# $Id: Makefile,v 1.9 2005/05/12 16:03:12 moi Exp $
#
# build everything...
# We need the GNU make tool, on some systems it is called
# gmake, on others make is an alias to gmake. Choose one...
#
MAKE = make
#MAKE = gmake
# A phony target is one that is not really the name of a file.
# Using .PHONY prevents problems when a file/dir of the same name
# already exists as is the case here with alc/norm.
.PHONY: all
all: alc norm
.PHONY: alc
alc:
@echo "--------------------"
@echo "*** MCL-ALC library ***"
@echo "--------------------"
cd src/alc; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "--------------------"
@echo "***SDP library ***"
@echo "--------------------"
cd src/sdp_lib/src; ${MAKE} cleanall; ${MAKE}
@echo "--------------------"
@echo "*** FLUTE library ***"
@echo "--------------------"
cd src/flute_lib; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "--------------------"
@echo "*** FCAST-ALC tool ***"
@echo "--------------------"
cd fcast; ${MAKE} cleanall_alc; ${MAKE} depend; ${MAKE} alc
@echo "--------------------"
@echo "*** RobCast tool ***"
@echo "--------------------"
cd robcast; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "--------------------"
@echo "*** Flute tool ***"
@echo "--------------------"
cd flute; ${MAKE} cleanall; ${MAKE} depend; ${MAKE} all
@echo "--------------------"
@echo "*** mclftp tool ***"
@echo "--------------------"
#cd mclftp; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "skipped..."
@echo "--------------------"
@echo "*** ALC validation programs ***"
@echo "--------------------"
cd check/alc; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "--------------------"
@echo "*** FLUTE validation programs ***"
@echo "--------------------"
cd check/flute; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "done"
.PHONY: norm
norm:
@echo "--------------------"
@echo "*** MCL-NORM library ***"
@echo "--------------------"
cd src/norm; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "--------------------"
@echo "*** FCAST-NORM tool ***"
@echo "--------------------"
cd fcast; ${MAKE} cleanall_norm; ${MAKE} depend; ${MAKE} norm
@echo "--------------------"
@echo "*** mclftp-NORM tool ***"
@echo "--------------------"
cd mclftp; ${MAKE} cleanall; ${MAKE} depend; ${MAKE} norm
@echo "--------------------"
@echo "*** NORM validation programs ***"
@echo "--------------------"
cd check/norm; ${MAKE} cleanall; ${MAKE} depend; ${MAKE}
@echo "done"
.PHONY: clean
clean:
@echo "--------------------"
@echo "*** Cleaning MCL-ALC library ***"
@echo "--------------------"
cd src/alc; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning FLUTE library ***"
@echo "--------------------"
cd src/flute_lib; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning MCL-NORM library ***"
@echo "--------------------"
cd src/norm; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning FCAST tool ***"
@echo "--------------------"
cd fcast; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning RobCast tool ***"
@echo "--------------------"
cd robcast; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning Flute tool ***"
@echo "--------------------"
cd flute; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning SDP library ***"
@echo "--------------------"
cd src/sdp_lib/src; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning mclftp tool ***"
@echo "--------------------"
cd mclftp; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning ALC validation programs ***"
@echo "--------------------"
cd check/alc; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning FLUTE validation programs ***"
@echo "--------------------"
cd check/flute; ${MAKE} clean
@echo "--------------------"
@echo "*** Cleaning NORM validation programs ***"
@echo "--------------------"
cd check/norm; ${MAKE} clean
@echo "done"
.PHONY: cleanall
cleanall:
@echo "--------------------"
@echo "*** Cleaning MCL-ALC library ***"
@echo "--------------------"
cd src/alc; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning FLUTE library ***"
@echo "--------------------"
cd src/flute_lib; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning MCL-NORM library ***"
@echo "--------------------"
cd src/norm; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning FCAST tool ***"
@echo "--------------------"
cd fcast; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning RobCast tool ***"
@echo "--------------------"
cd robcast; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning SDP library ***"
@echo "--------------------"
cd src/sdp_lib/src; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning Flute tool ***"
@echo "--------------------"
cd flute; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning mclftp tool ***"
@echo "--------------------"
cd mclftp; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning ALC validation programs ***"
@echo "--------------------"
cd check/alc; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning FLUTE validation programs ***"
@echo "--------------------"
cd check/flute; ${MAKE} cleanall
@echo "--------------------"
@echo "*** Cleaning NORM validation programs ***"
@echo "--------------------"
cd check/norm; ${MAKE} cleanall
@echo "*** Cleaning ALC doxygen documents ***"
@echo "--------------------"
cd doc/doxygen/alc; rm html/*.html; rm -rf man/man3/*.3
@echo "*** Cleaning NORM doxygen documents ***"
@echo "--------------------"
cd doc/doxygen/norm; rm html/*.html; rm -rf man/man3/*.3
@echo "done"
# DO NOT DELETE