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)
115 # If you are using Intel C++ Compiler uncomment this
120 # Uncomment this if you want to build everything in C++ mode
122 #USE_CPLUSPLUS = define
125 # uncomment next line if you want debug version of perl (big/slow)
126 # If not enabled, we automatically try to use maximum optimization
127 # with all compilers that are known to have a working optimizer.
129 # You can also set CFG = DebugSymbols for a slightly smaller/faster
130 # debug build without the special debugging code in perl which is
131 # enabled via -DDEBUGGING;
133 # or you can set CFG = DebugFull for an even fuller (bigger/slower)
134 # debug build using the debug version of the CRT, and enabling VC++
135 # debug features such as extra assertions and invalid parameter warnings
136 # in perl and CRT code via -D_DEBUG. (Note that the invalid parameter
137 # handler does get triggered from time to time in this configuration,
138 # which causes warnings to be printed on STDERR, which in turn causes a
139 # few tests to fail.)
144 # uncomment to enable linking with setargv.obj under the Visual C
145 # compiler. Setting this options enables perl to expand wildcards in
146 # arguments, but it may be harder to use alternate methods like
147 # File::DosGlob that are more powerful. This option is supported only with
150 #USE_SETARGV = define
153 # set this if you wish to use perl's malloc
154 # WARNING: Turning this on/off WILL break binary compatibility with extensions
155 # you may have compiled with/without it. Be prepared to recompile all
156 # extensions if you change the default. Currently, this cannot be enabled
157 # if you ask for USE_IMP_SYS above.
159 #PERL_MALLOC = define
162 # set this to enable debugging mstats
163 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
164 # be enabled without PERL_MALLOC as well.
166 #DEBUG_MSTATS = define
169 # set this to additionally provide a statically linked perl-static.exe.
170 # Note that dynamic loading will not work with this perl, so you must
171 # include required modules statically using the STATIC_EXT or ALL_STATIC
172 # variables below. A static library perl535s.lib will also be created.
173 # Ordinary perl.exe is not affected by this option.
175 #BUILD_STATIC = define
178 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
179 # extension get statically built.
180 # This will result in a very large perl executable, but the main purpose
181 # is to have proper linking set so as to be able to create miscellaneous
182 # executables with different built-in extensions.
187 # set the install location of the compiler
188 # Running VCVARS32.BAT, VCVARSALL.BAT or similar is *required* when using
190 # Versions of Visual C++ up to VC++ 14.0 define $(VCINSTALLDIR), but from
191 # VC++ 14.1 we need the subfolder given by $(VCToolsInstallDir).
193 !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140"
194 CCHOME = $(VCINSTALLDIR)
196 CCHOME = $(VCTOOLSINSTALLDIR)
200 # Additional compiler flags can be specified here.
202 BUILDOPT = $(BUILDOPTEXTRA)
205 # This should normally be disabled. Enabling it will disable the File::Glob
206 # implementation of CORE::glob.
208 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
211 # Perl needs to read scripts in text mode so that the DATA filehandle
212 # works correctly with seek() and tell(), or around auto-flushes of
213 # all filehandles (e.g. by system(), backticks, fork(), etc).
215 # The current version on the ByteLoader module on CPAN however only
216 # works if scripts are read in binary mode. But before you disable text
217 # mode script reading (and break some DATA filehandle functionality)
218 # please check first if an updated ByteLoader isn't available on CPAN.
220 BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
223 # specify semicolon-separated list of extra directories that modules will
224 # look for libraries (spaces in path names need not be quoted)
229 # set this to your email address (perl will guess a value from
230 # your loginname and your hostname, which may not be right)
235 ## Build configuration ends.
238 ##################### CHANGE THESE ONLY IF YOU MUST #####################
240 !IF "$(USE_IMP_SYS)" == "define"
245 !IF "$(PERL_MALLOC)" == ""
250 !IF "$(DEBUG_MSTATS)" == ""
254 !IF "$(DEBUG_MSTATS)" == "define"
255 BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
258 !IF "$(USE_SITECUST)" == ""
262 !IF "$(USE_MULTI)" == ""
266 !IF "$(USE_ITHREADS)" == ""
270 !IF "$(USE_IMP_SYS)" == ""
274 !IF "$(USE_64_BIT_INT)" == ""
275 USE_64_BIT_INT = undef
278 !IF "$(DEFAULT_INC_EXCLUDES_DOT)" == ""
279 DEFAULT_INC_EXCLUDES_DOT = undef
282 !IF "$(USE_NO_REGISTRY)" == ""
283 USE_NO_REGISTRY = undef
286 !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
290 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
294 !IF "$(USE_SITECUST)" == "define"
295 BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE
298 !IF "$(USE_MULTI)" != "undef"
299 BUILDOPT = $(BUILDOPT) -DMULTIPLICITY
302 !IF "$(USE_IMP_SYS)" != "undef"
303 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
306 !IF "$(USE_NO_REGISTRY)" != "undef"
307 BUILDOPT = $(BUILDOPT) -DWIN32_NO_REGISTRY
310 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
311 PROCESSOR_ARCHITECTURE = x86
315 # When we are running from a 32bit cmd.exe on AMD64 then
316 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
318 ! IF "$(PROCESSOR_ARCHITEW6432)" != ""
319 PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432)
321 ! ELSEIF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
328 !IF "$(WIN64)" == "define"
329 USE_64_BIT_INT = define
332 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
333 !IF "$(ARCHITECTURE)" == "AMD64"
335 !ELSEIF "$(ARCHITECTURE)" == "IA64"
339 !IF "$(USE_MULTI)" == "define"
340 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
342 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
345 !IF "$(USE_ITHREADS)" == "define"
346 ARCHNAME = $(ARCHNAME)-thread
349 !IF "$(WIN64)" != "define" && "$(USE_64_BIT_INT)" == "define"
350 ARCHNAME = $(ARCHNAME)-64int
353 # Loading DLLs on demand makes the test suite run in about 10% less time.
354 # If no registry, advapi32 is only used for Perl_pp_getlogin/getlogin/GetUserNameA
355 # which is rare to execute
356 !IF "$(USE_NO_REGISTRY)" != "undef"
357 DELAYLOAD = -DELAYLOAD:ws2_32.dll -DELAYLOAD:advapi32.dll delayimp.lib
360 DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib
361 #miniperl never does any registry lookups
362 MINIDELAYLOAD = -DELAYLOAD:advapi32.dll
365 # Set the install location of the compiler headers/libraries.
366 # These are saved into $Config{incpath} and $Config{libpth}.
367 CCINCDIR = $(CCHOME)\include
368 !IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC140"
369 ! IF "$(WIN64)" == "define"
370 CCLIBDIR = $(CCHOME)\lib\amd64
372 CCLIBDIR = $(CCHOME)\lib
375 ! IF "$(WIN64)" == "define"
376 CCLIBDIR = $(CCHOME)\lib\x64
378 CCLIBDIR = $(CCHOME)\lib\x86
382 ARCHDIR = ..\lib\$(ARCHNAME)
383 COREDIR = ..\lib\CORE
384 AUTODIR = ..\lib\auto
392 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
393 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
394 INST_LIB = $(INST_TOP)$(INST_VER)\lib
395 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
396 INST_COREDIR = $(INST_ARCHLIB)\CORE
397 INST_HTML = $(INST_TOP)$(INST_VER)\html
400 # Programs to compile, build .lib files and link
403 # Poison the recipe if no CCTYPE is set, and delete mini\.exists so everything
404 # is rebuilt next time to avoid reusing a mini config.h written with no sane CC
406 !IF "$(CCTYPE)" == ""
407 CC = @echo CCTYPE makefile variable not set && del mini\.exists && exit 1 &&
408 LINK32 = @echo CCTYPE makefile variable not set && del mini\.exists && exit 1 &&
409 !ELSEIF "$(__ICC)" != "define"
416 LIB32 = $(LINK32) -lib
423 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
424 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
425 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT
426 LOCDEFS = -DPERLDLL -DPERL_CORE
428 EXTRACFLAGS = -nologo -GF -W3
430 !IF "$(CCTYPE)" == "MSVC120"
436 !IF "$(CFG)" == "Debug"
439 DEFINES = $(DEFINES) -DDEBUGGING
440 EXTRACFLAGS = $(EXTRACFLAGS) -MD
441 !ELSEIF "$(CFG)" == "DebugSymbols"
444 EXTRACFLAGS = $(EXTRACFLAGS) -MD
445 !ELSEIF "$(CFG)" == "DebugFull"
446 ! IF "$(CCTYPE)" == "MSVC120"
453 DEFINES = $(DEFINES) -D_DEBUG -DDEBUGGING
454 EXTRACFLAGS = $(EXTRACFLAGS) -MDd
456 # Enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG).
457 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
458 OPTIMIZE = -O1 -Zi -GL
459 # we enable debug symbols in release builds also
460 LINK_DBG = -debug -opt:ref,icf -ltcg
461 # you may want to enable this if you want COFF symbols in the executables
462 # in addition to the PDB symbols. The default Dr. Watson that ships with
463 # Windows can use the former but not latter. The free WinDbg can be
464 # installed to get better stack traces from just the PDB symbols, so we
465 # avoid the bloat of COFF symbols by default.
466 #LINK_DBG = $(LINK_DBG) -debugtype:both
468 EXTRACFLAGS = $(EXTRACFLAGS) -MD
471 !IF "$(WIN64)" == "define"
472 DEFINES = $(DEFINES) -DWIN64
473 OPTIMIZE = $(OPTIMIZE) -fp:precise
476 # For now, silence warnings about "unsafe" CRT functions
477 # and POSIX CRT function names being deprecated.
478 DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
480 # Likewise for deprecated Winsock APIs in VC++ 14.0 onwards for now.
481 !IF "$(CCTYPE)" != "MSVC120"
482 DEFINES = $(DEFINES) -D_WINSOCK_DEPRECATED_NO_WARNINGS
486 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
487 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
488 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
489 version.lib odbc32.lib odbccp32.lib comctl32.lib
491 !IF "$(CCTYPE)" != "MSVC120"
492 ! IF "$(CFG)" == "DebugFull"
493 LIBBASEFILES = $(LIBBASEFILES) msvcrtd.lib vcruntimed.lib
495 LIBBASEFILES = $(LIBBASEFILES) msvcrt.lib vcruntime.lib
499 # Avoid __intel_new_proc_init link error for libircmt.
500 # libmmd is /MD equivelent, other variants exist.
501 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
502 # and optimized C89 funcs
503 !IF "$(__ICC)" == "define"
504 LIBBASEFILES = $(LIBBASEFILES) libircmt.lib libmmd.lib
507 LIBFILES = $(LIBBASEFILES) $(LIBC)
509 !IF "$(__ICC)" == "define"
510 EXTRACFLAGS = $(EXTRACFLAGS) -Qstd=c99
512 !IF "$(USE_CPLUSPLUS)" == "define"
513 EXTRACFLAGS = $(EXTRACFLAGS) $(CXX_FLAG)
515 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
516 $(PCHFLAGS) $(OPTIMIZE)
517 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
518 -libpath:"$(INST_COREDIR)" \
519 -machine:$(PROCESSOR_ARCHITECTURE)
520 LIB_FLAGS = $(LIB_FLAGS) -nologo
524 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
528 # VS 2017 (VC++ 14.1) requires at minimum Windows 7 SP1 (with latest Windows Updates)
530 # For XP support in >= VS 2013 (VC++ 12.0), subsystem is always in Config.pm
532 !IF "$(WIN64)" == "define"
533 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.02"
535 LINK_FLAGS = $(LINK_FLAGS) -subsystem:console,"5.01"
538 BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
540 #################### do not edit below this line #######################
541 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
549 #clear the list, we dont support .cxx .bas .cbl .for .pas .f .f90
550 # .asm .cpp are not currently used but they are included for completeness
552 .SUFFIXES : .c $(o) .cpp .asm .dll .lib .exe .rc .res
555 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
558 $(CC) -c -I$(<D) $(CFLAGS_O) -P $(OBJOUT_FLAG)$@ $<
564 $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \
565 -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
568 $(RSC) -i.. $(RSC_FLAGS) $<
573 # makedef.pl must be updated if this changes, and this should normally
574 # only change when there is an incompatible revision of the public API.
575 PERLIMPLIB = ..\perl535.lib
576 PERLSTATICLIB = ..\perl535s.lib
577 PERLDLL = ..\perl535.dll
579 MINIPERL = ..\miniperl.exe
581 PERLEXE = ..\perl.exe
582 WPERLEXE = ..\wperl.exe
583 PERLEXESTATIC = ..\perl-static.exe
584 GLOBEXE = ..\perlglob.exe
585 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
586 GENUUDMAP = ..\generate_uudmap.exe
587 !IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
593 # Unicode data files generated by mktables
594 FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl
595 UNIDATAFILES = ..\lib\unicore\Decomposition.pl \
596 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
597 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \
598 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
599 ..\lib\unicore\TestProp.pl
601 # Directories of Unicode data files generated by mktables
602 UNIDATADIR1 = ..\lib\unicore\To
603 UNIDATADIR2 = ..\lib\unicore\lib
605 PERLEXE_MANIFEST= .\perlexe.manifest
606 PERLEXE_ICO = .\perlexe.ico
607 PERLEXE_RES = .\perlexe.res
610 # Nominate a target which causes extensions to be re-built
611 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
612 # on and really only the interface - i.e. the .def file used to export symbols
614 PERLDEP = perldll.def
616 PL2BAT = bin\pl2bat.pl
617 GLOBBAT = bin\perlglob.bat
638 ..\utils\zipdetails \
653 CFGSH_TMPL = config.vc
654 CFGH_TMPL = config_H.vc
657 XCOPY = xcopy /f /r /i /d /y
658 RCOPY = xcopy /f /r /i /e /d /y
705 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
707 !IF "$(PERL_MALLOC)" == "define"
708 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
711 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
756 .\include\sys\errno2.h \
757 .\include\sys\socket.h \
760 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
762 UUDMAP_H = ..\uudmap.h
763 BITCOUNT_H = ..\bitcount.h
764 MG_DATA_H = ..\mg_data.h
765 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
767 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
768 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
769 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
770 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
771 $(MINIDIR)\miniperlmain$(o) \
772 $(MINIDIR)\perlio$(o)
773 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
774 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
775 DLL_OBJ = $(DYNALOADER)
776 GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj)
778 PERLDLL_OBJ = $(CORE_OBJ)
779 PERLEXE_OBJ = perlmain$(o)
780 PERLEXEST_OBJ = perlmainst$(o)
782 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
784 !IF "$(USE_SETARGV)" != ""
785 SETARGV_OBJ = setargv$(o)
788 !IF "$(ALL_STATIC)" == "define"
789 # some exclusions, unfortunately, until fixed:
790 # - MakeMaker isn't capable enough for SDBM_File (small bug)
791 STATIC_EXT = * !SDBM_File
793 # specify static extensions here, for example:
794 # (be sure to include Win32CORE to load Win32 on demand)
795 #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib
796 STATIC_EXT = Win32CORE
799 DYNALOADER = ..\DynaLoader$(o)
802 "INST_TOP=$(INST_TOP)" \
803 "INST_VER=$(INST_VER)" \
804 "INST_ARCH=$(INST_ARCH)" \
805 "archname=$(ARCHNAME)" \
808 "ccflags=$(EXTRACFLAGS) $(DEFINES) $(BUILDOPT)" \
809 "usecplusplus=$(USE_CPLUSPLUS)" \
810 "cf_email=$(EMAIL)" \
811 "d_mymalloc=$(PERL_MALLOC)" \
813 "incpath=$(CCINCDIR:"=\")" \
814 "libperl=$(PERLIMPLIB:..\=)" \
815 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
817 "make=$(MAKE_BARE)" \
818 "static_ext=$(STATIC_EXT)" \
819 "usethreads=$(USE_ITHREADS)" \
820 "useithreads=$(USE_ITHREADS)" \
821 "usemultiplicity=$(USE_MULTI)" \
822 "use64bitint=$(USE_64_BIT_INT)" \
823 "uselongdouble=undef" \
824 "usesitecustomize=$(USE_SITECUST)" \
825 "default_inc_excludes_dot=$(DEFAULT_INC_EXCLUDES_DOT)" \
826 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
827 "optimize=$(OPTIMIZE:"=\")" \
834 all : ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
835 $(UNIDATAFILES) MakePPPort $(PERLEXE) Extensions_nonxs Extensions \
837 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
839 regnodes : ..\regnodes.h
841 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
843 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
845 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
846 $(UNIDATAFILES) $(PERLEXE) Extensions_reonly
847 @echo Perl and 're' are up to date.
849 static: $(PERLEXESTATIC)
851 #------------------------------------------------------------
853 $(GLOBEXE) : perlglob$(o)
854 $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ \
855 perlglob$(o) setargv$(o)
857 perlglob$(o) : perlglob.c
859 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
860 cd .. && miniperl -Ilib make_patchnum.pl && cd win32
862 # make sure that we recompile perl.c if the git version changes
863 ..\perl$(o) : ..\git_version.h
865 ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(MINIPERL)
866 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
868 # This target is for when changes to the main config.sh happen.
869 # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI,
870 # ITHREADS, IMP_SYS and LARGE_FILES off), then make this target
871 # to regenerate config_H.vc.
873 $(MINIPERL) -I..\lib config_sh.PL --prebuilt $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
874 $(MINIPERL) -I..\lib ..\configpm --chdir=..
876 -$(MINIPERL) -I..\lib config_h.PL
877 rename config.h $(CFGH_TMPL)
879 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\git_version.h
880 $(MINIPERL) -I..\lib ..\configpm --chdir=..
881 $(XCOPY) ..\*.h $(COREDIR)\*.*
882 $(XCOPY) *.h $(COREDIR)\*.*
883 $(RCOPY) include $(COREDIR)\*.*
884 -$(MINIPERL) -I..\lib config_h.PL
885 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
887 .\config.h : $(CONFIGPM)
889 # See the comment in Makefile.SH explaining this seemingly cranky ordering
890 $(MINIPERL) : ..\lib\buildcustomize.pl
892 ..\lib\buildcustomize.pl : $(MINI_OBJ) ..\write_buildcustomize.pl
893 $(LINK32) -out:$(MINIPERL) @<<
894 $(BLINK_FLAGS) $(DELAYLOAD) $(MINIDELAYLOAD) $(LIBFILES) $(MINI_OBJ)
896 $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
898 $(MINIDIR)\.exists : $(CFGH_TMPL)
899 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
901 # Copy the template config.h and set configurables at the end of it
902 # as per the options chosen and compiler used.
903 # Note: This config.h is only used to build miniperl.exe anyway, but
904 # it's as well to have its options correct to be sure that it builds
905 # and so that it's "-V" options are correct for use by makedef.pl. The
906 # real config.h used to build perl.exe is generated from the top-level
907 # config_h.SH by config_h.PL (run by miniperl.exe).
909 copy $(CFGH_TMPL) config.h
911 echo #ifndef _config_h_footer_&& \
912 echo #define _config_h_footer_&& \
913 echo #undef PTRSIZE&& \
914 echo #undef SSize_t&& \
915 echo #undef HAS_ATOLL&& \
916 echo #undef HAS_STRTOLL&& \
917 echo #undef HAS_STRTOULL&& \
918 echo #undef Size_t_size&& \
919 echo #undef IVTYPE&& \
920 echo #undef UVTYPE&& \
921 echo #undef IVSIZE&& \
922 echo #undef UVSIZE&& \
923 echo #undef NV_PRESERVES_UV&& \
924 echo #undef NV_PRESERVES_UV_BITS&& \
930 echo #undef USE_64_BIT_INT&& \
931 echo #undef USE_LONG_DOUBLE&& \
932 echo #undef USE_CPLUSPLUS)>> config.h
933 !IF "$(CCTYPE)" != "MSVC120"
934 @(echo #undef FILE_ptr&& \
935 echo #undef FILE_cnt&& \
936 echo #undef FILE_base&& \
937 echo #undef FILE_bufsiz&& \
938 echo #define FILE_ptr^(fp^) PERLIO_FILE_ptr^(fp^)&& \
939 echo #define FILE_cnt^(fp^) PERLIO_FILE_cnt^(fp^)&& \
940 echo #define FILE_base^(fp^) PERLIO_FILE_base^(fp^)&& \
941 echo #define FILE_bufsiz^(fp^) ^(PERLIO_FILE_cnt^(fp^) + PERLIO_FILE_ptr^(fp^) - PERLIO_FILE_base^(fp^)^)&& \
942 echo #define I_STDBOOL)>> config.h
944 !IF "$(WIN64)"=="define"
945 @(echo #define PTRSIZE ^8&& \
946 echo #define SSize_t $(INT64)&& \
947 echo #define HAS_ATOLL&& \
948 echo #define HAS_STRTOLL&& \
949 echo #define HAS_STRTOULL&& \
950 echo #define Size_t_size ^8)>> config.h
952 @(echo #define PTRSIZE ^4&& \
953 echo #define SSize_t int&& \
954 echo #undef HAS_ATOLL&& \
955 echo #undef HAS_STRTOLL&& \
956 echo #undef HAS_STRTOULL&& \
957 echo #define Size_t_size ^4)>> config.h
959 !IF "$(USE_64_BIT_INT)"=="define"
960 @(echo #define IVTYPE $(INT64)&& \
961 echo #define UVTYPE unsigned $(INT64)&& \
962 echo #define IVSIZE ^8&& \
963 echo #define UVSIZE ^8&& \
964 echo #undef NV_PRESERVES_UV&& \
965 echo #define NV_PRESERVES_UV_BITS 53&& \
966 echo #define IVdf "I64d"&& \
967 echo #define UVuf "I64u"&& \
968 echo #define UVof "I64o"&& \
969 echo #define UVxf "I64x"&& \
970 echo #define UVXf "I64X"&& \
971 echo #define USE_64_BIT_INT)>> config.h
973 @(echo #define IVTYPE long&& \
974 echo #define UVTYPE unsigned long&& \
975 echo #define IVSIZE ^4&& \
976 echo #define UVSIZE ^4&& \
977 echo #define NV_PRESERVES_UV&& \
978 echo #define NV_PRESERVES_UV_BITS 32&& \
979 echo #define IVdf "ld"&& \
980 echo #define UVuf "lu"&& \
981 echo #define UVof "lo"&& \
982 echo #define UVxf "lx"&& \
983 echo #define UVXf "lX"&& \
984 echo #undef USE_64_BIT_INT)>> config.h
986 !IF "$(USE_CPLUSPLUS)"=="define"
987 @(echo #define USE_CPLUSPLUS&& \
988 echo #endif)>> config.h
990 @(echo #undef USE_CPLUSPLUS&& \
991 echo #endif)>> config.h
993 #separate line since this is sentinal that this target is done
994 @rem. > $(MINIDIR)\.exists
996 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
997 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c
999 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1000 $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*F).c
1002 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1003 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1004 !IF "$(USE_IMP_SYS)" == "define"
1005 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
1006 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
1009 # 1. we don't want to rebuild miniperl.exe when config.h changes
1010 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1011 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1012 $(MINI_OBJ) : $(MINIDIR)\.exists $(CORE_NOCFG_H)
1014 $(WIN32_OBJ) : $(CORE_H)
1015 $(CORE_OBJ) : $(CORE_H)
1016 $(DLL_OBJ) : $(CORE_H)
1018 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl ..\git_version.h
1019 $(MINIPERL) -I..\lib create_perllibst_h.pl
1020 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
1021 CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1023 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1024 $(LINK32) -dll -def:perldll.def -out:$@ @Extensions_static @<<
1025 $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
1027 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1029 $(PERLSTATICLIB): Extensions_static
1030 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<<
1033 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1035 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1037 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1039 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1041 $(BITCOUNT_H) : $(GENUUDMAP)
1042 $(GENUUDMAP) $(GENERATED_HEADERS)
1044 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1046 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1047 $(LINK32) -out:$@ @<<
1048 $(BLINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ)
1051 perlmain.c : runperl.c
1052 copy runperl.c perlmain.c
1054 perlmain$(o) : perlmain.c
1055 $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c
1057 perlmainst.c : runperl.c
1058 copy runperl.c perlmainst.c
1060 perlmainst$(o) : perlmainst.c
1061 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1063 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1064 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1065 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1066 copy $(PERLEXE) $(WPERLEXE)
1067 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1069 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1070 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1071 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1073 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1074 $(MINIPERL) -I..\lib ..\mkppport
1076 #-------------------------------------------------------------------------------
1077 # There's no direct way to mark a dependency on
1078 # DynaLoader.pm, so this will have to do
1079 Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1080 $(XCOPY) ..\*.h $(COREDIR)\*.*
1081 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1083 Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1084 $(XCOPY) ..\*.h $(COREDIR)\*.*
1085 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1087 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1088 $(XCOPY) ..\*.h $(COREDIR)\*.*
1089 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1090 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1092 Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1093 $(XCOPY) ..\*.h $(COREDIR)\*.*
1094 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1096 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1097 $(XCOPY) ..\*.h $(COREDIR)\*.*
1098 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1101 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1103 Extensions_realclean:
1104 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1106 #-------------------------------------------------------------------------------
1108 doc: $(PERLEXE) ..\pod\perltoc.pod
1109 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1110 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML::=|)" \
1113 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1114 $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1116 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1117 # so please check that script before making structural changes here
1119 utils: $(PERLEXE) ..\utils\Makefile
1121 $(MAKE) PERL=$(MINIPERL)
1123 copy ..\README.aix ..\pod\perlaix.pod
1124 copy ..\README.amiga ..\pod\perlamiga.pod
1125 copy ..\README.android ..\pod\perlandroid.pod
1126 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1127 copy ..\README.cn ..\pod\perlcn.pod
1128 copy ..\README.cygwin ..\pod\perlcygwin.pod
1129 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1130 copy ..\README.haiku ..\pod\perlhaiku.pod
1131 copy ..\README.hpux ..\pod\perlhpux.pod
1132 copy ..\README.hurd ..\pod\perlhurd.pod
1133 copy ..\README.irix ..\pod\perlirix.pod
1134 copy ..\README.jp ..\pod\perljp.pod
1135 copy ..\README.ko ..\pod\perlko.pod
1136 copy ..\README.linux ..\pod\perllinux.pod
1137 copy ..\README.macos ..\pod\perlmacos.pod
1138 copy ..\README.macosx ..\pod\perlmacosx.pod
1139 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1140 copy ..\README.os2 ..\pod\perlos2.pod
1141 copy ..\README.os390 ..\pod\perlos390.pod
1142 copy ..\README.os400 ..\pod\perlos400.pod
1143 copy ..\README.plan9 ..\pod\perlplan9.pod
1144 copy ..\README.qnx ..\pod\perlqnx.pod
1145 copy ..\README.riscos ..\pod\perlriscos.pod
1146 copy ..\README.solaris ..\pod\perlsolaris.pod
1147 copy ..\README.synology ..\pod\perlsynology.pod
1148 copy ..\README.tru64 ..\pod\perltru64.pod
1149 copy ..\README.tw ..\pod\perltw.pod
1150 copy ..\README.vos ..\pod\perlvos.pod
1151 copy ..\README.win32 ..\pod\perlwin32.pod
1152 copy ..\pod\perldelta.pod ..\pod\perl5358delta.pod
1154 $(PERLEXE) $(PL2BAT) $(UTILS)
1155 $(MINIPERL) -I..\lib ..\autodoc.pl ..
1156 $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1158 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1159 $(PERLEXE) -f ..\pod\buildtoc -q
1161 # Note that the pod cleanup in this next section is parsed (and regenerated
1162 # by pod/buildtoc so please check that script before making changes here
1164 distclean: realclean
1165 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1166 $(PERLIMPLIB) ..\miniperl.lib $(PERLEXESTATIC) $(PERLSTATICLIB)
1167 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1168 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1169 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1170 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1171 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1172 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1173 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1174 -del /f $(LIBDIR)\File\Glob.pm
1175 -del /f $(LIBDIR)\Storable.pm
1176 -del /f $(LIBDIR)\Sys\Hostname.pm
1177 -del /f $(LIBDIR)\Time\HiRes.pm
1178 -del /f $(LIBDIR)\Unicode\Normalize.pm
1179 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1180 -del /f $(LIBDIR)\Win32.pm
1181 -del /f $(LIBDIR)\Win32CORE.pm
1182 -del /f $(LIBDIR)\Win32API\File.pm
1183 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1184 -del /f $(LIBDIR)\buildcustomize.pl
1185 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1187 -if exist $(LIBDIR)\Amiga rmdir /s /q $(LIBDIR)\Amiga
1188 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1189 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1190 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1191 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1192 -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1193 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1194 -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1195 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1196 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1197 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1198 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1199 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1200 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1201 -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1202 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1203 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1204 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1205 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1206 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1207 -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1208 -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1209 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1210 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1211 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1212 -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1213 -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
1214 -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc
1215 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1216 -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1217 -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON
1218 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1219 -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1220 -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1221 -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1222 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1223 -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1224 -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1225 -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1226 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1227 -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1228 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1229 -if exist $(LIBDIR)\Pod\Html rmdir /s /q $(LIBDIR)\Pod\Html
1230 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1231 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1232 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1233 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1234 -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1235 -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub
1236 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1237 -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1238 -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term
1239 -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1240 -if exist $(LIBDIR)\Test2 rmdir /s /q $(LIBDIR)\Test2
1241 -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text
1242 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1243 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1244 -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1245 -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1246 -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale
1247 -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version
1248 -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS
1249 -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1250 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1251 -cd $(PODDIR) && del /f *.html *.bat roffitall \
1252 perl5358delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
1253 perlapi.pod perlbs2000.pod perlcn.pod perlcygwin.pod \
1254 perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \
1255 perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \
1256 perlmacos.pod perlmacosx.pod perlmodlib.pod perlopenbsd.pod \
1257 perlos2.pod perlos390.pod perlos400.pod perlplan9.pod \
1258 perlqnx.pod perlriscos.pod perlsolaris.pod perlsynology.pod \
1259 perltoc.pod perltru64.pod perltw.pod perluniprops.pod \
1260 perlvos.pod perlwin32.pod
1261 -cd ..\utils && del /f h2ph splain perlbug pl2pm h2xs \
1262 perldoc perlivp libnetcfg enc2xs encguess piconv cpan streamzip *.bat \
1263 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails
1264 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1267 -del /f ..\lib\Config_git.pl
1270 -del /f $(PERLEXE_RES) perl.base
1271 -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1272 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1273 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1274 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1275 -del /s ..\utils\Makefile
1276 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1277 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1278 -if exist pod2htmd.tmp del pod2htmd.tmp
1279 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1280 -del /f ..\t\test_state
1282 install : all installbare installhtml
1284 installbare : utils ..\pod\perltoc.pod
1285 $(PERLEXE) ..\installperl
1286 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1287 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1288 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1289 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1290 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1293 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1295 inst_lib : $(CONFIGPM)
1296 $(RCOPY) ..\lib $(INST_LIB)\*.*
1298 $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1299 cd ..\lib\unicore && \
1300 ..\$(MINIPERL) -I.. mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE)
1302 minitest : .\config.h $(MINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES)
1303 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1304 if exist ..\t\perl.exe del /f ..\t\perl.exe
1305 rename ..\t\miniperl.exe perl.exe
1306 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1307 # Note this perl.exe is miniperl
1308 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
1310 test-prep : all utils ../pod/perltoc.pod
1311 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1312 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1313 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1314 set PERL_STATIC_EXT=$(STATIC_EXT)
1318 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1321 test_porting : test-prep
1323 perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1326 test-reonly : reonly utils
1327 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1328 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1329 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1331 perl.exe harness $(OPT) -re \bre\\/ $(EXTRA)
1339 test-notty : test-prep
1340 set PERL_SKIP_TTY_TEST=1
1342 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1346 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1347 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1348 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1350 perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1354 -@$(DEL) miniperlmain$(o)
1355 -@$(DEL) $(MINIPERL)
1356 -@$(DEL) perlglob$(o)
1357 -@$(DEL) perlmain$(o)
1358 -@$(DEL) perlmainst$(o)
1360 -@$(DEL) ..\git_version.h
1363 -@$(DEL) $(WPERLEXE)
1364 -@$(DEL) $(PERLEXESTATIC)
1365 -@$(DEL) $(PERLSTATICLIB)
1367 -@$(DEL) $(CORE_OBJ)
1368 -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1369 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1370 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1371 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1372 -@$(DEL) $(UNIDATAFILES)
1373 -@$(DEL) $(WIN32_OBJ)
1375 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1376 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1379 -@$(DEL) Extensions_static
1381 clean : Extensions_clean _clean
1383 realclean : Extensions_realclean _clean
1385 # Handy way to run perlbug -ok without having to install and run the
1386 # installed perlbug. We don't re-run the tests here - we trust the user.
1387 # Please *don't* use this unless all tests pass.
1388 # If you want to report test failures, use "nmake nok" instead.
1390 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)"
1393 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1396 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)"
1399 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok