OSDN Git Service

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