This repository has been archived by the owner on Jul 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile_nested.go
491 lines (392 loc) · 12.6 KB
/
makefile_nested.go
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
package main
const makefileProjectStructure = `# Set project structure.
SOURCE_DIR={{.SrcDir}}
INCLUDE_DIR={{.IncludeDir}}
DIST_DIR={{.DistDir}}
TEST_DIR={{.TestDir}}
EXAMPLE_DIR={{.ExampleDir}}
export SOURCE_DIR
export INCLUDE_DIR
export DIST_DIR
export TEST_DIR
export EXAMPLE_DIR
`
const makefileAppNested = `.PHONY: all test run clean
all: run
test: .$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
ifeq ($(detected_OS),Windows)
for %%x in ($(TEST_PROGRAM)) do cscript $(TEST_DIR)/%%x
else
for t in $(TEST_PROGRAM); do bats $(TEST_DIR)/$$t; done
endif
run: .$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
.$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
echo $$?
.$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM):
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(SOURCE_DIR) -f Makefile.win
else
$(MAKE) -C $(SOURCE_DIR)
endif
`
const makefileLibNested = `.PHONY: all dynamic static clean
all: dynamic
test: dynamic
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(TEST_DIR) -f Makefile.win test
else
$(MAKE) -C $(TEST_DIR) test
endif
testStatic: static
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(TEST_DIR) -f Makefile.win testStatic
else
$(MAKE) -C $(TEST_DIR) testStatic
endif
dynamic: .$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB)
.$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB):
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(SOURCE_DIR) -f Makefile.win dynamic
else
$(MAKE) -C $(SOURCE_DIR) dynamic
endif
static: .$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
.$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB):
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(SOURCE_DIR) -f Makefile.win static
else
$(MAKE) -C $(SOURCE_DIR) static
endif
`
const makefileAppNestedClean = `clean:
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(SOURCE_DIR) -f Makefile.win clean
else
$(MAKE) -C $(SOURCE_DIR) clean
endif
$(RM) $(DIST_DIR)$(SEP)$(PROGRAM)
`
const makefileLibNestedClean = `clean:
ifeq ($(detected_OS),Windows)
$(MAKE) -C $(SOURCE_DIR) -f Makefile.win clean
$(MAKE) -C $(TEST_DIR) -f Makefile.win clean
else
$(MAKE) -C $(SOURCE_DIR) clean
$(MAKE) -C $(TEST_DIR) clean
endif
$(RM) $(DIST_DIR)$(SEP)$(DYNAMIC_LIB) \
$(DIST_DIR)$(SEP)$(STATIC_LIB) \
$(DIST_DIR)$(SEP)$(DYNAMIC_LIB:.dll=.exp)
`
const makefileInternalAppC = `.SUFFIXES:
.PHONY: all clean
all: ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
$(CC) $(CFLAGS) -o ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
-I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM): $(OBJS)
%.o: %.c
$(CC) -c $< $(CFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
`
const makefileInternalAppCWin = `.SUFFIXES:
.PHONY: all clean
all: ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
ifeq ($(CC),cl)
$(CC) /Fe:..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
$(CFLAGS) /I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
else
$(CC) -o ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
$(CFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
endif
..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM): $(OBJS)
%.obj: %.c
$(CC) /c $< $(CFLAGS) /I ..$(SEP)$(INCLUDE_DIR)
%.o: %.c
$(CC) -c $< $(CFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
`
const makefileInternalAppCxx = `.SUFFIXES:
.PHONY: all clean
all: ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
$(CXX) -o ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
$(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM): $(OBJS)
%.o: %.cpp
$(CXX) -c $< $(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
`
const makefileInternalAppCxxWin = `.SUFFIXES:
.PHONY: all clean
all: ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM)
ifeq ($(CXX),cl)
$(CXX) /Fe:..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
$(CXXFLAGS) /I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
else
$(CXX) -o ..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM) $(OBJS) \
$(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
endif
..$(SEP)$(DIST_DIR)$(SEP)$(PROGRAM): $(OBJS)
%.obj: %.cpp
$(CXX) /c $< $(CXXFLAGS) /I ..$(SEP)$(INCLUDE_DIR)
%.o: %.cpp
$(CXX) -c $< $(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
`
const makefileInternalLibC = `DYNAMIC := all test dynamic
.PHONY: all dynamic static clean
all: dynamic
dynamic: $(OBJS)
$(CC) $(CFLAGS) -shared -o ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) $(OBJS) \
-I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
static: $(OBJS)
ifeq ($(detected_OS),Darwin)
libtool -static -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else
$(AR) rcs -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
endif
%.o: %.c
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CC) $(CFLAGS) -fPIC -c $< -I ..$(SEP)$(INCLUDE_DIR)
else
$(CC) $(CFLAGS) -c $< -I ..$(SEP)$(INCLUDE_DIR)
endif
`
const makefileInternalLibCWin = `DYNAMIC := all test dynamic
.PHONY: all dynamic static clean
all: dynamic
dynamic: $(OBJS)
ifeq ($(CC),cl)
link /DLL /out:..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) \
$(OBJS) $(LDFLAGS) $(LDLIBS)
else
$(CC) -shared -o ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) $(OBJS) \
$(CFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
endif
static: $(OBJS)
ifeq ($(CC),cl)
lib /out:..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else ifeq ($(detected_OS),Darwin)
libtool -static -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else
$(AR) rcs -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
endif
%.obj: %.c
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CC) /c $< $(CFLAGS) /D{{.PROGRAM}}_EXPORT_SYMBOLS /MD /I ..$(SEP)$(INCLUDE_DIR)
else
$(CC) /c $< $(CFLAGS) /MT /I ..$(SEP)$(INCLUDE_DIR)
endif
%.o: %.c
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CC) -c $< $(CFLAGS) -fPIC -I ..$(SEP)$(INCLUDE_DIR)
else
$(CC) -c $< $(CFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
endif
`
const makefileInternalLibCxx = `DYNAMIC := all test dynamic
.PHONY: all dynamic static clean
all: dynamic
dynamic: $(OBJS)
$(CXX) -shared -o ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) $(OBJS) \
$(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
static: $(OBJS)
ifeq ($(detected_OS),Darwin)
libtool -static -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else
$(AR) rcs -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
endif
%.o: %.cpp
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CXX) -c $< $(CXXFLAGS) -fPIC -I ..$(SEP)$(INCLUDE_DIR)
else
$(CXX) -c $< $(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
endif
`
const makefileInternalLibCxxWin = `DYNAMIC := all test dynamic
.PHONY: all dynamic static clean
all: dynamic
dynamic: $(OBJS)
ifeq ($(CXX),cl)
link /DLL /out:..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) \
$(OBJS) $(LDFLAGS) $(LDLIBS)
else
$(CXX) -shared -o ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) \
$(OBJS) $(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR) $(LDFLAGS) $(LDLIBS)
endif
static: $(OBJS)
ifeq ($(CXX),cl)
lib /out:..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else ifeq ($(detected_OS),Darwin)
libtool -static -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
else
$(AR) rcs -o ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(OBJS)
endif
%.obj: %.cpp
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CXX) /c $< $(CXXFLAGS) /D{{.PROGRAM}}_EXPORT_SYMBOLS /MD /I ..$(SEP)$(INCLUDE_DIR)
else
$(CXX) /c $< $(CXXFLAGS) /MT /I ..$(SEP)$(INCLUDE_DIR)
endif
%.o: %.cpp
ifneq (,$(findstring $(MAKECMDGOALS),$(DYNAMIC)))
$(CXX) -c $< $(CXXFLAGS) -fPIC -I ..$(SEP)$(INCLUDE_DIR)
else
$(CXX) -c $< $(CXXFLAGS) -I ..$(SEP)$(INCLUDE_DIR)
endif
`
const makefileInternalClean = `clean:
$(RM) $(OBJS)
`
const makefile_internal_lib_test_c = `.PHONY: all test testStatic dynamic static clean
all: test
test: dynamic
for x in $(TEST_OBJS); do \
$(CC) -c "$${x%.*}.c" \
-I..$(SEP)$(INCLUDE_DIR) \
$(CFLAGS); \
$(CC) -o "$${x%.*}" $$x \
-I..$(SEP)$(INCLUDE_DIR) \
-L..$(SEP)$(DIST_DIR) -l{{.Program}} \
$(CFLAGS) $(LDFLAGS) $(LDLIBS); \
LD_LIBRARY_PATH=..$(SEP)$(DIST_DIR) .$(SEP)"$${x%.*}"; \
if [ $$? -ne 0 ]; then echo "Failed program state"; exit 1; fi \
done
testStatic: static
for x in $(TEST_OBJS); do \
$(CC) -c "$${x%.*}.c" \
-I..$(SEP)$(INCLUDE_DIR) \
$(CFLAGS); \
$(CC) -o "$${x%.*}" $$x \
-I..$(SEP)$(INCLUDE_DIR) \
-L..$(SEP)$(DIST_DIR) -l{{.Program}} \
$(CFLAGS) $(LDFLAGS) $(LDLIBS); \
.$(SEP)"$${x%.*}"; \
if [ $$? -ne 0 ]; then echo "Failed program state"; exit 1; fi \
done
dynamic: ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB)
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) dynamic
static: ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) static
`
const makefileInternalLibTestCWin = `.PHONY: all clean
all: test
test: dynamic
ifeq ($(CC),cl)
for %%x in (*.c) do $(CC) $(CFLAGS) /D{{.PROGRAM}}_IMPORT_SYMBOLS /MD \
$(LDFLAGS) $(LDLIBS) /I..$(SEP)$(INCLUDE_DIR) %%x \
..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB:.dll=.lib)
copy ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) . \
&& for %%x in ($(TEST_OBJS:.obj=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
else
for %%x in ($(TEST_OBJS:.o=)) do $(CC) -o %%x.exe %%x.c \
-I..$(SEP)$(INCLUDE_DIR) -L..$(SEP)$(DIST_DIR) -l{{.Program}} \
$(CFLAGS) $(LDFLAGS) $(LDLIBS)
copy ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) . \
&& for %%x in ($(TEST_OBJS:.o=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
endif
dynamic: ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB)
..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB):
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) -f Makefile.win dynamic
testStatic: $(TEST_OBJS:.obj=.exe)
ifeq ($(CC),cl)
for %%x in ($(TEST_OBJS:.obj=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
else
for %%x in ($(TEST_OBJS:.o=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
endif
$(TEST_OBJS:.obj=.exe): static
ifeq ($(CC),cl)
for %%x in ($(TEST_OBJS:.obj=.c)) do \
$(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) /I..$(SEP)$(INCLUDE_DIR) %%x \
..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
else
for %%x in ($(TEST_OBJS:.o=)) do \
$(CC) $(CFLAGS) -o %%x.exe %%x.c ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) \
-I..$(SEP)$(INCLUDE_DIR)
endif
static: ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB):
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) -f Makefile.win static
`
const makefile_internal_lib_test_cxx = `.PHONY: all test testStatic dynamic static clean
all: test
test: dynamic
for x in $(TEST_OBJS); do \
$(CXX) -c "$${x%.*}.cpp" \
-I..$(SEP)$(INCLUDE_DIR) \
$(CXXFLAGS); \
$(CXX) -o "$${x%.*}" $$x \
-I..$(SEP)$(INCLUDE_DIR) \
-L..$(SEP)$(DIST_DIR) -l{{.Program}} \
$(CXXFLAGS) $(LDFLAGS) $(LDLIBS); \
LD_LIBRARY_PATH=..$(SEP)$(DIST_DIR) .$(SEP)"$${x%.*}"; \
if [ $$? -ne 0 ]; then echo "Failed program state"; exit 1; fi \
done
testStatic: static
for x in $(TEST_OBJS); do \
$(CXX) -c "$${x%.*}.cpp" \
-I..$(SEP)$(INCLUDE_DIR) \
$(CXXFLAGS); \
$(CXX) -o "$${x%.*}" $$x \
-I..$(SEP)$(INCLUDE_DIR) \
-L..$(SEP)$(DIST_DIR) -l{{.Program}} \
$(CXXFLAGS) $(LDFLAGS) $(LDLIBS); \
.$(SEP)"$${x%.*}"; \
if [ $$? -ne 0 ]; then echo "Failed program state"; exit 1; fi \
done
dynamic: ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB)
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) dynamic
static: ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) static
`
const makefileInternalLibTestCxxWin = `.PHONY: all test dynamic clean
all: test
test: dynamic
ifeq ($(CXX),cl)
for %%x in ($(TEST_OBJS:.obj=.cpp)) do \
$(CXX) $(CXXFLAGS) /D{{.PROGRAM}}_IMPORT_SYMBOLS /MD \
/I..$(SEP)$(INCLUDE_DIR) %%x \
..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB:.dll=.lib)
copy ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) . \
&& for %%x in ($(TEST_OBJS:.obj=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
else
for %%x in ($(TEST_OBJS:.o=)) do \
$(CXX) -o %%x.exe %%x.cpp \
$(CXXFLAGS) -I..$(SEP)$(INCLUDE_DIR) \
-L..$(SEP)$(DIST_DIR) -l{{.Program}}
copy ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB) . \
&& for %%x in ($(TEST_OBJS:.o=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
endif
dynamic: ..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB)
..$(SEP)$(DIST_DIR)$(SEP)$(DYNAMIC_LIB):
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) -f Makefile.win dynamic
testStatic: $(TEST_OBJS:.obj=.exe)
ifeq ($(CXX),cl)
for %%x in ($(TEST_OBJS:.obj=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
else
for %%x in ($(TEST_OBJS:.o=.exe)) do .$(SEP)%%x \
&& if %%errorlevel%% neq 0 exit /b %%errorlevel%%
endif
$(TEST_OBJS:.obj=.exe): static
ifeq ($(CXX),cl)
for %%x in ($(TEST_OBJS:.obj=.cpp)) do \
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LDLIBS) /I..$(SEP)$(INCLUDE_DIR) %%x \
..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
else
for %%x in ($(TEST_OBJS:.o=)) do \
$(CXX) $(CXXFLAGS) -o %%x.exe %%x.cpp \
-I..$(SEP)$(INCLUDE_DIR) \
..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB) $(LDFLAGS) $(LDLIBS)
endif
static: ..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB)
..$(SEP)$(DIST_DIR)$(SEP)$(STATIC_LIB):
$(MAKE) -C ..$(SEP)$(SOURCE_DIR) -f Makefile.win static
`
const makefile_internal_lib_test_clean = `clean:
$(RM) $(TEST_OBJS) $(TEST_OBJS:.o=)
`
const makefileInternalLibTestCleanWin = `clean:
$(RM) $(TEST_OBJS) $(TEST_OBJS:.obj=.exe) $(TEST_OBJS:.o=.exe) $(DYNAMIC_LIB)
`