-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
322 lines (307 loc) · 8.66 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
# GNU Make solution makefile autogenerated by Premake
.NOTPARALLEL:
ifndef config
config=debug_linux
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug_linux)
lib9_config = debug_linux
libbio_config = debug_linux
libsec_config = debug_linux
ndate_config = debug_linux
node9_config = debug_linux
libnode9_config = debug_linux
endif
ifeq ($(config),debug_macosx)
lib9_config = debug_macosx
libbio_config = debug_macosx
libsec_config = debug_macosx
ndate_config = debug_macosx
node9_config = debug_macosx
libnode9_config = debug_macosx
endif
ifeq ($(config),debug_freebsd)
lib9_config = debug_freebsd
libbio_config = debug_freebsd
libsec_config = debug_freebsd
ndate_config = debug_freebsd
node9_config = debug_freebsd
libnode9_config = debug_freebsd
endif
ifeq ($(config),debug_netbsd)
lib9_config = debug_netbsd
libbio_config = debug_netbsd
libsec_config = debug_netbsd
ndate_config = debug_netbsd
node9_config = debug_netbsd
libnode9_config = debug_netbsd
endif
ifeq ($(config),debug_openbsd)
lib9_config = debug_openbsd
libbio_config = debug_openbsd
libsec_config = debug_openbsd
ndate_config = debug_openbsd
node9_config = debug_openbsd
libnode9_config = debug_openbsd
endif
ifeq ($(config),debug_dragonfly)
lib9_config = debug_dragonfly
libbio_config = debug_dragonfly
libsec_config = debug_dragonfly
ndate_config = debug_dragonfly
node9_config = debug_dragonfly
libnode9_config = debug_dragonfly
endif
ifeq ($(config),debug_solaris)
lib9_config = debug_solaris
libbio_config = debug_solaris
libsec_config = debug_solaris
ndate_config = debug_solaris
node9_config = debug_solaris
libnode9_config = debug_solaris
endif
ifeq ($(config),debug_windows)
lib9_config = debug_windows
libbio_config = debug_windows
libsec_config = debug_windows
ndate_config = debug_windows
node9_config = debug_windows
libnode9_config = debug_windows
endif
ifeq ($(config),debug_android)
lib9_config = debug_android
libbio_config = debug_android
libsec_config = debug_android
ndate_config = debug_android
node9_config = debug_android
libnode9_config = debug_android
endif
ifeq ($(config),devel_linux)
lib9_config = devel_linux
libbio_config = devel_linux
libsec_config = devel_linux
ndate_config = devel_linux
node9_config = devel_linux
libnode9_config = devel_linux
endif
ifeq ($(config),devel_macosx)
lib9_config = devel_macosx
libbio_config = devel_macosx
libsec_config = devel_macosx
ndate_config = devel_macosx
node9_config = devel_macosx
libnode9_config = devel_macosx
endif
ifeq ($(config),devel_freebsd)
lib9_config = devel_freebsd
libbio_config = devel_freebsd
libsec_config = devel_freebsd
ndate_config = devel_freebsd
node9_config = devel_freebsd
libnode9_config = devel_freebsd
endif
ifeq ($(config),devel_netbsd)
lib9_config = devel_netbsd
libbio_config = devel_netbsd
libsec_config = devel_netbsd
ndate_config = devel_netbsd
node9_config = devel_netbsd
libnode9_config = devel_netbsd
endif
ifeq ($(config),devel_openbsd)
lib9_config = devel_openbsd
libbio_config = devel_openbsd
libsec_config = devel_openbsd
ndate_config = devel_openbsd
node9_config = devel_openbsd
libnode9_config = devel_openbsd
endif
ifeq ($(config),devel_dragonfly)
lib9_config = devel_dragonfly
libbio_config = devel_dragonfly
libsec_config = devel_dragonfly
ndate_config = devel_dragonfly
node9_config = devel_dragonfly
libnode9_config = devel_dragonfly
endif
ifeq ($(config),devel_solaris)
lib9_config = devel_solaris
libbio_config = devel_solaris
libsec_config = devel_solaris
ndate_config = devel_solaris
node9_config = devel_solaris
libnode9_config = devel_solaris
endif
ifeq ($(config),devel_windows)
lib9_config = devel_windows
libbio_config = devel_windows
libsec_config = devel_windows
ndate_config = devel_windows
node9_config = devel_windows
libnode9_config = devel_windows
endif
ifeq ($(config),devel_android)
lib9_config = devel_android
libbio_config = devel_android
libsec_config = devel_android
ndate_config = devel_android
node9_config = devel_android
libnode9_config = devel_android
endif
ifeq ($(config),release_linux)
lib9_config = release_linux
libbio_config = release_linux
libsec_config = release_linux
ndate_config = release_linux
node9_config = release_linux
libnode9_config = release_linux
endif
ifeq ($(config),release_macosx)
lib9_config = release_macosx
libbio_config = release_macosx
libsec_config = release_macosx
ndate_config = release_macosx
node9_config = release_macosx
libnode9_config = release_macosx
endif
ifeq ($(config),release_freebsd)
lib9_config = release_freebsd
libbio_config = release_freebsd
libsec_config = release_freebsd
ndate_config = release_freebsd
node9_config = release_freebsd
libnode9_config = release_freebsd
endif
ifeq ($(config),release_netbsd)
lib9_config = release_netbsd
libbio_config = release_netbsd
libsec_config = release_netbsd
ndate_config = release_netbsd
node9_config = release_netbsd
libnode9_config = release_netbsd
endif
ifeq ($(config),release_openbsd)
lib9_config = release_openbsd
libbio_config = release_openbsd
libsec_config = release_openbsd
ndate_config = release_openbsd
node9_config = release_openbsd
libnode9_config = release_openbsd
endif
ifeq ($(config),release_dragonfly)
lib9_config = release_dragonfly
libbio_config = release_dragonfly
libsec_config = release_dragonfly
ndate_config = release_dragonfly
node9_config = release_dragonfly
libnode9_config = release_dragonfly
endif
ifeq ($(config),release_solaris)
lib9_config = release_solaris
libbio_config = release_solaris
libsec_config = release_solaris
ndate_config = release_solaris
node9_config = release_solaris
libnode9_config = release_solaris
endif
ifeq ($(config),release_windows)
lib9_config = release_windows
libbio_config = release_windows
libsec_config = release_windows
ndate_config = release_windows
node9_config = release_windows
libnode9_config = release_windows
endif
ifeq ($(config),release_android)
lib9_config = release_android
libbio_config = release_android
libsec_config = release_android
ndate_config = release_android
node9_config = release_android
libnode9_config = release_android
endif
PROJECTS := lib9 libbio libsec ndate node9 libnode9
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
lib9:
ifneq (,$(lib9_config))
@echo "==== Building lib9 ($(lib9_config)) ===="
@${MAKE} --no-print-directory -C . -f lib9.make config=$(lib9_config)
endif
libbio:
ifneq (,$(libbio_config))
@echo "==== Building libbio ($(libbio_config)) ===="
@${MAKE} --no-print-directory -C . -f libbio.make config=$(libbio_config)
endif
libsec:
ifneq (,$(libsec_config))
@echo "==== Building libsec ($(libsec_config)) ===="
@${MAKE} --no-print-directory -C . -f libsec.make config=$(libsec_config)
endif
ndate:
ifneq (,$(ndate_config))
@echo "==== Building ndate ($(ndate_config)) ===="
@${MAKE} --no-print-directory -C . -f ndate.make config=$(ndate_config)
endif
node9:
ifneq (,$(node9_config))
@echo "==== Building node9 ($(node9_config)) ===="
@${MAKE} --no-print-directory -C . -f node9.make config=$(node9_config)
endif
libnode9:
ifneq (,$(libnode9_config))
@echo "==== Building libnode9 ($(libnode9_config)) ===="
@${MAKE} --no-print-directory -C . -f libnode9.make config=$(libnode9_config)
endif
clean:
@${MAKE} --no-print-directory -C . -f lib9.make clean
@${MAKE} --no-print-directory -C . -f libbio.make clean
@${MAKE} --no-print-directory -C . -f libsec.make clean
@${MAKE} --no-print-directory -C . -f ndate.make clean
@${MAKE} --no-print-directory -C . -f node9.make clean
@${MAKE} --no-print-directory -C . -f libnode9.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug_linux"
@echo " debug_macosx"
@echo " debug_freebsd"
@echo " debug_netbsd"
@echo " debug_openbsd"
@echo " debug_dragonfly"
@echo " debug_solaris"
@echo " debug_windows"
@echo " debug_android"
@echo " devel_linux"
@echo " devel_macosx"
@echo " devel_freebsd"
@echo " devel_netbsd"
@echo " devel_openbsd"
@echo " devel_dragonfly"
@echo " devel_solaris"
@echo " devel_windows"
@echo " devel_android"
@echo " release_linux"
@echo " release_macosx"
@echo " release_freebsd"
@echo " release_netbsd"
@echo " release_openbsd"
@echo " release_dragonfly"
@echo " release_solaris"
@echo " release_windows"
@echo " release_android"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " lib9"
@echo " libbio"
@echo " libsec"
@echo " ndate"
@echo " node9"
@echo " libnode9"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"