This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Bump the perl version in various places for 5.27.11
[perl5.git] / win32 / makefile.mk
1 #
2 # Makefile to build perl on Windows using DMAKE.
3 # Supported compilers:
4 #       Microsoft Visual C++ 6.0 or later
5 #       MinGW with gcc-3.4.5 or later
6 #       Windows SDK 64-bit compiler and tools
7 #
8 # This is set up to build a perl.exe that runs off a shared library
9 # (perl527.dll).  Also makes individual DLLs for the XS extensions.
10 #
11
12 ##
13 ## Make sure you read README.win32 *before* you mess with anything here!
14 ##
15
16 #
17 # Import everything from the environment like NMAKE does.
18 #
19 .IMPORT : .EVERYTHING
20
21 ##
22 ## Build configuration.  Edit the values below to suit your needs.
23 ##
24
25 #
26 # Set these to wherever you want "dmake install" to put your
27 # newly built perl.
28 #
29 INST_DRV        *= c:
30 INST_TOP        *= $(INST_DRV)\perl
31
32 #
33 # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler
34 # on a 64-bit version of Windows.
35 #
36 #WIN64          *= undef
37
38 #
39 # Comment this out if you DON'T want your perl installation to be versioned.
40 # This means that the new installation will overwrite any files from the
41 # old installation at the same INST_TOP location.  Leaving it enabled is
42 # the safest route, as perl adds the extra version directory to all the
43 # locations it installs files to.  If you disable it, an alternative
44 # versioned installation can be obtained by setting INST_TOP above to a
45 # path that includes an arbitrary version string.
46 #
47 #INST_VER       *= \5.27.11
48
49 #
50 # Comment this out if you DON'T want your perl installation to have
51 # architecture specific components.  This means that architecture-
52 # specific files will be installed along with the architecture-neutral
53 # files.  Leaving it enabled is safer and more flexible, in case you
54 # want to build multiple flavors of perl and install them together in
55 # the same location.  Commenting it out gives you a simpler
56 # installation that is easier to understand for beginners.
57 #
58 #INST_ARCH      *= \$(ARCHNAME)
59
60 #
61 # Uncomment this if you want perl to run
62 #       $Config{sitelibexp}\sitecustomize.pl
63 # before anything else.  This script can then be set up, for example,
64 # to add additional entries to @INC.
65 #
66 #USE_SITECUST   *= define
67
68 #
69 # uncomment to enable multiple interpreters.  This is needed for fork()
70 # emulation and for thread support, and is auto-enabled by USE_IMP_SYS
71 # and USE_ITHREADS below.
72 #
73 USE_MULTI       *= define
74
75 #
76 # Interpreter cloning/threads; now reasonably complete.
77 # This should be enabled to get the fork() emulation.  This needs (and
78 # will auto-enable) USE_MULTI above.
79 #
80 USE_ITHREADS    *= define
81
82 #
83 # uncomment to enable the implicit "host" layer for all system calls
84 # made by perl.  This is also needed to get fork().  This needs (and
85 # will auto-enable) USE_MULTI above.
86 #
87 USE_IMP_SYS     *= define
88
89 #
90 # Comment this out if you don't want to enable large file support for
91 # some reason.  Should normally only be changed to maintain compatibility
92 # with an older release of perl.
93 #
94 USE_LARGE_FILES *= define
95
96 #
97 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
98 # (If you're building a 64-bit perl then you will have 64-bit integers whether
99 # or not this is uncommented.)
100 # Note: This option is not supported in 32-bit MSVC60 builds.
101 #
102 #USE_64_BIT_INT *= define
103
104 #
105 # Uncomment this if you want to support the use of long doubles in GCC builds.
106 # This option is not supported for MSVC builds.
107 #
108 #USE_LONG_DOUBLE *= define
109
110 #
111 # Uncomment this if you want to build perl with __USE_MINGW_ANSI_STDIO defined.
112 # (If you're building perl with USE_LONG_DOUBLE defined then
113 # __USE_MINGW_ANSI_STDIO will be defined whether or not this is uncommented.)
114 # This option is not supported for MSVC builds.
115 #
116 #USE_MINGW_ANSI_STDIO *= define
117
118 #
119 # Comment this out if you want the legacy default behavior of including '.' at
120 # the end of @INC.
121 #
122 DEFAULT_INC_EXCLUDES_DOT *= define
123
124 #
125 # Uncomment this if you want to disable looking up values from
126 # HKEY_CURRENT_USER\Software\Perl and HKEY_LOCAL_MACHINE\Software\Perl in
127 # the Registry.
128 #
129 #USE_NO_REGISTRY *= define
130
131 #
132 # uncomment exactly one of the following
133 #
134 # Visual C++ 6.0 (aka Visual C++ 98)
135 #CCTYPE         *= MSVC60
136 # Visual C++ .NET 2002/2003 (aka Visual C++ 7.0/7.1) (full version)
137 #CCTYPE         *= MSVC70
138 # Visual C++ Toolkit 2003 (aka Visual C++ 7.1) (free command-line tools)
139 #CCTYPE         *= MSVC70FREE
140 # Windows Server 2003 SP1 Platform SDK (April 2005)
141 #CCTYPE         = SDK2003SP1
142 # Visual C++ 2005 (aka Visual C++ 8.0) (full version or Express Edition)
143 #CCTYPE         *= MSVC80
144 # Visual C++ 2008 (aka Visual C++ 9.0) (full version or Express Edition)
145 #CCTYPE         *= MSVC90
146 # Visual C++ 2010 (aka Visual C++ 10.0) (full version or Express Edition)
147 #CCTYPE         = MSVC100
148 # Visual C++ 2012 (aka Visual C++ 11.0) (full version or Express Edition)
149 #CCTYPE         = MSVC110
150 # Visual C++ 2013 (aka Visual C++ 12.0) (full version or Express Edition)
151 #CCTYPE         = MSVC120
152 # Visual C++ 2015 (aka Visual C++ 14.0) (full version or Express Edition)
153 #CCTYPE         = MSVC140
154 # Visual C++ 2017 (aka Visual C++ 14.1) (full version or Community Edition)
155 #CCTYPE         = MSVC141
156 # MinGW or mingw-w64 with gcc-3.4.5 or later
157 #CCTYPE         = GCC
158
159 #
160 # If you are using GCC, 4.3 or later by default we add the -fwrapv option.
161 # See https://rt.perl.org/Ticket/Display.html?id=121505
162 #
163 #GCCWRAPV       *= define
164
165 #
166 # If you are using Intel C++ Compiler uncomment this
167 #
168 #__ICC          *= define
169
170 #
171 # Uncomment this if you want to build everything in C++ mode
172 #
173 #USE_CPLUSPLUS  *= define
174
175 #
176 # uncomment next line if you want debug version of perl (big/slow)
177 # If not enabled, we automatically try to use maximum optimization
178 # with all compilers that are known to have a working optimizer.
179 #
180 # You can also set CFG = DebugSymbols for a slightly smaller/faster
181 # debug build without the special debugging code in perl which is
182 # enabled via -DDEBUGGING;
183 #
184 # or you can set CFG = DebugFull for an even fuller (bigger/slower)
185 # debug build using the debug version of the CRT, and enabling VC++
186 # debug features such as extra assertions and invalid parameter warnings
187 # in perl and CRT code via -D_DEBUG.  (Note that the invalid parameter
188 # handler does get triggered from time to time in this configuration,
189 # which causes warnings to be printed on STDERR, which in turn causes a
190 # few tests to fail.)  (This configuration is only available for VC++ builds.)
191 #
192 #CFG            *= Debug
193
194 #
195 # uncomment to enable linking with setargv.obj under the Visual C
196 # compiler. Setting this options enables perl to expand wildcards in
197 # arguments, but it may be harder to use alternate methods like
198 # File::DosGlob that are more powerful.  This option is supported only with
199 # Visual C.
200 #
201 #USE_SETARGV    *= define
202
203 #
204 # set this if you wish to use perl's malloc
205 # WARNING: Turning this on/off WILL break binary compatibility with extensions
206 # you may have compiled with/without it.  Be prepared to recompile all
207 # extensions if you change the default.  Currently, this cannot be enabled
208 # if you ask for USE_IMP_SYS above.
209 #
210 #PERL_MALLOC    *= define
211
212 #
213 # set this to enable debugging mstats
214 # This must be enabled to use the Devel::Peek::mstat() function.  This cannot
215 # be enabled without PERL_MALLOC as well.
216 #
217 #DEBUG_MSTATS   *= define
218
219 #
220 # set this to additionally provide a statically linked perl-static.exe.
221 # Note that dynamic loading will not work with this perl, so you must
222 # include required modules statically using the STATIC_EXT or ALL_STATIC
223 # variables below. A static library perl527s.lib will also be created.
224 # Ordinary perl.exe is not affected by this option.
225 #
226 #BUILD_STATIC   *= define
227
228 #
229 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
230 # extension get statically built
231 # This will result in a very large perl executable, but the main purpose
232 # is to have proper linking set so as to be able to create miscellaneous
233 # executables with different built-in extensions
234 #
235 #ALL_STATIC     *= define
236
237 #
238 # set the install location of the compiler
239 # Running VCVARS32.BAT, VCVARSALL.BAT or similar is *required* when using
240 # Visual C++.
241 #
242
243 #CCHOME         *= C:\MinGW
244
245 #
246 # uncomment this if you are using x86_64-w64-mingw32 cross-compiler
247 # ie if your gcc executable is called 'x86_64-w64-mingw32-gcc'
248 # instead of the usual 'gcc'.
249 #
250 #GCCCROSS       *= define
251
252 #
253 # Additional compiler flags can be specified here.
254 #
255 BUILDOPT        *= $(BUILDOPTEXTRA)
256
257 #
258 # This should normally be disabled.  Enabling it will disable the File::Glob
259 # implementation of CORE::glob.
260 #
261 #BUILDOPT       += -DPERL_EXTERNAL_GLOB
262
263 #
264 # Perl needs to read scripts in text mode so that the DATA filehandle
265 # works correctly with seek() and tell(), or around auto-flushes of
266 # all filehandles (e.g. by system(), backticks, fork(), etc).
267 #
268 # The current version on the ByteLoader module on CPAN however only
269 # works if scripts are read in binary mode.  But before you disable text
270 # mode script reading (and break some DATA filehandle functionality)
271 # please check first if an updated ByteLoader isn't available on CPAN.
272 #
273 BUILDOPT        += -DPERL_TEXTMODE_SCRIPTS
274
275 #
276 # specify semicolon-separated list of extra directories that modules will
277 # look for libraries (spaces in path names need not be quoted)
278 #
279 EXTRALIBDIRS    *=
280
281 #
282 # set this to point to cmd.exe (only needed if you use some
283 # alternate shell that doesn't grok cmd.exe style commands)
284 #
285 #SHELL          *= g:\winnt\system32\cmd.exe
286
287 #
288 # set this to your email address (perl will guess a value from
289 # from your loginname and your hostname, which may not be right)
290 #
291 #EMAIL          *=
292
293 ##
294 ## Build configuration ends.
295 ##
296
297 ##################### CHANGE THESE ONLY IF YOU MUST #####################
298
299 PERL_MALLOC     *= undef
300 DEBUG_MSTATS    *= undef
301
302 USE_SITECUST    *= undef
303 USE_MULTI       *= undef
304 USE_ITHREADS    *= undef
305 USE_IMP_SYS     *= undef
306 USE_LARGE_FILES *= undef
307 USE_64_BIT_INT  *= undef
308 USE_LONG_DOUBLE *= undef
309 DEFAULT_INC_EXCLUDES_DOT *= undef
310 USE_NO_REGISTRY *= undef
311
312
313 .IF "$(USE_IMP_SYS)" == "define"
314 PERL_MALLOC     = undef
315 .ENDIF
316
317 .IF "$(PERL_MALLOC)" == "undef"
318 DEBUG_MSTATS    = undef
319 .ENDIF
320
321 .IF "$(DEBUG_MSTATS)" == "define"
322 BUILDOPT        += -DPERL_DEBUGGING_MSTATS
323 .ENDIF
324
325 .IF "$(USE_IMP_SYS) $(USE_MULTI)" == "define undef"
326 USE_MULTI       != define
327 .ENDIF
328
329 .IF "$(USE_ITHREADS) $(USE_MULTI)" == "define undef"
330 USE_MULTI       != define
331 .ENDIF
332
333 .IF "$(USE_SITECUST)" == "define"
334 BUILDOPT        += -DUSE_SITECUSTOMIZE
335 .ENDIF
336
337 .IF "$(USE_MULTI)" != "undef"
338 BUILDOPT        += -DPERL_IMPLICIT_CONTEXT
339 .ENDIF
340
341 .IF "$(USE_IMP_SYS)" != "undef"
342 BUILDOPT        += -DPERL_IMPLICIT_SYS
343 .ENDIF
344
345 .IF "$(USE_NO_REGISTRY)" != "undef"
346 BUILDOPT        += -DWIN32_NO_REGISTRY
347 .ENDIF
348
349 #no explicit CCTYPE given, do auto detection
350 .IF "$(CCTYPE)" == ""
351 GCCTARGET       *= $(shell gcc -dumpmachine 2>NUL & exit /b 0)
352 #do we have a GCC?
353 .IF "$(GCCTARGET)" != ""
354 CCTYPE          = GCC
355 .ELSE
356 #use var to capture 1st line only, not 8th token of lines 2 & 3 in cl.exe output
357 MSVCVER         := $(shell (set MSVCVER=) & (for /f "tokens=8 delims=.^ " \
358         %i in ('cl ^2^>^&1') do @if not defined MSVCVER set /A "MSVCVER=%i-6"))
359 CCTYPE          := MSVC$(MSVCVER)0
360 .ENDIF
361 .ENDIF
362
363 # Versions of Visual C++ up to VC++ 7.1 define $(MSVCDir); versions since then
364 # define $(VCINSTALLDIR) instead, but for VC++ 14.1 we need the subfolder given
365 # by $(VCToolsInstallDir).
366 .IF "$(CCHOME)" == ""
367 .IF "$(CCTYPE)" == "GCC"
368 CCHOME          *= C:\MinGW
369 .ELIF "$(CCTYPE)" == "MSVC60" || \
370     "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
371 CCHOME          *= $(MSVCDir)
372 .ELIF "$(CCTYPE)" == "MSVC141"
373 CCHOME          *= $(VCToolsInstallDir)
374 .ELSE
375 CCHOME          *= $(VCINSTALLDIR)
376 .ENDIF
377 .ENDIF
378
379 PROCESSOR_ARCHITECTURE *= x86
380
381 .IF "$(WIN64)" == "undef"
382 PROCESSOR_ARCHITECTURE  = x86
383 .ENDIF
384
385 .IF "$(WIN64)" == ""
386 # When we are running from a 32bit cmd.exe on AMD64 then
387 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
388 # is set to AMD64
389 .IF "$(PROCESSOR_ARCHITEW6432)" != ""
390 PROCESSOR_ARCHITECTURE  != $(PROCESSOR_ARCHITEW6432)
391 WIN64                   = define
392 .ELIF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
393 WIN64                   = define
394 .ELSE
395 WIN64                   = undef
396 .ENDIF
397 .ENDIF
398
399 .IF "$(WIN64)" == "define"
400 USE_64_BIT_INT  = define
401 .ENDIF
402
403 # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because
404 # both link against MSVCRT.dll (which is part of Windows itself) and
405 # not against a compiler specific versioned runtime.
406 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60"
407 CCTYPE          = SDK2003SP1
408 .ENDIF
409
410 # Disable the 64-bit-int option for (32-bit) MSVC60 builds since that compiler
411 # does not support it.
412 .IF "$(CCTYPE)" == "MSVC60"
413 USE_64_BIT_INT  != undef
414 .ENDIF
415
416 # Disable the long double option for MSVC builds since that compiler
417 # does not support it.
418 .IF "$(CCTYPE)" != "GCC"
419 USE_LONG_DOUBLE != undef
420 .ENDIF
421
422 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
423 .IF "$(ARCHITECTURE)" == "AMD64"
424 ARCHITECTURE    = x64
425 .ENDIF
426 .IF "$(ARCHITECTURE)" == "IA64"
427 ARCHITECTURE    = ia64
428 .ENDIF
429
430 .IF "$(USE_MULTI)" == "define"
431 ARCHNAME        = MSWin32-$(ARCHITECTURE)-multi
432 .ELSE
433 ARCHNAME        = MSWin32-$(ARCHITECTURE)-perlio
434 .ENDIF
435
436 .IF "$(USE_ITHREADS)" == "define"
437 ARCHNAME        !:= $(ARCHNAME)-thread
438 .ENDIF
439
440 .IF "$(WIN64)" != "define"
441 .IF "$(USE_64_BIT_INT)" == "define"
442 ARCHNAME        !:= $(ARCHNAME)-64int
443 .ENDIF
444 .ENDIF
445
446 .IF "$(USE_LONG_DOUBLE)" == "define"
447 ARCHNAME        !:= $(ARCHNAME)-ld
448 .ENDIF
449
450 # Set the install location of the compiler headers/libraries.
451 # These are saved into $Config{incpath} and $Config{libpth}.
452 .IF "$(GCCCROSS)" == "define"
453 CCINCDIR *= $(CCHOME)\x86_64-w64-mingw32\include
454 CCLIBDIR *= $(CCHOME)\x86_64-w64-mingw32\lib
455 .ELIF "$(CCTYPE)" == "GCC"
456 CCINCDIR *= $(CCHOME)\include
457 CCLIBDIR *= $(CCHOME)\lib
458 .ELSE
459 CCINCDIR *= $(CCHOME)\include
460 .IF "$(CCTYPE)" == "MSVC141"
461 .IF "$(WIN64)" == "define"
462 CCLIBDIR *= $(CCHOME)\lib\x64
463 .ELSE
464 CCLIBDIR *= $(CCHOME)\lib\x86
465 .ENDIF
466 .ELSE
467 .IF "$(WIN64)" == "define"
468 CCLIBDIR *= $(CCHOME)\lib\amd64
469 .ELSE
470 CCLIBDIR *= $(CCHOME)\lib
471 .ENDIF
472 .ENDIF
473 .ENDIF
474
475 # Set DLL location for GCC compilers.
476 .IF "$(CCTYPE)" == "GCC"
477 .IF "$(GCCCROSS)" == "define"
478 CCDLLDIR *= $(CCLIBDIR)
479 .ELSE
480 CCDLLDIR *= $(CCHOME)\bin
481 .ENDIF
482 .ENDIF
483
484 ARCHDIR         = ..\lib\$(ARCHNAME)
485 COREDIR         = ..\lib\CORE
486 AUTODIR         = ..\lib\auto
487 LIBDIR          = ..\lib
488 EXTDIR          = ..\ext
489 DISTDIR         = ..\dist
490 CPANDIR         = ..\cpan
491 PODDIR          = ..\pod
492 HTMLDIR         = .\html
493
494 INST_SCRIPT     = $(INST_TOP)$(INST_VER)\bin
495 INST_BIN        = $(INST_SCRIPT)$(INST_ARCH)
496 INST_LIB        = $(INST_TOP)$(INST_VER)\lib
497 INST_ARCHLIB    = $(INST_LIB)$(INST_ARCH)
498 INST_COREDIR    = $(INST_ARCHLIB)\CORE
499 INST_HTML       = $(INST_TOP)$(INST_VER)\html
500
501 #
502 # Programs to compile, build .lib files and link
503 #
504
505 .USESHELL :
506
507 MINIBUILDOPT    *=
508
509 .IF "$(CCTYPE)" == "GCC"
510
511 .IF "$(GCCCROSS)" == "define"
512 ARCHPREFIX      = x86_64-w64-mingw32-
513 .ENDIF
514
515 CC              = $(ARCHPREFIX)gcc
516 LINK32          = $(ARCHPREFIX)g++
517 LIB32           = $(ARCHPREFIX)ar rc
518 IMPLIB          = $(ARCHPREFIX)dlltool
519 RSC             = $(ARCHPREFIX)windres
520
521 .IF "$(USE_LONG_DOUBLE)" == "define" || "$(USE_MINGW_ANSI_STDIO)" == "define"
522 BUILDOPT        += -D__USE_MINGW_ANSI_STDIO
523 MINIBUILDOPT    += -D__USE_MINGW_ANSI_STDIO
524 .ENDIF
525
526 GCCWRAPV *= $(shell for /f "delims=. tokens=1,2,3" %i in ('$(CC) -dumpversion') do @if "%i"=="4" (if "%j" geq "3" echo define) else if "%i" geq "5" (echo define))
527
528 .IF "$(GCCWRAPV)" == "define"
529 BUILDOPT        += -fwrapv
530 MINIBUILDOPT    += -fwrapv
531 .ENDIF
532
533 i = .i
534 o = .o
535 a = .a
536
537 #
538 # Options
539 #
540
541 INCLUDES        = -I.\include -I. -I..
542 DEFINES         = -DWIN32
543 .IF "$(WIN64)" == "define"
544 DEFINES         += -DWIN64 -DCONSERVATIVE
545 .ENDIF
546 LOCDEFS         = -DPERLDLL -DPERL_CORE
547 CXX_FLAG        = -xc++
548
549 # Current releases of MinGW 5.1.4 (as of 11-Aug-2009) will fail to link
550 # correctly if -lmsvcrt is specified explicitly.
551 LIBC            =
552 #LIBC           = -lmsvcrt
553
554 # same libs as MSVC
555 LIBFILES        = $(LIBC) -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool \
556         -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 \
557         -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
558
559 .IF  "$(CFG)" == "Debug"
560 OPTIMIZE        = -g -O2 -DDEBUGGING
561 LINK_DBG        = -g
562 .ELIF  "$(CFG)" == "DebugSymbols"
563 OPTIMIZE        = -g -O2
564 LINK_DBG        = -g
565 .ELSE
566 OPTIMIZE        = -s -O2
567 LINK_DBG        = -s
568 .ENDIF
569
570 EXTRACFLAGS     =
571 .IF "$(USE_CPLUSPLUS)" == "define"
572 EXTRACFLAGS     += $(CXX_FLAG)
573 .ENDIF
574 CFLAGS          = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
575 LINK_FLAGS      = $(LINK_DBG) -L"$(INST_COREDIR)" -L"$(CCLIBDIR)"
576 OBJOUT_FLAG     = -o
577 EXEOUT_FLAG     = -o
578 LIBOUT_FLAG     =
579 PDBOUT          =
580
581 BUILDOPT        += -fno-strict-aliasing -mms-bitfields
582 MINIBUILDOPT    += -fno-strict-aliasing
583
584 TESTPREPGCC     = test-prep-gcc
585
586 .ELSE
587
588 # All but the free version of VC++ 7.1 can load DLLs on demand.  Makes the test
589 # suite run in about 10% less time.
590 .IF "$(CCTYPE)" != "MSVC70FREE"
591 # If no registry, advapi32 is only used for Perl_pp_getlogin/getlogin/GetUserNameA
592 # which is rare to execute
593 .IF "$(USE_NO_REGISTRY)" != "undef"
594 DELAYLOAD       = -DELAYLOAD:ws2_32.dll -DELAYLOAD:advapi32.dll delayimp.lib
595 MINIDELAYLOAD   =
596 .ELSE
597 DELAYLOAD       = -DELAYLOAD:ws2_32.dll delayimp.lib
598 #miniperl never does any registry lookups
599 MINIDELAYLOAD   = -DELAYLOAD:advapi32.dll
600 .ENDIF
601 .ENDIF
602
603 # Visual C++ 2005 and 2008 (VC++ 8.0 and 9.0) create manifest files for EXEs and
604 # DLLs. These either need copying everywhere with the binaries, or else need
605 # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For
606 # simplicity, embed them if they exist (and delete them afterwards so that they
607 # don't get installed too).
608 EMBED_EXE_MANI  = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \
609                   if exist $@.manifest del $@.manifest
610 EMBED_DLL_MANI  = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \
611                   if exist $@.manifest del $@.manifest
612
613 # Most relevant compiler-specific options fall into two groups:
614 # either pre-MSVC80 or MSVC80 onwards, so define a macro for this.
615 .IF "$(CCTYPE)" == "MSVC60" || \
616     "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
617 PREMSVC80       = define
618 .ELSE
619 PREMSVC80       = undef
620 .ENDIF
621
622 .IF "$(__ICC)" != "define"
623 CC              = cl
624 LINK32          = link
625 .ELSE
626 CC              = icl
627 LINK32          = xilink
628 .ENDIF
629 LIB32           = $(LINK32) -lib
630 RSC             = rc
631
632 #
633 # Options
634 #
635
636 INCLUDES        = -I.\include -I. -I..
637 #PCHFLAGS       = -Fpc:\temp\vcmoduls.pch -YX
638 DEFINES         = -DWIN32 -D_CONSOLE -DNO_STRICT
639 LOCDEFS         = -DPERLDLL -DPERL_CORE
640 CXX_FLAG        = -TP -EHsc
641
642 .IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141"
643 LIBC            = ucrt.lib
644 .ELSE
645 LIBC            = msvcrt.lib
646 .ENDIF
647
648 .IF  "$(CFG)" == "Debug"
649 OPTIMIZE        = -Od -MD -Zi -DDEBUGGING
650 LINK_DBG        = -debug
651 .ELIF  "$(CFG)" == "DebugSymbols"
652 OPTIMIZE        = -Od -MD -Zi
653 LINK_DBG        = -debug
654 .ELIF  "$(CFG)" == "DebugFull"
655 .IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141"
656 LIBC            = ucrtd.lib
657 .ELSE
658 LIBC            = msvcrtd.lib
659 .ENDIF
660 OPTIMIZE        = -Od -MDd -Zi -D_DEBUG -DDEBUGGING
661 LINK_DBG        = -debug
662 .ELSE
663 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
664 OPTIMIZE        = -O1 -MD -Zi -DNDEBUG
665 # we enable debug symbols in release builds also
666 LINK_DBG        = -debug -opt:ref,icf
667 # you may want to enable this if you want COFF symbols in the executables
668 # in addition to the PDB symbols.  The default Dr. Watson that ships with
669 # Windows can use the the former but not latter.  The free WinDbg can be
670 # installed to get better stack traces from just the PDB symbols, so we
671 # avoid the bloat of COFF symbols by default.
672 #LINK_DBG       = $(LINK_DBG) -debugtype:both
673 .IF "$(CCTYPE)" != "MSVC60"
674 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
675 OPTIMIZE        += -GL
676 LINK_DBG        += -ltcg
677 LIB_FLAGS       = -ltcg
678 .ENDIF
679 .ENDIF
680
681 .IF "$(WIN64)" == "define"
682 DEFINES         += -DWIN64 -DCONSERVATIVE
683 OPTIMIZE        += -fp:precise
684 .ENDIF
685
686 # For now, silence warnings from VC++ 8.0 onwards about "unsafe" CRT functions
687 # and POSIX CRT function names being deprecated.
688 .IF "$(PREMSVC80)" == "undef"
689 DEFINES         += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
690 .ENDIF
691
692 # Likewise for deprecated Winsock APIs in VC++ 14.0 onwards for now.
693 .IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141"
694 DEFINES         += -D_WINSOCK_DEPRECATED_NO_WARNINGS
695 .ENDIF
696
697 # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
698 # 64-bit, even in 32-bit mode.  It also provides the _USE_32BIT_TIME_T
699 # preprocessor option to revert back to the old functionality for
700 # backward compatibility.  We define this symbol here for older 32-bit
701 # compilers only (which aren't using it at all) for the sole purpose
702 # of getting it into $Config{ccflags}.  That way if someone builds
703 # Perl itself with e.g. VC6 but later installs an XS module using VC8
704 # the time_t types will still be compatible.
705 .IF "$(WIN64)" == "undef"
706 .IF "$(PREMSVC80)" == "define"
707 BUILDOPT        += -D_USE_32BIT_TIME_T
708 .ENDIF
709 .ENDIF
710
711 LIBBASEFILES    = oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
712         comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
713         netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib \
714         odbc32.lib odbccp32.lib comctl32.lib
715
716 .IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141"
717 .IF "$(CFG)" == "DebugFull"
718 LIBBASEFILES    += msvcrtd.lib vcruntimed.lib
719 .ELSE
720 LIBBASEFILES    += msvcrt.lib vcruntime.lib
721 .ENDIF
722 .ENDIF
723
724 # Avoid __intel_new_proc_init link error for libircmt.
725 # libmmd is /MD equivelent, other variants exist.
726 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
727 # and optimized C89 funcs
728 .IF "$(__ICC)" == "define"
729 LIBBASEFILES    += libircmt.lib libmmd.lib
730 .ENDIF
731
732 # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which
733 # doesn't include the buffer overrun verification code used by the /GS switch.
734 # Since the code links against libraries that are compiled with /GS, this
735 # "security cookie verification" code must be included via bufferoverflow.lib.
736 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1"
737 LIBBASEFILES    += bufferoverflowU.lib
738 .ENDIF
739
740 LIBFILES        = $(LIBBASEFILES) $(LIBC)
741
742 EXTRACFLAGS     = -nologo -GF -W3
743 .IF "$(__ICC)" == "define"
744 EXTRACFLAGS     += -Qstd=c99
745 .ENDIF
746 .IF "$(USE_CPLUSPLUS)" == "define"
747 EXTRACFLAGS     += $(CXX_FLAG)
748 .ENDIF
749 CFLAGS          = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
750                 $(PCHFLAGS) $(OPTIMIZE)
751 LINK_FLAGS      = -nologo -nodefaultlib $(LINK_DBG) \
752                 -libpath:"$(INST_COREDIR)" \
753                 -machine:$(PROCESSOR_ARCHITECTURE)
754 LIB_FLAGS       += -nologo
755 OBJOUT_FLAG     = -Fo
756 EXEOUT_FLAG     = -Fe
757 LIBOUT_FLAG     = /out:
758 PDBOUT          = -Fd$*.pdb
759 TESTPREPGCC     =
760
761 .ENDIF
762
763 CFLAGS_O        = $(CFLAGS) $(BUILDOPT)
764
765 .IF "$(PREMSVC80)" == "undef"
766 PRIV_LINK_FLAGS += "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
767 .ELSE
768 RSC_FLAGS       = -DINCLUDE_MANIFEST
769 .ENDIF
770
771 # VS 2017 (VC++ 14.1) requires at minimum Windows 7 SP1 (with latest Windows Updates)
772
773 # For XP support in >= VS 2013 (VC++ 12.0), subsystem is always in Config.pm
774 # LINK_FLAGS else subsystem is only needed for EXE building, not XS DLL building
775 # Console vs GUI makes no difference for DLLs, so use default for cleaner
776 # building cmd lines
777 .IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140"
778 .IF "$(WIN64)" == "define"
779 LINK_FLAGS      += -subsystem:console,"5.02"
780 .ELSE
781 LINK_FLAGS      += -subsystem:console,"5.01"
782 .ENDIF
783
784 .ELIF "$(CCTYPE)" != "GCC"
785 PRIV_LINK_FLAGS += -subsystem:console
786 .ENDIF
787
788 BLINK_FLAGS     = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
789
790 #################### do not edit below this line #######################
791 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
792
793 # Some old dmakes (including Sarathy's one at
794 # http://search.cpan.org/CPAN/authors/id/G/GS/GSAR/dmake-4.1pl1-win32.zip)
795 # don't support logical OR (||) or logical AND (&&) in conditional
796 # expressions and hence don't process this makefile correctly. Determine
797 # whether this is the case so that we can give the user an error message.
798 .IF 1 == 1 || 1 == 1
799 NEWDMAKE = define
800 .ELSE
801 NEWDMAKE = undef
802 .ENDIF
803
804 o *= .obj
805 a *= .lib
806
807 LKPRE           = INPUT (
808 LKPOST          = )
809
810 #
811 # Rules
812 #
813
814 .SUFFIXES : .c .i $(o) .dll $(a) .exe .rc .res
815
816 .c$(o):
817         $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $(PDBOUT) $<
818
819 .c.i:
820         $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) -E $< >$@
821
822 .y.c:
823         $(NOOP)
824
825 $(o).dll:
826 .IF "$(CCTYPE)" == "GCC"
827         $(LINK32) -o $@ $(BLINK_FLAGS) $< $(LIBFILES)
828         $(IMPLIB) --input-def $(*B).def --output-lib $(*B).a $@
829 .ELSE
830         $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \
831             -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
832         $(EMBED_DLL_MANI)
833 .ENDIF
834
835 .rc.res:
836 .IF "$(CCTYPE)" == "GCC"
837         $(RSC) --use-temp-file --include-dir=. --include-dir=.. -O COFF -D INCLUDE_MANIFEST -i $< -o $@
838 .ELSE
839         $(RSC) -i.. -DINCLUDE_MANIFEST $<
840 .ENDIF
841
842 #
843 # various targets
844
845 #do not put $(MINIPERL) as a dep/prereq in a rule, instead put $(HAVEMINIPERL)
846 #$(MINIPERL) is not a buildable target, use "dmake mp" if you want to just build
847 #miniperl alone
848 MINIPERL        = ..\miniperl.exe
849 HAVEMINIPERL    = ..\lib\buildcustomize.pl
850 MINIDIR         = .\mini
851 PERLEXE         = ..\perl.exe
852 WPERLEXE        = ..\wperl.exe
853 PERLEXESTATIC   = ..\perl-static.exe
854 STATICDIR       = .\static.tmp
855 GLOBEXE         = ..\perlglob.exe
856 CONFIGPM        = ..\lib\Config.pm
857 GENUUDMAP       = ..\generate_uudmap.exe
858 .IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
859 PERLSTATIC      = static
860 .ELSE
861 PERLSTATIC      = 
862 .ENDIF
863
864 # Unicode data files generated by mktables
865 UNIDATAFILES     = ..\lib\unicore\Decomposition.pl ..\lib\unicore\TestProp.pl \
866                    ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
867                    ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm            \
868                    ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst
869
870 # Directories of Unicode data files generated by mktables
871 UNIDATADIR1     = ..\lib\unicore\To
872 UNIDATADIR2     = ..\lib\unicore\lib
873
874 PERLEXE_MANIFEST= .\perlexe.manifest
875 PERLEXE_ICO     = .\perlexe.ico
876 PERLEXE_RES     = .\perlexe.res
877 PERLDLL_RES     =
878
879 # Nominate a target which causes extensions to be re-built
880 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
881 # on and really only the interface - i.e. the .def file used to export symbols
882 # from the .dll
883 PERLDEP = $(PERLIMPLIB)
884
885
886 PL2BAT          = bin\pl2bat.pl
887
888 UTILS           =                       \
889                 ..\utils\h2ph           \
890                 ..\utils\splain         \
891                 ..\utils\perlbug        \
892                 ..\utils\pl2pm          \
893                 ..\utils\h2xs           \
894                 ..\utils\perldoc        \
895                 ..\utils\perlivp        \
896                 ..\utils\libnetcfg      \
897                 ..\utils\enc2xs         \
898                 ..\utils\encguess       \
899                 ..\utils\piconv         \
900                 ..\utils\corelist       \
901                 ..\utils\cpan           \
902                 ..\utils\xsubpp         \
903                 ..\utils\pod2html       \
904                 ..\utils\prove          \
905                 ..\utils\ptar           \
906                 ..\utils\ptardiff       \
907                 ..\utils\ptargrep       \
908                 ..\utils\zipdetails     \
909                 ..\utils\shasum         \
910                 ..\utils\instmodsh      \
911                 ..\utils\json_pp        \
912                 bin\exetype.pl          \
913                 bin\runperl.pl          \
914                 bin\pl2bat.pl           \
915                 bin\perlglob.pl         \
916                 bin\search.pl
917
918 .IF "$(CCTYPE)" == "GCC"
919
920 CFGSH_TMPL      = config.gc
921 CFGH_TMPL       = config_H.gc
922 PERLIMPLIB      = $(COREDIR)\libperl527$(a)
923 PERLSTATICLIB   = ..\libperl527s$(a)
924 INT64           = long long
925
926 .ELSE
927
928 CFGSH_TMPL      = config.vc
929 CFGH_TMPL       = config_H.vc
930 INT64           = __int64
931
932 .ENDIF
933
934 # makedef.pl must be updated if this changes, and this should normally
935 # only change when there is an incompatible revision of the public API.
936 PERLIMPLIB      *= $(COREDIR)\perl527$(a)
937 PERLEXPLIB      *= $(COREDIR)\perl527.exp
938 PERLSTATICLIB   *= ..\perl527s$(a)
939 PERLDLL         = ..\perl527.dll
940
941 #EUMM on Win32 isn't ready for parallel make, so only allow this file to be parallel
942 #$(MAKE) will contain the -P that this makefile was called with, which is bad for
943 #make_ext.pl since upto jobs*jobs processes will run instead of jobs
944 #also any recipie containing $(MAKE) is special cased by dmake to execute recipes
945 #containing $(MAKE) when "dmake -n" is executed, which causes recursive calls
946 #to dmake, which means "dmake -n" is then broken as a diagnostic tool since
947 #"dmake -n" will invoke all the make_ext.pl scripts build things instead of
948 #showing what to build since $(MAKE) is an arg to make_ext.pl, not an invocation
949 #of the dmake process
950 PLMAKE          = dmake
951
952 XCOPY           = xcopy /f /r /i /d /y
953 RCOPY           = xcopy /f /r /i /e /d /y
954 NOOP            = @rem
955
956 #first ones are arrange in compile time order for faster parallel building
957 #see #123867 for details
958 MICROCORE_SRC   =               \
959                 ..\toke.c       \
960                 ..\regcomp.c    \
961                 ..\regexec.c    \
962                 ..\op.c         \
963                 ..\sv.c         \
964                 ..\pp.c         \
965                 ..\pp_ctl.c     \
966                 ..\pp_sys.c     \
967                 ..\pp_pack.c    \
968                 ..\pp_hot.c     \
969                 ..\gv.c         \
970                 ..\perl.c       \
971                 ..\utf8.c       \
972                 ..\dump.c       \
973                 ..\hv.c         \
974                 ..\av.c         \
975                 ..\caretx.c     \
976                 ..\deb.c        \
977                 ..\doio.c       \
978                 ..\doop.c       \
979                 ..\dquote.c     \
980                 ..\globals.c    \
981                 ..\mro_core.c   \
982                 ..\locale.c     \
983                 ..\keywords.c   \
984                 ..\mathoms.c    \
985                 ..\mg.c         \
986                 ..\numeric.c    \
987                 ..\pad.c        \
988                 ..\perlapi.c    \
989                 ..\perly.c      \
990                 ..\pp_sort.c    \
991                 ..\reentr.c     \
992                 ..\run.c        \
993                 ..\scope.c      \
994                 ..\taint.c      \
995                 ..\time64.c     \
996                 ..\universal.c  \
997                 ..\util.c
998
999 EXTRACORE_SRC   += perllib.c
1000
1001 .IF "$(PERL_MALLOC)" == "define"
1002 EXTRACORE_SRC   += ..\malloc.c
1003 .ENDIF
1004
1005 EXTRACORE_SRC   += ..\perlio.c
1006
1007 WIN32_SRC       =               \
1008                 .\win32.c       \
1009                 .\win32io.c     \
1010                 .\win32sck.c    \
1011                 .\win32thread.c \
1012                 .\fcrypt.c
1013
1014 CORE_NOCFG_H    =               \
1015                 ..\av.h         \
1016                 ..\cop.h        \
1017                 ..\cv.h         \
1018                 ..\dosish.h     \
1019                 ..\embed.h      \
1020                 ..\form.h       \
1021                 ..\gv.h         \
1022                 ..\handy.h      \
1023                 ..\hv.h         \
1024                 ..\hv_func.h    \
1025                 ..\iperlsys.h   \
1026                 ..\mg.h         \
1027                 ..\nostdio.h    \
1028                 ..\op.h         \
1029                 ..\opcode.h     \
1030                 ..\perl.h       \
1031                 ..\perlapi.h    \
1032                 ..\perlsdio.h   \
1033                 ..\perly.h      \
1034                 ..\pp.h         \
1035                 ..\proto.h      \
1036                 ..\regcomp.h    \
1037                 ..\regexp.h     \
1038                 ..\scope.h      \
1039                 ..\sv.h         \
1040                 ..\thread.h     \
1041                 ..\unixish.h    \
1042                 ..\utf8.h       \
1043                 ..\util.h       \
1044                 ..\warnings.h   \
1045                 ..\XSUB.h       \
1046                 ..\EXTERN.h     \
1047                 ..\perlvars.h   \
1048                 ..\intrpvar.h   \
1049                 .\include\dirent.h      \
1050                 .\include\netdb.h       \
1051                 .\include\sys\errno2.h  \
1052                 .\include\sys\socket.h  \
1053                 .\win32.h
1054
1055 CORE_H          = $(CORE_NOCFG_H) .\config.h ..\git_version.h
1056
1057 UUDMAP_H        = ..\uudmap.h
1058 BITCOUNT_H      = ..\bitcount.h
1059 MG_DATA_H       = ..\mg_data.h
1060 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
1061
1062 HAVE_COREDIR    = .\.coreheaders
1063
1064 MICROCORE_OBJ   = $(MICROCORE_SRC:db:+$(o))
1065 CORE_OBJ        = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o))
1066 WIN32_OBJ       = $(WIN32_SRC:db:+$(o))
1067 MINICORE_OBJ    = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)}
1068 MINIWIN32_OBJ   = $(MINIDIR)\{$(WIN32_OBJ:f)}
1069 MINI_OBJ        = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
1070 DLL_OBJ         = $(DYNALOADER)
1071
1072 PERLDLL_OBJ     = $(CORE_OBJ)
1073 PERLEXE_OBJ     = perlmain$(o)
1074 PERLEXEST_OBJ   = perlmainst$(o)
1075
1076 PERLDLL_OBJ     += $(WIN32_OBJ) $(DLL_OBJ)
1077
1078 .IF "$(USE_SETARGV)" != ""
1079 SETARGV_OBJ     = setargv$(o)
1080 .ENDIF
1081
1082 .IF "$(ALL_STATIC)" == "define"
1083 # some exclusions, unfortunately, until fixed:
1084 #  - MakeMaker isn't capable enough for SDBM_File (small bug)
1085 STATIC_EXT      = * !SDBM_File
1086 .ELSE
1087 # specify static extensions here, for example:
1088 # (be sure to include Win32CORE to load Win32 on demand)
1089 #STATIC_EXT     = Win32CORE Cwd Compress/Raw/Zlib
1090 STATIC_EXT      = Win32CORE
1091 .ENDIF
1092
1093 DYNALOADER      = ..\DynaLoader$(o)
1094
1095 # vars must be separated by "\t+~\t+", since we're using the tempfile
1096 # version of config_sh.pl (we were overflowing someone's buffer by
1097 # trying to fit them all on the command line)
1098 #       -- BKS 10-17-1999
1099 CFG_VARS        =                                       \
1100                 INST_TOP=$(INST_TOP)    ~       \
1101                 INST_VER=$(INST_VER)    ~       \
1102                 INST_ARCH=$(INST_ARCH)          ~       \
1103                 archname=$(ARCHNAME)            ~       \
1104                 cc=$(CC)                        ~       \
1105                 ld=$(LINK32)                    ~       \
1106                 ccflags=$(EXTRACFLAGS) $(OPTIMIZE) $(DEFINES) $(BUILDOPT)       ~       \
1107                 usecplusplus=$(USE_CPLUSPLUS)   ~       \
1108                 cf_email=$(EMAIL)               ~       \
1109                 d_mymalloc=$(PERL_MALLOC)       ~       \
1110                 libs=$(LIBFILES:f)              ~       \
1111                 incpath=$(CCINCDIR)     ~       \
1112                 libperl=$(PERLIMPLIB:f)         ~       \
1113                 libpth=$(CCLIBDIR);$(EXTRALIBDIRS)      ~       \
1114                 libc=$(LIBC)                    ~       \
1115                 make=$(PLMAKE)                  ~       \
1116                 _o=$(o)                         ~       \
1117                 obj_ext=$(o)                    ~       \
1118                 _a=$(a)                         ~       \
1119                 lib_ext=$(a)                    ~       \
1120                 static_ext=$(STATIC_EXT)        ~       \
1121                 usethreads=$(USE_ITHREADS)      ~       \
1122                 useithreads=$(USE_ITHREADS)     ~       \
1123                 usemultiplicity=$(USE_MULTI)    ~       \
1124                 use64bitint=$(USE_64_BIT_INT)   ~       \
1125                 uselongdouble=$(USE_LONG_DOUBLE)        ~       \
1126                 uselargefiles=$(USE_LARGE_FILES)        ~       \
1127                 usesitecustomize=$(USE_SITECUST)        ~       \
1128                 default_inc_excludes_dot=$(DEFAULT_INC_EXCLUDES_DOT)    ~       \
1129                 LINK_FLAGS=$(LINK_FLAGS)        ~       \
1130                 optimize=$(OPTIMIZE)    ~       \
1131                 ARCHPREFIX=$(ARCHPREFIX)        ~       \
1132                 WIN64=$(WIN64)
1133
1134 #
1135 # Top targets
1136 #
1137
1138 all : CHECKDMAKE rebasePE Extensions_nonxs $(PERLSTATIC) PostExt
1139
1140 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
1141
1142 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
1143
1144 reonly : ..\regnodes.h $(UNIDATAFILES) Extensions_reonly
1145
1146 static: $(PERLEXESTATIC)
1147
1148 #----------------------------------------------------------------
1149
1150 CHECKDMAKE :
1151 .IF "$(NEWDMAKE)" == "define"
1152         $(NOOP)
1153 .ELSE
1154         @echo Your dmake doesn't support ^|^| or ^&^& in conditional expressions.
1155         @echo Please get the latest dmake from http://search.cpan.org/dist/dmake/
1156         @exit 1
1157 .ENDIF
1158
1159 $(GLOBEXE) : perlglob.c
1160 .IF "$(CCTYPE)" == "GCC"
1161         $(LINK32) $(OPTIMIZE) $(BLINK_FLAGS) -mconsole -o $@ perlglob.c $(LIBFILES)
1162 .ELSE
1163         $(CC) $(OPTIMIZE) $(PDBOUT) -Fe$@ perlglob.c -link $(BLINK_FLAGS) \
1164         setargv$(o) $(LIBFILES) && $(EMBED_EXE_MANI)
1165 .ENDIF
1166
1167 ..\git_version.h : $(HAVEMINIPERL) ..\make_patchnum.pl
1168         $(MINIPERL) -I..\lib ..\make_patchnum.pl
1169
1170 # make sure that we recompile perl.c if the git version changes
1171 ..\perl$(o) : ..\git_version.h
1172
1173 ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(HAVEMINIPERL)
1174         $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file \
1175             $(mktmp $(CFG_VARS)) $(CFGSH_TMPL) > ..\config.sh
1176
1177 # This target is for when changes to the main config.sh happen.
1178 # Edit config.gc, then make perl using GCC in a minimal configuration (i.e.
1179 # with MULTI, ITHREADS, IMP_SYS and LARGE_FILES off), then make
1180 # this target to regenerate config_H.gc.
1181 regen_config_h:
1182         $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file $(mktmp $(CFG_VARS)) \
1183             $(CFGSH_TMPL) > ..\config.sh
1184         $(MINIPERL) -I..\lib ..\configpm --chdir=..
1185         -del /f $(CFGH_TMPL)
1186         -$(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)"
1187         rename config.h $(CFGH_TMPL)
1188
1189 $(CONFIGPM) .\config.h .UPDATEALL: ..\config.sh config_h.PL
1190         $(MINIPERL) -I..\lib ..\configpm --chdir=..
1191         -$(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)"
1192
1193 # See the comment in Makefile.SH explaining this seemingly cranky ordering
1194 ..\lib\buildcustomize.pl : $(MINI_OBJ) ..\write_buildcustomize.pl
1195 .IF "$(CCTYPE)" == "GCC"
1196         $(LINK32) -v -mconsole -o $(MINIPERL) $(BLINK_FLAGS) \
1197             $(mktmp $(LKPRE) $(MINI_OBJ) $(LIBFILES) $(LKPOST))
1198 .ELSE
1199         $(LINK32) -out:$(MINIPERL) $(BLINK_FLAGS) \
1200             @$(mktmp $(DELAYLOAD) $(MINIDELAYLOAD) $(LIBFILES) $(MINI_OBJ))
1201         $(EMBED_EXE_MANI:s/$@/$(MINIPERL)/)
1202 .ENDIF
1203         $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
1204
1205 #convinence target, get a working miniperl
1206 mp : $(CONFIGPM)
1207
1208 $(MINIDIR)\.exists : $(CFGH_TMPL)
1209         if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
1210 #
1211 # Copy the template config.h and set configurables at the end of it
1212 # as per the options chosen and compiler used.
1213 # Note: This config.h is only used to build miniperl.exe anyway, but
1214 # it's as well to have its options correct to be sure that it builds
1215 # and so that it's "-V" options are correct for use by makedef.pl. The
1216 # real config.h used to build perl.exe is generated from the top-level
1217 # config_h.SH by config_h.PL (run by miniperl.exe).
1218 #
1219 # MINIDIR generates config.h so miniperl.exe is not rebuilt when the 2nd
1220 # config.h is generated in CONFIGPM target, see also the comments for $(MINI_OBJ).
1221         copy $(CFGH_TMPL) config.h
1222         @(echo.&& \
1223         echo #ifndef _config_h_footer_&& \
1224         echo #define _config_h_footer_&& \
1225         echo #undef Off_t&& \
1226         echo #undef LSEEKSIZE&& \
1227         echo #undef Off_t_size&& \
1228         echo #undef PTRSIZE&& \
1229         echo #undef SSize_t&& \
1230         echo #undef HAS_ATOLL&& \
1231         echo #undef HAS_STRTOLL&& \
1232         echo #undef HAS_STRTOULL&& \
1233         echo #undef Size_t_size&& \
1234         echo #undef IVTYPE&& \
1235         echo #undef UVTYPE&& \
1236         echo #undef IVSIZE&& \
1237         echo #undef UVSIZE&& \
1238         echo #undef NV_PRESERVES_UV&& \
1239         echo #undef NV_PRESERVES_UV_BITS&& \
1240         echo #undef IVdf&& \
1241         echo #undef UVuf&& \
1242         echo #undef UVof&& \
1243         echo #undef UVxf&& \
1244         echo #undef UVXf&& \
1245         echo #undef USE_64_BIT_INT&& \
1246         echo #undef Gconvert&& \
1247         echo #undef HAS_FREXPL&& \
1248         echo #undef HAS_ISNANL&& \
1249         echo #undef HAS_MODFL&& \
1250         echo #undef HAS_MODFL_PROTO&& \
1251         echo #undef HAS_SQRTL&& \
1252         echo #undef HAS_STRTOLD&& \
1253         echo #undef PERL_PRIfldbl&& \
1254         echo #undef PERL_PRIgldbl&& \
1255         echo #undef PERL_PRIeldbl&& \
1256         echo #undef PERL_SCNfldbl&& \
1257         echo #undef NVTYPE&& \
1258         echo #undef NVSIZE&& \
1259         echo #undef LONG_DOUBLESIZE&& \
1260         echo #undef NV_OVERFLOWS_INTEGERS_AT&& \
1261         echo #undef NVef&& \
1262         echo #undef NVff&& \
1263         echo #undef NVgf&& \
1264         echo #undef USE_LONG_DOUBLE&& \
1265         echo #undef USE_CPLUSPLUS)>> config.h
1266 .IF "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC141"
1267         @(echo #undef FILE_ptr&& \
1268         echo #undef FILE_cnt&& \
1269         echo #undef FILE_base&& \
1270         echo #undef FILE_bufsiz&& \
1271         echo #define FILE_ptr^(fp^) PERLIO_FILE_ptr^(fp^)&& \
1272         echo #define FILE_cnt^(fp^) PERLIO_FILE_cnt^(fp^)&& \
1273         echo #define FILE_base^(fp^) PERLIO_FILE_base^(fp^)&& \
1274         echo #define FILE_bufsiz^(fp^) ^(PERLIO_FILE_cnt^(fp^) + PERLIO_FILE_ptr^(fp^) - PERLIO_FILE_base^(fp^)^)&& \
1275         echo #define I_STDBOOL)>> config.h
1276 .ENDIF
1277 .IF "$(USE_LARGE_FILES)"=="define"
1278         @(echo #define Off_t $(INT64)&& \
1279         echo #define LSEEKSIZE ^8&& \
1280         echo #define Off_t_size ^8)>> config.h
1281 .ELSE
1282         @(echo #define Off_t long&& \
1283         echo #define LSEEKSIZE ^4&& \
1284         echo #define Off_t_size ^4)>> config.h
1285 .ENDIF
1286 .IF "$(WIN64)"=="define"
1287         @(echo #define PTRSIZE ^8&& \
1288         echo #define SSize_t $(INT64)&& \
1289         echo #define HAS_ATOLL&& \
1290         echo #define HAS_STRTOLL&& \
1291         echo #define HAS_STRTOULL&& \
1292         echo #define Size_t_size ^8)>> config.h
1293 .ELSE
1294         @(echo #define PTRSIZE ^4&& \
1295         echo #define SSize_t int&& \
1296         echo #undef HAS_ATOLL&& \
1297         echo #undef HAS_STRTOLL&& \
1298         echo #undef HAS_STRTOULL&& \
1299         echo #define Size_t_size ^4)>> config.h
1300 .ENDIF
1301 .IF "$(USE_64_BIT_INT)"=="define"
1302         @(echo #define IVTYPE $(INT64)&& \
1303         echo #define UVTYPE unsigned $(INT64)&& \
1304         echo #define IVSIZE ^8&& \
1305         echo #define UVSIZE ^8)>> config.h
1306 .IF "$(USE_LONG_DOUBLE)"=="define"
1307         @(echo #define NV_PRESERVES_UV&& \
1308         echo #define NV_PRESERVES_UV_BITS 64)>> config.h
1309 .ELSE
1310         @(echo #undef NV_PRESERVES_UV&& \
1311         echo #define NV_PRESERVES_UV_BITS 53)>> config.h
1312 .ENDIF
1313         @(echo #define IVdf "I64d"&& \
1314         echo #define UVuf "I64u"&& \
1315         echo #define UVof "I64o"&& \
1316         echo #define UVxf "I64x"&& \
1317         echo #define UVXf "I64X"&& \
1318         echo #define USE_64_BIT_INT)>> config.h
1319 .ELSE
1320         @(echo #define IVTYPE long&& \
1321         echo #define UVTYPE unsigned long&& \
1322         echo #define IVSIZE ^4&& \
1323         echo #define UVSIZE ^4&& \
1324         echo #define NV_PRESERVES_UV&& \
1325         echo #define NV_PRESERVES_UV_BITS 32&& \
1326         echo #define IVdf "ld"&& \
1327         echo #define UVuf "lu"&& \
1328         echo #define UVof "lo"&& \
1329         echo #define UVxf "lx"&& \
1330         echo #define UVXf "lX"&& \
1331         echo #undef USE_64_BIT_INT)>> config.h
1332 .ENDIF
1333 .IF "$(USE_LONG_DOUBLE)"=="define"
1334         @(echo #define Gconvert^(x,n,t,b^) sprintf^(^(b^),"%.*""Lg",^(n^),^(x^)^)&& \
1335         echo #define HAS_FREXPL&& \
1336         echo #define HAS_ISNANL&& \
1337         echo #define HAS_MODFL&& \
1338         echo #define HAS_MODFL_PROTO&& \
1339         echo #define HAS_SQRTL&& \
1340         echo #define HAS_STRTOLD&& \
1341         echo #define PERL_PRIfldbl "Lf"&& \
1342         echo #define PERL_PRIgldbl "Lg"&& \
1343         echo #define PERL_PRIeldbl "Le"&& \
1344         echo #define PERL_SCNfldbl "Lf"&& \
1345         echo #define NVTYPE long double)>> config.h
1346 .IF "$(WIN64)"=="define"
1347         @(echo #define NVSIZE ^16&& \
1348         echo #define LONG_DOUBLESIZE ^16)>> config.h
1349 .ELSE
1350         @(echo #define NVSIZE ^12&& \
1351         echo #define LONG_DOUBLESIZE ^12)>> config.h
1352 .ENDIF
1353         @(echo #define NV_OVERFLOWS_INTEGERS_AT 256.0*256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0&& \
1354         echo #define NVef "Le"&& \
1355         echo #define NVff "Lf"&& \
1356         echo #define NVgf "Lg"&& \
1357         echo #define USE_LONG_DOUBLE)>> config.h
1358 .ELSE
1359         @(echo #define Gconvert^(x,n,t,b^) sprintf^(^(b^),"%.*g",^(n^),^(x^)^)&& \
1360         echo #undef HAS_FREXPL&& \
1361         echo #undef HAS_ISNANL&& \
1362         echo #undef HAS_MODFL&& \
1363         echo #undef HAS_MODFL_PROTO&& \
1364         echo #undef HAS_SQRTL&& \
1365         echo #undef HAS_STRTOLD&& \
1366         echo #undef PERL_PRIfldbl&& \
1367         echo #undef PERL_PRIgldbl&& \
1368         echo #undef PERL_PRIeldbl&& \
1369         echo #undef PERL_SCNfldbl&& \
1370         echo #define NVTYPE double&& \
1371         echo #define NVSIZE ^8&& \
1372         echo #define LONG_DOUBLESIZE ^8&& \
1373         echo #define NV_OVERFLOWS_INTEGERS_AT 256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0&& \
1374         echo #define NVef "e"&& \
1375         echo #define NVff "f"&& \
1376         echo #define NVgf "g"&& \
1377         echo #undef USE_LONG_DOUBLE)>> config.h
1378 .ENDIF
1379 .IF "$(USE_CPLUSPLUS)"=="define"
1380         @(echo #define USE_CPLUSPLUS&& \
1381         echo #endif)>> config.h
1382 .ELSE
1383         @(echo #undef USE_CPLUSPLUS&& \
1384         echo #endif)>> config.h
1385 .ENDIF
1386 #separate line since this is sentinal that this target is done
1387         rem. > $(MINIDIR)\.exists
1388
1389 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
1390         $(CC) -c $(CFLAGS) $(MINIBUILDOPT) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(PDBOUT) ..\$(*B).c
1391
1392 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1393         $(CC) -c $(CFLAGS) $(MINIBUILDOPT) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(PDBOUT) $(*B).c
1394
1395 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1396 # rules wrapped in .IFs break Win9X build (we end up with unbalanced []s unless
1397 # unless the .IF is true), so instead we use a .ELSE with the default.
1398 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1399
1400 perllib$(o)     : perllib.c perllibst.h .\perlhost.h .\vdir.h .\vmem.h
1401 .IF "$(USE_IMP_SYS)" == "define"
1402         $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ $(PDBOUT) perllib.c
1403 .ELSE
1404         $(CC) -c -I. $(CFLAGS_O) $(OBJOUT_FLAG)$@ $(PDBOUT) perllib.c
1405 .ENDIF
1406
1407 # 1. we don't want to rebuild miniperl.exe when config.h changes
1408 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1409 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1410 $(MINI_OBJ)     : $(MINIDIR)\.exists $(CORE_NOCFG_H)
1411
1412 $(WIN32_OBJ)    : $(CORE_H)
1413
1414 $(CORE_OBJ)     : $(CORE_H)
1415
1416 $(DLL_OBJ)      : $(CORE_H)
1417
1418
1419 perllibst.h : $(HAVEMINIPERL) $(CONFIGPM) create_perllibst_h.pl
1420         $(MINIPERL) -I..\lib create_perllibst_h.pl
1421
1422 perldll.def : $(HAVEMINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl
1423         $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) \
1424         $(BUILDOPT) CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1425
1426 $(PERLEXPLIB) $(PERLIMPLIB) .UPDATEALL : perldll.def
1427 .IF "$(CCTYPE)" == "GCC"
1428         $(IMPLIB) -k -d perldll.def -l $(PERLIMPLIB) -e $(PERLEXPLIB)
1429 .ELSE #VC family
1430         lib -def:perldll.def -machine:$(ARCHITECTURE) /OUT:$(PERLIMPLIB)
1431 .ENDIF
1432
1433 $(PERLDLL): $(PERLEXPLIB) $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1434 .IF "$(CCTYPE)" == "GCC"
1435         $(LINK32) -mdll -o $@ $(BLINK_FLAGS) \
1436            $(PERLDLL_OBJ) $(shell @type Extensions_static) $(LIBFILES) $(PERLEXPLIB)
1437 .ELSE
1438         $(LINK32) -dll -out:$@ $(BLINK_FLAGS) \
1439             @Extensions_static \
1440             @$(mktmp -base:0x28000000 $(DELAYLOAD) $(LIBFILES) \
1441                 $(PERLDLL_RES) $(PERLDLL_OBJ) $(PERLEXPLIB))
1442         $(EMBED_DLL_MANI)
1443 .ENDIF
1444
1445 $(PERLSTATICLIB): $(PERLDLL_OBJ) Extensions_static
1446 .IF "$(CCTYPE)" == "GCC"
1447         $(LIB32) $(LIB_FLAGS) $@ $(PERLDLL_OBJ)
1448         if exist $(STATICDIR) rmdir /s /q $(STATICDIR)
1449         for %i in ($(shell @type Extensions_static)) do \
1450                 @mkdir $(STATICDIR) && cd $(STATICDIR) && \
1451                 $(ARCHPREFIX)ar x ..\%i && \
1452                 $(ARCHPREFIX)ar q ..\$@ *$(o) && \
1453                 cd .. && rmdir /s /q $(STATICDIR)
1454 .ELSE
1455         $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static \
1456             @$(mktmp $(PERLDLL_OBJ))
1457 .ENDIF
1458         $(XCOPY) $(PERLSTATICLIB) $(COREDIR)\$(NULL)
1459
1460 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1461
1462 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1463
1464 $(GENUUDMAP) $(GENERATED_HEADERS) .UPDATEALL : ..\mg_raw.h
1465 .IF "$(CCTYPE)" == "GCC"
1466         $(LINK32) $(CFLAGS_O) -o..\generate_uudmap.exe ..\generate_uudmap.c \
1467         $(BLINK_FLAGS) -x $(mktmp $(LKPRE) $(LIBFILES) $(LKPOST))
1468 .ELSE
1469         $(CC) $(CFLAGS_O) $(PDBOUT) -Fe..\generate_uudmap.exe ..\generate_uudmap.c @$(mktmp -link $(LIBFILES)) -link $(BLINK_FLAGS)
1470         $(EMBED_EXE_MANI:s/$@/..\generate_uudmap.exe/)
1471 .ENDIF
1472         $(GENUUDMAP) $(GENERATED_HEADERS)
1473
1474 MakePPPort : $(HAVEMINIPERL) $(CONFIGPM)
1475         $(MINIPERL) -I..\lib ..\mkppport
1476
1477 # also known as $(HAVE_COREDIR)
1478 .\.coreheaders : $(CORE_H)
1479         $(XCOPY) *.h $(COREDIR)\*.* && $(RCOPY) include $(COREDIR)\*.* && $(XCOPY) ..\*.h $(COREDIR)\*.*
1480         rem. > $@
1481
1482 perlmain$(o) : runperl.c $(CONFIGPM)
1483         $(CC) $(CFLAGS_O:s,-DPERLDLL,-UPERLDLL,) $(OBJOUT_FLAG)$@ $(PDBOUT) -c runperl.c
1484
1485 perlmainst$(o) : runperl.c $(CONFIGPM)
1486         $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $(PDBOUT) -c runperl.c
1487
1488 $(PERLEXE): $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB)
1489 .IF "$(CCTYPE)" == "GCC"
1490         $(LINK32) -mconsole -o $@ $(BLINK_FLAGS)  \
1491             $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES)
1492 .ELSE
1493         $(LINK32) -out:$@ $(BLINK_FLAGS) \
1494             $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1495         $(EMBED_EXE_MANI)
1496 .ENDIF
1497         copy $(PERLEXE) $(WPERLEXE)
1498         $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1499
1500 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1501 .IF "$(CCTYPE)" == "GCC"
1502         $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
1503             $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES)
1504 .ELSE
1505         $(LINK32) -out:$@ $(BLINK_FLAGS) \
1506             $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1507         $(EMBED_EXE_MANI)
1508 .ENDIF
1509
1510 #-------------------------------------------------------------------------------
1511 # There's no direct way to mark a dependency on
1512 # DynaLoader.pm, so this will have to do
1513
1514 #most of deps of this target are in DYNALOADER and therefore omitted here
1515 Extensions : $(PERLDEP) $(DYNALOADER) $(GLOBEXE) MakePPPort
1516         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic !Unicode/Normalize
1517
1518 Extensions_normalize : $(PERLDEP) $(DYNALOADER) $(GLOBEXE) $(UNIDATAFILES)
1519         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +Unicode/Normalize
1520
1521 Extensions_reonly : $(PERLDEP) $(DYNALOADER)
1522         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1523
1524 Extensions_static : ..\make_ext.pl list_static_libs.pl $(CONFIGPM) $(GLOBEXE) $(HAVE_COREDIR) MakePPPort
1525         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1526         $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1527
1528 Extensions_nonxs : ..\make_ext.pl ..\pod\perlfunc.pod $(CONFIGPM) $(GLOBEXE)
1529         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs !libs
1530
1531 #lib must be built, it can't be buildcustomize.pl-ed, and is required for XS building
1532 $(DYNALOADER) : ..\make_ext.pl $(CONFIGPM) $(HAVE_COREDIR)
1533         $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(EXTDIR) --dir=$(DISTDIR) --dynaloader lib
1534
1535 Extensions_clean :
1536         -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1537
1538 Extensions_realclean :
1539         -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(PLMAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1540
1541 # all PE files need to be built by the time this target runs, PP files can still
1542 # be running in parallel like UNIDATAFILES, this target a placeholder for the
1543 # future
1544 .IF "$(BUILD_STATIC)"=="define"
1545 rebasePE : Extensions $(PERLDLL) Extensions_normalize $(PERLEXE) $(PERLEXESTATIC)
1546 .ELSE
1547 rebasePE : Extensions $(PERLDLL) Extensions_normalize $(PERLEXE)
1548 .ENDIF
1549         $(NOOP)
1550
1551 PostExt : ..\lib\Storable\Limit.pm
1552         $(NOOP)
1553
1554 # we need the exe, perl(ver).dll, and the Exporter, Storable, Win32 extensions
1555 # rebasePE covers just about that, including adjustment for static builds
1556 ..\lib\Storable\Limit.pm : rebasePE
1557         cd ..\dist\Storable && $(MAKE) lib\Storable\Limit.pm
1558         if not exist ..\lib\Storable mkdir ..\lib\Storable
1559         copy ..\dist\Storable\lib\Storable\Limit.pm ..\lib\Storable\Limit.pm
1560
1561 #-------------------------------------------------------------------------------
1562
1563
1564 doc: $(PERLEXE) $(PERLDLL) ..\pod\perltoc.pod
1565         $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1566             --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
1567             --recurse
1568
1569 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1570         $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1571
1572 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1573 # so please check that script before making structural changes here
1574 utils: $(HAVEMINIPERL) ..\utils\Makefile
1575         cd ..\utils && $(PLMAKE) PERL=$(MINIPERL)
1576         copy ..\README.aix      ..\pod\perlaix.pod
1577         copy ..\README.amiga    ..\pod\perlamiga.pod
1578         copy ..\README.android  ..\pod\perlandroid.pod
1579         copy ..\README.bs2000   ..\pod\perlbs2000.pod
1580         copy ..\README.ce       ..\pod\perlce.pod
1581         copy ..\README.cn       ..\pod\perlcn.pod
1582         copy ..\README.cygwin   ..\pod\perlcygwin.pod
1583         copy ..\README.dos      ..\pod\perldos.pod
1584         copy ..\README.freebsd  ..\pod\perlfreebsd.pod
1585         copy ..\README.haiku    ..\pod\perlhaiku.pod
1586         copy ..\README.hpux     ..\pod\perlhpux.pod
1587         copy ..\README.hurd     ..\pod\perlhurd.pod
1588         copy ..\README.irix     ..\pod\perlirix.pod
1589         copy ..\README.jp       ..\pod\perljp.pod
1590         copy ..\README.ko       ..\pod\perlko.pod
1591         copy ..\README.linux    ..\pod\perllinux.pod
1592         copy ..\README.macos    ..\pod\perlmacos.pod
1593         copy ..\README.macosx   ..\pod\perlmacosx.pod
1594         copy ..\README.netware  ..\pod\perlnetware.pod
1595         copy ..\README.openbsd  ..\pod\perlopenbsd.pod
1596         copy ..\README.os2      ..\pod\perlos2.pod
1597         copy ..\README.os390    ..\pod\perlos390.pod
1598         copy ..\README.os400    ..\pod\perlos400.pod
1599         copy ..\README.plan9    ..\pod\perlplan9.pod
1600         copy ..\README.qnx      ..\pod\perlqnx.pod
1601         copy ..\README.riscos   ..\pod\perlriscos.pod
1602         copy ..\README.solaris  ..\pod\perlsolaris.pod
1603         copy ..\README.symbian  ..\pod\perlsymbian.pod
1604         copy ..\README.synology ..\pod\perlsynology.pod
1605         copy ..\README.tru64    ..\pod\perltru64.pod
1606         copy ..\README.tw       ..\pod\perltw.pod
1607         copy ..\README.vos      ..\pod\perlvos.pod
1608         copy ..\README.win32    ..\pod\perlwin32.pod
1609         copy ..\pod\perldelta.pod ..\pod\perl52711delta.pod
1610         $(MINIPERL) -I..\lib $(PL2BAT) $(UTILS)
1611         $(MINIPERL) -I..\lib ..\autodoc.pl ..
1612         $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1613
1614 ..\pod\perltoc.pod: $(PERLEXE) $(PERLDLL) Extensions Extensions_nonxs Extensions_normalize utils
1615         $(PERLEXE) -f ..\pod\buildtoc -q
1616
1617 # Note that the pod cleanup in this next section is parsed (and regenerated
1618 # by pod/buildtoc so please check that script before making changes here
1619
1620 distclean: realclean
1621         -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1622                 $(PERLIMPLIB) ..\miniperl$(a) $(PERLEXESTATIC) $(PERLSTATICLIB)
1623         -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1624         -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1625         -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1626         -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1627         -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1628         -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1629         -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1630         -del /f $(LIBDIR)\File\Glob.pm
1631         -del /f $(LIBDIR)\Storable.pm
1632         -del /f $(LIBDIR)\Sys\Hostname.pm
1633         -del /f $(LIBDIR)\Time\HiRes.pm
1634         -del /f $(LIBDIR)\Unicode\Normalize.pm
1635         -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1636         -del /f $(LIBDIR)\Storable.pm $(LIBDIR)\Storable\Limit.pm
1637         -del /f $(LIBDIR)\Win32.pm
1638         -del /f $(LIBDIR)\Win32CORE.pm
1639         -del /f $(LIBDIR)\Win32API\File.pm
1640         -del /f $(LIBDIR)\Win32API\File\cFile.pc
1641         -del /f $(LIBDIR)\buildcustomize.pl
1642         -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1643         -del /f *.def *.map
1644         -if exist $(LIBDIR)\Amiga rmdir /s /q $(LIBDIR)\Amiga
1645         -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1646         -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1647         -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1648         -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1649         -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1650         -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1651         -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1652         -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1653         -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1654         -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1655         -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1656         -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1657         -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1658         -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1659         -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1660         -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1661         -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1662         -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1663         -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1664         -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1665         -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1666         -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1667         -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1668         -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1669         -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1670         -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
1671         -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc
1672         -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1673         -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1674         -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON
1675         -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1676         -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1677         -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1678         -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1679         -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1680         -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1681         -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1682         -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1683         -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1684         -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1685         -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1686         -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1687         -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1688         -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1689         -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1690         -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1691         -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub
1692         -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1693         -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1694         -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term
1695         -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1696         -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test2
1697         -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text
1698         -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1699         -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1700         -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1701         -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1702         -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale
1703         -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version
1704         -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS
1705         -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1706         -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1707         -cd $(PODDIR) && del /f *.html *.bat roffitall \
1708             perl52711delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
1709             perlapi.pod perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \
1710             perldos.pod perlfreebsd.pod perlhaiku.pod perlhpux.pod \
1711             perlhurd.pod perlintern.pod perlirix.pod perljp.pod perlko.pod \
1712             perllinux.pod perlmacos.pod perlmacosx.pod perlmodlib.pod \
1713             perlnetware.pod perlopenbsd.pod perlos2.pod perlos390.pod \
1714             perlos400.pod perlplan9.pod perlqnx.pod perlriscos.pod \
1715             perlsolaris.pod perlsymbian.pod perlsynology.pod perltoc.pod \
1716             perltru64.pod perltw.pod perluniprops.pod perlvos.pod \
1717             perlwin32.pod
1718         -cd ..\utils && del /f h2ph splain perlbug pl2pm h2xs \
1719             perldoc perlivp libnetcfg enc2xs encguess piconv cpan *.bat \
1720             xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails
1721         -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1722             perlmainst.c
1723         -del /f $(CONFIGPM)
1724         -del /f ..\lib\Config_git.pl
1725         -del /f bin\*.bat
1726         -del /f perllibst.h
1727         -del /f $(PERLEXE_RES) perl.base
1728         -cd .. && del /s *$(a) *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1729         -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1730         -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1731         -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1732         -del /s ..\utils\Makefile
1733         -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1734         -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1735         -if exist pod2htmd.tmp del pod2htmd.tmp
1736         -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1737         -del /f ..\t\test_state
1738
1739 install : all installbare installhtml
1740
1741 installbare : utils ..\pod\perltoc.pod
1742         $(PERLEXE) ..\installperl
1743         if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1744         if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1745         $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1746         if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1747         $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1748
1749 installhtml : doc
1750         $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1751
1752 inst_lib : $(CONFIGPM)
1753         $(RCOPY) ..\lib $(INST_LIB)\*.*
1754
1755 $(UNIDATAFILES) ..\pod\perluniprops.pod .UPDATEALL : ..\lib\unicore\mktables $(CONFIGPM)
1756         $(MINIPERL) -I..\lib ..\lib\unicore\mktables -C ..\lib\unicore -P ..\pod -maketest -makelist -p
1757
1758 minitest : .\config.h $(HAVEMINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES) $(TESTPREPGCC)
1759         $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1760         if exist ..\t\perl.exe del /f ..\t\perl.exe
1761         rename ..\t\miniperl.exe perl.exe
1762         $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1763 # Note this perl.exe is miniperl
1764         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
1765
1766 test-prep : all utils ..\pod\perltoc.pod $(TESTPREPGCC)
1767         $(XCOPY) $(PERLEXE) ..\t\$(NULL) && $(XCOPY) $(PERLDLL) ..\t\$(NULL) \
1768         && $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1769
1770 # If building with gcc versions 4.x.x or greater, then
1771 # the GCC helper DLL will also need copied to the test directory.
1772 # The name of the dll can change, depending upon which vendor has supplied
1773 # your compiler, and upon the values of "x".
1774 # libstdc++-6.dll is copied if it exists as it, too, may then be needed.
1775 # Without this copying, the op/taint.t test script will fail.
1776
1777 .IF "$(CCTYPE)" == "GCC"
1778
1779 test-prep-gcc :
1780         if exist $(CCDLLDIR)\libgcc_s_seh-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_seh-1.dll ..\t\$(NULL)
1781         if exist $(CCDLLDIR)\libgcc_s_sjlj-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_sjlj-1.dll ..\t\$(NULL)
1782         if exist $(CCDLLDIR)\libgcc_s_dw2-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_dw2-1.dll ..\t\$(NULL)
1783         if exist $(CCDLLDIR)\libstdc++-6.dll $(XCOPY) $(CCDLLDIR)\libstdc++-6.dll ..\t\$(NULL)
1784         if exist $(CCDLLDIR)\libwinpthread-1.dll $(XCOPY) $(CCDLLDIR)\libwinpthread-1.dll ..\t\$(NULL)
1785
1786 .ENDIF
1787
1788 test : test-prep
1789         set PERL_STATIC_EXT=$(STATIC_EXT) && \
1790             cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1791
1792 test_porting : test-prep
1793         set PERL_STATIC_EXT=$(STATIC_EXT) && \
1794             cd ..\t && perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1795
1796 test-reonly : reonly utils
1797         $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1798         $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1799         $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1800         cd ..\t && perl.exe harness $(OPT) -re \bpat\\/ $(EXTRA)
1801
1802 regen :
1803         cd .. && regen.pl
1804
1805 test-notty : test-prep
1806         set PERL_STATIC_EXT=$(STATIC_EXT) && \
1807             set PERL_SKIP_TTY_TEST=1 && \
1808             cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1809
1810 _test :
1811         $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1812         $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1813         $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1814         set PERL_STATIC_EXT=$(STATIC_EXT) && \
1815             cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1816
1817 _clean :
1818         -@erase miniperlmain$(o)
1819         -@erase $(MINIPERL)
1820         -@erase perlglob$(o)
1821         -@erase perlmain$(o)
1822         -@erase perlmainst$(o)
1823         -@erase /f config.h
1824         -@erase /f ..\git_version.h
1825         -@erase $(GLOBEXE)
1826         -@erase $(PERLEXE)
1827         -@erase $(WPERLEXE)
1828         -@erase $(PERLEXESTATIC)
1829         -@erase $(PERLSTATICLIB)
1830         -@erase $(PERLDLL)
1831         -@erase $(CORE_OBJ)
1832         -@erase $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1833         -@erase .coreheaders
1834         -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1835         -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1836         -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1837         -@erase $(UNIDATAFILES)
1838         -@erase $(WIN32_OBJ)
1839         -@erase $(DLL_OBJ)
1840         -@erase ..\*$(o) ..\*$(a) ..\*.exp *$(o) *$(a) *.exp *.res
1841         -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1842         -@erase *.ilk
1843         -@erase *.pdb ..\*.pdb
1844         -@erase Extensions_static
1845
1846 clean : Extensions_clean _clean
1847
1848 realclean : Extensions_realclean _clean
1849
1850 # Handy way to run perlbug -ok without having to install and run the
1851 # installed perlbug. We don't re-run the tests here - we trust the user.
1852 # Please *don't* use this unless all tests pass.
1853 # If you want to report test failures, use "dmake nok" instead.
1854 ok: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
1855         $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)"
1856
1857 okfile: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
1858         $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1859
1860 nok: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
1861         $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)"
1862
1863 nokfile: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
1864         $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok
1865