2 # Makefile to build perl on Windows using Microsoft NMAKE.
4 # Microsoft Visual C++ 6.0 or later
5 # Windows SDK 64-bit compiler and tools
7 # This is set up to build a perl.exe that runs off a shared library
8 # (perl523.dll). Also makes individual DLLs for the XS extensions.
12 ## Make sure you read README.win32 *before* you mess with anything here!
16 ## Build configuration. Edit the values below to suit your needs.
20 # Set these to wherever you want "nmake install" to put your
24 INST_TOP = $(INST_DRV)\perl
27 # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler
28 # on a 64-bit version of Windows.
33 # Comment this out if you DON'T want your perl installation to be versioned.
34 # This means that the new installation will overwrite any files from the
35 # old installation at the same INST_TOP location. Leaving it enabled is
36 # the safest route, as perl adds the extra version directory to all the
37 # locations it installs files to. If you disable it, an alternative
38 # versioned installation can be obtained by setting INST_TOP above to a
39 # path that includes an arbitrary version string.
44 # Comment this out if you DON'T want your perl installation to have
45 # architecture specific components. This means that architecture-
46 # specific files will be installed along with the architecture-neutral
47 # files. Leaving it enabled is safer and more flexible, in case you
48 # want to build multiple flavors of perl and install them together in
49 # the same location. Commenting it out gives you a simpler
50 # installation that is easier to understand for beginners.
52 #INST_ARCH = \$(ARCHNAME)
55 # Uncomment this if you want perl to run
56 # $Config{sitelibexp}\sitecustomize.pl
57 # before anything else. This script can then be set up, for example,
58 # to add additional entries to @INC.
60 #USE_SITECUST = define
63 # uncomment to enable multiple interpreters. This is needed for fork()
64 # emulation and for thread support, and is auto-enabled by USE_IMP_SYS
65 # and USE_ITHREADS below.
70 # Interpreter cloning/threads; now reasonably complete.
71 # This should be enabled to get the fork() emulation. This needs (and
72 # will auto-enable) USE_MULTI above.
77 # uncomment to enable the implicit "host" layer for all system calls
78 # made by perl. This is also needed to get fork(). This needs (and
79 # will auto-enable) USE_MULTI above.
84 # Comment this out if you don't want to enable large file support for
85 # some reason. Should normally only be changed to maintain compatibility
86 # with an older release of perl.
88 USE_LARGE_FILES = define
91 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
92 # (If you're building a 64-bit perl then you will have 64-bit integers whether
93 # or not this is uncommented.)
94 # Note: This option is not supported in 32-bit MSVC60 builds.
96 #USE_64_BIT_INT = define
99 # uncomment exactly one of the following
101 # Visual C++ 6.x (aka Visual C++ 98)
103 # Visual C++ .NET 2002/2003 (aka Visual C++ 7.x) (full version)
105 # Visual C++ Toolkit 2003 (aka Visual C++ 7.x) (free command-line tools)
107 # Windows Server 2003 SP1 Platform SDK (April 2005)
109 # Visual C++ 2005 (aka Visual C++ 8.x) (full version)
111 # Visual C++ 2005 Express Edition (aka Visual C++ 8.x) (free version)
113 # Visual C++ 2008 (aka Visual C++ 9.x) (full version)
115 # Visual C++ 2008 Express Edition (aka Visual C++ 9.x) (free version)
117 # Visual C++ 2010 (aka Visual C++ 10.x) (full version)
119 # Visual C++ 2010 Express Edition (aka Visual C++ 10.x) (free version)
120 #CCTYPE = MSVC100FREE
121 # Visual C++ 2012 (aka Visual C++ 11.x) (full version)
123 # Visual C++ 2012 Express Edition (aka Visual C++ 11.x) (free version)
124 #CCTYPE = MSVC110FREE
125 # Visual C++ 2013 (aka Visual C++ 12.x) (full version)
127 # Visual C++ 2013 Express Edition (aka Visual C++ 12.x) (free version)
128 #CCTYPE = MSVC120FREE
131 # If you are using Intel C++ Compiler uncomment this
136 # Uncomment this if you want to build everything in C++ mode
138 #USE_CPLUSPLUS = define
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.
145 # You can also set CFG = DebugSymbols for a slightly smaller/faster
146 # debug build without the special debugging code in perl which is
147 # enabled via -DDEBUGGING;
149 # or you can set CFG = DebugFull for an even fuller (bigger/slower)
150 # debug build using the debug version of the CRT, and enabling VC++
151 # debug features such as extra assertions and invalid parameter warnings
152 # in perl and CRT code via -D_DEBUG. (Note that the invalid parameter
153 # handler does get triggered from time to time in this configuration,
154 # which causes warnings to be printed on STDERR, which in turn causes a
155 # few tests to fail.)
160 # uncomment to enable linking with setargv.obj under the Visual C
161 # compiler. Setting this options enables perl to expand wildcards in
162 # arguments, but it may be harder to use alternate methods like
163 # File::DosGlob that are more powerful. This option is supported only with
166 #USE_SETARGV = define
169 # set this if you wish to use perl's malloc
170 # WARNING: Turning this on/off WILL break binary compatibility with extensions
171 # you may have compiled with/without it. Be prepared to recompile all
172 # extensions if you change the default. Currently, this cannot be enabled
173 # if you ask for USE_IMP_SYS above.
175 #PERL_MALLOC = define
178 # set this to enable debugging mstats
179 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
180 # be enabled without PERL_MALLOC as well.
182 #DEBUG_MSTATS = define
185 # set this to additionally provide a statically linked perl-static.exe.
186 # Note that dynamic loading will not work with this perl, so you must
187 # include required modules statically using the STATIC_EXT or ALL_STATIC
188 # variables below. A static library perl523s.lib will also be created.
189 # Ordinary perl.exe is not affected by this option.
191 #BUILD_STATIC = define
194 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
195 # extension get statically built
196 # This will result in a very large perl executable, but the main purpose
197 # is to have proper linking set so as to be able to create miscellaneous
198 # executables with different built-in extensions
204 # set the install locations of the compiler include/libraries
205 # Running VCVARS32.BAT is *required* when using Visual C.
206 # Some versions of Visual C don't define MSVCDIR in the environment,
207 # so you may have to set CCHOME explicitly (spaces in the path name should
211 CCINCDIR = $(CCHOME)\include
212 CCLIBDIR = $(CCHOME)\lib
215 # Additional compiler flags can be specified here.
217 BUILDOPT = $(BUILDOPTEXTRA)
220 # This should normally be disabled. Enabling it will disable the File::Glob
221 # implementation of CORE::glob.
223 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
226 # Perl needs to read scripts in text mode so that the DATA filehandle
227 # works correctly with seek() and tell(), or around auto-flushes of
228 # all filehandles (e.g. by system(), backticks, fork(), etc).
230 # The current version on the ByteLoader module on CPAN however only
231 # works if scripts are read in binary mode. But before you disable text
232 # mode script reading (and break some DATA filehandle functionality)
233 # please check first if an updated ByteLoader isn't available on CPAN.
235 BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
238 # specify semicolon-separated list of extra directories that modules will
239 # look for libraries (spaces in path names need not be quoted)
244 # set this to your email address (perl will guess a value from
245 # from your loginname and your hostname, which may not be right)
250 ## Build configuration ends.
253 ##################### CHANGE THESE ONLY IF YOU MUST #####################
255 !IF "$(USE_IMP_SYS)" == "define"
260 !IF "$(PERL_MALLOC)" == ""
265 !IF "$(DEBUG_MSTATS)" == ""
269 !IF "$(DEBUG_MSTATS)" == "define"
270 BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
273 !IF "$(USE_SITECUST)" == ""
277 !IF "$(USE_MULTI)" == ""
281 !IF "$(USE_ITHREADS)" == ""
285 !IF "$(USE_IMP_SYS)" == ""
289 !IF "$(USE_LARGE_FILES)" == ""
290 USE_LARGE_FILES = undef
293 !IF "$(USE_64_BIT_INT)" == ""
294 USE_64_BIT_INT = undef
297 !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
301 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
305 !IF "$(USE_SITECUST)" == "define"
306 BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE
309 !IF "$(USE_MULTI)" != "undef"
310 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
313 !IF "$(USE_IMP_SYS)" != "undef"
314 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
317 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
318 PROCESSOR_ARCHITECTURE = x86
322 # When we are running from a 32bit cmd.exe on AMD64 then
323 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
325 !IF "$(PROCESSOR_ARCHITEW6432)" != ""
326 PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432)
329 !IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
337 !IF "$(WIN64)" == "define"
338 USE_64_BIT_INT = define
341 # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because
342 # both link against MSVCRT.dll (which is part of Windows itself) and
343 # not against a compiler specific versioned runtime.
344 !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60"
348 # Disable the 64-bit-int option for (32-bit) MSVC60 builds since that compiler
349 # does not support it.
350 !IF "$(CCTYPE)" == "MSVC60"
351 !UNDEF USE_64_BIT_INT
352 USE_64_BIT_INT = undef
355 # Most relevant compiler-specific options fall into two groups:
356 # either pre-MSVC80 or MSVC80 onwards, so define a macro for this.
357 !IF "$(CCTYPE)" == "MSVC60" || \
358 "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
364 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
365 !IF "$(ARCHITECTURE)" == "AMD64"
368 !IF "$(ARCHITECTURE)" == "IA64"
372 !IF "$(USE_MULTI)" == "define"
373 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
375 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
378 !IF "$(USE_ITHREADS)" == "define"
379 ARCHNAME = $(ARCHNAME)-thread
382 !IF "$(WIN64)" != "define"
383 !IF "$(USE_64_BIT_INT)" == "define"
384 ARCHNAME = $(ARCHNAME)-64int
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
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
404 ARCHDIR = ..\lib\$(ARCHNAME)
405 COREDIR = ..\lib\CORE
406 AUTODIR = ..\lib\auto
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
423 # Programs to compile, build .lib files and link
426 !IF "$(__ICC)" != "define"
433 LIB32 = $(LINK32) -lib
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
448 !IF "$(CFG)" == "Debug"
449 OPTIMIZE = -Od -MD -Zi -DDEBUGGING
452 !IF "$(CFG)" == "DebugSymbols"
453 OPTIMIZE = -Od -MD -Zi
456 !IF "$(CFG)" == "DebugFull"
458 OPTIMIZE = -Od -MDd -Zi -D_DEBUG -DDEBUGGING
461 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
462 OPTIMIZE = -O1 -MD -Zi -DNDEBUG
463 # we enable debug symbols in release builds also
464 LINK_DBG = -debug -opt:ref,icf
465 # you may want to enable this if you want COFF symbols in the executables
466 # in addition to the PDB symbols. The default Dr. Watson that ships with
467 # Windows can use the the former but not latter. The free WinDbg can be
468 # installed to get better stack traces from just the PDB symbols, so we
469 # avoid the bloat of COFF symbols by default.
470 #LINK_DBG = $(LINK_DBG) -debugtype:both
471 ! IF "$(CCTYPE)" != "MSVC60"
472 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
473 OPTIMIZE = $(OPTIMIZE) -GL
474 LINK_DBG = $(LINK_DBG) -ltcg
481 !IF "$(WIN64)" == "define"
482 DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE
483 OPTIMIZE = $(OPTIMIZE) -fp:precise
486 # For now, silence warnings from VC++ 8.x onwards about "unsafe" CRT functions
487 # and POSIX CRT function names being deprecated.
488 !IF "$(PREMSVC80)" == "undef"
489 DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
492 # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
493 # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T
494 # preprocessor option to revert back to the old functionality for
495 # backward compatibility. We define this symbol here for older 32-bit
496 # compilers only (which aren't using it at all) for the sole purpose
497 # of getting it into $Config{ccflags}. That way if someone builds
498 # Perl itself with e.g. VC6 but later installs an XS module using VC8
499 # the time_t types will still be compatible.
500 !IF "$(WIN64)" == "undef"
501 ! IF "$(PREMSVC80)" == "define"
502 BUILDOPT = $(BUILDOPT) -D_USE_32BIT_TIME_T
507 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
508 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
509 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
510 version.lib odbc32.lib odbccp32.lib comctl32.lib
512 # Avoid __intel_new_proc_init link error for libircmt.
513 # libmmd is /MD equivelent, other variants exist.
514 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
515 # and optimized C89 funcs
516 !IF "$(__ICC)" == "define"
517 LIBBASEFILES = $(LIBBASEFILES) libircmt.lib libmmd.lib
520 # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which
521 # doesn't include the buffer overrun verification code used by the /GS switch.
522 # Since the code links against libraries that are compiled with /GS, this
523 # "security cookie verification" code must be included via bufferoverflow.lib.
524 !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1"
525 LIBBASEFILES = $(LIBBASEFILES) bufferoverflowU.lib
528 LIBFILES = $(LIBBASEFILES) $(LIBC)
530 #EXTRACFLAGS = -nologo -GF -W4 -wd4127 -wd4706
531 EXTRACFLAGS = -nologo -GF -W3
532 !IF "$(__ICC)" == "define"
533 EXTRACFLAGS = $(EXTRACFLAGS) -Qstd=c99
535 !IF "$(USE_CPLUSPLUS)" == "define"
536 EXTRACFLAGS = $(EXTRACFLAGS) $(CXX_FLAG)
538 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
539 $(PCHFLAGS) $(OPTIMIZE)
540 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
541 -libpath:"$(INST_COREDIR)" \
542 -machine:$(PROCESSOR_ARCHITECTURE)
543 LIB_FLAGS = $(LIB_FLAGS) -nologo
547 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
549 !IF "$(PREMSVC80)" == "undef"
550 LINK_FLAGS = $(LINK_FLAGS) "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
552 RSC_FLAGS = -DINCLUDE_MANIFEST
555 # For XP support in >= 2013, subsystem is always in Config.pm LINK_FLAGS
556 # else subsystem is only needed for EXE building, not XS DLL building
557 # Console vs GUI makes no difference for DLLs, so use default for cleaner
559 !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC120FREE" \
560 || "$(CCTYPE)" == "MSVC150" || "$(CCTYPE)" == "MSVC150FREE"
561 ! IF "$(WIN64)" == "define"
562 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.02"
564 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.01"
569 PRIV_LINK_FLAGS = -subsystem:console
572 BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
574 #################### do not edit below this line #######################
575 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
583 #clear the list, we dont support .cxx .bas .cbl .for .pas .f .f90
584 # .asm .cpp are not currently used but they are included for completeness
586 .SUFFIXES : .c $(o) .cpp .asm .dll .lib .exe .rc .res
589 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
592 $(CC) -c -I$(<D) $(CFLAGS_O) -P $(OBJOUT_FLAG)$@ $<
598 $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \
599 -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
603 $(RSC) -i.. $(RSC_FLAGS) $<
608 # makedef.pl must be updated if this changes, and this should normally
609 # only change when there is an incompatible revision of the public API.
610 PERLIMPLIB = ..\perl523.lib
611 PERLSTATICLIB = ..\perl523s.lib
612 PERLDLL = ..\perl523.dll
614 MINIPERL = ..\miniperl.exe
616 PERLEXE = ..\perl.exe
617 WPERLEXE = ..\wperl.exe
618 PERLEXESTATIC = ..\perl-static.exe
619 GLOBEXE = ..\perlglob.exe
620 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
621 GENUUDMAP = ..\generate_uudmap.exe
622 !IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
628 # Unicode data files generated by mktables
629 FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl
630 UNIDATAFILES = ..\lib\unicore\Decomposition.pl \
631 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
632 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \
633 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
634 ..\lib\unicore\TestProp.pl
636 # Directories of Unicode data files generated by mktables
637 UNIDATADIR1 = ..\lib\unicore\To
638 UNIDATADIR2 = ..\lib\unicore\lib
640 PERLEXE_MANIFEST= .\perlexe.manifest
641 PERLEXE_ICO = .\perlexe.ico
642 PERLEXE_RES = .\perlexe.res
645 # Nominate a target which causes extensions to be re-built
646 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
647 # on and really only the interface - i.e. the .def file used to export symbols
649 PERLDEP = perldll.def
651 PL2BAT = bin\pl2bat.pl
652 GLOBBAT = bin\perlglob.bat
675 ..\utils\zipdetails \
689 CFGSH_TMPL = config.vc
690 CFGH_TMPL = config_H.vc
692 XCOPY = xcopy /f /r /i /d /y
693 RCOPY = xcopy /f /r /i /e /d /y
739 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
741 !IF "$(PERL_MALLOC)" == "define"
742 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
745 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
791 .\include\sys\errno2.h \
792 .\include\sys\socket.h \
795 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
797 UUDMAP_H = ..\uudmap.h
798 BITCOUNT_H = ..\bitcount.h
799 MG_DATA_H = ..\mg_data.h
800 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
802 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
803 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
804 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
805 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
806 $(MINIDIR)\miniperlmain$(o) \
807 $(MINIDIR)\perlio$(o)
808 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
809 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
810 DLL_OBJ = $(DYNALOADER)
811 GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj)
813 PERLDLL_OBJ = $(CORE_OBJ)
814 PERLEXE_OBJ = perlmain$(o)
815 PERLEXEST_OBJ = perlmainst$(o)
817 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
819 !IF "$(USE_SETARGV)" != ""
820 SETARGV_OBJ = setargv$(o)
823 !IF "$(ALL_STATIC)" == "define"
824 # some exclusions, unfortunately, until fixed:
825 # - MakeMaker isn't capable enough for SDBM_File (small bug)
826 STATIC_EXT = * !SDBM_File
828 # specify static extensions here, for example:
829 # (be sure to include Win32CORE to load Win32 on demand)
830 #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib
831 STATIC_EXT = Win32CORE
834 DYNALOADER = ..\DynaLoader$(o)
837 "INST_TOP=$(INST_TOP)" \
838 "INST_VER=$(INST_VER)" \
839 "INST_ARCH=$(INST_ARCH)" \
840 "archname=$(ARCHNAME)" \
843 "ccflags=$(EXTRACFLAGS) $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
844 "usecplusplus=$(USE_CPLUSPLUS)" \
845 "cf_email=$(EMAIL)" \
846 "d_mymalloc=$(PERL_MALLOC)" \
848 "incpath=$(CCINCDIR:"=\")" \
849 "libperl=$(PERLIMPLIB:..\=)" \
850 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
852 "make=$(MAKE_BARE)" \
853 "static_ext=$(STATIC_EXT)" \
854 "usethreads=$(USE_ITHREADS)" \
855 "useithreads=$(USE_ITHREADS)" \
856 "usemultiplicity=$(USE_MULTI)" \
857 "use64bitint=$(USE_64_BIT_INT)" \
858 "uselongdouble=undef" \
859 "uselargefiles=$(USE_LARGE_FILES)" \
860 "usesitecustomize=$(USE_SITECUST)" \
861 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
862 "optimize=$(OPTIMIZE:"=\")" \
869 all : .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
870 $(UNIDATAFILES) MakePPPort $(PERLEXE) Extensions_nonxs Extensions $(PERLSTATIC)
871 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
873 regnodes : ..\regnodes.h
875 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
877 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
879 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
880 $(UNIDATAFILES) $(PERLEXE) Extensions_reonly
881 @echo Perl and 're' are up to date.
883 static: $(PERLEXESTATIC)
885 #------------------------------------------------------------
887 $(GLOBEXE) : perlglob$(o)
888 $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ \
889 perlglob$(o) setargv$(o)
892 perlglob$(o) : perlglob.c
894 config.w32 : $(CFGSH_TMPL)
895 copy $(CFGSH_TMPL) config.w32
898 # Copy the template config.h and set configurables at the end of it
899 # as per the options chosen and compiler used.
900 # Note: This config.h is only used to build miniperl.exe anyway, but
901 # it's as well to have its options correct to be sure that it builds
902 # and so that it's "-V" options are correct for use by makedef.pl. The
903 # real config.h used to build perl.exe is generated from the top-level
904 # config_h.SH by config_h.PL (run by miniperl.exe).
906 .\config.h : $(CFGH_TMPL)
908 copy $(CFGH_TMPL) config.h
910 @echo #ifndef _config_h_footer_>>$@
911 @echo #define _config_h_footer_>>$@
912 @echo #undef Off_t>>$@
913 @echo #undef LSEEKSIZE>>$@
914 @echo #undef Off_t_size>>$@
915 @echo #undef PTRSIZE>>$@
916 @echo #undef SSize_t>>$@
917 @echo #undef HAS_ATOLL>>$@
918 @echo #undef HAS_STRTOLL>>$@
919 @echo #undef HAS_STRTOULL>>$@
920 @echo #undef IVTYPE>>$@
921 @echo #undef UVTYPE>>$@
922 @echo #undef IVSIZE>>$@
923 @echo #undef UVSIZE>>$@
924 @echo #undef NV_PRESERVES_UV>>$@
925 @echo #undef NV_PRESERVES_UV_BITS>>$@
926 @echo #undef IVdf>>$@
927 @echo #undef UVuf>>$@
928 @echo #undef UVof>>$@
929 @echo #undef UVxf>>$@
930 @echo #undef UVXf>>$@
931 @echo #undef USE_64_BIT_INT>>$@
932 @echo #undef Size_t_size>>$@
933 @echo #undef USE_CPLUSPLUS>>$@
934 !IF "$(USE_LARGE_FILES)"=="define"
935 @echo #define Off_t __int64>>$@
936 @echo #define LSEEKSIZE ^8>>$@
937 @echo #define Off_t_size ^8>>$@
939 @echo #define Off_t long>>$@
940 @echo #define LSEEKSIZE ^4>>$@
941 @echo #define Off_t_size ^4>>$@
943 !IF "$(WIN64)"=="define"
944 @echo #define PTRSIZE ^8>>$@
945 @echo #define SSize_t __int64>>$@
946 @echo #define HAS_ATOLL>>$@
947 @echo #define HAS_STRTOLL>>$@
948 @echo #define HAS_STRTOULL>>$@
949 @echo #define Size_t_size ^8>>$@
951 @echo #define PTRSIZE ^4>>$@
952 @echo #define SSize_t int>>$@
953 @echo #undef HAS_ATOLL>>$@
954 @echo #undef HAS_STRTOLL>>$@
955 @echo #undef HAS_STRTOULL>>$@
956 @echo #define Size_t_size ^4>>$@
958 !IF "$(USE_64_BIT_INT)"=="define"
959 @echo #define IVTYPE __int64>>$@
960 @echo #define UVTYPE unsigned __int64>>$@
961 @echo #define IVSIZE ^8>>$@
962 @echo #define UVSIZE ^8>>$@
963 @echo #undef NV_PRESERVES_UV>>$@
964 @echo #define NV_PRESERVES_UV_BITS 53>>$@
965 @echo #define IVdf "I64d">>$@
966 @echo #define UVuf "I64u">>$@
967 @echo #define UVof "I64o">>$@
968 @echo #define UVxf "I64x">>$@
969 @echo #define UVXf "I64X">>$@
970 @echo #define USE_64_BIT_INT>>$@
972 @echo #define IVTYPE long>>$@
973 @echo #define UVTYPE unsigned long>>$@
974 @echo #define IVSIZE ^4>>$@
975 @echo #define UVSIZE ^4>>$@
976 @echo #define NV_PRESERVES_UV>>$@
977 @echo #define NV_PRESERVES_UV_BITS 32>>$@
978 @echo #define IVdf "ld">>$@
979 @echo #define UVuf "lu">>$@
980 @echo #define UVof "lo">>$@
981 @echo #define UVxf "lx">>$@
982 @echo #define UVXf "lX">>$@
983 @echo #undef USE_64_BIT_INT>>$@
985 !IF "$(USE_CPLUSPLUS)"=="define"
986 @echo #define USE_CPLUSPLUS>>$@
988 @echo #undef USE_CPLUSPLUS>>$@
992 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
993 cd .. && miniperl -Ilib make_patchnum.pl && cd win32
995 # make sure that we recompile perl.c if the git version changes
996 ..\perl$(o) : ..\git_version.h
998 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL FindExt.pm
999 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
1001 # This target is for when changes to the main config.sh happen.
1002 # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI,
1003 # ITHREADS, IMP_SYS and LARGE_FILES off), then make this target
1004 # to regenerate config_H.vc.
1006 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
1007 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1008 -del /f $(CFGH_TMPL)
1009 -$(MINIPERL) -I..\lib config_h.PL
1010 rename config.h $(CFGH_TMPL)
1012 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL
1013 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1014 $(XCOPY) ..\*.h $(COREDIR)\*.*
1015 $(XCOPY) *.h $(COREDIR)\*.*
1016 $(RCOPY) include $(COREDIR)\*.*
1017 -$(MINIPERL) -I..\lib config_h.PL
1018 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
1020 # See the comment in Makefile.SH explaining this seemingly cranky ordering
1021 $(MINIPERL) : ..\lib\buildcustomize.pl
1023 ..\lib\buildcustomize.pl : $(MINIDIR) $(MINI_OBJ) ..\write_buildcustomize.pl
1024 $(LINK32) -out:$(MINIPERL) @<<
1025 $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(MINI_OBJ)
1027 $(EMBED_EXE_MANI:..\lib\buildcustomize.pl=..\miniperl.exe)
1028 $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
1031 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
1033 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
1034 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c
1036 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1037 $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*F).c
1039 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1040 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1041 !IF "$(USE_IMP_SYS)" == "define"
1042 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
1043 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
1046 # 1. we don't want to rebuild miniperl.exe when config.h changes
1047 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1048 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1049 $(MINI_OBJ) : $(CORE_NOCFG_H)
1051 $(WIN32_OBJ) : $(CORE_H)
1052 $(CORE_OBJ) : $(CORE_H)
1053 $(DLL_OBJ) : $(CORE_H)
1055 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl
1056 $(MINIPERL) -I..\lib create_perllibst_h.pl
1057 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
1058 CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1060 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1061 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @Extensions_static @<<
1062 $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
1065 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1067 $(PERLSTATICLIB): Extensions_static
1068 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<<
1071 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1073 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1075 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1077 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1079 $(BITCOUNT_H) : $(GENUUDMAP)
1080 $(GENUUDMAP) $(GENERATED_HEADERS)
1082 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1084 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1085 $(LINK32) -out:$@ @<<
1086 $(BLINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ)
1090 perlmain.c : runperl.c
1091 copy runperl.c perlmain.c
1093 perlmain$(o) : perlmain.c
1094 $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c
1096 perlmainst.c : runperl.c
1097 copy runperl.c perlmainst.c
1099 perlmainst$(o) : perlmainst.c
1100 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1102 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1103 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1104 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1106 copy $(PERLEXE) $(WPERLEXE)
1107 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1109 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1110 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1111 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1114 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1115 $(MINIPERL) -I..\lib ..\mkppport
1117 #-------------------------------------------------------------------------------
1118 # There's no direct way to mark a dependency on
1119 # DynaLoader.pm, so this will have to do
1120 Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1121 $(XCOPY) ..\*.h $(COREDIR)\*.*
1122 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1124 Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1125 $(XCOPY) ..\*.h $(COREDIR)\*.*
1126 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1128 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1129 $(XCOPY) ..\*.h $(COREDIR)\*.*
1130 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1131 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1133 Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1134 $(XCOPY) ..\*.h $(COREDIR)\*.*
1135 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1137 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1138 $(XCOPY) ..\*.h $(COREDIR)\*.*
1139 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1142 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1144 Extensions_realclean:
1145 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1147 #-------------------------------------------------------------------------------
1149 doc: $(PERLEXE) ..\pod\perltoc.pod
1150 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1151 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML::=|)" \
1154 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1155 $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1157 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1158 # so please check that script before making structural changes here
1160 utils: $(PERLEXE) ..\utils\Makefile
1162 $(MAKE) PERL=$(MINIPERL)
1164 copy ..\README.aix ..\pod\perlaix.pod
1165 copy ..\README.amiga ..\pod\perlamiga.pod
1166 copy ..\README.android ..\pod\perlandroid.pod
1167 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1168 copy ..\README.ce ..\pod\perlce.pod
1169 copy ..\README.cn ..\pod\perlcn.pod
1170 copy ..\README.cygwin ..\pod\perlcygwin.pod
1171 copy ..\README.dos ..\pod\perldos.pod
1172 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1173 copy ..\README.haiku ..\pod\perlhaiku.pod
1174 copy ..\README.hpux ..\pod\perlhpux.pod
1175 copy ..\README.hurd ..\pod\perlhurd.pod
1176 copy ..\README.irix ..\pod\perlirix.pod
1177 copy ..\README.jp ..\pod\perljp.pod
1178 copy ..\README.ko ..\pod\perlko.pod
1179 copy ..\README.linux ..\pod\perllinux.pod
1180 copy ..\README.macos ..\pod\perlmacos.pod
1181 copy ..\README.macosx ..\pod\perlmacosx.pod
1182 copy ..\README.netware ..\pod\perlnetware.pod
1183 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1184 copy ..\README.os2 ..\pod\perlos2.pod
1185 copy ..\README.os390 ..\pod\perlos390.pod
1186 copy ..\README.os400 ..\pod\perlos400.pod
1187 copy ..\README.plan9 ..\pod\perlplan9.pod
1188 copy ..\README.qnx ..\pod\perlqnx.pod
1189 copy ..\README.riscos ..\pod\perlriscos.pod
1190 copy ..\README.solaris ..\pod\perlsolaris.pod
1191 copy ..\README.symbian ..\pod\perlsymbian.pod
1192 copy ..\README.synology ..\pod\perlsynology.pod
1193 copy ..\README.tru64 ..\pod\perltru64.pod
1194 copy ..\README.tw ..\pod\perltw.pod
1195 copy ..\README.vos ..\pod\perlvos.pod
1196 copy ..\README.win32 ..\pod\perlwin32.pod
1197 copy ..\pod\perldelta.pod ..\pod\perl5232delta.pod
1199 $(PERLEXE) $(PL2BAT) $(UTILS)
1200 $(MINIPERL) -I..\lib ..\autodoc.pl ..
1201 $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1203 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1204 $(PERLEXE) -f ..\pod\buildtoc -q
1206 # Note that the pod cleanup in this next section is parsed (and regenerated
1207 # by pod/buildtoc so please check that script before making changes here
1209 distclean: realclean
1210 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1211 $(PERLIMPLIB) ..\miniperl.lib $(PERLEXESTATIC) $(PERLSTATICLIB)
1212 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1213 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1214 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1215 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1216 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1217 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1218 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1219 -del /f $(LIBDIR)\File\Glob.pm
1220 -del /f $(LIBDIR)\Storable.pm
1221 -del /f $(LIBDIR)\Sys\Hostname.pm
1222 -del /f $(LIBDIR)\Time\HiRes.pm
1223 -del /f $(LIBDIR)\Unicode\Normalize.pm
1224 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1225 -del /f $(LIBDIR)\Win32.pm
1226 -del /f $(LIBDIR)\Win32CORE.pm
1227 -del /f $(LIBDIR)\Win32API\File.pm
1228 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1229 -del /f $(LIBDIR)\buildcustomize.pl
1230 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1232 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1233 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1234 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1235 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1236 -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1237 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1238 -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1239 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1240 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1241 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1242 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1243 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1244 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1245 -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1246 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1247 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1248 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1249 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1250 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1251 -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1252 -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1253 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1254 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1255 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1256 -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1257 -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
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)\Params rmdir /s /q $(LIBDIR)\Params
1269 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1270 -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1271 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1272 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1273 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1274 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1275 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1276 -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1277 -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub
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 perl5232delta.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 \
1303 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1304 perldoc perlivp libnetcfg enc2xs encguess piconv cpan *.bat \
1305 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails
1306 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1309 -del /f ..\lib\Config_git.pl
1312 -del /f $(PERLEXE_RES) perl.base
1313 -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1314 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1315 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1316 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1317 -del /s ..\utils\Makefile
1318 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1319 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1320 -if exist pod2htmd.tmp del pod2htmd.tmp
1321 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1322 -del /f ..\t\test_state
1324 install : all installbare installhtml
1326 installbare : utils ..\pod\perltoc.pod
1327 $(PERLEXE) ..\installperl
1328 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1329 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1330 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1331 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1332 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1335 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1337 inst_lib : $(CONFIGPM)
1338 $(RCOPY) ..\lib $(INST_LIB)\*.*
1340 $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1341 cd ..\lib\unicore && \
1342 ..\$(MINIPERL) -I.. mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE)
1344 minitest : .\config.h $(MINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES)
1345 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1346 if exist ..\t\perl.exe del /f ..\t\perl.exe
1347 rename ..\t\miniperl.exe perl.exe
1348 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1349 # Note this perl.exe is miniperl
1350 cd ..\t && perl.exe TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t opbasic/*.t op/*.t uni/*.t perf/*.t pragma/*.t
1352 test-prep : all utils ../pod/perltoc.pod
1353 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1354 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1355 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1356 set PERL_STATIC_EXT=$(STATIC_EXT)
1360 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1363 test_porting : test-prep
1365 perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1368 test-reonly : reonly utils
1369 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1370 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1371 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1373 perl.exe harness $(OPT) -re \bre\\/ $(EXTRA)
1381 test-notty : test-prep
1382 set PERL_SKIP_TTY_TEST=1
1384 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1388 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1389 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1390 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1392 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1396 -@$(DEL) miniperlmain$(o)
1397 -@$(DEL) $(MINIPERL)
1398 -@$(DEL) perlglob$(o)
1399 -@$(DEL) perlmain$(o)
1400 -@$(DEL) perlmainst$(o)
1403 -@$(DEL) ..\git_version.h
1406 -@$(DEL) $(WPERLEXE)
1407 -@$(DEL) $(PERLEXESTATIC)
1408 -@$(DEL) $(PERLSTATICLIB)
1410 -@$(DEL) $(CORE_OBJ)
1411 -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1412 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1413 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1414 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1415 -@$(DEL) $(UNIDATAFILES)
1416 -@$(DEL) $(WIN32_OBJ)
1418 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1419 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1422 -@$(DEL) Extensions_static
1424 clean : Extensions_clean _clean
1426 realclean : Extensions_realclean _clean
1428 # Handy way to run perlbug -ok without having to install and run the
1429 # installed perlbug. We don't re-run the tests here - we trust the user.
1430 # Please *don't* use this unless all tests pass.
1431 # If you want to report test failures, use "nmake nok" instead.
1433 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)"
1436 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1439 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)"
1442 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok