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