OSDN Git Service

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