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