2 # Makefile to build perl on Windows using Microsoft NMAKE.
4 # Microsoft Visual C++ 12.0 or later
6 # This is set up to build a perl.exe that runs off a shared library
7 # (perl535.dll). Also makes individual DLLs for the XS extensions.
11 ## Make sure you read README.win32 *before* you mess with anything here!
15 ## Build configuration. Edit the values below to suit your needs.
19 # Set these to wherever you want "nmake install" to put your
23 INST_TOP = $(INST_DRV)\perl
26 # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler
27 # on a 64-bit version of Windows.
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.
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.
51 #INST_ARCH = \$(ARCHNAME)
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.
59 #USE_SITECUST = define
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.
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.
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.
83 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
84 # (If you're building a 64-bit perl then you will have 64-bit integers whether
85 # or not this is uncommented.)
87 #USE_64_BIT_INT = define
90 # Comment this out if you want the legacy default behavior of including '.' at
93 DEFAULT_INC_EXCLUDES_DOT = define
96 # Uncomment this if you want to disable looking up values from
97 # HKEY_CURRENT_USER\Software\Perl and HKEY_LOCAL_MACHINE\Software\Perl in
100 #USE_NO_REGISTRY = define
103 # uncomment exactly one of the following
105 # Visual C++ 2013 (aka Visual C++ 12.0) (full version or Express Edition)
107 # Visual C++ 2015 (aka Visual C++ 14.0) (full version or Express Edition)
109 # Visual C++ 2017 (aka Visual C++ 14.1) (full version or Community Edition)
111 # Visual C++ 2019 (aka Visual C++ 14.2) (full version or Community Edition)
113 # Visual C++ 2022 (aka Visual C++ 14.3) (full version or Community Edition)
117 # If you are using Intel C++ Compiler uncomment this
122 # Uncomment this if you want to build everything in C++ mode
124 #USE_CPLUSPLUS = define
127 # uncomment next line if you want debug version of perl (big/slow)
128 # If not enabled, we automatically try to use maximum optimization
129 # with all compilers that are known to have a working optimizer.
131 # You can also set CFG = DebugSymbols for a slightly smaller/faster
132 # debug build without the special debugging code in perl which is
133 # enabled via -DDEBUGGING;
135 # or you can set CFG = DebugFull for an even fuller (bigger/slower)
136 # debug build using the debug version of the CRT, and enabling VC++
137 # debug features such as extra assertions and invalid parameter warnings
138 # in perl and CRT code via -D_DEBUG. (Note that the invalid parameter
139 # handler does get triggered from time to time in this configuration,
140 # which causes warnings to be printed on STDERR, which in turn causes a
141 # few tests to fail.)
146 # uncomment to enable linking with setargv.obj under the Visual C
147 # compiler. Setting this options enables perl to expand wildcards in
148 # arguments, but it may be harder to use alternate methods like
149 # File::DosGlob that are more powerful. This option is supported only with
152 #USE_SETARGV = define
155 # set this if you wish to use perl's malloc
156 # WARNING: Turning this on/off WILL break binary compatibility with extensions
157 # you may have compiled with/without it. Be prepared to recompile all
158 # extensions if you change the default. Currently, this cannot be enabled
159 # if you ask for USE_IMP_SYS above.
161 #PERL_MALLOC = define
164 # set this to enable debugging mstats
165 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
166 # be enabled without PERL_MALLOC as well.
168 #DEBUG_MSTATS = define
171 # set this to additionally provide a statically linked perl-static.exe.
172 # Note that dynamic loading will not work with this perl, so you must
173 # include required modules statically using the STATIC_EXT or ALL_STATIC
174 # variables below. A static library perl535s.lib will also be created.
175 # Ordinary perl.exe is not affected by this option.
177 #BUILD_STATIC = define
180 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
181 # extension get statically built.
182 # This will result in a very large perl executable, but the main purpose
183 # is to have proper linking set so as to be able to create miscellaneous
184 # executables with different built-in extensions.
189 # set the install location of the compiler
190 # Running VCVARS32.BAT, VCVARSALL.BAT or similar is *required* when using
192 # Versions of Visual C++ up to VC++ 14.0 define $(VCINSTALLDIR), but from
193 # VC++ 14.1 we need the subfolder given by $(VCToolsInstallDir).
195 !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140"
196 CCHOME = $(VCINSTALLDIR)
198 CCHOME = $(VCTOOLSINSTALLDIR)
202 # Additional compiler flags can be specified here.
204 BUILDOPT = $(BUILDOPTEXTRA)
207 # This should normally be disabled. Enabling it will disable the File::Glob
208 # implementation of CORE::glob.
210 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
213 # Perl needs to read scripts in text mode so that the DATA filehandle
214 # works correctly with seek() and tell(), or around auto-flushes of
215 # all filehandles (e.g. by system(), backticks, fork(), etc).
217 # The current version on the ByteLoader module on CPAN however only
218 # works if scripts are read in binary mode. But before you disable text
219 # mode script reading (and break some DATA filehandle functionality)
220 # please check first if an updated ByteLoader isn't available on CPAN.
222 BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
225 # specify semicolon-separated list of extra directories that modules will
226 # look for libraries (spaces in path names need not be quoted)
231 # set this to your email address (perl will guess a value from
232 # your loginname and your hostname, which may not be right)
237 ## Build configuration ends.
240 ##################### CHANGE THESE ONLY IF YOU MUST #####################
242 !IF "$(USE_IMP_SYS)" == "define"
247 !IF "$(PERL_MALLOC)" == ""
252 !IF "$(DEBUG_MSTATS)" == ""
256 !IF "$(DEBUG_MSTATS)" == "define"
257 BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
260 !IF "$(USE_SITECUST)" == ""
264 !IF "$(USE_MULTI)" == ""
268 !IF "$(USE_ITHREADS)" == ""
272 !IF "$(USE_IMP_SYS)" == ""
276 !IF "$(USE_64_BIT_INT)" == ""
277 USE_64_BIT_INT = undef
280 !IF "$(DEFAULT_INC_EXCLUDES_DOT)" == ""
281 DEFAULT_INC_EXCLUDES_DOT = undef
284 !IF "$(USE_NO_REGISTRY)" == ""
285 USE_NO_REGISTRY = undef
288 !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
292 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
296 !IF "$(USE_SITECUST)" == "define"
297 BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE
300 !IF "$(USE_MULTI)" != "undef"
301 BUILDOPT = $(BUILDOPT) -DMULTIPLICITY
304 !IF "$(USE_IMP_SYS)" != "undef"
305 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
308 !IF "$(USE_NO_REGISTRY)" != "undef"
309 BUILDOPT = $(BUILDOPT) -DWIN32_NO_REGISTRY
312 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
313 PROCESSOR_ARCHITECTURE = x86
317 # When we are running from a 32bit cmd.exe on AMD64 then
318 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
320 ! IF "$(PROCESSOR_ARCHITEW6432)" != ""
321 PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432)
323 ! ELSEIF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
330 !IF "$(WIN64)" == "define"
331 USE_64_BIT_INT = define
334 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
335 !IF "$(ARCHITECTURE)" == "AMD64"
337 !ELSEIF "$(ARCHITECTURE)" == "IA64"
341 !IF "$(USE_MULTI)" == "define"
342 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
344 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
347 !IF "$(USE_ITHREADS)" == "define"
348 ARCHNAME = $(ARCHNAME)-thread
351 !IF "$(WIN64)" != "define" && "$(USE_64_BIT_INT)" == "define"
352 ARCHNAME = $(ARCHNAME)-64int
355 # Loading DLLs on demand makes the test suite run in about 10% less time.
356 # If no registry, advapi32 is only used for Perl_pp_getlogin/getlogin/GetUserNameA
357 # which is rare to execute
358 !IF "$(USE_NO_REGISTRY)" != "undef"
359 DELAYLOAD = -DELAYLOAD:ws2_32.dll -DELAYLOAD:advapi32.dll delayimp.lib
362 DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib
363 #miniperl never does any registry lookups
364 MINIDELAYLOAD = -DELAYLOAD:advapi32.dll
367 # Set the install location of the compiler headers/libraries.
368 # These are saved into $Config{incpath} and $Config{libpth}.
369 CCINCDIR = $(CCHOME)\include
370 !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140"
371 ! IF "$(WIN64)" == "define"
372 CCLIBDIR = $(CCHOME)\lib\amd64
374 CCLIBDIR = $(CCHOME)\lib
377 ! IF "$(WIN64)" == "define"
378 CCLIBDIR = $(CCHOME)\lib\x64
380 CCLIBDIR = $(CCHOME)\lib\x86
384 ARCHDIR = ..\lib\$(ARCHNAME)
385 COREDIR = ..\lib\CORE
386 AUTODIR = ..\lib\auto
394 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
395 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
396 INST_LIB = $(INST_TOP)$(INST_VER)\lib
397 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
398 INST_COREDIR = $(INST_ARCHLIB)\CORE
399 INST_HTML = $(INST_TOP)$(INST_VER)\html
402 # Programs to compile, build .lib files and link
405 # Poison the recipe if no CCTYPE is set, and delete mini\.exists so everything
406 # is rebuilt next time to avoid reusing a mini config.h written with no sane CC
408 !IF "$(CCTYPE)" == ""
409 CC = @echo CCTYPE makefile variable not set && del mini\.exists && exit 1 &&
410 LINK32 = @echo CCTYPE makefile variable not set && del mini\.exists && exit 1 &&
411 !ELSEIF "$(__ICC)" != "define"
418 LIB32 = $(LINK32) -lib
425 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
426 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
427 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT
428 LOCDEFS = -DPERLDLL -DPERL_CORE
430 EXTRACFLAGS = -nologo -GF -W3
432 !IF "$(CCTYPE)" == "MSVC120"
438 !IF "$(CFG)" == "Debug"
441 DEFINES = $(DEFINES) -DDEBUGGING
442 EXTRACFLAGS = $(EXTRACFLAGS) -MD
443 !ELSEIF "$(CFG)" == "DebugSymbols"
446 EXTRACFLAGS = $(EXTRACFLAGS) -MD
447 !ELSEIF "$(CFG)" == "DebugFull"
448 ! IF "$(CCTYPE)" == "MSVC120"
455 DEFINES = $(DEFINES) -D_DEBUG -DDEBUGGING
456 EXTRACFLAGS = $(EXTRACFLAGS) -MDd
458 # Enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG).
459 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
460 OPTIMIZE = -O1 -Zi -GL
461 # we enable debug symbols in release builds also
462 LINK_DBG = -debug -opt:ref,icf -ltcg
463 # you may want to enable this if you want COFF symbols in the executables
464 # in addition to the PDB symbols. The default Dr. Watson that ships with
465 # Windows can use the former but not latter. The free WinDbg can be
466 # installed to get better stack traces from just the PDB symbols, so we
467 # avoid the bloat of COFF symbols by default.
468 #LINK_DBG = $(LINK_DBG) -debugtype:both
470 EXTRACFLAGS = $(EXTRACFLAGS) -MD
473 !IF "$(WIN64)" == "define"
474 DEFINES = $(DEFINES) -DWIN64
475 OPTIMIZE = $(OPTIMIZE) -fp:precise
478 # For now, silence warnings about "unsafe" CRT functions
479 # and POSIX CRT function names being deprecated.
480 DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
482 # Likewise for deprecated Winsock APIs in VC++ 14.0 onwards for now.
483 !IF "$(CCTYPE)" != "MSVC120"
484 DEFINES = $(DEFINES) -D_WINSOCK_DEPRECATED_NO_WARNINGS
488 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
489 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
490 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
491 version.lib odbc32.lib odbccp32.lib comctl32.lib
493 !IF "$(CCTYPE)" != "MSVC120"
494 ! IF "$(CFG)" == "DebugFull"
495 LIBBASEFILES = $(LIBBASEFILES) msvcrtd.lib vcruntimed.lib
497 LIBBASEFILES = $(LIBBASEFILES) msvcrt.lib vcruntime.lib
501 # Avoid __intel_new_proc_init link error for libircmt.
502 # libmmd is /MD equivelent, other variants exist.
503 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
504 # and optimized C89 funcs
505 !IF "$(__ICC)" == "define"
506 LIBBASEFILES = $(LIBBASEFILES) libircmt.lib libmmd.lib
509 LIBFILES = $(LIBBASEFILES) $(LIBC)
511 !IF "$(__ICC)" == "define"
512 EXTRACFLAGS = $(EXTRACFLAGS) -Qstd=c99
514 !IF "$(USE_CPLUSPLUS)" == "define"
515 EXTRACFLAGS = $(EXTRACFLAGS) $(CXX_FLAG)
517 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
518 $(PCHFLAGS) $(OPTIMIZE)
519 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
520 -libpath:"$(INST_COREDIR)" \
521 -machine:$(PROCESSOR_ARCHITECTURE)
522 LIB_FLAGS = $(LIB_FLAGS) -nologo
526 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
530 # VS 2017 (VC++ 14.1) requires at minimum Windows 7 SP1 (with latest Windows Updates)
532 # For XP support in >= VS 2013 (VC++ 12.0), subsystem is always in Config.pm
534 !IF "$(WIN64)" == "define"
535 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.02"
537 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.01"
540 BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
542 #################### do not edit below this line #######################
543 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
551 #clear the list, we dont support .cxx .bas .cbl .for .pas .f .f90
552 # .asm .cpp are not currently used but they are included for completeness
554 .SUFFIXES : .c $(o) .cpp .asm .dll .lib .exe .rc .res
557 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
560 $(CC) -c -I$(<D) $(CFLAGS_O) -P $(OBJOUT_FLAG)$@ $<
566 $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \
567 -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
570 $(RSC) -i.. $(RSC_FLAGS) $<
575 # makedef.pl must be updated if this changes, and this should normally
576 # only change when there is an incompatible revision of the public API.
577 PERLIMPLIB = ..\perl535.lib
578 PERLSTATICLIB = ..\perl535s.lib
579 PERLDLL = ..\perl535.dll
581 MINIPERL = ..\miniperl.exe
583 PERLEXE = ..\perl.exe
584 WPERLEXE = ..\wperl.exe
585 PERLEXESTATIC = ..\perl-static.exe
586 GLOBEXE = ..\perlglob.exe
587 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
588 GENUUDMAP = ..\generate_uudmap.exe
589 !IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
595 # Unicode data files generated by mktables
596 FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl
597 UNIDATAFILES = ..\lib\unicore\Decomposition.pl \
598 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
599 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \
600 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
601 ..\lib\unicore\TestProp.pl
603 # Directories of Unicode data files generated by mktables
604 UNIDATADIR1 = ..\lib\unicore\To
605 UNIDATADIR2 = ..\lib\unicore\lib
607 PERLEXE_MANIFEST= .\perlexe.manifest
608 PERLEXE_ICO = .\perlexe.ico
609 PERLEXE_RES = .\perlexe.res
612 # Nominate a target which causes extensions to be re-built
613 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
614 # on and really only the interface - i.e. the .def file used to export symbols
616 PERLDEP = perldll.def
618 PL2BAT = bin\pl2bat.pl
619 GLOBBAT = bin\perlglob.bat
640 ..\utils\zipdetails \
655 CFGSH_TMPL = config.vc
656 CFGH_TMPL = config_H.vc
659 XCOPY = xcopy /f /r /i /d /y
660 RCOPY = xcopy /f /r /i /e /d /y
707 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
709 !IF "$(PERL_MALLOC)" == "define"
710 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
713 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
758 .\include\sys\errno2.h \
759 .\include\sys\socket.h \
762 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
764 UUDMAP_H = ..\uudmap.h
765 BITCOUNT_H = ..\bitcount.h
766 MG_DATA_H = ..\mg_data.h
767 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
769 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
770 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
771 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
772 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
773 $(MINIDIR)\miniperlmain$(o) \
774 $(MINIDIR)\perlio$(o)
775 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
776 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
777 DLL_OBJ = $(DYNALOADER)
778 GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj)
780 PERLDLL_OBJ = $(CORE_OBJ)
781 PERLEXE_OBJ = perlmain$(o)
782 PERLEXEST_OBJ = perlmainst$(o)
784 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
786 !IF "$(USE_SETARGV)" != ""
787 SETARGV_OBJ = setargv$(o)
790 !IF "$(ALL_STATIC)" == "define"
791 # some exclusions, unfortunately, until fixed:
792 # - MakeMaker isn't capable enough for SDBM_File (small bug)
793 STATIC_EXT = * !SDBM_File
795 # specify static extensions here, for example:
796 # (be sure to include Win32CORE to load Win32 on demand)
797 #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib
798 STATIC_EXT = Win32CORE
801 DYNALOADER = ..\DynaLoader$(o)
804 "INST_TOP=$(INST_TOP)" \
805 "INST_VER=$(INST_VER)" \
806 "INST_ARCH=$(INST_ARCH)" \
807 "archname=$(ARCHNAME)" \
810 "ccflags=$(EXTRACFLAGS) $(DEFINES) $(BUILDOPT)" \
811 "usecplusplus=$(USE_CPLUSPLUS)" \
812 "cf_email=$(EMAIL)" \
813 "d_mymalloc=$(PERL_MALLOC)" \
815 "incpath=$(CCINCDIR:"=\")" \
816 "libperl=$(PERLIMPLIB:..\=)" \
817 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
819 "make=$(MAKE_BARE)" \
820 "static_ext=$(STATIC_EXT)" \
821 "usethreads=$(USE_ITHREADS)" \
822 "useithreads=$(USE_ITHREADS)" \
823 "usemultiplicity=$(USE_MULTI)" \
824 "use64bitint=$(USE_64_BIT_INT)" \
825 "uselongdouble=undef" \
826 "usesitecustomize=$(USE_SITECUST)" \
827 "default_inc_excludes_dot=$(DEFAULT_INC_EXCLUDES_DOT)" \
828 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
829 "optimize=$(OPTIMIZE:"=\")" \
836 all : ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
837 $(UNIDATAFILES) MakePPPort $(PERLEXE) Extensions_nonxs Extensions \
839 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
841 regnodes : ..\regnodes.h
843 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
845 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
847 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
848 $(UNIDATAFILES) $(PERLEXE) Extensions_reonly
849 @echo Perl and 're' are up to date.
851 static: $(PERLEXESTATIC)
853 #------------------------------------------------------------
855 $(GLOBEXE) : perlglob$(o)
856 $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ \
857 perlglob$(o) setargv$(o)
859 perlglob$(o) : perlglob.c
861 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
862 cd .. && miniperl -Ilib make_patchnum.pl && cd win32
864 # make sure that we recompile perl.c if the git version changes
865 ..\perl$(o) : ..\git_version.h
867 ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(MINIPERL)
868 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
870 # This target is for when changes to the main config.sh happen.
871 # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI,
872 # ITHREADS, IMP_SYS and LARGE_FILES off), then make this target
873 # to regenerate config_H.vc.
875 $(MINIPERL) -I..\lib config_sh.PL --prebuilt $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
876 $(MINIPERL) -I..\lib ..\configpm --chdir=..
878 -$(MINIPERL) -I..\lib config_h.PL
879 rename config.h $(CFGH_TMPL)
881 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\git_version.h
882 $(MINIPERL) -I..\lib ..\configpm --chdir=..
883 $(XCOPY) ..\*.h $(COREDIR)\*.*
884 $(XCOPY) *.h $(COREDIR)\*.*
885 $(RCOPY) include $(COREDIR)\*.*
886 -$(MINIPERL) -I..\lib config_h.PL
887 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
889 .\config.h : $(CONFIGPM)
891 # See the comment in Makefile.SH explaining this seemingly cranky ordering
892 $(MINIPERL) : ..\lib\buildcustomize.pl
894 ..\lib\buildcustomize.pl : $(MINI_OBJ) ..\write_buildcustomize.pl
895 $(LINK32) -out:$(MINIPERL) @<<
896 $(BLINK_FLAGS) $(DELAYLOAD) $(MINIDELAYLOAD) $(LIBFILES) $(MINI_OBJ)
898 $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
900 $(MINIDIR)\.exists : $(CFGH_TMPL)
901 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
903 # Copy the template config.h and set configurables at the end of it
904 # as per the options chosen and compiler used.
905 # Note: This config.h is only used to build miniperl.exe anyway, but
906 # it's as well to have its options correct to be sure that it builds
907 # and so that it's "-V" options are correct for use by makedef.pl. The
908 # real config.h used to build perl.exe is generated from the top-level
909 # config_h.SH by config_h.PL (run by miniperl.exe).
911 copy $(CFGH_TMPL) config.h
913 echo #ifndef _config_h_footer_&& \
914 echo #define _config_h_footer_&& \
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 Size_t_size&& \
921 echo #undef IVTYPE&& \
922 echo #undef UVTYPE&& \
923 echo #undef IVSIZE&& \
924 echo #undef UVSIZE&& \
925 echo #undef NV_PRESERVES_UV&& \
926 echo #undef NV_PRESERVES_UV_BITS&& \
932 echo #undef USE_64_BIT_INT&& \
933 echo #undef USE_LONG_DOUBLE&& \
934 echo #undef USE_CPLUSPLUS)>> config.h
935 !IF "$(CCTYPE)" != "MSVC120"
936 @(echo #undef FILE_ptr&& \
937 echo #undef FILE_cnt&& \
938 echo #undef FILE_base&& \
939 echo #undef FILE_bufsiz&& \
940 echo #define FILE_ptr^(fp^) PERLIO_FILE_ptr^(fp^)&& \
941 echo #define FILE_cnt^(fp^) PERLIO_FILE_cnt^(fp^)&& \
942 echo #define FILE_base^(fp^) PERLIO_FILE_base^(fp^)&& \
943 echo #define FILE_bufsiz^(fp^) ^(PERLIO_FILE_cnt^(fp^) + PERLIO_FILE_ptr^(fp^) - PERLIO_FILE_base^(fp^)^)&& \
944 echo #define I_STDBOOL)>> config.h
946 !IF "$(WIN64)"=="define"
947 @(echo #define PTRSIZE ^8&& \
948 echo #define SSize_t $(INT64)&& \
949 echo #define HAS_ATOLL&& \
950 echo #define HAS_STRTOLL&& \
951 echo #define HAS_STRTOULL&& \
952 echo #define Size_t_size ^8)>> config.h
954 @(echo #define PTRSIZE ^4&& \
955 echo #define SSize_t int&& \
956 echo #undef HAS_ATOLL&& \
957 echo #undef HAS_STRTOLL&& \
958 echo #undef HAS_STRTOULL&& \
959 echo #define Size_t_size ^4)>> config.h
961 !IF "$(USE_64_BIT_INT)"=="define"
962 @(echo #define IVTYPE $(INT64)&& \
963 echo #define UVTYPE unsigned $(INT64)&& \
964 echo #define IVSIZE ^8&& \
965 echo #define UVSIZE ^8&& \
966 echo #undef NV_PRESERVES_UV&& \
967 echo #define NV_PRESERVES_UV_BITS 53&& \
968 echo #define IVdf "I64d"&& \
969 echo #define UVuf "I64u"&& \
970 echo #define UVof "I64o"&& \
971 echo #define UVxf "I64x"&& \
972 echo #define UVXf "I64X"&& \
973 echo #define USE_64_BIT_INT)>> config.h
975 @(echo #define IVTYPE long&& \
976 echo #define UVTYPE unsigned long&& \
977 echo #define IVSIZE ^4&& \
978 echo #define UVSIZE ^4&& \
979 echo #define NV_PRESERVES_UV&& \
980 echo #define NV_PRESERVES_UV_BITS 32&& \
981 echo #define IVdf "ld"&& \
982 echo #define UVuf "lu"&& \
983 echo #define UVof "lo"&& \
984 echo #define UVxf "lx"&& \
985 echo #define UVXf "lX"&& \
986 echo #undef USE_64_BIT_INT)>> config.h
988 !IF "$(USE_CPLUSPLUS)"=="define"
989 @(echo #define USE_CPLUSPLUS&& \
990 echo #endif)>> config.h
992 @(echo #undef USE_CPLUSPLUS&& \
993 echo #endif)>> config.h
995 #separate line since this is sentinal that this target is done
996 @rem. > $(MINIDIR)\.exists
998 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
999 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c
1001 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1002 $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*F).c
1004 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1005 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1006 !IF "$(USE_IMP_SYS)" == "define"
1007 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
1008 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
1011 # 1. we don't want to rebuild miniperl.exe when config.h changes
1012 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1013 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1014 $(MINI_OBJ) : $(MINIDIR)\.exists $(CORE_NOCFG_H)
1016 $(WIN32_OBJ) : $(CORE_H)
1017 $(CORE_OBJ) : $(CORE_H)
1018 $(DLL_OBJ) : $(CORE_H)
1020 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl ..\git_version.h
1021 $(MINIPERL) -I..\lib create_perllibst_h.pl
1022 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
1023 CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1025 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1026 $(LINK32) -dll -def:perldll.def -out:$@ @Extensions_static @<<
1027 $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
1029 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1031 $(PERLSTATICLIB): Extensions_static
1032 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<<
1035 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1037 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1039 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1041 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1043 $(BITCOUNT_H) : $(GENUUDMAP)
1044 $(GENUUDMAP) $(GENERATED_HEADERS)
1046 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1048 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1049 $(LINK32) -out:$@ @<<
1050 $(BLINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ)
1053 perlmain.c : runperl.c
1054 copy runperl.c perlmain.c
1056 perlmain$(o) : perlmain.c
1057 $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c
1059 perlmainst.c : runperl.c
1060 copy runperl.c perlmainst.c
1062 perlmainst$(o) : perlmainst.c
1063 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1065 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1066 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1067 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1068 copy $(PERLEXE) $(WPERLEXE)
1069 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1071 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1072 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1073 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1075 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1076 $(MINIPERL) -I..\lib ..\mkppport
1078 #-------------------------------------------------------------------------------
1079 # There's no direct way to mark a dependency on
1080 # DynaLoader.pm, so this will have to do
1081 Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1082 $(XCOPY) ..\*.h $(COREDIR)\*.*
1083 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1085 Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1086 $(XCOPY) ..\*.h $(COREDIR)\*.*
1087 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1089 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1090 $(XCOPY) ..\*.h $(COREDIR)\*.*
1091 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1092 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1094 Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1095 $(XCOPY) ..\*.h $(COREDIR)\*.*
1096 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1098 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1099 $(XCOPY) ..\*.h $(COREDIR)\*.*
1100 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1103 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1105 Extensions_realclean:
1106 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1108 #-------------------------------------------------------------------------------
1110 doc: $(PERLEXE) ..\pod\perltoc.pod
1111 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1112 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML::=|)" \
1115 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1116 $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1118 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1119 # so please check that script before making structural changes here
1121 utils: $(PERLEXE) ..\utils\Makefile
1123 $(MAKE) PERL=$(MINIPERL)
1125 copy ..\README.aix ..\pod\perlaix.pod
1126 copy ..\README.amiga ..\pod\perlamiga.pod
1127 copy ..\README.android ..\pod\perlandroid.pod
1128 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1129 copy ..\README.cn ..\pod\perlcn.pod
1130 copy ..\README.cygwin ..\pod\perlcygwin.pod
1131 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1132 copy ..\README.haiku ..\pod\perlhaiku.pod
1133 copy ..\README.hpux ..\pod\perlhpux.pod
1134 copy ..\README.hurd ..\pod\perlhurd.pod
1135 copy ..\README.irix ..\pod\perlirix.pod
1136 copy ..\README.jp ..\pod\perljp.pod
1137 copy ..\README.ko ..\pod\perlko.pod
1138 copy ..\README.linux ..\pod\perllinux.pod
1139 copy ..\README.macos ..\pod\perlmacos.pod
1140 copy ..\README.macosx ..\pod\perlmacosx.pod
1141 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1142 copy ..\README.os2 ..\pod\perlos2.pod
1143 copy ..\README.os390 ..\pod\perlos390.pod
1144 copy ..\README.os400 ..\pod\perlos400.pod
1145 copy ..\README.plan9 ..\pod\perlplan9.pod
1146 copy ..\README.qnx ..\pod\perlqnx.pod
1147 copy ..\README.riscos ..\pod\perlriscos.pod
1148 copy ..\README.solaris ..\pod\perlsolaris.pod
1149 copy ..\README.synology ..\pod\perlsynology.pod
1150 copy ..\README.tru64 ..\pod\perltru64.pod
1151 copy ..\README.tw ..\pod\perltw.pod
1152 copy ..\README.vos ..\pod\perlvos.pod
1153 copy ..\README.win32 ..\pod\perlwin32.pod
1154 copy ..\pod\perldelta.pod ..\pod\perl5358delta.pod
1156 $(PERLEXE) $(PL2BAT) $(UTILS)
1157 $(MINIPERL) -I..\lib ..\autodoc.pl ..
1158 $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1160 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1161 $(PERLEXE) -f ..\pod\buildtoc -q
1163 # Note that the pod cleanup in this next section is parsed (and regenerated
1164 # by pod/buildtoc so please check that script before making changes here
1166 distclean: realclean
1167 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1168 $(PERLIMPLIB) ..\miniperl.lib $(PERLEXESTATIC) $(PERLSTATICLIB)
1169 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1170 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1171 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1172 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1173 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1174 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1175 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1176 -del /f $(LIBDIR)\File\Glob.pm
1177 -del /f $(LIBDIR)\Storable.pm
1178 -del /f $(LIBDIR)\Sys\Hostname.pm
1179 -del /f $(LIBDIR)\Time\HiRes.pm
1180 -del /f $(LIBDIR)\Unicode\Normalize.pm
1181 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1182 -del /f $(LIBDIR)\Win32.pm
1183 -del /f $(LIBDIR)\Win32CORE.pm
1184 -del /f $(LIBDIR)\Win32API\File.pm
1185 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1186 -del /f $(LIBDIR)\buildcustomize.pl
1187 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1189 -if exist $(LIBDIR)\Amiga rmdir /s /q $(LIBDIR)\Amiga
1190 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1191 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1192 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1193 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1194 -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1195 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1196 -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1197 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1198 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1199 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1200 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1201 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1202 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1203 -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1204 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1205 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1206 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1207 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1208 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1209 -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1210 -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1211 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1212 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1213 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1214 -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1215 -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
1216 -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc
1217 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1218 -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1219 -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON
1220 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1221 -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1222 -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1223 -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1224 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1225 -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1226 -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1227 -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1228 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1229 -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1230 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1231 -if exist $(LIBDIR)\Pod\Html rmdir /s /q $(LIBDIR)\Pod\Html
1232 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1233 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1234 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1235 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1236 -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1237 -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub
1238 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1239 -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1240 -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term
1241 -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1242 -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test2
1243 -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text
1244 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1245 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1246 -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1247 -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1248 -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale
1249 -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version
1250 -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS
1251 -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1252 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1253 -cd $(PODDIR) && del /f *.html *.bat roffitall \
1254 perl5358delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
1255 perlapi.pod perlbs2000.pod perlcn.pod perlcygwin.pod \
1256 perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \
1257 perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \
1258 perlmacos.pod perlmacosx.pod perlmodlib.pod perlopenbsd.pod \
1259 perlos2.pod perlos390.pod perlos400.pod perlplan9.pod \
1260 perlqnx.pod perlriscos.pod perlsolaris.pod perlsynology.pod \
1261 perltoc.pod perltru64.pod perltw.pod perluniprops.pod \
1262 perlvos.pod perlwin32.pod
1263 -cd ..\utils && del /f h2ph splain perlbug pl2pm h2xs \
1264 perldoc perlivp libnetcfg enc2xs encguess piconv cpan streamzip *.bat \
1265 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails
1266 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1269 -del /f ..\lib\Config_git.pl
1272 -del /f $(PERLEXE_RES) perl.base
1273 -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1274 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1275 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1276 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1277 -del /s ..\utils\Makefile
1278 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1279 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1280 -if exist pod2htmd.tmp del pod2htmd.tmp
1281 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1282 -del /f ..\t\test_state
1284 install : all installbare installhtml
1286 installbare : utils ..\pod\perltoc.pod
1287 $(PERLEXE) ..\installperl
1288 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1289 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1290 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1291 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1292 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1295 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1297 inst_lib : $(CONFIGPM)
1298 $(RCOPY) ..\lib $(INST_LIB)\*.*
1300 $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1301 cd ..\lib\unicore && \
1302 ..\$(MINIPERL) -I.. mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE)
1304 minitest : .\config.h $(MINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES)
1305 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1306 if exist ..\t\perl.exe del /f ..\t\perl.exe
1307 rename ..\t\miniperl.exe perl.exe
1308 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1309 # Note this perl.exe is miniperl
1310 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
1312 test-prep : all utils ../pod/perltoc.pod
1313 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1314 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1315 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1316 set PERL_STATIC_EXT=$(STATIC_EXT)
1320 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1323 test_porting : test-prep
1325 perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1328 test-reonly : reonly utils
1329 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1330 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1331 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1333 perl.exe harness $(OPT) -re \bre\\/ $(EXTRA)
1341 test-notty : test-prep
1342 set PERL_SKIP_TTY_TEST=1
1344 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1348 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1349 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1350 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1352 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1356 -@$(DEL) miniperlmain$(o)
1357 -@$(DEL) $(MINIPERL)
1358 -@$(DEL) perlglob$(o)
1359 -@$(DEL) perlmain$(o)
1360 -@$(DEL) perlmainst$(o)
1362 -@$(DEL) ..\git_version.h
1365 -@$(DEL) $(WPERLEXE)
1366 -@$(DEL) $(PERLEXESTATIC)
1367 -@$(DEL) $(PERLSTATICLIB)
1369 -@$(DEL) $(CORE_OBJ)
1370 -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1371 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1372 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1373 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1374 -@$(DEL) $(UNIDATAFILES)
1375 -@$(DEL) $(WIN32_OBJ)
1377 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1378 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1381 -@$(DEL) Extensions_static
1383 clean : Extensions_clean _clean
1385 realclean : Extensions_realclean _clean
1387 # Handy way to run perlbug -ok without having to install and run the
1388 # installed perlbug. We don't re-run the tests here - we trust the user.
1389 # Please *don't* use this unless all tests pass.
1390 # If you want to report test failures, use "nmake nok" instead.
1392 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)"
1395 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1398 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)"
1401 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok