OSDN Git Service

https://sourceforge.net/tracker/?func=detail&aid=3408074&group_id=2435&atid=102435
[mingw/mingw-org-wsl.git] / Makefile.in
1 ##
2 # @file Makefile.in
3 # Copyright (C) 2012 MinGW.org Project
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the "Software"),
7 # to deal in the Software without restriction, including without limitation
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 # and/or sell copies of the Software, and to permit persons to whom the
10 # Software is furnished to do so, subject to the following conditions:
11
12 # The above copyright notice and this permission notice (including the next
13 # paragraph) shall be included in all copies or substantial portions of the
14 # Software.
15
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 # DEALINGS IN THE SOFTWARE.
23 ##
24 #
25 # @configure_input@
26 #
27 VPATH=$(srcdir)
28 PACKAGE_TARNAME=@PACKAGE_TARNAME@
29 PACKAGE_VERSION=@PACKAGE_VERSION@
30 PACKAGE_RELEASE=@PACKAGE_RELEASE@
31 srcdir=@srcdir@
32 top_srcdir=@top_srcdir@
33 top_builddir=@top_builddir@
34
35 prefix=@prefix@
36 exec_prefix=@exec_prefix@
37 datarootdir=@datarootdir@
38 bindir=@bindir@
39 libdir=@libdir@
40 includedir=@includedir@
41 docdir=@docdir@
42
43 mkinstalldirs=@MKDIR_P@
44
45 CC = @CC@
46 CFLAGS = @CFLAGS@
47 RANLIB = @RANLIB@
48 AS = @AS@
49 DLLTOOL = @DLLTOOL@
50 DLLTOOL_FLAGS = --as $(AS) -k --dllname
51 INSTALL = @INSTALL@
52 MKDIR_P = @MKDIR_P@
53
54 INCLUDES=-I$(top_srcdir)/include -I$(srcdir)/include \
55   -I$(top_srcdir)/src/libcrt/include -I$(top_srcdir)/misc/src/include \
56   -nostdinc -iwithprefixbefore include
57 ALL_CFLAGS=$(CFLAGS) $(INCLUDES) -DNTDDI_VERSION=0x04000000
58
59 .SUFFIXES: .def.in .def
60
61 mingwrt_lib_LIBRARIES = \
62   libmsvcrt.a \
63   libmsvcrtd.a \
64   libmsvcr70.a \
65   libmsvcr70d.a \
66   libmsvcr71.a \
67   libmsvcr71d.a \
68   libmsvcr80.a \
69   libmsvcr80d.a \
70   libmsvcr90.a \
71   libmsvcr90d.a \
72   libmsvcr100.a \
73   libmsvcr100d.a \
74   libmingw32.a \
75   libmoldname.a \
76   libmoldnamed.a \
77   libmoldname70.a \
78   libmoldname70d.a \
79   libmoldname71.a \
80   libmoldname71d.a \
81   libmoldname80.a \
82   libmoldname80d.a \
83   libmoldname90.a \
84   libmoldname90d.a \
85   libmoldname100.a \
86   libmoldname100d.a \
87   libmingwthrd.a \
88   libmingwthrd_old.a \
89   libm.a \
90   libmingwex.a \
91   libgmon.a
92
93 winapi_DEF := $(notdir $(wildcard ${top_srcdir}/lib/lib32/*.def))
94 winapi_DDK_DEF := $(notdir $(wildcard $(top_srcdir)/lib/lib32/ddk/*.def))
95 winapi_DIRECTX_DEF := $(notdir $(wildcard $(top_srcdir)/lib/lib32/directx/*.def))
96 winapi_DIRECTX_DEF := $(subst dinput.def ,,$(winapi_DIRECTX_DEF))
97 winapi_DIRECTX_DEF := $(subst dinput8.def ,,$(winapi_DIRECTX_DEF))
98 winapi_DIRECTX_DINPUT_DEF := dinput.def dinput8.def
99 winapi_MRI := $(notdir $(wildcard ${top_srcdir}/lib/lib32/*.mri))
100 winapi_lib_LIBRARIES := $(addprefix lib,$(winapi_DEF:.def=.a))
101 winapi_lib_DDK_LIBRARIES := $(addprefix lib,$(winapi_DDK_DEF:.def=.a))
102 winapi_lib_DIRECTX_LIBRARIES := $(addprefix lib,$(winapi_DIRECTX_DEF:.def=.a))
103 winapi_lib_DIRECTX_DINPUT_LIBRARIES := $(addprefix lib,$(winapi_DIRECTX_DINPUT_DEF:.def=.a))
104 winapi_mri_LIBRARIES := $(addprefix lib,$(winapi_MRI:.mri=.a))
105 winapi_lib_EXTRA_LIBRARIES := libuuid.a libscrnsave.a libscrnsavw.a liblargeint.a libdmoguids.a libdxguid.a libdxerr8.a libdxerr9.a libstrmiids.a
106
107 lib_LIBRARIES := $(mingwrt_lib_LIBRARIES) $(winapi_lib_LIBRARIES) \
108   $(winapi_lib_EXTRA_LIBRARIES) $(winapi_mri_LIBRARIES) \
109   $(winapi_lib_DDK_LIBRARIES) $(winapi_lib_DIRECTX_LIBRARIES) \
110   $(winapi_lib_DIRECTX_DINPUT_LIBRARIES)
111
112 SRCDIR := src/libcrt/crt
113 crt0_SOURCES := \
114   $(SRCDIR)/crt1.c \
115   $(SRCDIR)/dllcrt1.c \
116   $(SRCDIR)/CRT_noglob.c \
117   $(SRCDIR)/crtmt.c \
118   $(SRCDIR)/crtst.c \
119   $(SRCDIR)/CRT_fp8.c \
120   $(SRCDIR)/CRT_fp10.c \
121   $(SRCDIR)/txtmode.c \
122   $(SRCDIR)/binmode.c \
123   $(SRCDIR)/ofmt_stub.s
124 crt0_OBJECTS := $(crt0_SOURCES:.c=.o) $(SRCDIR)/crt2.o $(SRCDIR)/dllcrt2.o
125 crt0_OBJECTS := $(crt0_OBJECTS:.s=.o)
126
127 SRCDIR := src/libcrt/crt
128 mingwm10_dll_SOURCES := \
129   $(SRCDIR)/mthr.c \
130   $(SRCDIR)/mthr_init.c
131 mingwm10_dll_OBJECTS := $(mingwm10_dll_SOURCES:.c=.o)
132 mingwm10_dll_FLAGS := -shared -Wl,--image-base,0x6FBC0000 \
133   -Wl,--entry,_DllMainCRTStartup@12 -L.
134
135 SRCDIR := src/libcrt/crt
136 mold_SOURCES := \
137   $(SRCDIR)/isascii.c \
138   $(SRCDIR)/iscsym.c \
139   $(SRCDIR)/iscsymf.c \
140   $(SRCDIR)/toascii.c \
141   $(SRCDIR)/strcasecmp.c \
142   $(SRCDIR)/strncasecmp.c \
143   $(SRCDIR)/wscmpi.c
144 mold_OBJECTS := $(mode_SOURCES:.c=.o)
145
146 SRCDIR := misc/gpl/profile
147 gcrt0_SOURCES := $(SRCDIR)/gcrt0.c
148 gcrt0_OBJECTS := $(SRCDIR)/gcrt1.o $(SRCDIR)/gcrt2.o
149
150 lib_OBJECTS := $(crt0_OBJECTS) $(gcrt0_OBJECTS)
151
152 bin_LIBRARIES := mingwm10.dll
153 doc_DOCUMENTS := README LICENSE
154 doc_DOCUMENTS_EXTRA := doc/historical/mingw doc/historical/w32api
155
156 libuuid_a_SOURCES := $(addprefix src/libuuid/,$(notdir $(wildcard ${top_srcdir}/src/libuuid/*.c)))
157 libuuid_a_OBJECTS := $(libuuid_a_SOURCES:.c=.o)
158
159 libscrnsave_a_SOURCES := src/libscrnsave/scrnsave.c
160 libscrnsave_a_OBJECTS := $(libscrnsave_a_SOURCES:.c=.o)
161 scrnsave_o_CFLAGS := -UUNICODE
162
163 libscrnsavw_a_SOURCES := src/libscrnsave/scrnsave.c
164 libscrnsavw_a_OBJECTS := src/libscrnsave/scrnsavw.o
165 scrnsavw_o_CFLAGS := -DUNICODE
166
167 liblargeint_a_SOURCES := src/liblargeint/largeint.c
168 liblargeint_a_OBJECTS := $(liblargeint_a_SOURCES:.c=.o)
169
170 libdmoguids_a_SOURCES := misc/src/libdmoguids/dmoguids.c
171 libdmoguids_a_OBJECTS := $(libdmoguids_a_SOURCES:.c=.o)
172
173 libdxguid_a_SOURCES := misc/src/libdxguid/dxguid.c
174 libdxguid_a_OBJECTS := $(libdxguid_a_SOURCES:.c=.o)
175
176 libstrmiids_a_SOURCES := misc/src/libstrmiids/strmiids.c
177 libstrmiids_a_OBJECTS := $(libstrmiids_a_SOURCES:.c=.o)
178
179 libws2_32_a_SOURCES := src/libws2_32/ws2_32.c
180 libws2_32_a_OBJECTS := $(libws2_32_a_SOURCES:.c=.o)
181
182 extra_OBJECTS := $(libws2_32_a_OBJECTS) src/libcrt/crt/ofmt_stub.o
183
184 msvcrt_DEF = \
185   msvcrt.def msvcr70.def msvcr71.def msvcr80.def msvcr90.def msvcr100.def \
186   msvcrtd.def msvcr70d.def msvcr71d.def msvcr80d.def msvcr90d.def msvcr100d.def
187
188 moldname_DEF = \
189   moldname.def moldnamed.def moldname70.def moldname71.def moldname80.def \
190   moldname90.def moldname100.def moldname70d.def moldname71d.def \
191   moldname80d.def moldname90d.def moldname100d.def
192
193 SRCDIR := src/libcrt/crt
194 libmingw32_a_SOURCES := \
195   $(SRCDIR)/CRTglob.c \
196   $(SRCDIR)/CRTfmode.c \
197   $(SRCDIR)/CRTinit.c \
198   $(SRCDIR)/dllmain.c \
199   $(SRCDIR)/gccmain.c \
200   $(SRCDIR)/main.c \
201   $(SRCDIR)/crtst.c \
202   $(SRCDIR)/CRT_fp10.c \
203   $(SRCDIR)/txtmode.c \
204   $(SRCDIR)/pseudo-reloc.c \
205   $(SRCDIR)/pseudo-reloc-list.c \
206   $(SRCDIR)/cpu_features.c \
207   $(SRCDIR)/tlsmcrt.c \
208   $(SRCDIR)/tlsmthread.c \
209   $(SRCDIR)/tlssup.c \
210   $(SRCDIR)/tlsthrd.c
211 libmingw32_a_OBJECTS := $(libmingw32_a_SOURCES:.c=.o)
212
213 libmingwthrd_a_SOURCES := $(SRCDIR)/crtmt.c
214 libmingwthrd_a_OBJECTS := $(libmingwthrd_a_SOURCES:.c=.o)
215
216 SRCDIR := src/libcrt/complex
217 complex_SOURCES := \
218   $(SRCDIR)/cabs.c \
219   $(SRCDIR)/carg.c \
220   $(SRCDIR)/catan.c \
221   $(SRCDIR)/ccoshf.c \
222   $(SRCDIR)/clog.c \
223   $(SRCDIR)/creal.c \
224   $(SRCDIR)/csqrt.c \
225   $(SRCDIR)/cabsf.c \
226   $(SRCDIR)/cargf.c \
227   $(SRCDIR)/catanf.c \
228   $(SRCDIR)/ccoshl.c \
229   $(SRCDIR)/clogf.c \
230   $(SRCDIR)/crealf.c \
231   $(SRCDIR)/csqrtf.c \
232   $(SRCDIR)/cabsl.c \
233   $(SRCDIR)/cargl.c \
234   $(SRCDIR)/catanh.c \
235   $(SRCDIR)/ccosl.c\
236   $(SRCDIR)/clogl.c \
237   $(SRCDIR)/creall.c \
238   $(SRCDIR)/csqrtl.c \
239   $(SRCDIR)/cacos.c \
240   $(SRCDIR)/casin.c \
241   $(SRCDIR)/catanhf.c \
242   $(SRCDIR)/cexp.c \
243   $(SRCDIR)/cpow.c \
244   $(SRCDIR)/csin.c \
245   $(SRCDIR)/ctan.c \
246   $(SRCDIR)/cacosf.c \
247   $(SRCDIR)/casinf.c \
248   $(SRCDIR)/catanhl.c \
249   $(SRCDIR)/cexpf.c \
250   $(SRCDIR)/cpowf.c \
251   $(SRCDIR)/csinf.c \
252   $(SRCDIR)/ctanf.c \
253   $(SRCDIR)/cacosh.c \
254   $(SRCDIR)/casinh.c \
255   $(SRCDIR)/catanl.c \
256   $(SRCDIR)/cexpl.c \
257   $(SRCDIR)/cpowl.c \
258   $(SRCDIR)/csinh.c \
259   $(SRCDIR)/ctanh.c \
260   $(SRCDIR)/cacoshf.c \
261   $(SRCDIR)/casinhf.c \
262   $(SRCDIR)/ccos.c \
263   $(SRCDIR)/cimag.c \
264   $(SRCDIR)/cproj.c \
265   $(SRCDIR)/csinhf.c \
266   $(SRCDIR)/ctanhf.c \
267   $(SRCDIR)/cacoshl.c \
268   $(SRCDIR)/casinhl.c \
269   $(SRCDIR)/ccosf.c \
270   $(SRCDIR)/cimagf.c \
271   $(SRCDIR)/cprojf.c \
272   $(SRCDIR)/csinhl.c \
273   $(SRCDIR)/ctanhl.c \
274   $(SRCDIR)/cacosl.c \
275   $(SRCDIR)/casinl.c \
276   $(SRCDIR)/ccosh.c \
277   $(SRCDIR)/cimagl.c \
278   $(SRCDIR)/cprojl.c \
279   $(SRCDIR)/csinl.c \
280   $(SRCDIR)/ctanl.c
281 complex_SOURCES := $(wildcard src/libcrt/complex/*.c)
282
283 SRCDIR := src/libcrt/ctype
284 ctype_SOURCES := $(SRCDIR)/isblank.c $(SRCDIR)/iswblank.c
285
286 SRCDIR := src/libcrt/fenv
287 fenv_SOURCES := \
288   $(SRCDIR)/feclearexcept.c \
289   $(SRCDIR)/fegetround.c \
290   $(SRCDIR)/fesetenv.c \
291   $(SRCDIR)/fetestexcept.c \
292   $(SRCDIR)/fegetenv.c \
293   $(SRCDIR)/feholdexcept.c \
294   $(SRCDIR)/fesetexceptflag.c \
295   $(SRCDIR)/feupdateenv.c \
296   $(SRCDIR)/fegetexceptflag.c \
297   $(SRCDIR)/feraiseexcept.c \
298   $(SRCDIR)/fesetround.c
299
300 SRCDIR := misc/src/libcrt/gdtoa
301 gdtoa_SOURCES := \
302   $(SRCDIR)/g__fmt.c \
303   $(SRCDIR)/gethex.c \
304   $(SRCDIR)/qnan.c \
305   $(SRCDIR)/strtopx.c \
306   $(SRCDIR)/g_dfmt.c \
307   $(SRCDIR)/gdtoa.c \
308   $(SRCDIR)/gmisc.c \
309   $(SRCDIR)/smisc.c \
310   $(SRCDIR)/sum.c \
311   $(SRCDIR)/arithchk.c \
312   $(SRCDIR)/g_ffmt.c \
313   $(SRCDIR)/hd_init.c \
314   $(SRCDIR)/strtodg.c \
315   $(SRCDIR)/ulp.c \
316   $(SRCDIR)/dmisc.c \
317   $(SRCDIR)/g_xfmt.c \
318   $(SRCDIR)/hexnan.c \
319   $(SRCDIR)/strtodnrp.c \
320   $(SRCDIR)/dtoa.c \
321   $(SRCDIR)/misc.c \
322   $(SRCDIR)/strtof.c
323
324 SRCDIR := src/libcrt/inttypes
325 inttypes_SOURCES := \
326   $(SRCDIR)/imaxabs.c \
327   $(SRCDIR)/imaxdiv.c \
328   $(SRCDIR)/strtoimax.c \
329   $(SRCDIR)/strtoumax.c \
330   $(SRCDIR)/wcstoimax.c \
331   $(SRCDIR)/wcstoumax.c
332
333 SRCDIR := src/libcrt/math
334 MSRCDIR := misc/src/libcrt/math
335 math_SOURCES := \
336   $(SRCDIR)/acosf.c \
337   $(SRCDIR)/acosh.c \
338   $(SRCDIR)/acoshf.c \
339   $(SRCDIR)/acoshl.c \
340   $(SRCDIR)/acosl.c \
341   $(SRCDIR)/asinf.c \
342   $(SRCDIR)/asinh.c \
343   $(SRCDIR)/asinhf.c \
344   $(SRCDIR)/asinhl.c \
345   $(SRCDIR)/asinl.c \
346   $(SRCDIR)/atan2f.c \
347   $(SRCDIR)/atan2l.c \
348   $(SRCDIR)/atanf.c \
349   $(SRCDIR)/atanh.c \
350   $(SRCDIR)/atanhf.c \
351   $(SRCDIR)/atanhl.c \
352   $(SRCDIR)/atanl.c \
353   $(MSRCDIR)/cbrt.c \
354   $(MSRCDIR)/cbrtf.c \
355   $(MSRCDIR)/cbrtl.c \
356   $(SRCDIR)/ceilf.S \
357   $(SRCDIR)/ceill.S \
358   $(SRCDIR)/copysign.S \
359   $(SRCDIR)/copysignf.S \
360   $(SRCDIR)/copysignl.S \
361   $(SRCDIR)/cosf.S \
362   $(SRCDIR)/coshf.c \
363   $(MSRCDIR)/coshl.c \
364   $(SRCDIR)/cosl.S \
365   $(MSRCDIR)/erfl.c \
366   $(SRCDIR)/exp2.S \
367   $(SRCDIR)/exp2f.S \
368   $(SRCDIR)/exp2l.S \
369   $(SRCDIR)/expf.c \
370   $(SRCDIR)/expl.c \
371   $(SRCDIR)/expm1.c \
372   $(SRCDIR)/expm1f.c \
373   $(SRCDIR)/expm1l.c \
374   $(SRCDIR)/fabs.c \
375   $(SRCDIR)/fabsf.c \
376   $(SRCDIR)/fabsl.c \
377   $(SRCDIR)/fdim.c \
378   $(SRCDIR)/fdimf.c \
379   $(SRCDIR)/fdiml.c \
380   $(SRCDIR)/floorf.S \
381   $(SRCDIR)/floorl.S \
382   $(SRCDIR)/fma.S \
383   $(SRCDIR)/fmaf.S \
384   $(SRCDIR)/fmal.c \
385   $(SRCDIR)/fmax.c \
386   $(SRCDIR)/fmaxf.c \
387   $(SRCDIR)/fmaxl.c \
388   $(SRCDIR)/fmin.c \
389   $(SRCDIR)/fminf.c \
390   $(SRCDIR)/fminl.c \
391   $(SRCDIR)/fmodf.c \
392   $(SRCDIR)/fmodl.c \
393   $(SRCDIR)/fp_consts.c \
394   $(SRCDIR)/fp_constsf.c \
395   $(SRCDIR)/fp_constsl.c \
396   $(SRCDIR)/fpclassify.c \
397   $(SRCDIR)/fpclassifyf.c \
398   $(SRCDIR)/fpclassifyl.c \
399   $(SRCDIR)/frexpf.c \
400   $(MSRCDIR)/frexpl.S \
401   $(SRCDIR)/fucom.c \
402   $(SRCDIR)/hypotf.c \
403   $(MSRCDIR)/hypotl.c \
404   $(SRCDIR)/ilogb.S \
405   $(SRCDIR)/ilogbf.S \
406   $(SRCDIR)/ilogbl.S \
407   $(SRCDIR)/isnan.c \
408   $(SRCDIR)/isnanf.c \
409   $(SRCDIR)/isnanl.c \
410   $(SRCDIR)/ldexpf.c \
411   $(SRCDIR)/ldexpl.c \
412   $(MSRCDIR)/lgamma.c \
413   $(MSRCDIR)/lgammaf.c \
414   $(MSRCDIR)/lgammal.c \
415   $(SRCDIR)/llrint.c \
416   $(SRCDIR)/llrintf.c \
417   $(SRCDIR)/llrintl.c \
418   $(SRCDIR)/log10f.S \
419   $(SRCDIR)/log10l.S \
420   $(SRCDIR)/log1p.S \
421   $(SRCDIR)/log1pf.S \
422   $(SRCDIR)/log1pl.S \
423   $(SRCDIR)/log2.S \
424   $(SRCDIR)/log2f.S \
425   $(SRCDIR)/log2l.S \
426   $(SRCDIR)/logb.c \
427   $(SRCDIR)/logbf.c \
428   $(SRCDIR)/logbl.c \
429   $(SRCDIR)/logf.S \
430   $(SRCDIR)/logl.S \
431   $(SRCDIR)/lrint.c \
432   $(SRCDIR)/lrintf.c \
433   $(SRCDIR)/lrintl.c \
434   $(SRCDIR)/lround.c \
435   $(SRCDIR)/lroundl.c \
436   $(SRCDIR)/lroundf.c \
437   $(SRCDIR)/modff.c \
438   $(SRCDIR)/modfl.c \
439   $(SRCDIR)/nearbyint.S \
440   $(SRCDIR)/nearbyintf.S \
441   $(SRCDIR)/nearbyintl.S \
442   $(SRCDIR)/nextafterf.c \
443   $(SRCDIR)/nextafterl.c \
444   $(SRCDIR)/nexttoward.c \
445   $(SRCDIR)/nexttowardf.c \
446   $(MSRCDIR)/pow.c \
447   $(SRCDIR)/powf.c \
448   $(MSRCDIR)/powi.c \
449   $(MSRCDIR)/powif.c \
450   $(MSRCDIR)/powil.c \
451   $(MSRCDIR)/powl.c \
452   $(SRCDIR)/remainder.S \
453   $(SRCDIR)/remainderf.S \
454   $(SRCDIR)/remainderl.S \
455   $(SRCDIR)/remquo.S \
456   $(SRCDIR)/remquof.S \
457   $(SRCDIR)/remquol.S \
458   $(SRCDIR)/rint.c \
459   $(SRCDIR)/rintf.c \
460   $(SRCDIR)/rintl.c \
461   $(SRCDIR)/round.c \
462   $(SRCDIR)/roundf.c \
463   $(SRCDIR)/roundl.c \
464   $(MSRCDIR)/s_erf.c \
465   $(SRCDIR)/scalbn.S \
466   $(SRCDIR)/scalbnf.S \
467   $(SRCDIR)/scalbnl.S \
468   $(MSRCDIR)/sf_erf.c \
469   $(SRCDIR)/signbit.c \
470   $(SRCDIR)/signbitf.c \
471   $(SRCDIR)/signbitl.c \
472   $(SRCDIR)/sinf.S \
473   $(SRCDIR)/sinhf.c \
474   $(MSRCDIR)/sinhl.c \
475   $(SRCDIR)/sinl.S \
476   $(SRCDIR)/sqrtf.c \
477   $(SRCDIR)/sqrtl.c \
478   $(SRCDIR)/tanf.S \
479   $(SRCDIR)/tanhf.c \
480   $(MSRCDIR)/tanhl.c \
481   $(SRCDIR)/tanl.S \
482   $(MSRCDIR)/tgamma.c \
483   $(MSRCDIR)/tgammaf.c \
484   $(MSRCDIR)/tgammal.c \
485   $(SRCDIR)/trunc.c \
486   $(SRCDIR)/truncf.c \
487   $(SRCDIR)/truncl.c
488
489 SRCDIR := src/libcrt/misc
490 misc_SOURCES := \
491   $(SRCDIR)/getopt.c \
492   $(SRCDIR)/membarrier.c \
493   $(SRCDIR)/mingw-aligned-malloc.c \
494   $(SRCDIR)/mingw-fseek.c \
495   $(SRCDIR)/glob.c
496
497 SRCDIR := src/libcrt/posix/libgen
498 posix_libgen_SOURCES := $(SRCDIR)/basename.c $(SRCDIR)/dirname.c
499 SRCDIR := src/libcrt/posix/unistd
500 posix_unistd_SOURCES := $(SRCDIR)/ftruncate.c $(SRCDIR)/usleep.c
501 posix_SOURCES := $(posix_libgen_SOURCES) $(posix_unistd_SOURCES)
502
503 SRCDIR := misc/src/libcrt/profile
504 profile_SOURCES := \
505   $(SRCDIR)/gmon.c \
506   $(SRCDIR)/mcount.c \
507   misc/gpl/profile/profil.c \
508 libgmon_a_SOURCES := $(profile_SOURCES)
509 libgmon_a_OBJECTS := $(libgmon_a_SOURCES:.c=.o)
510
511 SRCDIR := src/libcrt/search
512 search_SOURCES := \
513   $(SRCDIR)/tdelete.c \
514   $(SRCDIR)/tfind.c \
515   $(SRCDIR)/tsearch.c \
516   $(SRCDIR)/twalk.c
517
518 SRCDIR := src/libcrt/stdio
519 MSRCDIR := misc/src/libcrt/stdio
520 stdio_SOURCES := \
521   $(SRCDIR)/btowc.c \
522   $(SRCDIR)/fopen64.c \
523   $(SRCDIR)/fprintf.c \
524   $(SRCDIR)/fseeko64.c \
525   $(SRCDIR)/ftello64.c \
526   $(SRCDIR)/lseek64.c \
527   $(MSRCDIR)/pformat.c \
528   $(SRCDIR)/printf.c \
529   $(SRCDIR)/snprintf.c \
530   $(SRCDIR)/snwprintf.c \
531   $(SRCDIR)/sprintf.c \
532   $(SRCDIR)/vfprintf.c \
533   $(SRCDIR)/vfscanf.c \
534   $(SRCDIR)/vfwscanf.c \
535   $(SRCDIR)/vprintf.c \
536   $(SRCDIR)/vscanf.c \
537   $(SRCDIR)/vsnprintf.c \
538   $(SRCDIR)/vsnwprintf.c \
539   $(SRCDIR)/vsprintf.c \
540   $(SRCDIR)/vsscanf.c \
541   $(SRCDIR)/vswscanf.c \
542   $(SRCDIR)/vwscanf.c
543
544 SRCDIR := src/libcrt/stdlib
545 stdlib_SOURCES := \
546   $(SRCDIR)/_Exit.c \
547   $(SRCDIR)/atoll.c \
548   $(SRCDIR)/lltoa.c \
549   $(SRCDIR)/lltow.c \
550   $(SRCDIR)/ulltoa.c \
551   $(SRCDIR)/ulltow.c \
552   $(SRCDIR)/wtoll.c
553
554 SRCDIR := src/libcrt/sys/time
555 sys_time_SOURCES := $(SRCDIR)/gettimeofday.c
556 sys_SOURCES := $(sys_time_SOURCES)
557
558 SRCDIR := src/libcrt/tchar
559 tchar_SOURCES := \
560   $(SRCDIR)/dirent.c \
561   $(SRCDIR)/wdirent.c
562
563 SRCDIR := src/libcrt/wchar
564 wchar_SOURCES := \
565   $(SRCDIR)/fwide.c \
566   $(SRCDIR)/mbrtowc.c \
567   $(SRCDIR)/mbsinit.c \
568   $(SRCDIR)/wcrtomb.c \
569   $(SRCDIR)/wcstof.c \
570   $(SRCDIR)/wcstold.c \
571   $(SRCDIR)/wctob.c \
572   $(SRCDIR)/wmemchr.c \
573   $(SRCDIR)/wmemcmp.c \
574   $(SRCDIR)/wmemcpy.c \
575   $(SRCDIR)/wmemmove.c \
576   $(SRCDIR)/wmemset.c
577
578 SRCDIR := src/libcrt/wctype
579 wctype_SOURCES := \
580   $(SRCDIR)/wctrans.c \
581   $(SRCDIR)/wctype.c
582
583 libmingwex_a_SOURCES := \
584   $(complex_SOURCES) \
585   $(ctype_SOURCES) \
586   $(fenv_SOURCES) \
587   $(gdtoa_SOURCES) \
588   $(inttypes_SOURCES) \
589   $(math_SOURCES) \
590   $(misc_SOURCES) \
591   $(posix_SOURCES) \
592   $(search_SOURCES) \
593   $(stdio_SOURCES) \
594   $(stdlib_SOURCES) \
595   $(sys_SOURCES) \
596   $(tchar_SOURCES) \
597   $(wchar_SOURCES) \
598   $(wctype_SOURCES)
599 libmingwex_a_OBJECTS := $(libmingwex_a_SOURCES:.c=.o)
600 libmingwex_a_OBJECTS := $(libmingwex_a_OBJECTS:.S=.o)
601
602 SRCDIR := misc/src/libdinput
603 libdinput_a_SOURCES := \
604   $(SRCDIR)/dinput_joy.c \
605   $(SRCDIR)/dinput_joy2.c \
606   $(SRCDIR)/dinput_kbd.c \
607   $(SRCDIR)/dinput_mouse.c \
608   $(SRCDIR)/dinput_mouse2.c
609 libdinput_a_OBJECTS := $(libdinput_a_SOURCES:.c=.o)
610
611 SRCDIR := misc/src/libdxerr8
612 libdxerr8_a_SOURCES := $(SRCDIR)/dxerr.c $(SRCDIR)/dxerr8.c $(SRCDIR)/dxerr8w.c
613 libdxerr8_a_OBJECTS := $(libdxerr8_a_SOURCES:.c=.o)
614
615 SRCDIR := misc/src/libdxerr9
616 libdxerr9_a_SOURCES := $(SRCDIR)/dxerr.c $(SRCDIR)/dxerr9.c $(SRCDIR)/dxerr9w.c
617 libdxerr9_a_OBJECTS := $(libdxerr9_a_SOURCES:.c=.o)
618
619 ALL_SOURCES := \
620   $(libmingw32_a_SOURCES) \
621   $(libmingwthrd_a_SOURCES) \
622   $(libgmon_a_SOURCES) \
623   $(libmingwex_a_SOURCES) \
624   $(mingwm10_dll_SOURCES) \
625   $(libdinput_a_SOURCES) \
626   $(libdxerr8_a_SOURCES) \
627   $(libdxerr9_a_SOURCES)
628
629 all: $(extra_OBJECTS) $(msvcrt_DEF) $(moldname_DEF) $(lib_LIBRARIES) $(bin_LIBRARIES) $(lib_OBJECTS)
630
631 $(msvcrt_DEF): lib/lib32/msvcrt.def.in
632         N=`echo $@ | sed -e 's|\([a-z]*\)\([0-9]*\).*|\1|'`; \
633         test "$$N" == "msvcr" && N="msvcrt"; \
634         V=`echo $@ | sed -e 's|\([a-z]*\)\([0-9]*\).*|\2|'`; \
635         test -z "$$V" && V=60; \
636         test "$$V" != "100" && V="0$${V}"; \
637         V="0x$${V}0"; \
638         $(CC) -DRUNTIME=$(basename $(notdir $@)) \
639                 -D__FILENAME__=$@ \
640                 -D__$(basename $(notdir $@))__=1 \
641                 -C -E -P -xc-header \
642                 $? > $@
643
644 $(moldname_DEF): lib/lib32/moldname.def.in
645         N=`echo $@ | sed -e 's|\([a-z]*\)\([0-9]*\).*|\1|'`; \
646         test "$$N" == "msvcr" && N="msvcrt"; \
647         V=`echo $@ | sed -e 's|\([a-z]*\)\([0-9]*\).*|\2|'`; \
648         test -z "$$V" && V=60; \
649         F="$@"; \
650         test "$$V" != "100" && V="0$${V}"; \
651         V="0x$${V}0"; \
652         $(CC) -DRUNTIME=$(basename $(notdir $@)) \
653                 -D__FILENAME__=$$F \
654                 -D__$(basename $(notdir $@))__=1 \
655                 -C -E -P -xc-header \
656                 $? > $@
657
658 SRCDIR := lib/lib32
659 $(notdir $(winapi_lib_LIBRARIES)): $(addprefix lib/lib32/,$(winapi_DEF))
660         @echo Making library $@ from $(subst lib,,$(@:.a=.def)).
661         $(DLLTOOL) $(DLLTOOL_FLAGS) $(subst lib,,$(@:.a=.dll)) --def $(addprefix $(top_srcdir)/lib/lib32/,$(subst lib,,$(@:.a=.def))) --output-lib $@
662         $(RANLIB) $@
663
664 $(notdir $(winapi_mri_LIBRARIES)): $(addprefix lib/lib32/,$(winapi_MRI))
665         @echo Making library $@ from $<.
666         $(AR) -M < $<
667         $(RANLIB) $@
668
669 SRCDIR := lib/lib32/ddk
670 $(notdir $(winapi_lib_DDK_LIBRARIES)): $(addprefix lib/lib32/ddk/,$(winapi_DDK_DEF))
671         @echo Making library $@ from $(subst lib,,$(@:.a=.def)).
672         $(DLLTOOL) $(DLLTOOL_FLAGS) $(subst lib,,$(@:.a=.dll)) --def $(addprefix $(top_srcdir)/lib/lib32/ddk/,$(subst lib,,$(@:.a=.def))) --output-lib $@
673         $(RANLIB) $@
674
675 SRCDIR := lib/lib32/directx
676 $(notdir $(winapi_lib_DIRECTX_LIBRARIES)): $(addprefix lib/lib32/directx/,$(winapi_DIRECTX_DEF))
677         @echo Making library $@ from $(subst lib,,$(@:.a=.def)).
678         $(DLLTOOL) $(DLLTOOL_FLAGS) $(subst lib,,$(@:.a=.dll)) --def $(addprefix $(top_srcdir)/lib/lib32/directx/,$(subst lib,,$(@:.a=.def))) --output-lib $@
679         $(RANLIB) $@
680
681 libmoldname.a: moldname.def
682         @echo Making library $@ from $?.
683         DLLNAME="msvcrt.dll"; \
684         $(DLLTOOL) $(DLLTOOL_FLAGS) $${DLLNAME} -U --def $< --output-lib $@
685         $(RANLIB) $@
686
687 libmoldname%.a: moldname%.def
688         @echo Making library $@ from $?.
689         V=`echo $@ | sed -e 's|lib\([a-z]*\)\([0-9]*\).*|\2|'`; \
690         DLLNAME="msvcr$${V}.dll"; \
691         $(DLLTOOL) $(DLLTOOL_FLAGS) $${DLLNAME} -U --def $< --output-lib $@
692         $(RANLIB) $@
693
694 lib%.a: %.def
695         @echo Making library $@ from $?.
696         N=`echo $@ | sed -e 's|lib\([a-z]*\)\([0-9]*\).*|\1|'`; \
697         V=`echo $@ | sed -e 's|lib\([a-z]*\)\([0-9]*\).*|\2|'`; \
698         DLLNAME="$${N}$${V}.dll"; \
699         $(DLLTOOL) $(DLLTOOL_FLAGS) $${DLLNAME} --def $< --output-lib $@ ; \
700         if [[ $${DLLNAME} = msvcrt.dll || \
701               $${DLLNAME} = msvcrtd.dll || \
702               $${DLLNAME} = msvcr70.dll || \
703               $${DLLNAME} = msvcr70d.dll || \
704               $${DLLNAME} = msvcr71.dll || \
705               $${DLLNAME} = msvcr71d.dll ]]; then \
706           $(AR) rc $@ src/libcrt/crt/ofmt_stub.o; \
707         fi
708         $(RANLIB) $@
709
710 lib%.a: src/lib%/%.o
711         @echo Making library $@ from $?.
712         $(AR) rc $@ $*.o
713         $(RANLIB) $@
714
715 %.o : %.c
716         $(MKDIR_P) $(@D)
717         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
718
719 %.o : %.s
720         $(MKDIR_P) $(@D)
721         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
722
723 SRCDIR := src/libcrt/crt
724 $(SRCDIR)/crt2.o $(SRCDIR)/dllcrt2.o:
725         $(MKDIR_P) $(@D)
726         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
727
728 $(SRCDIR)/crt1.o: $(SRCDIR)/crt1.c
729 $(SRCDIR)/dllcrt1.o: $(SRCDIR)/dllcrt1.c
730 $(SRCDIR)/crt2.o: $(SRCDIR)/crt1.c
731 $(SRCDIR)/dllcrt2.o: $(SRCDIR)/dllcrt1.c
732
733 SRCDIR := src/libscrnsave
734 $(libscrnsave_a_OBJECTS): $(libscrnsave_a_SOURCES)
735         $(MKDIR_P) $(@D)
736         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(scrnsave_o_CFLAGS) -o $@ $<
737
738 $(libscrnsavw_a_OBJECTS): $(libscrnsavw_a_SOURCES)
739         $(MKDIR_P) $(@D)
740         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(scrnsavw_o_CFLAGS) -o $@ $<
741
742 SRCDIR := misc/gpl/profile
743 $(SRCDIR)/gcrt2.o:
744         mkdir -p $(@D)
745         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
746
747 $(SRCDIR)/gcrt1.o $(SRCDIR)/gcrt2.o: $(SRCDIR)/gcrt0.c
748
749 libmingw32.a: $(libmingw32_a_OBJECTS)
750         $(AR) rc $@ $(libmingw32_a_OBJECTS)
751         $(RANLIB) $@
752
753 libmingwex.a: $(libmingwex_a_OBJECTS)
754         $(AR) rc $@ $(libmingwex_a_OBJECTS)
755         $(RANLIB) $@
756
757 libmingwthrd.a: $(libmingwthrd_a_OBJECTS)
758         $(AR) rc $@ $(libmingwthrd_a_OBJECTS)
759         $(RANLIB) $@
760
761 libmingwthrd_old.a: $(libmingwthrd_a_OBJECTS) mingwm10.dll mingwthrd.def
762         $(DLLTOOL) $(DLLTOOL_FLAGS) mingwm10.dll \
763           --def mingwthrd.def --output-lib $@
764         $(AR) rc $@ $(libmingwthrd_a_OBJECTS)
765         $(RANLIB) $@
766
767 libgmon.a: $(libgmon_a_OBJECTS)
768         $(AR) rc $@ $(libgmon_a_OBJECTS)
769         $(RANLIB) $@
770
771 libuuid.a: $(libuuid_a_OBJECTS)
772         $(AR) rc $@ $(libuuid_a_OBJECTS)
773         $(RANLIB) $@
774
775 libscrnsave.a: $(libscrnsave_a_OBJECTS)
776         $(AR) rc $@ $(libscrnsave_a_OBJECTS)
777         $(RANLIB) $@
778
779 libscrnsavw.a: $(libscrnsavw_a_OBJECTS)
780         $(AR) rc $@ $(libscrnsavw_a_OBJECTS)
781         $(RANLIB) $@
782
783 liblargeint.a: $(liblargeint_a_OBJECTS)
784         $(AR) rc $@ $(liblargeint_a_OBJECTS)
785         $(RANLIB) $@
786
787 libdinput.a libdinput8.a: $(libdinput_a_OBJECTS)
788         $(DLLTOOL) $(DLLTOOL_FLAGS) $(subst lib,,$(@:.a=.dll)) --def $(addprefix $(top_srcdir)/lib/lib32/directx/,$(subst lib,,$(@:.a=.def))) --output-lib $@
789         $(AR) rc $@ $(libdinput_a_OBJECTS)
790         $(RANLIB) $@
791
792 $(libdinput_a_OBJECTS) : $(libdinput_a_SOURCES)
793 $(libdmoguids_a_OBJECTS) : $(libdmoguids_a_SOURCES)
794 $(libdxguid_a_OBJECTS) : $(libdxguid_a_SOURCES)
795 $(libstrmiids_a_OBJECTS) : $(libstrmiids_a_SOURCES)
796 $(libws2_32_a_OBJECTS) : $(libws2_32_a_SOURCES)
797         $(MKDIR_P) $(@D)
798         $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
799
800 libdxerr8.a: $(libdxerr8_a_OBJECTS)
801         $(AR) rc $@ $(libdxerr8_a_OBJECTS)
802         $(RANLIB) $@
803
804 libdxerr9.a: $(libdxerr9_a_OBJECTS)
805         $(AR) rc $@ $(libdxerr9_a_OBJECTS)
806         $(RANLIB) $@
807
808 libdmoguids.a: $(libdmoguids_a_OBJECTS)
809         $(AR) rc $@ $(libdmoguids_a_OBJECTS)
810         $(RANLIB) $@
811
812 libdxguid.a: $(libdxguid_a_OBJECTS)
813         $(AR) rc $@ $(libdxguid_a_OBJECTS)
814         $(RANLIB) $@
815
816 libstrmiids.a: $(libstrmiids_a_OBJECTS)
817         $(AR) rc $@ $(libstrmiids_a_OBJECTS)
818         $(RANLIB) $@
819
820 # Note this target will override the previous global rules and give a warning
821 # from the make process. It is needed due to the extra ws2_32.o object file.
822 libws2_32.a: lib/lib32/ws2_32.def $(libws2_32_a_OBJECTS)
823         @echo Making library $@ from $(subst lib,,$(@:.a=.def)).
824         $(DLLTOOL) $(DLLTOOL_FLAGS) $(subst lib,,$(@:.a=.dll)) --def $(addprefix $(top_srcdir)/lib/lib32/,$(subst lib,,$(@:.a=.def))) --output-lib $@
825         $(AR) rc $@ $(libws2_32_a_OBJECTS)
826         $(RANLIB) $@
827
828 _libm_dummy.c:
829         @echo "static int __mingw_libm_dummy;" > _libm_dummy.c
830
831 libm.a: _libm_dummy.o
832         $(AR) rc $@ _libm_dummy.o
833         $(RANLIB) $@
834
835 mingwthrd.def: $(mingwm10_dll_OBJECTS)
836         $(DLLTOOL) --as $(AS) --output-def mingwthrd.def $(mingwm10_dll_OBJECTS)
837
838 mingwm10.dll: $(mingwm10_dll_OBJECTS) mingwthrd.def libmingwex.a
839         $(CC) $(mingwm10_dll_FLAGS) $(mingwm10_dll_OBJECTS) mingwthrd.def \
840           -o mingwm10.dll -L .
841
842 clean:
843         rm -f *.def *.s *.o *.dll *.a _libm_dummy.c stamp*
844         rm -rf .deps/ src/ misc/
845         cd tests && $(MAKE) $@
846
847 distclean: clean
848         rm -f config.log config.status config.cache config.h
849         rm -f core a.out *~ Makefile
850         rm -rf dist/
851         cd tests && $(MAKE) $@
852
853 need-DESTDIR-compatibility := prefix bindir includedir libdir mandir
854
855 $(need-DESTDIR-compatibility):
856         @test -z "$(DESTDIR)" || case "$($@)" in ?:*) \
857           $(MAKE) --no-print-directory REJECT="$@" \
858             fail-DESTDIR-compatibility ;; \
859         esac
860
861 fail-DESTDIR-compatibility:
862         $(error DESTDIR is not supported when $(REJECT) contains a Windows \
863         path '$($(REJECT))'; \
864         try 'make install $(REJECT)=$(shell echo '$($(REJECT))' | \
865         sed s,:,:$(DESTDIR),) ...' instead)
866
867 check:
868         cd tests && $(MAKE) $@
869
870 install-dirs: $(need-DESTDIR-compatibility)
871         $(mkinstalldirs) $(DESTDIR)$(bindir)
872         $(mkinstalldirs) $(DESTDIR)$(libdir)
873         $(mkinstalldirs) $(DESTDIR)$(docdir)
874         $(mkinstalldirs) $(DESTDIR)$(docdir)/historical
875         $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/mingw
876         $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/mingw/man
877         $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/w32api
878         $(mkinstalldirs) $(DESTDIR)$(includedir)
879         for I in `find $(top_srcdir)/include/* -type d`; do \
880           J=`basename $$I`; \
881           $(mkinstalldirs) $(DESTDIR)$(includedir)/$$J ; \
882         done
883
884 install-libs: all
885         for LIB in $(lib_LIBRARIES); do \
886           $(INSTALL) $(INSTALL_FLAGS) $$LIB $(DESTDIR)$(libdir)/$$LIB ; \
887         done
888
889 install-objs: all
890         for OBJ in $(lib_OBJECTS); do \
891           $(INSTALL) $(INSTALL_FLAGS) $$OBJ $(DESTDIR)$(libdir) ; \
892         done
893
894 install-docs:
895         for DOC in $(doc_DOCUMENTS); do \
896           $(INSTALL) $(INSTALL_FLAGS) $(top_srcdir)/$$DOC $(DESTDIR)$(docdir)/$$DOC ; \
897         done
898         cp -af $(top_srcdir)/doc/historical $(DESTDIR)$(docdir) ;
899
900 install-includes:
901         for INC in $(top_srcdir)/include/*.h; do \
902           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir) ; \
903         done
904         for I in `find $(top_srcdir)/include/* -type d`; do \
905           J=`basename $$I`; \
906           for INC in $$I/*.h; do \
907             $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/$$J ; \
908           done \
909         done
910
911 install-bins: all
912         for BIN in $(bin_LIBRARIES); do \
913           $(INSTALL) $(INSTALL_FLAGS) $$BIN $(DESTDIR)$(bindir)/$$BIN ; \
914         done
915
916 install: all \
917   install-dirs \
918   install-libs \
919   install-objs \
920   install-docs \
921   install-includes \
922   install-bins
923
924 install-mingwrt-dirs: $(need-DESTDIR-compatibility)
925         $(mkinstalldirs) $(DESTDIR)$(bindir)
926         $(mkinstalldirs) $(DESTDIR)$(libdir)
927         $(mkinstalldirs) $(DESTDIR)$(prefix)/share/doc/mingwrt
928         $(mkinstalldirs) $(DESTDIR)$(includedir)
929         $(mkinstalldirs) $(DESTDIR)$(includedir)/sys
930
931 mingwrt_bin_LIBRARIES := mingwm10.dll
932 mingwrt_lib_INCLUDES := \
933   _mingw.h   dirent.h  glob.h      getopt.h    math.h    setjmp.h  strings.h \
934   assert.h   dos.h     inttypes.h  mbctype.h   share.h   wchar.h   varargs.h \
935   complex.h  errno.h   io.h        mbstring.h  signal.h  tchar.h   wctype.h \
936   conio.h    excpt.h   libgen.h    mem.h       stdint.h  time.h \
937   ctype.h    fcntl.h   limits.h    memory.h    stdio.h   unistd.h \
938   dir.h      fenv.h    locale.h    process.h   stdlib.h  utime.h \
939   direct.h   float.h   malloc.h    search.h    string.h  values.h
940
941 mingwrt_lib_SYS_INCLUDES := \
942   fcntl.h  locking.h  stat.h  timeb.h  unistd.h \
943   file.h   param.h    time.h  types.h  utime.h
944
945
946 install-mingwrt: install-mingwrt-dirs
947         for BIN in $(mingwrt_bin_LIBRARIES); do \
948           $(INSTALL) $(INSTALL_FLAGS) $$BIN $(DESTDIR)$(bindir)/ ; \
949         done
950         for INC in $(addprefix $(top_srcdir)/include/,$(mingwrt_lib_INCLUDES)); do \
951           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ ; \
952         done
953         for INC in $(addprefix $(top_srcdir)/include/sys/,$(mingwrt_lib_SYS_INCLUDES)); do \
954           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/sys/ ; \
955         done
956         for LIB in $(mingwrt_lib_LIBRARIES); do \
957           $(INSTALL) $(INSTALL_FLAGS) $$LIB $(DESTDIR)$(libdir)/ ; \
958         done
959         for OBJ in $(mingwrt_lib_OBJECTS); do \
960           $(INSTALL) $(INSTALL_FLAGS) $$OBJ $(DESTDIR)$(libdir)/ ; \
961         done
962         cp -af $(top_srcdir)/doc/historical/mingw/* $(DESTDIR)$(prefix)/share/doc/mingwrt ;
963         rm -f $(DESTDIR)$(prefix)/share/doc/mingwrt/ChangeLog
964         rm -rf $(DESTDIR)$(prefix)/share/doc/mingwrt/man
965
966 dist: all dist-mingwrt dist-w32api dist-wsl
967
968 dist-mingwrt:
969         $(MAKE) prefix=./dist/mingwrt/installed _dist-mingwrt-all_
970
971 _dist-mingwrt-all_: all dist-mingwrt-dll dist-mingwrt-dev dist-mingwrt-lic dist-mingwrt-doc dist-mingwrt-src
972
973 dist-mingwrt-mkdir:
974         $(MKDIR_P) ./dist/mingwrt/packages
975
976 dist-mingwrt-install: all
977         $(MAKE) prefix=./dist/mingwrt/installed install-mingwrt
978
979 dist-mingwrt-dll: dist-mingwrt-mkdir dist-mingwrt-install
980         cd ./dist/mingwrt/installed ; \
981         tar acf ../packages/mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-dll.tar.lzma bin/*.dll
982
983 dist-mingwrt-dev: dist-mingwrt-mkdir dist-mingwrt-install
984         cd ./dist/mingwrt/installed ; \
985         tar acf ../packages/mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-dev.tar.lzma include/ lib/
986
987 $(DESTDIR)$(prefix)/share/doc/mingwrt/DISCLAIMER: dist-mingwrt-mkdir dist-mingwrt-install
988         cp $(top_srcdir)/doc/historical/mingw/DISCLAIMER $(DESTDIR)$(prefix)/share/doc/mingwrt/
989
990 dist-mingwrt-lic: $(DESTDIR)$(prefix)/share/doc/mingwrt/DISCLAIMER
991         cd ./dist/mingwrt/installed ; \
992         tar acf ../packages/mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-lic.tar.lzma share/doc/mingwrt/DISCLAIMER
993
994 dist-mingwrt-doc: dist-mingwrt-install
995         cd ./dist/mingwrt/installed ; \
996         rm -f share/doc/mingwrt/DISCLAIMER ; \
997         tar acf ../packages/mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-doc.tar.lzma share/doc/mingwrt
998
999 dist-mingwrt-src:
1000         cp -af $(top_srcdir) $(DESTDIR)$(prefix)/mingw.org-wsl
1001         cd $(DESTDIR)$(prefix)/mingw.org-wsl ; \
1002         rm -rf .git autom4te.cache ; \
1003         rm -f config.log config.status config.cache config.h ; \
1004         rm -f .gitignore core a.out Makefile ; \
1005         find . -type f -name \*~ -delete ; \
1006         find . -type f -name \*.log -delete ; \
1007         find . -type f -name \*.bak -delete ; \
1008         find . -type f -name .\*.swp -delete ; \
1009         cd .. ; \
1010         rm -rf mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1011         mv mingw.org-wsl mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1012         tar acf ../packages/mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src.tar.lzma mingwrt-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src
1013
1014 install-w32api-dirs: $(need-DESTDIR-compatibility)
1015         $(mkinstalldirs) $(DESTDIR)$(bindir)
1016         $(mkinstalldirs) $(DESTDIR)$(libdir)
1017         $(mkinstalldirs) $(DESTDIR)$(prefix)/share/doc/w32api
1018         $(mkinstalldirs) $(DESTDIR)$(includedir)
1019         $(mkinstalldirs) $(DESTDIR)$(includedir)/ddk
1020         $(mkinstalldirs) $(DESTDIR)$(includedir)/gdiplus
1021         $(mkinstalldirs) $(DESTDIR)$(includedir)/GL
1022
1023 w32api_lib_INCLUDES := \
1024   accctrl.h aclapi.h aclui.h adsprop.h afxres.h audevcod.h aviriff.h \
1025   aygshell.h basetsd.h basetyps.h bdatypes.h cderr.h cguid.h cmnquery.h \
1026   comcat.h commctrl.h commdlg.h control.h cpl.h cplext.h custcntl.h \
1027   dbt.h dde.h ddeml.h devguid.h dhcpcsdk.h dlgs.h \
1028   docobj.h dsadmin.h dsclient.h dsgetdc.h dshow.h dsquery.h dsrole.h \
1029   dvdevcod.h dvdmedia.h edevdefs.h errorrep.h errors.h \
1030   evcode.h exdisp.h exdispid.h fltdefs.h gdiplus.h httpext.h icm.h idispids.h \
1031   il21dec.h imagehlp.h imm.h initguid.h intshcut.h ipexport.h iphlpapi.h \
1032   ipifcons.h ipinfoid.h iprtrmib.h iptypes.h ipxconst.h ipxrtdef.h ipxtfflt.h \
1033   isguids.h ks.h ksmedia.h largeint.h lm.h lmaccess.h lmalert.h lmapibuf.h \
1034   lmat.h lmaudit.h lmbrowsr.h lmchdev.h lmconfig.h lmcons.h lmerr.h lmerrlog.h \
1035   lmmsg.h lmremutl.h lmrepl.h lmserver.h lmshare.h lmsname.h lmstats.h lmsvc.h \
1036   lmuse.h lmuseflg.h lmwksta.h lzexpand.h mapi.h mciavi.h mcx.h mgm.h \
1037   mgmtapi.h mlang.h mmreg.h mmsystem.h mpegtype.h mprapi.h mq.h msacm.h \
1038   mshtml.h mswsock.h nb30.h nddeapi.h nspapi.h ntdef.h ntdll.h ntdsapi.h \
1039   ntdsbcli.h ntldap.h ntsecapi.h ntsecpkg.h oaidl.h objbase.h objfwd.h \
1040   objidl.h objsafe.h objsel.h ocidl.h odbcinst.h ole.h ole2.h ole2ver.h \
1041   oleacc.h oleauto.h olectl.h olectlid.h oledlg.h oleidl.h pbt.h poppack.h \
1042   powrprof.h prsht.h psapi.h pshpack1.h pshpack2.h pshpack4.h pshpack8.h \
1043   qedit.h rapi.h ras.h rasdlg.h raserror.h rassapi.h reason.h regstr.h \
1044   richedit.h richole.h routprot.h rpc.h rpcdce.h rpcdce2.h rpcdcep.h rpcndr.h \
1045   rpcnsi.h rpcnsip.h rpcnterr.h rpcproxy.h rtutils.h schannel.h schnlsp.h \
1046   scrnsave.h sddl.h sdkddkver.h secext.h security.h servprov.h setupapi.h \
1047   shellapi.h shldisp.h shlguid.h shlobj.h shlwapi.h shobjidl.h snmp.h \
1048   specstrings.h sql.h sqlext.h sqltypes.h sqlucode.h sspi.h stm.h strmif.h \
1049   subauth.h svcguid.h tlhelp32.h tmschema.h unknwn.h userenv.h usp10.h \
1050   uxtheme.h vfw.h vidcap.h vmr9.h vptype.h w32api.h winable.h winbase.h \
1051   winber.h wincon.h wincrypt.h windef.h windns.h windows.h windowsx.h \
1052   winerror.h wingdi.h wininet.h winioctl.h winldap.h winnetwk.h winnls.h \
1053   winnt.h winperf.h winreg.h winresrc.h winsnmp.h winsock.h winsock2.h \
1054   winspool.h winsvc.h winuser.h winver.h ws2spi.h ws2tcpip.h wsahelp.h wsipx.h \
1055   wsnetbs.h wtsapi32.h wtypes.h xprtdefs.h zmouse.h
1056
1057 w32api_lib_DDK_INCLUDES := \
1058   atm.h batclass.h cfg.h cfgmgr32.h d4drvif.h d4iface.h ddkmapi.h hidclass.h \
1059   hidpi.h hidsdi.h hidusage.h kbdmou.h mcd.h miniport.h minitape.h mountdev.h \
1060   mountmgr.h ndis.h ndisguid.h ndistapi.h ndiswan.h netevent.h netpnp.h \
1061   newdev.h ntapi.h ntdd8042.h ntddbeep.h ntddcdrm.h ntddcdvd.h ntddchgr.h \
1062   ntdddisk.h ntddk.h ntddkbd.h ntddmou.h ntddndis.h ntddpar.h ntddpcm.h \
1063   ntddscsi.h ntddser.h ntddstor.h ntddtape.h ntddtdi.h ntddvdeo.h ntddvol.h \
1064   ntifs.h ntpoapi.h ntstatus.h parallel.h pfhook.h poclass.h scsi.h scsiscan.h \
1065   scsiwmi.h smbus.h srb.h storport.h tdi.h tdiinfo.h tdikrnl.h tdistat.h \
1066   tvout.h upssvc.h usb.h usb100.h usbcamdi.h usbdi.h usbioctl.h usbiodef.h \
1067   usbscan.h usbuser.h video.h videoagp.h win2k.h winddi.h winddk.h winnt4.h \
1068   winxp.h ws2san.h xfilter.h
1069
1070 w32api_lib_GDIPLUS_INCLUDES := \
1071   gdiplus.h gdiplusbase.h gdiplusbrush.h gdipluscolor.h gdipluscolormatrix.h \
1072   gdipluseffects.h gdiplusenums.h gdiplusflat.h gdiplusgpstubs.h \
1073   gdiplusgraphics.h gdiplusheaders.h gdiplusimageattributes.h \
1074   gdiplusimagecodec.h gdiplusimaging.h gdiplusimpl.h gdiplusinit.h \
1075   gdipluslinecaps.h gdiplusmatrix.h gdiplusmem.h gdiplusmetafile.h \
1076   gdiplusmetaheader.h gdipluspath.h gdipluspen.h gdipluspixelformats.h \
1077   gdiplusstringformat.h gdiplustypes.h
1078
1079 w32api_lib_GL_INCLUDES := gl.h glext.h glu.h
1080
1081 w32api_lib_DIRECTX_INCLUDES := d3d9.h d3d9caps.h d3d9types.h dxerr8.h dxerr9.h
1082
1083 w32api_lib_LIBRARIES := \
1084   libaclui.a libadvapi32.a libapcups.a libavicap32.a libavifil32.a \
1085   libbthprops.a libcap.a libcfgmgr32.a libcomctl32.a libcomdlg32.a \
1086   libcrypt32.a libctl3d32.a libd3d8.a libd3d9.a libd3dim.a libd3drm.a \
1087   libd3dx8d.a libd3dx9d.a libd3dxof.a libddraw.a libdhcpcsvc.a libdinput.a \
1088   libdinput8.a libdlcapi.a libdmoguids.a libdnsapi.a libdplayx.a libdpnaddr.a \
1089   libdpnet.a libdpnlobby.a libdpvoice.a libdsetup.a libdsound.a libdxapi.a \
1090   libdxerr8.a libdxerr9.a libdxguid.a libfaultrep.a libgdi32.a libgdiplus.a \
1091   libglaux.a libglu32.a libhal.a libhid.a libhidparse.a libicmui.a \
1092   libigmpagnt.a libimagehlp.a libimm32.a libiphlpapi.a libkernel32.a \
1093   libksproxy.a libksuser.a liblargeint.a liblz32.a libmapi32.a libmcd.a \
1094   libmfcuia32.a libmgmtapi.a libmpr.a libmprapi.a libmqrt.a libmsacm32.a \
1095   libmscms.a libmsdmo.a libmsimg32.a libmsvcp60.a libmsvfw32.a libmswsock.a \
1096   libnddeapi.a libndis.a libnetapi32.a libnewdev.a libntdll.a libntoskrnl.a \
1097   libodbc32.a libodbccp32.a libole32.a liboleacc.a liboleaut32.a libolecli32.a \
1098   liboledlg.a libolepro32.a libolesvr32.a libopengl32.a libpenwin32.a \
1099   libpkpd32.a libpowrprof.a libpsapi.a libquartz.a librapi.a librasapi32.a \
1100   librasdlg.a librpcdce4.a librpcns4.a librpcrt4.a librtm.a librtutils.a \
1101   libscrnsave.a libscrnsavw.a libscsiport.a libsecur32.a libsetupapi.a \
1102   libshell32.a libshfolder.a libshlwapi.a libsnmpapi.a libstrmiids.a \
1103   libsvrapi.a libtapi32.a libtdi.a libthunk32.a liburl.a libusbcamd.a \
1104   libusbcamd2.a libuser32.a libuserenv.a libusp10.a libuuid.a libuxtheme.a \
1105   libvdmdbg.a libversion.a libvfw32.a libvideoprt.a libwin32k.a libwin32spl.a \
1106   libwininet.a libwinmm.a libwinspool.a libwinstrm.a libwldap32.a libwow32.a \
1107   libws2_32.a libwsnmp32.a libwsock32.a libwst.a libwtsapi32.a
1108
1109 install-w32api: install-w32api-dirs
1110         for INC in $(addprefix $(top_srcdir)/include/,$(w32api_lib_INCLUDES)); do \
1111           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ ; \
1112         done
1113         for INC in $(addprefix $(top_srcdir)/include/ddk/,$(w32api_lib_DDK_INCLUDES)); do \
1114           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ddk/ ; \
1115         done
1116         for INC in $(addprefix $(top_srcdir)/include/gdiplus/,$(w32api_lib_GDIPLUS_INCLUDES)); do \
1117           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/gdiplus/ ; \
1118         done
1119         for INC in $(addprefix $(top_srcdir)/misc/include/GL/,$(w32api_lib_GL_INCLUDES)); do \
1120           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/GL/ ; \
1121         done
1122         for INC in $(addprefix $(top_srcdir)/include/directx/,$(w32api_lib_DIRECTX_INCLUDES)); do \
1123           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir) ; \
1124         done
1125         for LIB in $(w32api_lib_LIBRARIES); do \
1126           $(INSTALL) $(INSTALL_FLAGS) $$LIB $(DESTDIR)$(libdir)/ ; \
1127         done
1128         cp -af $(top_srcdir)/doc/historical/w32api/* $(DESTDIR)$(prefix)/share/doc/w32api ;
1129         rm -f $(DESTDIR)$(prefix)/share/doc/w32api/ChangeLog
1130
1131 dist-w32api:
1132         $(MAKE) prefix=./dist/w32api/installed _dist-w32api-all_
1133
1134 _dist-w32api-all_: all dist-w32api-dev dist-w32api-lic dist-w32api-doc dist-w32api-src
1135
1136 dist-w32api-mkdir:
1137         $(MKDIR_P) ./dist/w32api/packages
1138
1139 dist-w32api-install: all dist-w32api-mkdir
1140         $(MAKE) prefix=./dist/w32api/installed install-w32api
1141
1142 dist-w32api-dev: dist-w32api-install
1143         cd ./dist/w32api/installed ; \
1144         tar acf ../packages/w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-dev.tar.lzma include/ lib/
1145
1146 dist-w32api-lic: dist-w32api-install
1147         cd ./dist/w32api/installed ; \
1148         tar acf ../packages/w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-lic.tar.lzma share/doc/w32api/README.w32api
1149
1150 dist-w32api-doc: dist-w32api-install
1151         cd ./dist/w32api/installed ; \
1152         tar acf ../packages/w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-doc.tar.lzma share/doc/w32api/CONTRIBUTIONS share/doc/w32api/TODO
1153
1154 dist-w32api-src:
1155         cp -af $(top_srcdir) $(DESTDIR)$(prefix)/mingw.org-wsl
1156         cd $(DESTDIR)$(prefix)/mingw.org-wsl ; \
1157         rm -rf .git autom4te.cache ; \
1158         rm -f config.log config.status config.cache config.h ; \
1159         rm -f .gitignore core a.out Makefile ; \
1160         find . -type f -name \*~ -delete ; \
1161         find . -type f -name \*.log -delete ; \
1162         find . -type f -name \*.bak -delete ; \
1163         find . -type f -name .\*.swp -delete ; \
1164         cd .. ; \
1165         rm -rf w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1166         mv mingw.org-wsl w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1167         tar acf ../packages/w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src.tar.lzma w32api-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src
1168
1169 install-wsl-dirs: $(need-DESTDIR-compatibility)
1170         $(mkinstalldirs) $(DESTDIR)$(bindir)
1171         $(mkinstalldirs) $(DESTDIR)$(libdir)
1172         $(mkinstalldirs) $(DESTDIR)$(docdir)
1173         $(mkinstalldirs) $(DESTDIR)$(includedir)
1174         $(mkinstalldirs) $(DESTDIR)$(includedir)/sys
1175         $(mkinstalldirs) $(DESTDIR)$(includedir)/ddk
1176         $(mkinstalldirs) $(DESTDIR)$(includedir)/gdiplus
1177         $(mkinstalldirs) $(DESTDIR)$(includedir)/GL
1178
1179 install-wsl: install-wsl-dirs
1180         for BIN in $(mingwrt_bin_LIBRARIES); do \
1181           $(INSTALL) $(INSTALL_FLAGS) $$BIN $(DESTDIR)$(bindir)/ ; \
1182         done
1183         for INC in $(addprefix $(top_srcdir)/include/,$(mingwrt_lib_INCLUDES)); do \
1184           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ ; \
1185         done
1186         for INC in $(addprefix $(top_srcdir)/include/sys/,$(mingwrt_lib_SYS_INCLUDES)); do \
1187           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/sys/ ; \
1188         done
1189         for INC in $(addprefix $(top_srcdir)/include/,$(w32api_lib_INCLUDES)); do \
1190           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ ; \
1191         done
1192         for INC in $(addprefix $(top_srcdir)/include/ddk/,$(w32api_lib_DDK_INCLUDES)); do \
1193           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/ddk/ ; \
1194         done
1195         for INC in $(addprefix $(top_srcdir)/include/gdiplus/,$(w32api_lib_GDIPLUS_INCLUDES)); do \
1196           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/gdiplus/ ; \
1197         done
1198         for INC in $(addprefix $(top_srcdir)/misc/include/GL/,$(w32api_lib_GL_INCLUDES)); do \
1199           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir)/GL/ ; \
1200         done
1201         for INC in $(addprefix $(top_srcdir)/include/directx/,$(w32api_lib_DIRECTX_INCLUDES)); do \
1202           $(INSTALL) $(INSTALL_FLAGS) $$INC $(DESTDIR)$(includedir) ; \
1203         done
1204         for LIB in $(mingwrt_lib_LIBRARIES) $(w32api_lib_LIBRARIES); do \
1205           $(INSTALL) $(INSTALL_FLAGS) $$LIB $(DESTDIR)$(libdir)/ ; \
1206         done
1207         for OBJ in $(mingwrt_lib_OBJECTS); do \
1208           $(INSTALL) $(INSTALL_FLAGS) $$OBJ $(DESTDIR)$(libdir)/ ; \
1209         done
1210         cp -af $(top_srcdir)/LICENSE $(DESTDIR)$(docdir)
1211         cp -af $(top_srcdir)/README $(DESTDIR)$(docdir)
1212         cp -af $(top_srcdir)/doc/historical $(DESTDIR)$(docdir)
1213
1214 dist-wsl:
1215         $(MAKE) prefix=./dist/wsl/installed _dist-wsl-all_
1216
1217 _dist-wsl-all_: all dist-wsl-dll dist-wsl-dev dist-wsl-doc dist-wsl-lic dist-wsl-src
1218
1219 dist-wsl-mkdir:
1220         $(MKDIR_P) ./dist/wsl/packages
1221
1222 dist-wsl-install: all dist-wsl-mkdir
1223         $(MAKE) prefix=./dist/wsl/installed install-wsl
1224
1225 dist-wsl-dll: dist-wsl-install
1226         cd ./dist/wsl/installed ; \
1227         tar acf ../packages/mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-dll.tar.lzma bin/*.dll ;
1228
1229 dist-wsl-dev: dist-wsl-install
1230         cd ./dist/wsl/installed ; \
1231         tar acf ../packages/mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-dev.tar.lzma include/ lib/
1232
1233 dist-wsl-lic: dist-wsl-install
1234         cd ./dist/wsl/installed ; \
1235         tar acf ../packages/mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-lic.tar.lzma share/doc/mingw.org-wsl/LICENSE
1236
1237 dist-wsl-doc: dist-wsl-install
1238         cd ./dist/wsl/installed ; \
1239         tar acf ../packages/mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-doc.tar.lzma share/doc/mingw.org-wsl/README
1240
1241 dist-wsl-src: dist-wsl-install
1242         cp -af $(top_srcdir) $(DESTDIR)$(prefix)/mingw.org-wsl
1243         cd $(DESTDIR)$(prefix)/mingw.org-wsl ; \
1244         rm -rf .git autom4te.cache ; \
1245         rm -f config.log config.status config.cache config.h ; \
1246         rm -f .gitignore core a.out Makefile ; \
1247         find . -type f -name \*~ -delete ; \
1248         find . -type f -name \*.log -delete ; \
1249         find . -type f -name \*.bak -delete ; \
1250         find . -type f -name .\*.swp -delete ; \
1251         cd .. ; \
1252         rm -rf mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1253         mv mingw.org-wsl mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src ; \
1254         tar acf ../packages/mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src.tar.lzma mingw.org-wsl-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)-mingw32-src