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