Commit | Line | Data |
---|---|---|
9e42cd94 | 1 | # |
b6c85593 | 2 | # Makefile to build perl on Windows using Microsoft NMAKE. |
9e42cd94 | 3 | # Supported compilers: |
b6c85593 | 4 | # Microsoft Visual C++ 6.0 or later |
02e200fc | 5 | # Windows SDK 64-bit compiler and tools |
9e42cd94 GS |
6 | # |
7 | # This is set up to build a perl.exe that runs off a shared library | |
6612e40e | 8 | # (perl527.dll). Also makes individual DLLs for the XS extensions. |
9e42cd94 GS |
9 | # |
10 | ||
11 | ## | |
12 | ## Make sure you read README.win32 *before* you mess with anything here! | |
13 | ## | |
14 | ||
15 | ## | |
16 | ## Build configuration. Edit the values below to suit your needs. | |
17 | ## | |
18 | ||
19 | # | |
20 | # Set these to wherever you want "nmake install" to put your | |
21 | # newly built perl. | |
22 | # | |
23 | INST_DRV = c: | |
24 | INST_TOP = $(INST_DRV)\perl | |
25 | ||
26 | # | |
b86e806e JD |
27 | # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler |
28 | # on a 64-bit version of Windows. | |
890b5089 | 29 | # |
b86e806e JD |
30 | #WIN64 = undef |
31 | ||
32 | # | |
9e42cd94 GS |
33 | # Comment this out if you DON'T want your perl installation to be versioned. |
34 | # This means that the new installation will overwrite any files from the | |
35 | # old installation at the same INST_TOP location. Leaving it enabled is | |
36 | # the safest route, as perl adds the extra version directory to all the | |
37 | # locations it installs files to. If you disable it, an alternative | |
38 | # versioned installation can be obtained by setting INST_TOP above to a | |
39 | # path that includes an arbitrary version string. | |
40 | # | |
5c5ad1fe | 41 | #INST_VER = \5.27.6 |
9e42cd94 GS |
42 | |
43 | # | |
44 | # Comment this out if you DON'T want your perl installation to have | |
45 | # architecture specific components. This means that architecture- | |
46 | # specific files will be installed along with the architecture-neutral | |
47 | # files. Leaving it enabled is safer and more flexible, in case you | |
48 | # want to build multiple flavors of perl and install them together in | |
49 | # the same location. Commenting it out gives you a simpler | |
50 | # installation that is easier to understand for beginners. | |
51 | # | |
bdb4cb88 | 52 | #INST_ARCH = \$(ARCHNAME) |
9e42cd94 GS |
53 | |
54 | # | |
7ada00a0 SH |
55 | # Uncomment this if you want perl to run |
56 | # $Config{sitelibexp}\sitecustomize.pl | |
57 | # before anything else. This script can then be set up, for example, | |
58 | # to add additional entries to @INC. | |
59 | # | |
60 | #USE_SITECUST = define | |
61 | ||
62 | # | |
4fef8ef3 SH |
63 | # uncomment to enable multiple interpreters. This is needed for fork() |
64 | # emulation and for thread support, and is auto-enabled by USE_IMP_SYS | |
65 | # and USE_ITHREADS below. | |
9e42cd94 | 66 | # |
bdb4cb88 | 67 | USE_MULTI = define |
9e42cd94 GS |
68 | |
69 | # | |
4fef8ef3 SH |
70 | # Interpreter cloning/threads; now reasonably complete. |
71 | # This should be enabled to get the fork() emulation. This needs (and | |
72 | # will auto-enable) USE_MULTI above. | |
9e42cd94 | 73 | # |
bdb4cb88 | 74 | USE_ITHREADS = define |
9e42cd94 GS |
75 | |
76 | # | |
77 | # uncomment to enable the implicit "host" layer for all system calls | |
4fef8ef3 SH |
78 | # made by perl. This is also needed to get fork(). This needs (and |
79 | # will auto-enable) USE_MULTI above. | |
9e42cd94 | 80 | # |
bdb4cb88 | 81 | USE_IMP_SYS = define |
9e42cd94 GS |
82 | |
83 | # | |
4a9d6100 GS |
84 | # Comment this out if you don't want to enable large file support for |
85 | # some reason. Should normally only be changed to maintain compatibility | |
86 | # with an older release of perl. | |
890b5089 | 87 | # |
bdb4cb88 | 88 | USE_LARGE_FILES = define |
4a9d6100 GS |
89 | |
90 | # | |
1f64ae15 SH |
91 | # Uncomment this if you're building a 32-bit perl and want 64-bit integers. |
92 | # (If you're building a 64-bit perl then you will have 64-bit integers whether | |
93 | # or not this is uncommented.) | |
38aa66aa | 94 | # Note: This option is not supported in 32-bit MSVC60 builds. |
890b5089 | 95 | # |
1f64ae15 SH |
96 | #USE_64_BIT_INT = define |
97 | ||
98 | # | |
458ea8f7 SH |
99 | # Comment this out if you want the legacy default behavior of including '.' at |
100 | # the end of @INC. | |
101 | # | |
102 | DEFAULT_INC_EXCLUDES_DOT = define | |
103 | ||
104 | # | |
6937817d DD |
105 | # Uncomment this if you want to disable looking up values from |
106 | # HKEY_CURRENT_USER\Software\Perl and HKEY_LOCAL_MACHINE\Software\Perl in | |
107 | # the Registry. | |
108 | # | |
109 | #USE_NO_REGISTRY = define | |
110 | ||
111 | # | |
da2c7419 | 112 | # uncomment exactly one of the following |
9e42cd94 | 113 | # |
b2e53f8c | 114 | # Visual C++ 6.0 (aka Visual C++ 98) |
4a9d6100 | 115 | CCTYPE = MSVC60 |
b2e53f8c | 116 | # Visual C++ .NET 2002/2003 (aka Visual C++ 7.0/7.1) (full version) |
5398666e | 117 | #CCTYPE = MSVC70 |
b2e53f8c | 118 | # Visual C++ Toolkit 2003 (aka Visual C++ 7.1) (free command-line tools) |
da2c7419 | 119 | #CCTYPE = MSVC70FREE |
02e200fc JD |
120 | # Windows Server 2003 SP1 Platform SDK (April 2005) |
121 | #CCTYPE = SDK2003SP1 | |
3aa3d69a | 122 | # Visual C++ 2005 (aka Visual C++ 8.0) (full version or Express Edition) |
73c9ebc7 | 123 | #CCTYPE = MSVC80 |
3aa3d69a | 124 | # Visual C++ 2008 (aka Visual C++ 9.0) (full version or Express Edition) |
4a3cf07b | 125 | #CCTYPE = MSVC90 |
3aa3d69a | 126 | # Visual C++ 2010 (aka Visual C++ 10.0) (full version or Express Edition) |
2a46176f | 127 | #CCTYPE = MSVC100 |
3aa3d69a | 128 | # Visual C++ 2012 (aka Visual C++ 11.0) (full version or Express Edition) |
5398666e | 129 | #CCTYPE = MSVC110 |
3aa3d69a | 130 | # Visual C++ 2013 (aka Visual C++ 12.0) (full version or Express Edition) |
3e7c2d43 | 131 | #CCTYPE = MSVC120 |
3aa3d69a | 132 | # Visual C++ 2015 (aka Visual C++ 14.0) (full version or Express Edition) |
1f664ef5 | 133 | #CCTYPE = MSVC140 |
3aa3d69a | 134 | # Visual C++ 2017 (aka Visual C++ 14.1) (full version or Community Edition) |
58998b2a | 135 | #CCTYPE = MSVC141 |
9e42cd94 GS |
136 | |
137 | # | |
a48cc4c4 DD |
138 | # If you are using Intel C++ Compiler uncomment this |
139 | # | |
140 | #__ICC = define | |
141 | ||
142 | # | |
f9bbfafd SH |
143 | # Uncomment this if you want to build everything in C++ mode |
144 | # | |
145 | #USE_CPLUSPLUS = define | |
146 | ||
147 | # | |
31c916d2 | 148 | # uncomment next line if you want debug version of perl (big/slow) |
f7d585d3 GS |
149 | # If not enabled, we automatically try to use maximum optimization |
150 | # with all compilers that are known to have a working optimizer. | |
9e42cd94 | 151 | # |
31c916d2 SH |
152 | # You can also set CFG = DebugSymbols for a slightly smaller/faster |
153 | # debug build without the special debugging code in perl which is | |
154 | # enabled via -DDEBUGGING; | |
155 | # | |
156 | # or you can set CFG = DebugFull for an even fuller (bigger/slower) | |
157 | # debug build using the debug version of the CRT, and enabling VC++ | |
158 | # debug features such as extra assertions and invalid parameter warnings | |
159 | # in perl and CRT code via -D_DEBUG. (Note that the invalid parameter | |
160 | # handler does get triggered from time to time in this configuration, | |
161 | # which causes warnings to be printed on STDERR, which in turn causes a | |
162 | # few tests to fail.) | |
163 | # | |
9e42cd94 GS |
164 | #CFG = Debug |
165 | ||
166 | # | |
9e42cd94 GS |
167 | # uncomment to enable linking with setargv.obj under the Visual C |
168 | # compiler. Setting this options enables perl to expand wildcards in | |
169 | # arguments, but it may be harder to use alternate methods like | |
170 | # File::DosGlob that are more powerful. This option is supported only with | |
171 | # Visual C. | |
172 | # | |
173 | #USE_SETARGV = define | |
174 | ||
175 | # | |
9e42cd94 GS |
176 | # set this if you wish to use perl's malloc |
177 | # WARNING: Turning this on/off WILL break binary compatibility with extensions | |
178 | # you may have compiled with/without it. Be prepared to recompile all | |
179 | # extensions if you change the default. Currently, this cannot be enabled | |
180 | # if you ask for USE_IMP_SYS above. | |
181 | # | |
182 | #PERL_MALLOC = define | |
183 | ||
184 | # | |
06c896bb SH |
185 | # set this to enable debugging mstats |
186 | # This must be enabled to use the Devel::Peek::mstat() function. This cannot | |
187 | # be enabled without PERL_MALLOC as well. | |
188 | # | |
bdb4cb88 | 189 | #DEBUG_MSTATS = define |
06c896bb SH |
190 | |
191 | # | |
4e036e4b VK |
192 | # set this to additionally provide a statically linked perl-static.exe. |
193 | # Note that dynamic loading will not work with this perl, so you must | |
a1f2e719 | 194 | # include required modules statically using the STATIC_EXT or ALL_STATIC |
6612e40e | 195 | # variables below. A static library perl527s.lib will also be created. |
4e036e4b VK |
196 | # Ordinary perl.exe is not affected by this option. |
197 | # | |
198 | #BUILD_STATIC = define | |
199 | ||
200 | # | |
a1f2e719 VK |
201 | # in addition to BUILD_STATIC the option ALL_STATIC makes *every* |
202 | # extension get statically built | |
203 | # This will result in a very large perl executable, but the main purpose | |
204 | # is to have proper linking set so as to be able to create miscellaneous | |
205 | # executables with different built-in extensions | |
206 | # | |
207 | #ALL_STATIC = define | |
208 | ||
209 | # | |
74102a88 SH |
210 | # set the install location of the compiler |
211 | # Running VCVARS32.BAT, VCVARSALL.BAT or similar is *required* when using | |
212 | # Visual C++. | |
213 | # Versions of Visual C++ up to VC++ 7.1 define $(MSVCDir); versions since then | |
214 | # define $(VCINSTALLDIR) instead, but for VC++ 14.1 we need the subfolder given | |
215 | # by $(VCToolsInstallDir). | |
06c896bb | 216 | # |
74102a88 SH |
217 | !IF "$(CCTYPE)" == "MSVC60" || \ |
218 | "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE" | |
9e42cd94 | 219 | CCHOME = $(MSVCDIR) |
74102a88 SH |
220 | !ELSE |
221 | ! IF "$(CCTYPE)" == "MSVC141" | |
222 | CCHOME = $(VCTOOLSINSTALLDIR) | |
223 | ! ELSE | |
224 | CCHOME = $(VCINSTALLDIR) | |
225 | ! ENDIF | |
226 | !ENDIF | |
9e42cd94 GS |
227 | |
228 | # | |
229 | # Additional compiler flags can be specified here. | |
230 | # | |
2e30e1e1 | 231 | BUILDOPT = $(BUILDOPTEXTRA) |
9e42cd94 | 232 | |
7ada00a0 | 233 | # |
9e42cd94 GS |
234 | # This should normally be disabled. Enabling it will disable the File::Glob |
235 | # implementation of CORE::glob. | |
236 | # | |
237 | #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB | |
238 | ||
239 | # | |
270ca148 JD |
240 | # Perl needs to read scripts in text mode so that the DATA filehandle |
241 | # works correctly with seek() and tell(), or around auto-flushes of | |
242 | # all filehandles (e.g. by system(), backticks, fork(), etc). | |
bdb4cb88 | 243 | # |
270ca148 JD |
244 | # The current version on the ByteLoader module on CPAN however only |
245 | # works if scripts are read in binary mode. But before you disable text | |
246 | # mode script reading (and break some DATA filehandle functionality) | |
247 | # please check first if an updated ByteLoader isn't available on CPAN. | |
248 | # | |
249 | BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS | |
9e42cd94 GS |
250 | |
251 | # | |
252 | # specify semicolon-separated list of extra directories that modules will | |
253 | # look for libraries (spaces in path names need not be quoted) | |
254 | # | |
255 | EXTRALIBDIRS = | |
256 | ||
257 | # | |
258 | # set this to your email address (perl will guess a value from | |
259 | # from your loginname and your hostname, which may not be right) | |
260 | # | |
261 | #EMAIL = | |
262 | ||
263 | ## | |
264 | ## Build configuration ends. | |
265 | ## | |
266 | ||
267 | ##################### CHANGE THESE ONLY IF YOU MUST ##################### | |
268 | ||
646e33b6 SH |
269 | !IF "$(USE_IMP_SYS)" == "define" |
270 | PERL_MALLOC = undef | |
271 | DEBUG_MSTATS = undef | |
272 | !ENDIF | |
273 | ||
9e42cd94 GS |
274 | !IF "$(PERL_MALLOC)" == "" |
275 | PERL_MALLOC = undef | |
646e33b6 | 276 | DEBUG_MSTATS = undef |
06c896bb SH |
277 | !ENDIF |
278 | ||
279 | !IF "$(DEBUG_MSTATS)" == "" | |
646e33b6 | 280 | DEBUG_MSTATS = undef |
06c896bb SH |
281 | !ENDIF |
282 | ||
283 | !IF "$(DEBUG_MSTATS)" == "define" | |
646e33b6 | 284 | BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS |
9e42cd94 GS |
285 | !ENDIF |
286 | ||
7ada00a0 SH |
287 | !IF "$(USE_SITECUST)" == "" |
288 | USE_SITECUST = undef | |
289 | !ENDIF | |
290 | ||
9e42cd94 GS |
291 | !IF "$(USE_MULTI)" == "" |
292 | USE_MULTI = undef | |
293 | !ENDIF | |
294 | ||
295 | !IF "$(USE_ITHREADS)" == "" | |
296 | USE_ITHREADS = undef | |
297 | !ENDIF | |
298 | ||
299 | !IF "$(USE_IMP_SYS)" == "" | |
300 | USE_IMP_SYS = undef | |
301 | !ENDIF | |
302 | ||
4a9d6100 GS |
303 | !IF "$(USE_LARGE_FILES)" == "" |
304 | USE_LARGE_FILES = undef | |
305 | !ENDIF | |
306 | ||
1f64ae15 SH |
307 | !IF "$(USE_64_BIT_INT)" == "" |
308 | USE_64_BIT_INT = undef | |
309 | !ENDIF | |
310 | ||
458ea8f7 SH |
311 | !IF "$(DEFAULT_INC_EXCLUDES_DOT)" == "" |
312 | DEFAULT_INC_EXCLUDES_DOT = undef | |
313 | !ENDIF | |
314 | ||
6937817d DD |
315 | !IF "$(USE_NO_REGISTRY)" == "" |
316 | USE_NO_REGISTRY = undef | |
317 | !ENDIF | |
318 | ||
3db8f154 | 319 | !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef" |
9e42cd94 GS |
320 | USE_MULTI = define |
321 | !ENDIF | |
322 | ||
323 | !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef" | |
324 | USE_MULTI = define | |
9e42cd94 GS |
325 | !ENDIF |
326 | ||
7ada00a0 SH |
327 | !IF "$(USE_SITECUST)" == "define" |
328 | BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE | |
329 | !ENDIF | |
330 | ||
3db8f154 | 331 | !IF "$(USE_MULTI)" != "undef" |
9e42cd94 GS |
332 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT |
333 | !ENDIF | |
334 | ||
335 | !IF "$(USE_IMP_SYS)" != "undef" | |
336 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS | |
337 | !ENDIF | |
338 | ||
6937817d DD |
339 | !IF "$(USE_NO_REGISTRY)" != "undef" |
340 | BUILDOPT = $(BUILDOPT) -DWIN32_NO_REGISTRY | |
341 | !ENDIF | |
342 | ||
9e42cd94 GS |
343 | !IF "$(PROCESSOR_ARCHITECTURE)" == "" |
344 | PROCESSOR_ARCHITECTURE = x86 | |
345 | !ENDIF | |
346 | ||
c623ac67 | 347 | !IF "$(WIN64)" == "" |
bf2a35e5 JD |
348 | # When we are running from a 32bit cmd.exe on AMD64 then |
349 | # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432 | |
350 | # is set to AMD64 | |
c623ac67 GS |
351 | !IF "$(PROCESSOR_ARCHITEW6432)" != "" |
352 | PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432) | |
353 | WIN64 = define | |
354 | !ELSE | |
bf2a35e5 | 355 | !IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64" |
c623ac67 GS |
356 | WIN64 = define |
357 | !ELSE | |
358 | WIN64 = undef | |
359 | !ENDIF | |
360 | !ENDIF | |
361 | !ENDIF | |
362 | ||
1f64ae15 SH |
363 | !IF "$(WIN64)" == "define" |
364 | USE_64_BIT_INT = define | |
365 | !ENDIF | |
366 | ||
02e200fc JD |
367 | # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because |
368 | # both link against MSVCRT.dll (which is part of Windows itself) and | |
369 | # not against a compiler specific versioned runtime. | |
370 | !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60" | |
371 | CCTYPE = SDK2003SP1 | |
372 | !ENDIF | |
373 | ||
38aa66aa SH |
374 | # Disable the 64-bit-int option for (32-bit) MSVC60 builds since that compiler |
375 | # does not support it. | |
376 | !IF "$(CCTYPE)" == "MSVC60" | |
377 | !UNDEF USE_64_BIT_INT | |
378 | USE_64_BIT_INT = undef | |
379 | !ENDIF | |
380 | ||
5398666e SH |
381 | # Most relevant compiler-specific options fall into two groups: |
382 | # either pre-MSVC80 or MSVC80 onwards, so define a macro for this. | |
383 | !IF "$(CCTYPE)" == "MSVC60" || \ | |
384 | "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE" | |
385 | PREMSVC80 = define | |
386 | !ELSE | |
387 | PREMSVC80 = undef | |
388 | !ENDIF | |
389 | ||
bf2a35e5 JD |
390 | ARCHITECTURE = $(PROCESSOR_ARCHITECTURE) |
391 | !IF "$(ARCHITECTURE)" == "AMD64" | |
392 | ARCHITECTURE = x64 | |
9453ddcd | 393 | !ENDIF |
bf2a35e5 JD |
394 | !IF "$(ARCHITECTURE)" == "IA64" |
395 | ARCHITECTURE = ia64 | |
9453ddcd SH |
396 | !ENDIF |
397 | ||
9e42cd94 | 398 | !IF "$(USE_MULTI)" == "define" |
bf2a35e5 | 399 | ARCHNAME = MSWin32-$(ARCHITECTURE)-multi |
9e42cd94 | 400 | !ELSE |
bf2a35e5 | 401 | ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio |
9e42cd94 GS |
402 | !ENDIF |
403 | ||
404 | !IF "$(USE_ITHREADS)" == "define" | |
405 | ARCHNAME = $(ARCHNAME)-thread | |
406 | !ENDIF | |
407 | ||
1f64ae15 SH |
408 | !IF "$(WIN64)" != "define" |
409 | !IF "$(USE_64_BIT_INT)" == "define" | |
410 | ARCHNAME = $(ARCHNAME)-64int | |
411 | !ENDIF | |
412 | !ENDIF | |
413 | ||
b2e53f8c | 414 | # All but the free version of VC++ 7.1 can load DLLs on demand. Makes the test |
5398666e SH |
415 | # suite run in about 10% less time. |
416 | !IF "$(CCTYPE)" != "MSVC70FREE" | |
6937817d DD |
417 | # If no registry, advapi32 is only used for Perl_pp_getlogin/getlogin/GetUserNameA |
418 | # which is rare to execute | |
419 | !IF "$(USE_NO_REGISTRY)" != "undef" | |
420 | DELAYLOAD = -DELAYLOAD:ws2_32.dll -DELAYLOAD:advapi32.dll delayimp.lib | |
421 | MINIDELAYLOAD = | |
422 | !ELSE | |
d1a8253e | 423 | DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib |
6937817d DD |
424 | #miniperl never does any registry lookups |
425 | MINIDELAYLOAD = -DELAYLOAD:advapi32.dll | |
426 | !ENDIF | |
9e42cd94 GS |
427 | !ENDIF |
428 | ||
b2e53f8c | 429 | # Visual C++ 2005 and 2008 (VC++ 8.0 and 9.0) create manifest files for EXEs and |
4a3cf07b | 430 | # DLLs. These either need copying everywhere with the binaries, or else need |
3ddd48aa SH |
431 | # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For |
432 | # simplicity, embed them if they exist (and delete them afterwards so that they | |
433 | # don't get installed too). | |
4adc95e6 SH |
434 | EMBED_EXE_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \ |
435 | if exist $@.manifest del $@.manifest | |
436 | EMBED_DLL_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \ | |
437 | if exist $@.manifest del $@.manifest | |
c8e599d3 | 438 | |
74102a88 SH |
439 | # Set the install location of the compiler headers/libraries. |
440 | # These are saved into $Config{incpath} and $Config{libpth}. | |
441 | CCINCDIR = $(CCHOME)\include | |
442 | !IF "$(CCTYPE)" == "MSVC141" | |
443 | ! IF "$(WIN64)" == "define" | |
444 | CCLIBDIR = $(CCHOME)\lib\x64 | |
445 | ! ELSE | |
446 | CCLIBDIR = $(CCHOME)\lib\x86 | |
447 | ! ENDIF | |
448 | !ELSE | |
449 | CCLIBDIR = $(CCHOME)\lib | |
450 | !ENDIF | |
451 | ||
9e42cd94 GS |
452 | ARCHDIR = ..\lib\$(ARCHNAME) |
453 | COREDIR = ..\lib\CORE | |
454 | AUTODIR = ..\lib\auto | |
455 | LIBDIR = ..\lib | |
456 | EXTDIR = ..\ext | |
a193a2db | 457 | DISTDIR = ..\dist |
b212a3c6 | 458 | CPANDIR = ..\cpan |
9e42cd94 | 459 | PODDIR = ..\pod |
b4a41557 | 460 | HTMLDIR = .\html |
9e42cd94 | 461 | |
9e42cd94 GS |
462 | INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin |
463 | INST_BIN = $(INST_SCRIPT)$(INST_ARCH) | |
464 | INST_LIB = $(INST_TOP)$(INST_VER)\lib | |
465 | INST_ARCHLIB = $(INST_LIB)$(INST_ARCH) | |
466 | INST_COREDIR = $(INST_ARCHLIB)\CORE | |
9e42cd94 GS |
467 | INST_HTML = $(INST_TOP)$(INST_VER)\html |
468 | ||
469 | # | |
470 | # Programs to compile, build .lib files and link | |
471 | # | |
472 | ||
a48cc4c4 | 473 | !IF "$(__ICC)" != "define" |
9e42cd94 GS |
474 | CC = cl |
475 | LINK32 = link | |
a48cc4c4 DD |
476 | !ELSE |
477 | CC = icl | |
478 | LINK32 = xilink | |
479 | !ENDIF | |
9e42cd94 GS |
480 | LIB32 = $(LINK32) -lib |
481 | RSC = rc | |
482 | ||
483 | # | |
484 | # Options | |
485 | # | |
486 | ||
487 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. | |
488 | #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX | |
9cef8306 | 489 | DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT |
9e42cd94 | 490 | LOCDEFS = -DPERLDLL -DPERL_CORE |
a7d225ec | 491 | CXX_FLAG = -TP -EHsc |
9e42cd94 | 492 | |
3aa3d69a | 493 | !IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141" |
1f664ef5 SH |
494 | LIBC = ucrt.lib |
495 | !ELSE | |
31c916d2 | 496 | LIBC = msvcrt.lib |
1f664ef5 | 497 | !ENDIF |
9e42cd94 | 498 | |
9e42cd94 | 499 | !IF "$(CFG)" == "Debug" |
9e42cd94 | 500 | OPTIMIZE = -Od -MD -Zi -DDEBUGGING |
c623ac67 | 501 | LINK_DBG = -debug |
9e42cd94 | 502 | !ELSE |
31c916d2 SH |
503 | !IF "$(CFG)" == "DebugSymbols" |
504 | OPTIMIZE = -Od -MD -Zi | |
505 | LINK_DBG = -debug | |
506 | !ELSE | |
507 | !IF "$(CFG)" == "DebugFull" | |
3aa3d69a | 508 | !IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141" |
1f664ef5 SH |
509 | LIBC = ucrtd.lib |
510 | !ELSE | |
31c916d2 | 511 | LIBC = msvcrtd.lib |
1f664ef5 | 512 | !ENDIF |
31c916d2 SH |
513 | OPTIMIZE = -Od -MDd -Zi -D_DEBUG -DDEBUGGING |
514 | LINK_DBG = -debug | |
515 | !ELSE | |
00a13560 SH |
516 | # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64 |
517 | OPTIMIZE = -O1 -MD -Zi -DNDEBUG | |
ec25c072 SH |
518 | # we enable debug symbols in release builds also |
519 | LINK_DBG = -debug -opt:ref,icf | |
520 | # you may want to enable this if you want COFF symbols in the executables | |
521 | # in addition to the PDB symbols. The default Dr. Watson that ships with | |
522 | # Windows can use the the former but not latter. The free WinDbg can be | |
523 | # installed to get better stack traces from just the PDB symbols, so we | |
524 | # avoid the bloat of COFF symbols by default. | |
525 | #LINK_DBG = $(LINK_DBG) -debugtype:both | |
a9e3f359 | 526 | ! IF "$(CCTYPE)" != "MSVC60" |
d921a5fb | 527 | # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG) |
00a13560 | 528 | OPTIMIZE = $(OPTIMIZE) -GL |
d921a5fb | 529 | LINK_DBG = $(LINK_DBG) -ltcg |
a9e3f359 | 530 | LIB_FLAGS = -ltcg |
d921a5fb | 531 | ! ENDIF |
9e42cd94 | 532 | !ENDIF |
31c916d2 SH |
533 | !ENDIF |
534 | !ENDIF | |
9e42cd94 | 535 | |
c623ac67 GS |
536 | !IF "$(WIN64)" == "define" |
537 | DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE | |
f33a21d8 | 538 | OPTIMIZE = $(OPTIMIZE) -fp:precise |
da2c7419 SH |
539 | !ENDIF |
540 | ||
b2e53f8c | 541 | # For now, silence warnings from VC++ 8.0 onwards about "unsafe" CRT functions |
4a3cf07b | 542 | # and POSIX CRT function names being deprecated. |
5398666e | 543 | !IF "$(PREMSVC80)" == "undef" |
26a6faa8 | 544 | DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE |
c5b31784 SH |
545 | !ENDIF |
546 | ||
3aa3d69a SH |
547 | # Likewise for deprecated Winsock APIs in VC++ 14.0 onwards for now. |
548 | !IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141" | |
1f664ef5 SH |
549 | DEFINES = $(DEFINES) -D_WINSOCK_DEPRECATED_NO_WARNINGS |
550 | !ENDIF | |
551 | ||
45f6403b JD |
552 | # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to |
553 | # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T | |
554 | # preprocessor option to revert back to the old functionality for | |
555 | # backward compatibility. We define this symbol here for older 32-bit | |
556 | # compilers only (which aren't using it at all) for the sole purpose | |
557 | # of getting it into $Config{ccflags}. That way if someone builds | |
558 | # Perl itself with e.g. VC6 but later installs an XS module using VC8 | |
559 | # the time_t types will still be compatible. | |
560 | !IF "$(WIN64)" == "undef" | |
5398666e | 561 | ! IF "$(PREMSVC80)" == "define" |
45f6403b JD |
562 | BUILDOPT = $(BUILDOPT) -D_USE_32BIT_TIME_T |
563 | ! ENDIF | |
564 | !ENDIF | |
565 | ||
9cef8306 | 566 | LIBBASEFILES = \ |
9e42cd94 GS |
567 | oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \ |
568 | comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ | |
036c1c1e | 569 | netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \ |
4ebea3c6 | 570 | version.lib odbc32.lib odbccp32.lib comctl32.lib |
c623ac67 | 571 | |
3aa3d69a | 572 | !IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141" |
1f664ef5 SH |
573 | ! IF "$(CFG)" == "DebugFull" |
574 | LIBBASEFILES = $(LIBBASEFILES) msvcrtd.lib vcruntimed.lib | |
575 | ! ELSE | |
576 | LIBBASEFILES = $(LIBBASEFILES) msvcrt.lib vcruntime.lib | |
577 | ! ENDIF | |
578 | !ENDIF | |
579 | ||
a48cc4c4 DD |
580 | # Avoid __intel_new_proc_init link error for libircmt. |
581 | # libmmd is /MD equivelent, other variants exist. | |
582 | # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99, | |
583 | # and optimized C89 funcs | |
584 | !IF "$(__ICC)" == "define" | |
585 | LIBBASEFILES = $(LIBBASEFILES) libircmt.lib libmmd.lib | |
586 | !ENDIF | |
587 | ||
02e200fc JD |
588 | # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which |
589 | # doesn't include the buffer overrun verification code used by the /GS switch. | |
9453ddcd | 590 | # Since the code links against libraries that are compiled with /GS, this |
02e200fc JD |
591 | # "security cookie verification" code must be included via bufferoverflow.lib. |
592 | !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1" | |
9453ddcd | 593 | LIBBASEFILES = $(LIBBASEFILES) bufferoverflowU.lib |
c623ac67 | 594 | !ENDIF |
9e42cd94 | 595 | |
9e42cd94 GS |
596 | LIBFILES = $(LIBBASEFILES) $(LIBC) |
597 | ||
a5ca303d | 598 | #EXTRACFLAGS = -nologo -GF -W4 -wd4127 -wd4706 |
9453ddcd | 599 | EXTRACFLAGS = -nologo -GF -W3 |
312159d9 DD |
600 | !IF "$(__ICC)" == "define" |
601 | EXTRACFLAGS = $(EXTRACFLAGS) -Qstd=c99 | |
602 | !ENDIF | |
f9bbfafd SH |
603 | !IF "$(USE_CPLUSPLUS)" == "define" |
604 | EXTRACFLAGS = $(EXTRACFLAGS) $(CXX_FLAG) | |
605 | !ENDIF | |
bb275e72 | 606 | CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
9e42cd94 GS |
607 | $(PCHFLAGS) $(OPTIMIZE) |
608 | LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \ | |
609 | -libpath:"$(INST_COREDIR)" \ | |
610 | -machine:$(PROCESSOR_ARCHITECTURE) | |
a9e3f359 | 611 | LIB_FLAGS = $(LIB_FLAGS) -nologo |
9e42cd94 GS |
612 | OBJOUT_FLAG = -Fo |
613 | EXEOUT_FLAG = -Fe | |
614 | ||
615 | CFLAGS_O = $(CFLAGS) $(BUILDOPT) | |
616 | ||
5398666e | 617 | !IF "$(PREMSVC80)" == "undef" |
67c6176d | 618 | PRIV_LINK_FLAGS = $(PRIV_LINK_FLAGS) "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" |
4ebea3c6 JD |
619 | !ELSE |
620 | RSC_FLAGS = -DINCLUDE_MANIFEST | |
621 | !ENDIF | |
622 | ||
58998b2a SH |
623 | # VS 2017 (VC++ 14.1) requires at minimum Windows 7 SP1 (with latest Windows Updates) |
624 | ||
b2e53f8c SH |
625 | # For XP support in >= VS 2013 (VC++ 12.0), subsystem is always in Config.pm |
626 | # LINK_FLAGS else subsystem is only needed for EXE building, not XS DLL building | |
269713a1 DD |
627 | # Console vs GUI makes no difference for DLLs, so use default for cleaner |
628 | # building cmd lines | |
3aa3d69a | 629 | !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140" |
269713a1 DD |
630 | ! IF "$(WIN64)" == "define" |
631 | LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.02" | |
632 | ! ELSE | |
633 | LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.01" | |
634 | ! ENDIF | |
269713a1 DD |
635 | |
636 | !ELSE | |
67c6176d | 637 | PRIV_LINK_FLAGS = $(PRIV_LINK_FLAGS) -subsystem:console |
269713a1 DD |
638 | !ENDIF |
639 | ||
640 | BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS) | |
4ebea3c6 | 641 | |
9e42cd94 GS |
642 | #################### do not edit below this line ####################### |
643 | ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ############## | |
644 | ||
645 | o = .obj | |
646 | ||
647 | # | |
648 | # Rules | |
649 | # | |
650 | ||
9c958f05 | 651 | #clear the list, we dont support .cxx .bas .cbl .for .pas .f .f90 |
f4eedc6b DD |
652 | # .asm .cpp are not currently used but they are included for completeness |
653 | .SUFFIXES : | |
654 | .SUFFIXES : .c $(o) .cpp .asm .dll .lib .exe .rc .res | |
9e42cd94 GS |
655 | |
656 | .c$(o): | |
657 | $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $< | |
658 | ||
61b311ca DD |
659 | .c.i: |
660 | $(CC) -c -I$(<D) $(CFLAGS_O) -P $(OBJOUT_FLAG)$@ $< | |
661 | ||
9e42cd94 GS |
662 | .y.c: |
663 | $(NOOP) | |
664 | ||
665 | $(o).dll: | |
269713a1 DD |
666 | $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \ |
667 | -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL) | |
c8e599d3 | 668 | $(EMBED_DLL_MANI) |
9e42cd94 GS |
669 | |
670 | .rc.res: | |
4ebea3c6 | 671 | $(RSC) -i.. $(RSC_FLAGS) $< |
9e42cd94 GS |
672 | |
673 | # | |
674 | # various targets | |
675 | ||
676 | # makedef.pl must be updated if this changes, and this should normally | |
677 | # only change when there is an incompatible revision of the public API. | |
6612e40e S |
678 | PERLIMPLIB = ..\perl527.lib |
679 | PERLSTATICLIB = ..\perl527s.lib | |
680 | PERLDLL = ..\perl527.dll | |
9e42cd94 GS |
681 | |
682 | MINIPERL = ..\miniperl.exe | |
683 | MINIDIR = .\mini | |
684 | PERLEXE = ..\perl.exe | |
685 | WPERLEXE = ..\wperl.exe | |
4e036e4b | 686 | PERLEXESTATIC = ..\perl-static.exe |
9e42cd94 | 687 | GLOBEXE = ..\perlglob.exe |
04bae4fb | 688 | CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl |
202d1001 | 689 | GENUUDMAP = ..\generate_uudmap.exe |
eb4420e6 | 690 | !IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define" |
4e036e4b VK |
691 | PERLSTATIC = static |
692 | !ELSE | |
693 | PERLSTATIC = | |
694 | !ENDIF | |
5b04aee6 | 695 | |
ca12659b | 696 | # Unicode data files generated by mktables |
36ff7f95 SH |
697 | FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl |
698 | UNIDATAFILES = ..\lib\unicore\Decomposition.pl \ | |
7ebf06b3 | 699 | ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \ |
1a234f2b KW |
700 | ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \ |
701 | ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \ | |
3e344d15 | 702 | ..\lib\unicore\TestProp.pl |
ca12659b NC |
703 | |
704 | # Directories of Unicode data files generated by mktables | |
27a8011f SH |
705 | UNIDATADIR1 = ..\lib\unicore\To |
706 | UNIDATADIR2 = ..\lib\unicore\lib | |
ca12659b | 707 | |
4ebea3c6 | 708 | PERLEXE_MANIFEST= .\perlexe.manifest |
3890b58f RGS |
709 | PERLEXE_ICO = .\perlexe.ico |
710 | PERLEXE_RES = .\perlexe.res | |
711 | PERLDLL_RES = | |
712 | ||
9e42cd94 GS |
713 | # Nominate a target which causes extensions to be re-built |
714 | # This used to be $(PERLEXE), but at worst it is the .dll that they depend | |
715 | # on and really only the interface - i.e. the .def file used to export symbols | |
716 | # from the .dll | |
717 | PERLDEP = perldll.def | |
718 | ||
719 | PL2BAT = bin\pl2bat.pl | |
720 | GLOBBAT = bin\perlglob.bat | |
721 | ||
722 | UTILS = \ | |
723 | ..\utils\h2ph \ | |
724 | ..\utils\splain \ | |
9e42cd94 GS |
725 | ..\utils\perlbug \ |
726 | ..\utils\pl2pm \ | |
9e42cd94 GS |
727 | ..\utils\h2xs \ |
728 | ..\utils\perldoc \ | |
9e42cd94 GS |
729 | ..\utils\perlivp \ |
730 | ..\utils\libnetcfg \ | |
827a599d | 731 | ..\utils\enc2xs \ |
59658819 | 732 | ..\utils\encguess \ |
827a599d | 733 | ..\utils\piconv \ |
18a1cebe | 734 | ..\utils\corelist \ |
83cd6e83 | 735 | ..\utils\cpan \ |
ea0e987d | 736 | ..\utils\xsubpp \ |
4b618757 | 737 | ..\utils\prove \ |
291d3373 | 738 | ..\utils\ptar \ |
b8669316 | 739 | ..\utils\ptardiff \ |
deabda19 | 740 | ..\utils\ptargrep \ |
08ad9465 | 741 | ..\utils\zipdetails \ |
3ddf9550 | 742 | ..\utils\shasum \ |
ea0e987d | 743 | ..\utils\instmodsh \ |
84f04405 | 744 | ..\utils\json_pp \ |
d658129c | 745 | ..\utils\pod2html \ |
9e42cd94 GS |
746 | bin\exetype.pl \ |
747 | bin\runperl.pl \ | |
748 | bin\pl2bat.pl \ | |
749 | bin\perlglob.pl \ | |
750 | bin\search.pl | |
751 | ||
752 | MAKE = nmake -nologo | |
753 | MAKE_BARE = nmake | |
754 | ||
755 | CFGSH_TMPL = config.vc | |
756 | CFGH_TMPL = config_H.vc | |
757 | ||
b6ed7314 YO |
758 | XCOPY = xcopy /f /r /i /d /y |
759 | RCOPY = xcopy /f /r /i /e /d /y | |
65980d94 | 760 | NOOP = @rem |
9e42cd94 GS |
761 | NULL = |
762 | ||
763 | DEL = del | |
764 | ||
9e42cd94 GS |
765 | MICROCORE_SRC = \ |
766 | ..\av.c \ | |
0f8f167c | 767 | ..\caretx.c \ |
9e42cd94 GS |
768 | ..\deb.c \ |
769 | ..\doio.c \ | |
770 | ..\doop.c \ | |
a55c5245 | 771 | ..\dquote.c \ |
9e42cd94 GS |
772 | ..\dump.c \ |
773 | ..\globals.c \ | |
774 | ..\gv.c \ | |
8b371338 | 775 | ..\mro_core.c \ |
9e42cd94 GS |
776 | ..\hv.c \ |
777 | ..\locale.c \ | |
26ea9e12 | 778 | ..\keywords.c \ |
a0d89a74 | 779 | ..\mathoms.c \ |
9e42cd94 GS |
780 | ..\mg.c \ |
781 | ..\numeric.c \ | |
782 | ..\op.c \ | |
295f0f84 | 783 | ..\pad.c \ |
9e42cd94 GS |
784 | ..\perl.c \ |
785 | ..\perlapi.c \ | |
786 | ..\perly.c \ | |
787 | ..\pp.c \ | |
788 | ..\pp_ctl.c \ | |
789 | ..\pp_hot.c \ | |
790 | ..\pp_pack.c \ | |
791 | ..\pp_sort.c \ | |
792 | ..\pp_sys.c \ | |
10bc17b6 | 793 | ..\reentr.c \ |
9e42cd94 GS |
794 | ..\regcomp.c \ |
795 | ..\regexec.c \ | |
796 | ..\run.c \ | |
797 | ..\scope.c \ | |
798 | ..\sv.c \ | |
799 | ..\taint.c \ | |
f832b29a | 800 | ..\time64.c \ |
9e42cd94 GS |
801 | ..\toke.c \ |
802 | ..\universal.c \ | |
803 | ..\utf8.c \ | |
48462a74 | 804 | ..\util.c |
9e42cd94 GS |
805 | |
806 | EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c | |
807 | ||
808 | !IF "$(PERL_MALLOC)" == "define" | |
809 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c | |
810 | !ENDIF | |
811 | ||
812 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c | |
813 | ||
814 | WIN32_SRC = \ | |
815 | .\win32.c \ | |
8c847e66 | 816 | .\win32io.c \ |
9e42cd94 | 817 | .\win32sck.c \ |
9cef8306 JD |
818 | .\win32thread.c \ |
819 | .\fcrypt.c | |
9e42cd94 | 820 | |
9e42cd94 GS |
821 | CORE_NOCFG_H = \ |
822 | ..\av.h \ | |
823 | ..\cop.h \ | |
824 | ..\cv.h \ | |
825 | ..\dosish.h \ | |
826 | ..\embed.h \ | |
827 | ..\form.h \ | |
828 | ..\gv.h \ | |
829 | ..\handy.h \ | |
830 | ..\hv.h \ | |
4d3a042d | 831 | ..\hv_func.h \ |
9e42cd94 GS |
832 | ..\iperlsys.h \ |
833 | ..\mg.h \ | |
834 | ..\nostdio.h \ | |
835 | ..\op.h \ | |
836 | ..\opcode.h \ | |
837 | ..\perl.h \ | |
838 | ..\perlapi.h \ | |
839 | ..\perlsdio.h \ | |
9e42cd94 GS |
840 | ..\perly.h \ |
841 | ..\pp.h \ | |
842 | ..\proto.h \ | |
cdb0f547 | 843 | ..\regcomp.h \ |
9e42cd94 GS |
844 | ..\regexp.h \ |
845 | ..\scope.h \ | |
846 | ..\sv.h \ | |
847 | ..\thread.h \ | |
848 | ..\unixish.h \ | |
849 | ..\utf8.h \ | |
850 | ..\util.h \ | |
851 | ..\warnings.h \ | |
852 | ..\XSUB.h \ | |
853 | ..\EXTERN.h \ | |
854 | ..\perlvars.h \ | |
855 | ..\intrpvar.h \ | |
9e42cd94 GS |
856 | .\include\dirent.h \ |
857 | .\include\netdb.h \ | |
c44e86c9 | 858 | .\include\sys\errno2.h \ |
9e42cd94 GS |
859 | .\include\sys\socket.h \ |
860 | .\win32.h | |
861 | ||
a148edb6 | 862 | CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h |
9e42cd94 | 863 | |
202d1001 | 864 | UUDMAP_H = ..\uudmap.h |
efa50c51 | 865 | BITCOUNT_H = ..\bitcount.h |
6f83ef0e | 866 | MG_DATA_H = ..\mg_data.h |
9387abf8 | 867 | GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H) |
202d1001 | 868 | |
9e42cd94 GS |
869 | MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj) |
870 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj) | |
871 | WIN32_OBJ = $(WIN32_SRC:.c=.obj) | |
872 | MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \ | |
873 | $(MINIDIR)\miniperlmain$(o) \ | |
874 | $(MINIDIR)\perlio$(o) | |
875 | MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\) | |
876 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) | |
281da5ea | 877 | DLL_OBJ = $(DYNALOADER) |
202d1001 | 878 | GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj) |
9e42cd94 GS |
879 | |
880 | PERLDLL_OBJ = $(CORE_OBJ) | |
881 | PERLEXE_OBJ = perlmain$(o) | |
4e036e4b | 882 | PERLEXEST_OBJ = perlmainst$(o) |
9e42cd94 GS |
883 | |
884 | PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ) | |
9e42cd94 GS |
885 | |
886 | !IF "$(USE_SETARGV)" != "" | |
887 | SETARGV_OBJ = setargv$(o) | |
888 | !ENDIF | |
889 | ||
a1f2e719 VK |
890 | !IF "$(ALL_STATIC)" == "define" |
891 | # some exclusions, unfortunately, until fixed: | |
903f2d70 | 892 | # - MakeMaker isn't capable enough for SDBM_File (small bug) |
13cedc2a | 893 | STATIC_EXT = * !SDBM_File |
a1f2e719 VK |
894 | !ELSE |
895 | # specify static extensions here, for example: | |
7a278470 SH |
896 | # (be sure to include Win32CORE to load Win32 on demand) |
897 | #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib | |
78ff2d7b | 898 | STATIC_EXT = Win32CORE |
a1f2e719 | 899 | !ENDIF |
595589fa | 900 | |
281da5ea | 901 | DYNALOADER = ..\DynaLoader$(o) |
9e42cd94 | 902 | |
9e42cd94 | 903 | CFG_VARS = \ |
9e42cd94 GS |
904 | "INST_TOP=$(INST_TOP)" \ |
905 | "INST_VER=$(INST_VER)" \ | |
906 | "INST_ARCH=$(INST_ARCH)" \ | |
907 | "archname=$(ARCHNAME)" \ | |
908 | "cc=$(CC)" \ | |
909 | "ld=$(LINK32)" \ | |
bb275e72 | 910 | "ccflags=$(EXTRACFLAGS) $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \ |
f9bbfafd | 911 | "usecplusplus=$(USE_CPLUSPLUS)" \ |
9e42cd94 | 912 | "cf_email=$(EMAIL)" \ |
9e42cd94 GS |
913 | "d_mymalloc=$(PERL_MALLOC)" \ |
914 | "libs=$(LIBFILES)" \ | |
915 | "incpath=$(CCINCDIR:"=\")" \ | |
916 | "libperl=$(PERLIMPLIB:..\=)" \ | |
917 | "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \ | |
918 | "libc=$(LIBC)" \ | |
919 | "make=$(MAKE_BARE)" \ | |
d2b25974 | 920 | "static_ext=$(STATIC_EXT)" \ |
7e0017d3 | 921 | "usethreads=$(USE_ITHREADS)" \ |
9e42cd94 | 922 | "useithreads=$(USE_ITHREADS)" \ |
9e42cd94 | 923 | "usemultiplicity=$(USE_MULTI)" \ |
1f64ae15 | 924 | "use64bitint=$(USE_64_BIT_INT)" \ |
c674478b | 925 | "uselongdouble=undef" \ |
4a9d6100 | 926 | "uselargefiles=$(USE_LARGE_FILES)" \ |
7ada00a0 | 927 | "usesitecustomize=$(USE_SITECUST)" \ |
458ea8f7 | 928 | "default_inc_excludes_dot=$(DEFAULT_INC_EXCLUDES_DOT)" \ |
9e42cd94 | 929 | "LINK_FLAGS=$(LINK_FLAGS:"=\")" \ |
1f64ae15 SH |
930 | "optimize=$(OPTIMIZE:"=\")" \ |
931 | "WIN64=$(WIN64)" | |
9e42cd94 GS |
932 | |
933 | # | |
934 | # Top targets | |
935 | # | |
936 | ||
7b4d95f7 | 937 | all : .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \ |
e5a8a0fb | 938 | $(UNIDATAFILES) MakePPPort $(PERLEXE) Extensions_nonxs Extensions $(PERLSTATIC) |
9e42cd94 GS |
939 | @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite. |
940 | ||
c900f745 | 941 | regnodes : ..\regnodes.h |
5d458dd8 | 942 | |
5b04aee6 | 943 | ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h |
e64b1bd1 YO |
944 | |
945 | ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h | |
946 | ||
7b4d95f7 | 947 | reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \ |
e5a8a0fb | 948 | $(UNIDATAFILES) $(PERLEXE) Extensions_reonly |
a24cc0c0 YO |
949 | @echo Perl and 're' are up to date. |
950 | ||
4e036e4b VK |
951 | static: $(PERLEXESTATIC) |
952 | ||
9e42cd94 GS |
953 | #------------------------------------------------------------ |
954 | ||
955 | $(GLOBEXE) : perlglob$(o) | |
269713a1 | 956 | $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ \ |
9e42cd94 | 957 | perlglob$(o) setargv$(o) |
c8e599d3 | 958 | $(EMBED_EXE_MANI) |
9e42cd94 GS |
959 | |
960 | perlglob$(o) : perlglob.c | |
961 | ||
1f64ae15 SH |
962 | # |
963 | # Copy the template config.h and set configurables at the end of it | |
964 | # as per the options chosen and compiler used. | |
965 | # Note: This config.h is only used to build miniperl.exe anyway, but | |
966 | # it's as well to have its options correct to be sure that it builds | |
967 | # and so that it's "-V" options are correct for use by makedef.pl. The | |
968 | # real config.h used to build perl.exe is generated from the top-level | |
969 | # config_h.SH by config_h.PL (run by miniperl.exe). | |
970 | # | |
9e42cd94 GS |
971 | .\config.h : $(CFGH_TMPL) |
972 | -del /f config.h | |
973 | copy $(CFGH_TMPL) config.h | |
1f64ae15 SH |
974 | @echo.>>$@ |
975 | @echo #ifndef _config_h_footer_>>$@ | |
976 | @echo #define _config_h_footer_>>$@ | |
3aa3d69a | 977 | !IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141" |
1f664ef5 SH |
978 | @echo #undef FILE_ptr>>$@ |
979 | @echo #define FILE_ptr(fp) PERLIO_FILE_ptr(fp)>>$@ | |
980 | @echo #undef FILE_cnt>>$@ | |
981 | @echo #define FILE_cnt(fp) PERLIO_FILE_cnt(fp)>>$@ | |
982 | @echo #undef FILE_base>>$@ | |
983 | @echo #define FILE_base(fp) PERLIO_FILE_base(fp)>>$@ | |
984 | @echo #undef FILE_bufsiz>>$@ | |
985 | @echo #define FILE_bufsiz(fp) (PERLIO_FILE_cnt(fp) + PERLIO_FILE_ptr(fp) - PERLIO_FILE_base(fp))>>$@ | |
986 | @echo #define I_STDBOOL>>$@ | |
987 | !ENDIF | |
200b4fd9 SH |
988 | @echo #undef Off_t>>$@ |
989 | @echo #undef LSEEKSIZE>>$@ | |
990 | @echo #undef Off_t_size>>$@ | |
1f64ae15 SH |
991 | @echo #undef PTRSIZE>>$@ |
992 | @echo #undef SSize_t>>$@ | |
993 | @echo #undef HAS_ATOLL>>$@ | |
994 | @echo #undef HAS_STRTOLL>>$@ | |
995 | @echo #undef HAS_STRTOULL>>$@ | |
996 | @echo #undef IVTYPE>>$@ | |
997 | @echo #undef UVTYPE>>$@ | |
998 | @echo #undef IVSIZE>>$@ | |
999 | @echo #undef UVSIZE>>$@ | |
1000 | @echo #undef NV_PRESERVES_UV>>$@ | |
1001 | @echo #undef NV_PRESERVES_UV_BITS>>$@ | |
1002 | @echo #undef IVdf>>$@ | |
1003 | @echo #undef UVuf>>$@ | |
1004 | @echo #undef UVof>>$@ | |
1005 | @echo #undef UVxf>>$@ | |
1006 | @echo #undef UVXf>>$@ | |
1007 | @echo #undef USE_64_BIT_INT>>$@ | |
1008 | @echo #undef Size_t_size>>$@ | |
f9bbfafd | 1009 | @echo #undef USE_CPLUSPLUS>>$@ |
200b4fd9 SH |
1010 | !IF "$(USE_LARGE_FILES)"=="define" |
1011 | @echo #define Off_t __int64>>$@ | |
1012 | @echo #define LSEEKSIZE ^8>>$@ | |
1013 | @echo #define Off_t_size ^8>>$@ | |
1014 | !ELSE | |
1015 | @echo #define Off_t long>>$@ | |
1016 | @echo #define LSEEKSIZE ^4>>$@ | |
1017 | @echo #define Off_t_size ^4>>$@ | |
1018 | !ENDIF | |
1f64ae15 SH |
1019 | !IF "$(WIN64)"=="define" |
1020 | @echo #define PTRSIZE ^8>>$@ | |
1021 | @echo #define SSize_t __int64>>$@ | |
1022 | @echo #define HAS_ATOLL>>$@ | |
1023 | @echo #define HAS_STRTOLL>>$@ | |
1024 | @echo #define HAS_STRTOULL>>$@ | |
1025 | @echo #define Size_t_size ^8>>$@ | |
1026 | !ELSE | |
1027 | @echo #define PTRSIZE ^4>>$@ | |
1028 | @echo #define SSize_t int>>$@ | |
1029 | @echo #undef HAS_ATOLL>>$@ | |
1030 | @echo #undef HAS_STRTOLL>>$@ | |
1031 | @echo #undef HAS_STRTOULL>>$@ | |
1032 | @echo #define Size_t_size ^4>>$@ | |
1033 | !ENDIF | |
1034 | !IF "$(USE_64_BIT_INT)"=="define" | |
1035 | @echo #define IVTYPE __int64>>$@ | |
1036 | @echo #define UVTYPE unsigned __int64>>$@ | |
1037 | @echo #define IVSIZE ^8>>$@ | |
1038 | @echo #define UVSIZE ^8>>$@ | |
1039 | @echo #undef NV_PRESERVES_UV>>$@ | |
1040 | @echo #define NV_PRESERVES_UV_BITS 53>>$@ | |
1041 | @echo #define IVdf "I64d">>$@ | |
1042 | @echo #define UVuf "I64u">>$@ | |
1043 | @echo #define UVof "I64o">>$@ | |
1044 | @echo #define UVxf "I64x">>$@ | |
1045 | @echo #define UVXf "I64X">>$@ | |
1046 | @echo #define USE_64_BIT_INT>>$@ | |
1047 | !ELSE | |
1048 | @echo #define IVTYPE long>>$@ | |
1049 | @echo #define UVTYPE unsigned long>>$@ | |
1050 | @echo #define IVSIZE ^4>>$@ | |
1051 | @echo #define UVSIZE ^4>>$@ | |
1052 | @echo #define NV_PRESERVES_UV>>$@ | |
1053 | @echo #define NV_PRESERVES_UV_BITS 32>>$@ | |
1054 | @echo #define IVdf "ld">>$@ | |
1055 | @echo #define UVuf "lu">>$@ | |
1056 | @echo #define UVof "lo">>$@ | |
1057 | @echo #define UVxf "lx">>$@ | |
1058 | @echo #define UVXf "lX">>$@ | |
1059 | @echo #undef USE_64_BIT_INT>>$@ | |
1060 | !ENDIF | |
f9bbfafd SH |
1061 | !IF "$(USE_CPLUSPLUS)"=="define" |
1062 | @echo #define USE_CPLUSPLUS>>$@ | |
1063 | !ELSE | |
1064 | @echo #undef USE_CPLUSPLUS>>$@ | |
1065 | !ENDIF | |
1f64ae15 | 1066 | @echo #endif>>$@ |
9e42cd94 | 1067 | |
04bf47ee | 1068 | ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl |
d801a0eb | 1069 | cd .. && miniperl -Ilib make_patchnum.pl && cd win32 |
a148edb6 | 1070 | |
931482b7 NC |
1071 | # make sure that we recompile perl.c if the git version changes |
1072 | ..\perl$(o) : ..\git_version.h | |
a148edb6 | 1073 | |
771d08d0 SH |
1074 | ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(MINIPERL) |
1075 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh | |
9e42cd94 | 1076 | |
1f64ae15 SH |
1077 | # This target is for when changes to the main config.sh happen. |
1078 | # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI, | |
8c847e66 | 1079 | # ITHREADS, IMP_SYS and LARGE_FILES off), then make this target |
76febb1c | 1080 | # to regenerate config_H.vc. |
9e42cd94 | 1081 | regen_config_h: |
76febb1c | 1082 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh |
4e73d6a4 | 1083 | $(MINIPERL) -I..\lib ..\configpm --chdir=.. |
9e42cd94 | 1084 | -del /f $(CFGH_TMPL) |
f6b3c354 | 1085 | -$(MINIPERL) -I..\lib config_h.PL |
9e42cd94 GS |
1086 | rename config.h $(CFGH_TMPL) |
1087 | ||
7b4d95f7 | 1088 | $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL |
4e73d6a4 | 1089 | $(MINIPERL) -I..\lib ..\configpm --chdir=.. |
9e42cd94 GS |
1090 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
1091 | $(XCOPY) *.h $(COREDIR)\*.* | |
9e42cd94 | 1092 | $(RCOPY) include $(COREDIR)\*.* |
f6b3c354 | 1093 | -$(MINIPERL) -I..\lib config_h.PL |
9e42cd94 GS |
1094 | if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM) |
1095 | ||
cb251201 NC |
1096 | # See the comment in Makefile.SH explaining this seemingly cranky ordering |
1097 | $(MINIPERL) : ..\lib\buildcustomize.pl | |
5e4c4c91 | 1098 | |
a9e545b9 | 1099 | ..\lib\buildcustomize.pl : $(MINIDIR) $(MINI_OBJ) ..\write_buildcustomize.pl |
269713a1 | 1100 | $(LINK32) -out:$(MINIPERL) @<< |
6937817d | 1101 | $(BLINK_FLAGS) $(DELAYLOAD) $(MINIDELAYLOAD) $(LIBFILES) $(MINI_OBJ) |
9e42cd94 | 1102 | << |
02bfb73b | 1103 | $(EMBED_EXE_MANI:..\lib\buildcustomize.pl=..\miniperl.exe) |
b78ac715 | 1104 | $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl .. |
9e42cd94 GS |
1105 | |
1106 | $(MINIDIR) : | |
1107 | if not exist "$(MINIDIR)" mkdir "$(MINIDIR)" | |
1108 | ||
1109 | $(MINICORE_OBJ) : $(CORE_NOCFG_H) | |
8c4561fb | 1110 | $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c |
9e42cd94 GS |
1111 | |
1112 | $(MINIWIN32_OBJ) : $(CORE_NOCFG_H) | |
a19baa61 | 1113 | $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*F).c |
9e42cd94 GS |
1114 | |
1115 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c | |
1116 | # This is the only file that depends on perlhost.h, vmem.h, and vdir.h | |
1117 | !IF "$(USE_IMP_SYS)" == "define" | |
1118 | perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h | |
1119 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c | |
1120 | !ENDIF | |
1121 | ||
1122 | # 1. we don't want to rebuild miniperl.exe when config.h changes | |
1123 | # 2. we don't want to rebuild miniperl.exe with non-default config.h | |
931482b7 | 1124 | # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it |
9e42cd94 GS |
1125 | $(MINI_OBJ) : $(CORE_NOCFG_H) |
1126 | ||
1127 | $(WIN32_OBJ) : $(CORE_H) | |
1128 | $(CORE_OBJ) : $(CORE_H) | |
1129 | $(DLL_OBJ) : $(CORE_H) | |
9e42cd94 | 1130 | |
d500e60d | 1131 | perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl |
c6d234b8 | 1132 | $(MINIPERL) -I..\lib create_perllibst_h.pl |
c1effa61 | 1133 | $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \ |
080c3729 | 1134 | CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def |
9e42cd94 | 1135 | |
595589fa | 1136 | $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static |
6368ab83 TC |
1137 | $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @Extensions_static @<< |
1138 | $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES) | |
9e42cd94 | 1139 | << |
c8e599d3 | 1140 | $(EMBED_DLL_MANI) |
9e42cd94 GS |
1141 | $(XCOPY) $(PERLIMPLIB) $(COREDIR) |
1142 | ||
4e036e4b VK |
1143 | $(PERLSTATICLIB): Extensions_static |
1144 | $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<< | |
1145 | $(PERLDLL_OBJ) | |
1146 | << | |
1147 | $(XCOPY) $(PERLSTATICLIB) $(COREDIR) | |
1148 | ||
4ebea3c6 | 1149 | $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO) |
e84ac4e2 | 1150 | |
9387abf8 | 1151 | $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS) |
9444d213 | 1152 | |
6f83ef0e | 1153 | $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H) |
6999193b NC |
1154 | |
1155 | $(BITCOUNT_H) : $(GENUUDMAP) | |
9387abf8 | 1156 | $(GENUUDMAP) $(GENERATED_HEADERS) |
6f83ef0e NC |
1157 | |
1158 | $(GENUUDMAP_OBJ) : ..\mg_raw.h | |
9444d213 | 1159 | |
202d1001 | 1160 | $(GENUUDMAP) : $(GENUUDMAP_OBJ) |
269713a1 DD |
1161 | $(LINK32) -out:$@ @<< |
1162 | $(BLINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ) | |
202d1001 SH |
1163 | << |
1164 | $(EMBED_EXE_MANI) | |
9444d213 | 1165 | |
9e42cd94 GS |
1166 | perlmain.c : runperl.c |
1167 | copy runperl.c perlmain.c | |
1168 | ||
1169 | perlmain$(o) : perlmain.c | |
88c9158a | 1170 | $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c |
9e42cd94 | 1171 | |
4e036e4b VK |
1172 | perlmainst.c : runperl.c |
1173 | copy runperl.c perlmainst.c | |
1174 | ||
1175 | perlmainst$(o) : perlmainst.c | |
88c9158a | 1176 | $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c |
4e036e4b | 1177 | |
931482b7 | 1178 | $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) |
269713a1 | 1179 | $(LINK32) -out:$@ $(BLINK_FLAGS) \ |
aafd2430 | 1180 | $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ) |
c8e599d3 | 1181 | $(EMBED_EXE_MANI) |
9e42cd94 GS |
1182 | copy $(PERLEXE) $(WPERLEXE) |
1183 | $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS | |
9e42cd94 | 1184 | |
931482b7 | 1185 | $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES) |
269713a1 | 1186 | $(LINK32) -out:$@ $(BLINK_FLAGS) \ |
aafd2430 | 1187 | $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ) |
4e036e4b VK |
1188 | $(EMBED_EXE_MANI) |
1189 | ||
d1a21686 | 1190 | MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs |
f6b3c354 | 1191 | $(MINIPERL) -I..\lib ..\mkppport |
42e07562 | 1192 | |
9dcb9602 | 1193 | #------------------------------------------------------------------------------- |
281da5ea | 1194 | # There's no direct way to mark a dependency on |
6afd19bc | 1195 | # DynaLoader.pm, so this will have to do |
5e4c4c91 | 1196 | Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER) |
a5ca303d | 1197 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 1198 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic |
595589fa | 1199 | |
5e4c4c91 | 1200 | Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER) |
a5ca303d | 1201 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 1202 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re |
a24cc0c0 | 1203 | |
183ebedc | 1204 | Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs |
a5ca303d | 1205 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 1206 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static |
c6d234b8 | 1207 | $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static |
9e42cd94 | 1208 | |
291c8c21 | 1209 | Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod |
a34ce875 | 1210 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 1211 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs |
a34ce875 | 1212 | |
5e4c4c91 | 1213 | $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs |
281da5ea NC |
1214 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
1215 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader | |
1216 | ||
9e42cd94 | 1217 | Extensions_clean: |
a193a2db | 1218 | -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean |
9e42cd94 | 1219 | |
b4dc1df6 | 1220 | Extensions_realclean: |
a193a2db | 1221 | -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean |
b4dc1df6 | 1222 | |
9dcb9602 | 1223 | #------------------------------------------------------------------------------- |
9e42cd94 | 1224 | |
0195b144 | 1225 | doc: $(PERLEXE) ..\pod\perltoc.pod |
a4e8ab8a | 1226 | $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \ |
f8dbed5a | 1227 | --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML::=|)" \ |
9b1d99d7 | 1228 | --recurse |
9e42cd94 | 1229 | |
0827416d NC |
1230 | ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL |
1231 | $(MINIPERL) -I..\lib ..\utils\Makefile.PL .. | |
1232 | ||
b0b6bf2b AT |
1233 | # Note that this next section is parsed (and regenerated) by pod/buildtoc |
1234 | # so please check that script before making structural changes here | |
1235 | ||
e5a8a0fb | 1236 | utils: $(PERLEXE) ..\utils\Makefile |
9e42cd94 GS |
1237 | cd ..\utils |
1238 | $(MAKE) PERL=$(MINIPERL) | |
1239 | cd ..\pod | |
b0b6bf2b AT |
1240 | copy ..\README.aix ..\pod\perlaix.pod |
1241 | copy ..\README.amiga ..\pod\perlamiga.pod | |
6001596e | 1242 | copy ..\README.android ..\pod\perlandroid.pod |
b0b6bf2b AT |
1243 | copy ..\README.bs2000 ..\pod\perlbs2000.pod |
1244 | copy ..\README.ce ..\pod\perlce.pod | |
1245 | copy ..\README.cn ..\pod\perlcn.pod | |
1246 | copy ..\README.cygwin ..\pod\perlcygwin.pod | |
b0b6bf2b | 1247 | copy ..\README.dos ..\pod\perldos.pod |
b0b6bf2b | 1248 | copy ..\README.freebsd ..\pod\perlfreebsd.pod |
9f968a8d | 1249 | copy ..\README.haiku ..\pod\perlhaiku.pod |
b0b6bf2b AT |
1250 | copy ..\README.hpux ..\pod\perlhpux.pod |
1251 | copy ..\README.hurd ..\pod\perlhurd.pod | |
1252 | copy ..\README.irix ..\pod\perlirix.pod | |
1253 | copy ..\README.jp ..\pod\perljp.pod | |
1254 | copy ..\README.ko ..\pod\perlko.pod | |
6477b319 | 1255 | copy ..\README.linux ..\pod\perllinux.pod |
b0b6bf2b AT |
1256 | copy ..\README.macos ..\pod\perlmacos.pod |
1257 | copy ..\README.macosx ..\pod\perlmacosx.pod | |
b0b6bf2b | 1258 | copy ..\README.netware ..\pod\perlnetware.pod |
b0846812 | 1259 | copy ..\README.openbsd ..\pod\perlopenbsd.pod |
b0b6bf2b AT |
1260 | copy ..\README.os2 ..\pod\perlos2.pod |
1261 | copy ..\README.os390 ..\pod\perlos390.pod | |
1262 | copy ..\README.os400 ..\pod\perlos400.pod | |
1263 | copy ..\README.plan9 ..\pod\perlplan9.pod | |
1264 | copy ..\README.qnx ..\pod\perlqnx.pod | |
2f08ed66 | 1265 | copy ..\README.riscos ..\pod\perlriscos.pod |
b0b6bf2b | 1266 | copy ..\README.solaris ..\pod\perlsolaris.pod |
27da23d5 | 1267 | copy ..\README.symbian ..\pod\perlsymbian.pod |
58534900 | 1268 | copy ..\README.synology ..\pod\perlsynology.pod |
b0b6bf2b AT |
1269 | copy ..\README.tru64 ..\pod\perltru64.pod |
1270 | copy ..\README.tw ..\pod\perltw.pod | |
b0b6bf2b AT |
1271 | copy ..\README.vos ..\pod\perlvos.pod |
1272 | copy ..\README.win32 ..\pod\perlwin32.pod | |
e6a2e5ca | 1273 | copy ..\pod\perldelta.pod ..\pod\perl5276delta.pod |
9e42cd94 GS |
1274 | cd ..\win32 |
1275 | $(PERLEXE) $(PL2BAT) $(UTILS) | |
f8d6280f | 1276 | $(MINIPERL) -I..\lib ..\autodoc.pl .. |
f556af6c | 1277 | $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q .. |
0195b144 NC |
1278 | |
1279 | ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs | |
b78c1104 | 1280 | $(PERLEXE) -f ..\pod\buildtoc -q |
9e42cd94 | 1281 | |
b0b6bf2b AT |
1282 | # Note that the pod cleanup in this next section is parsed (and regenerated |
1283 | # by pod/buildtoc so please check that script before making changes here | |
1284 | ||
b4dc1df6 | 1285 | distclean: realclean |
9e42cd94 | 1286 | -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ |
7b4d95f7 | 1287 | $(PERLIMPLIB) ..\miniperl.lib $(PERLEXESTATIC) $(PERLSTATICLIB) |
ca67812f SH |
1288 | -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm |
1289 | -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm | |
48462a74 | 1290 | -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm |
9e42cd94 GS |
1291 | -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm |
1292 | -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm | |
1293 | -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm | |
1294 | -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm | |
9e42cd94 GS |
1295 | -del /f $(LIBDIR)\File\Glob.pm |
1296 | -del /f $(LIBDIR)\Storable.pm | |
ca67812f | 1297 | -del /f $(LIBDIR)\Sys\Hostname.pm |
9e42cd94 | 1298 | -del /f $(LIBDIR)\Time\HiRes.pm |
9e42cd94 | 1299 | -del /f $(LIBDIR)\Unicode\Normalize.pm |
4e74047c | 1300 | -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm |
b4ad57f4 | 1301 | -del /f $(LIBDIR)\Win32.pm |
37ca3c28 | 1302 | -del /f $(LIBDIR)\Win32CORE.pm |
00701878 SH |
1303 | -del /f $(LIBDIR)\Win32API\File.pm |
1304 | -del /f $(LIBDIR)\Win32API\File\cFile.pc | |
5e4c4c91 | 1305 | -del /f $(LIBDIR)\buildcustomize.pl |
a85e0e8c | 1306 | -del /f $(DISTDIR)\XSLoader\XSLoader.pm |
5daeb5b0 | 1307 | -del /f *.def *.map |
6e8fbcb5 | 1308 | -if exist $(LIBDIR)\Amiga rmdir /s /q $(LIBDIR)\Amiga |
1a6c65ed SH |
1309 | -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App |
1310 | -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive | |
1311 | -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute | |
1312 | -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie | |
7afc9753 | 1313 | -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp |
46ffdcf0 | 1314 | -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress |
7afc9753 NC |
1315 | -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl |
1316 | -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN | |
9e42cd94 | 1317 | -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data |
1a6c65ed SH |
1318 | -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel |
1319 | -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest | |
ca67812f | 1320 | -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode |
1a6c65ed | 1321 | -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding |
7afc9753 | 1322 | -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter |
1a6c65ed SH |
1323 | -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder |
1324 | -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command | |
1325 | -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant | |
1326 | -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist | |
1327 | -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker | |
7afc9753 NC |
1328 | -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS |
1329 | -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps | |
1a6c65ed SH |
1330 | -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec |
1331 | -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter | |
96c33d98 | 1332 | -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash |
7afc9753 NC |
1333 | -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP |
1334 | -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N | |
df61f5a9 | 1335 | -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc |
1a6c65ed SH |
1336 | -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO |
1337 | -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC | |
7afc9753 | 1338 | -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON |
69f57184 | 1339 | -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List |
1a6c65ed | 1340 | -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale |
1a6c65ed SH |
1341 | -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math |
1342 | -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize | |
69f57184 | 1343 | -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME |
1a6c65ed | 1344 | -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module |
1a6c65ed | 1345 | -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP |
1a6c65ed SH |
1346 | -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params |
1347 | -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse | |
7afc9753 | 1348 | -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl |
1a6c65ed SH |
1349 | -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO |
1350 | -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc | |
1351 | -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple | |
1352 | -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text | |
9e42cd94 | 1353 | -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar |
7afc9753 | 1354 | -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search |
d81c2d6a | 1355 | -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub |
6c4b87ea | 1356 | -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys |
1a6c65ed | 1357 | -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP |
7afc9753 | 1358 | -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term |
1a6c65ed | 1359 | -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test |
b4514920 | 1360 | -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test2 |
7afc9753 | 1361 | -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text |
1a6c65ed | 1362 | -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread |
6c4b87ea | 1363 | -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads |
8cf6f931 | 1364 | -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash |
1a6c65ed | 1365 | -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate |
7afc9753 | 1366 | -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale |
fb794281 | 1367 | -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version |
7afc9753 | 1368 | -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS |
00701878 | 1369 | -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API |
7afc9753 | 1370 | -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS |
60f0ee9d | 1371 | -cd $(PODDIR) && del /f *.html *.bat roffitall \ |
e6a2e5ca | 1372 | perl5276delta.pod perlaix.pod perlamiga.pod perlandroid.pod \ |
6001596e BF |
1373 | perlapi.pod perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \ |
1374 | perldos.pod perlfreebsd.pod perlhaiku.pod perlhpux.pod \ | |
1375 | perlhurd.pod perlintern.pod perlirix.pod perljp.pod perlko.pod \ | |
1376 | perllinux.pod perlmacos.pod perlmacosx.pod perlmodlib.pod \ | |
1377 | perlnetware.pod perlopenbsd.pod perlos2.pod perlos390.pod \ | |
1378 | perlos400.pod perlplan9.pod perlqnx.pod perlriscos.pod \ | |
1379 | perlsolaris.pod perlsymbian.pod perlsynology.pod perltoc.pod \ | |
1380 | perltru64.pod perltw.pod perluniprops.pod perlvos.pod \ | |
1381 | perlwin32.pod | |
2560602c | 1382 | -cd ..\utils && del /f h2ph splain perlbug pl2pm h2xs \ |
59658819 | 1383 | perldoc perlivp libnetcfg enc2xs encguess piconv cpan *.bat \ |
2ea3abd4 | 1384 | xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails |
19ec6f53 | 1385 | -del /f ..\config.sh perlmain.c dlutils.c config.h.new \ |
4e036e4b | 1386 | perlmainst.c |
9e42cd94 | 1387 | -del /f $(CONFIGPM) |
a148edb6 | 1388 | -del /f ..\lib\Config_git.pl |
9e42cd94 | 1389 | -del /f bin\*.bat |
322fd642 | 1390 | -del /f perllibst.h |
4ebea3c6 | 1391 | -del /f $(PERLEXE_RES) perl.base |
85741d00 | 1392 | -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h |
ca67812f | 1393 | -cd $(EXTDIR) && del /s *.def Makefile Makefile.old |
a193a2db | 1394 | -cd $(DISTDIR) && del /s *.def Makefile Makefile.old |
b212a3c6 | 1395 | -cd $(CPANDIR) && del /s *.def Makefile Makefile.old |
0827416d | 1396 | -del /s ..\utils\Makefile |
9e42cd94 | 1397 | -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) |
9e42cd94 | 1398 | -if exist $(COREDIR) rmdir /s /q $(COREDIR) |
b4a41557 | 1399 | -if exist pod2htmd.tmp del pod2htmd.tmp |
b4a41557 | 1400 | -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR) |
0279961e | 1401 | -del /f ..\t\test_state |
9e42cd94 GS |
1402 | |
1403 | install : all installbare installhtml | |
1404 | ||
0195b144 | 1405 | installbare : utils ..\pod\perltoc.pod |
9e42cd94 GS |
1406 | $(PERLEXE) ..\installperl |
1407 | if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* | |
5548433c | 1408 | if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.* |
9e42cd94 | 1409 | $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.* |
ec25c072 | 1410 | if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.* |
9e42cd94 GS |
1411 | $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.* |
1412 | ||
1413 | installhtml : doc | |
b4a41557 | 1414 | $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.* |
9e42cd94 GS |
1415 | |
1416 | inst_lib : $(CONFIGPM) | |
9e42cd94 GS |
1417 | $(RCOPY) ..\lib $(INST_LIB)\*.* |
1418 | ||
58fa074c | 1419 | $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs |
27a8011f | 1420 | cd ..\lib\unicore && \ |
a84da042 | 1421 | ..\$(MINIPERL) -I.. mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE) |
ca12659b | 1422 | |
735ecbe9 | 1423 | minitest : .\config.h $(MINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES) |
6c85d12e SH |
1424 | $(XCOPY) $(MINIPERL) ..\t\$(NULL) |
1425 | if exist ..\t\perl.exe del /f ..\t\perl.exe | |
1426 | rename ..\t\miniperl.exe perl.exe | |
9e42cd94 | 1427 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
a4e8ab8a | 1428 | # Note this perl.exe is miniperl |
49bf91e4 | 1429 | cd ..\t && perl.exe TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t opbasic/*.t op/*.t uni/*.t perf/*.t pragma/*.t |
9e42cd94 | 1430 | |
3bef022b | 1431 | test-prep : all utils ../pod/perltoc.pod |
9e42cd94 GS |
1432 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) |
1433 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1434 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
0b4dcbc1 | 1435 | set PERL_STATIC_EXT=$(STATIC_EXT) |
9e42cd94 GS |
1436 | |
1437 | test : test-prep | |
1438 | cd ..\t | |
a4e8ab8a | 1439 | perl.exe harness $(TEST_SWITCHES) $(TEST_FILES) |
9e42cd94 GS |
1440 | cd ..\win32 |
1441 | ||
247c55c0 CBW |
1442 | test_porting : test-prep |
1443 | cd ..\t | |
a4e8ab8a | 1444 | perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t |
247c55c0 CBW |
1445 | cd ..\win32 |
1446 | ||
6ae7e459 YO |
1447 | test-reonly : reonly utils |
1448 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) | |
1449 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1450 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
1451 | cd ..\t | |
a4e8ab8a | 1452 | perl.exe harness $(OPT) -re \bre\\/ $(EXTRA) |
6ae7e459 | 1453 | cd ..\win32 |
7bcddc65 | 1454 | |
c900f745 | 1455 | regen : |
7bcddc65 YO |
1456 | cd .. |
1457 | regen.pl | |
1458 | cd win32 | |
1459 | ||
9e42cd94 GS |
1460 | test-notty : test-prep |
1461 | set PERL_SKIP_TTY_TEST=1 | |
1462 | cd ..\t | |
a4e8ab8a | 1463 | perl.exe harness $(TEST_SWITCHES) $(TEST_FILES) |
9e42cd94 GS |
1464 | cd ..\win32 |
1465 | ||
b4a93add NK |
1466 | _test : |
1467 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) | |
1468 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1469 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
1470 | cd ..\t | |
a4e8ab8a | 1471 | perl.exe harness $(TEST_SWITCHES) $(TEST_FILES) |
b4a93add NK |
1472 | cd ..\win32 |
1473 | ||
b4dc1df6 | 1474 | _clean : |
9e42cd94 GS |
1475 | -@$(DEL) miniperlmain$(o) |
1476 | -@$(DEL) $(MINIPERL) | |
1477 | -@$(DEL) perlglob$(o) | |
1478 | -@$(DEL) perlmain$(o) | |
4e036e4b | 1479 | -@$(DEL) perlmainst$(o) |
9e42cd94 | 1480 | -@$(DEL) config.h |
a148edb6 | 1481 | -@$(DEL) ..\git_version.h |
9e42cd94 GS |
1482 | -@$(DEL) $(GLOBEXE) |
1483 | -@$(DEL) $(PERLEXE) | |
1484 | -@$(DEL) $(WPERLEXE) | |
4e036e4b VK |
1485 | -@$(DEL) $(PERLEXESTATIC) |
1486 | -@$(DEL) $(PERLSTATICLIB) | |
9e42cd94 GS |
1487 | -@$(DEL) $(PERLDLL) |
1488 | -@$(DEL) $(CORE_OBJ) | |
9387abf8 | 1489 | -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS) |
9e42cd94 | 1490 | -if exist $(MINIDIR) rmdir /s /q $(MINIDIR) |
27a8011f | 1491 | -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1) |
27a8011f | 1492 | -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2) |
ca12659b | 1493 | -@$(DEL) $(UNIDATAFILES) |
27a8011f | 1494 | -@$(DEL) $(WIN32_OBJ) |
9e42cd94 | 1495 | -@$(DEL) $(DLL_OBJ) |
9e42cd94 GS |
1496 | -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res |
1497 | -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat | |
9e42cd94 GS |
1498 | -@$(DEL) *.ilk |
1499 | -@$(DEL) *.pdb | |
9e7cf449 | 1500 | -@$(DEL) Extensions_static |
9e42cd94 | 1501 | |
6e2cec71 | 1502 | clean : Extensions_clean _clean |
b4dc1df6 | 1503 | |
85741d00 | 1504 | realclean : Extensions_realclean _clean |
b4dc1df6 | 1505 | |
9e42cd94 GS |
1506 | # Handy way to run perlbug -ok without having to install and run the |
1507 | # installed perlbug. We don't re-run the tests here - we trust the user. | |
1508 | # Please *don't* use this unless all tests pass. | |
1509 | # If you want to report test failures, use "nmake nok" instead. | |
1510 | ok: utils | |
a4e8ab8a | 1511 | $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" |
9e42cd94 GS |
1512 | |
1513 | okfile: utils | |
a4e8ab8a | 1514 | $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok |
9e42cd94 GS |
1515 | |
1516 | nok: utils | |
a4e8ab8a | 1517 | $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" |
9e42cd94 GS |
1518 | |
1519 | nokfile: utils | |
a4e8ab8a | 1520 | $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok |