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 # (perl517.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.
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 need for fork()
63 # emulation and for thread support.
68 # Beginnings of interpreter cloning/threads; now reasonably complete.
69 # This should be enabled to get the fork() emulation. This needs
75 # uncomment to enable the implicit "host" layer for all system calls
76 # made by perl. This needs USE_MULTI above. This is also needed to
82 # Comment out next assign to disable perl's I/O subsystem and use compiler's
83 # stdio for IO - depending on your compiler vendor and run time library you may
84 # then get a number of fails from make test i.e. bugs - complain to them not us ;-).
85 # You will also be unable to take full advantage of perl5.8's support for multiple
86 # encodings and may see lower IO performance. You have been warned.
90 # Comment this out if you don't want to enable large file support for
91 # some reason. Should normally only be changed to maintain compatibility
92 # with an older release of perl.
93 USE_LARGE_FILES = define
96 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
97 # (If you're building a 64-bit perl then you will have 64-bit integers whether
98 # or not this is uncommented.)
99 #USE_64_BIT_INT = define
102 # uncomment exactly one of the following
104 # Visual C++ 6.x (aka Visual C++ 98)
106 # Visual C++ .NET 2002/2003 (aka Visual C++ 7.x) (full version)
108 # Visual C++ Toolkit 2003 (aka Visual C++ 7.x) (free command-line tools)
110 # Windows Server 2003 SP1 Platform SDK (April 2005)
112 # Visual C++ 2005 (aka Visual C++ 8.x) (full version)
114 # Visual C++ 2005 Express Edition (aka Visual C++ 8.x) (free version)
116 # Visual C++ 2008 (aka Visual C++ 9.x) (full version)
118 # Visual C++ 2008 Express Edition (aka Visual C++ 9.x) (free version)
120 # Visual C++ 2010 (aka Visual C++ 10.x) (full version)
122 # Visual C++ 2010 Express Edition (aka Visual C++ 10.x) (free version)
123 #CCTYPE = MSVC100FREE
124 # Visual C++ 2012 (aka Visual C++ 11.x) (full version)
126 # Visual C++ 2012 Express Edition (aka Visual C++ 11.x) (free version)
127 #CCTYPE = MSVC110FREE
130 # uncomment next line if you want debug version of perl (big,slow)
131 # If not enabled, we automatically try to use maximum optimization
132 # with all compilers that are known to have a working optimizer.
137 # uncomment to enable linking with setargv.obj under the Visual C
138 # compiler. Setting this options enables perl to expand wildcards in
139 # arguments, but it may be harder to use alternate methods like
140 # File::DosGlob that are more powerful. This option is supported only with
143 #USE_SETARGV = define
146 # set this if you wish to use perl's malloc
147 # WARNING: Turning this on/off WILL break binary compatibility with extensions
148 # you may have compiled with/without it. Be prepared to recompile all
149 # extensions if you change the default. Currently, this cannot be enabled
150 # if you ask for USE_IMP_SYS above.
152 #PERL_MALLOC = define
155 # set this to enable debugging mstats
156 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
157 # be enabled without PERL_MALLOC as well.
159 #DEBUG_MSTATS = define
162 # set this to additionally provide a statically linked perl-static.exe.
163 # Note that dynamic loading will not work with this perl, so you must
164 # include required modules statically using the STATIC_EXT or ALL_STATIC
165 # variables below. A static library perl517s.lib will also be created.
166 # Ordinary perl.exe is not affected by this option.
168 #BUILD_STATIC = define
171 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
172 # extension get statically built
173 # This will result in a very large perl executable, but the main purpose
174 # is to have proper linking set so as to be able to create miscellaneous
175 # executables with different built-in extensions
181 # set the install locations of the compiler include/libraries
182 # Running VCVARS32.BAT is *required* when using Visual C.
183 # Some versions of Visual C don't define MSVCDIR in the environment,
184 # so you may have to set CCHOME explicitly (spaces in the path name should
188 CCINCDIR = $(CCHOME)\include
189 CCLIBDIR = $(CCHOME)\lib
192 # Additional compiler flags can be specified here.
194 BUILDOPT = $(BUILDOPTEXTRA)
197 # This should normally be disabled. Enabling it will disable the File::Glob
198 # implementation of CORE::glob.
200 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
203 # Perl needs to read scripts in text mode so that the DATA filehandle
204 # works correctly with seek() and tell(), or around auto-flushes of
205 # all filehandles (e.g. by system(), backticks, fork(), etc).
207 # The current version on the ByteLoader module on CPAN however only
208 # works if scripts are read in binary mode. But before you disable text
209 # mode script reading (and break some DATA filehandle functionality)
210 # please check first if an updated ByteLoader isn't available on CPAN.
212 BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
215 # specify semicolon-separated list of extra directories that modules will
216 # look for libraries (spaces in path names need not be quoted)
221 # set this to your email address (perl will guess a value from
222 # from your loginname and your hostname, which may not be right)
227 ## Build configuration ends.
230 ##################### CHANGE THESE ONLY IF YOU MUST #####################
232 !IF "$(USE_IMP_SYS)" == "define"
237 !IF "$(PERL_MALLOC)" == ""
242 !IF "$(DEBUG_MSTATS)" == ""
246 !IF "$(DEBUG_MSTATS)" == "define"
247 BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
250 !IF "$(USE_SITECUST)" == ""
254 !IF "$(USE_MULTI)" == ""
258 !IF "$(USE_ITHREADS)" == ""
262 !IF "$(USE_IMP_SYS)" == ""
266 !IF "$(USE_PERLIO)" == ""
270 !IF "$(USE_LARGE_FILES)" == ""
271 USE_LARGE_FILES = undef
274 !IF "$(USE_64_BIT_INT)" == ""
275 USE_64_BIT_INT = undef
278 !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
282 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
286 !IF "$(USE_SITECUST)" == "define"
287 BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE
290 !IF "$(USE_MULTI)" != "undef"
291 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
294 !IF "$(USE_IMP_SYS)" != "undef"
295 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
298 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
299 PROCESSOR_ARCHITECTURE = x86
303 # When we are running from a 32bit cmd.exe on AMD64 then
304 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
306 !IF "$(PROCESSOR_ARCHITEW6432)" != ""
307 PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432)
310 !IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
318 !IF "$(WIN64)" == "define"
319 USE_64_BIT_INT = define
322 # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because
323 # both link against MSVCRT.dll (which is part of Windows itself) and
324 # not against a compiler specific versioned runtime.
325 !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60"
329 # Most relevant compiler-specific options fall into two groups:
330 # either pre-MSVC80 or MSVC80 onwards, so define a macro for this.
331 !IF "$(CCTYPE)" == "MSVC60" || \
332 "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
338 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
339 !IF "$(ARCHITECTURE)" == "AMD64"
342 !IF "$(ARCHITECTURE)" == "IA64"
346 !IF "$(USE_MULTI)" == "define"
347 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
349 !IF "$(USE_PERLIO)" == "define"
350 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
352 ARCHNAME = MSWin32-$(ARCHITECTURE)
356 !IF "$(USE_PERLIO)" == "define"
357 BUILDOPT = $(BUILDOPT) -DUSE_PERLIO
360 !IF "$(USE_ITHREADS)" == "define"
361 ARCHNAME = $(ARCHNAME)-thread
364 !IF "$(WIN64)" != "define"
365 !IF "$(USE_64_BIT_INT)" == "define"
366 ARCHNAME = $(ARCHNAME)-64int
370 # All but the free version of VC++ 7.x can load DLLs on demand. Makes the test
371 # suite run in about 10% less time.
372 !IF "$(CCTYPE)" != "MSVC70FREE"
373 DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib
376 # Visual C++ 2005 and 2008 (VC++ 8.x and 9.x) create manifest files for EXEs and
377 # DLLs. These either need copying everywhere with the binaries, or else need
378 # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For
379 # simplicity, embed them if they exist (and delete them afterwards so that they
380 # don't get installed too).
381 EMBED_EXE_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \
382 if exist $@.manifest del $@.manifest
383 EMBED_DLL_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \
384 if exist $@.manifest del $@.manifest
386 ARCHDIR = ..\lib\$(ARCHNAME)
387 COREDIR = ..\lib\CORE
388 AUTODIR = ..\lib\auto
394 EXTUTILSDIR = $(LIBDIR)\ExtUtils
398 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
399 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
400 INST_LIB = $(INST_TOP)$(INST_VER)\lib
401 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
402 INST_COREDIR = $(INST_ARCHLIB)\CORE
403 INST_HTML = $(INST_TOP)$(INST_VER)\html
406 # Programs to compile, build .lib files and link
411 LIB32 = $(LINK32) -lib
418 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
419 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
420 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT
421 LOCDEFS = -DPERLDLL -DPERL_CORE
427 !IF "$(CFG)" == "Debug"
428 OPTIMIZE = -Od -MD -Zi -DDEBUGGING
431 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
432 OPTIMIZE = -O1 -MD -Zi -DNDEBUG
433 # we enable debug symbols in release builds also
434 LINK_DBG = -debug -opt:ref,icf
435 # you may want to enable this if you want COFF symbols in the executables
436 # in addition to the PDB symbols. The default Dr. Watson that ships with
437 # Windows can use the the former but not latter. The free WinDbg can be
438 # installed to get better stack traces from just the PDB symbols, so we
439 # avoid the bloat of COFF symbols by default.
440 #LINK_DBG = $(LINK_DBG) -debugtype:both
441 ! IF "$(WIN64)" == "define"
442 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
443 OPTIMIZE = $(OPTIMIZE) -GL
444 LINK_DBG = $(LINK_DBG) -ltcg
448 !IF "$(WIN64)" == "define"
449 DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE
450 OPTIMIZE = $(OPTIMIZE) -fp:precise
453 # For now, silence warnings from VC++ 8.x onwards about "unsafe" CRT functions
454 # and POSIX CRT function names being deprecated.
455 !IF "$(PREMSVC80)" == "undef"
456 DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
459 # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
460 # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T
461 # preprocessor option to revert back to the old functionality for
462 # backward compatibility. We define this symbol here for older 32-bit
463 # compilers only (which aren't using it at all) for the sole purpose
464 # of getting it into $Config{ccflags}. That way if someone builds
465 # Perl itself with e.g. VC6 but later installs an XS module using VC8
466 # the time_t types will still be compatible.
467 !IF "$(WIN64)" == "undef"
468 ! IF "$(PREMSVC80)" == "define"
469 BUILDOPT = $(BUILDOPT) -D_USE_32BIT_TIME_T
474 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
475 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
476 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
477 version.lib odbc32.lib odbccp32.lib comctl32.lib
479 # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which
480 # doesn't include the buffer overrun verification code used by the /GS switch.
481 # Since the code links against libraries that are compiled with /GS, this
482 # "security cookie verification" code must be included via bufferoverflow.lib.
483 !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1"
484 LIBBASEFILES = $(LIBBASEFILES) bufferoverflowU.lib
487 LIBFILES = $(LIBBASEFILES) $(LIBC)
489 #EXTRACFLAGS = -nologo -GF -W4 -wd4127 -wd4706
490 EXTRACFLAGS = -nologo -GF -W3
491 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
492 $(PCHFLAGS) $(OPTIMIZE)
493 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
494 -libpath:"$(INST_COREDIR)" \
495 -machine:$(PROCESSOR_ARCHITECTURE)
500 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
502 !IF "$(PREMSVC80)" == "undef"
503 LINK_FLAGS = $(LINK_FLAGS) "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
505 RSC_FLAGS = -DINCLUDE_MANIFEST
509 #################### do not edit below this line #######################
510 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
518 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
521 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
524 $(CC) -c -I$(<D) $(CFLAGS_O) -P $(OBJOUT_FLAG)$@ $<
530 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
531 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
535 $(RSC) -i.. $(RSC_FLAGS) $<
540 # makedef.pl must be updated if this changes, and this should normally
541 # only change when there is an incompatible revision of the public API.
542 PERLIMPLIB = ..\perl517.lib
543 PERLSTATICLIB = ..\perl517s.lib
544 PERLDLL = ..\perl517.dll
546 MINIPERL = ..\miniperl.exe
548 PERLEXE = ..\perl.exe
549 WPERLEXE = ..\wperl.exe
550 PERLEXESTATIC = ..\perl-static.exe
551 GLOBEXE = ..\perlglob.exe
552 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
553 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
555 GENUUDMAP = ..\generate_uudmap.exe
556 !IF "$(BUILD_STATIC)" == "define"
562 # Unicode data files generated by mktables
563 FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl
564 UNIDATAFILES = ..\lib\unicore\Decomposition.pl \
565 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
566 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \
567 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
568 ..\lib\unicore\TestProp.pl
570 # Directories of Unicode data files generated by mktables
571 UNIDATADIR1 = ..\lib\unicore\To
572 UNIDATADIR2 = ..\lib\unicore\lib
574 PERLEXE_MANIFEST= .\perlexe.manifest
575 PERLEXE_ICO = .\perlexe.ico
576 PERLEXE_RES = .\perlexe.res
579 # Nominate a target which causes extensions to be re-built
580 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
581 # on and really only the interface - i.e. the .def file used to export symbols
583 PERLDEP = perldll.def
585 PL2BAT = bin\pl2bat.pl
586 GLOBBAT = bin\perlglob.bat
601 ..\utils\config_data \
609 ..\utils\zipdetails \
610 ..\utils\cpanp-run-perl \
629 CFGSH_TMPL = config.vc
630 CFGH_TMPL = config_H.vc
632 XCOPY = xcopy /f /r /i /d /y
633 RCOPY = xcopy /f /r /i /e /d /y
677 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
679 !IF "$(PERL_MALLOC)" == "define"
680 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
683 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
691 # We need this for miniperl build unless we override canned
692 # config.h #define building mini\*
693 #!IF "$(USE_PERLIO)" == "define"
694 WIN32_SRC = $(WIN32_SRC) .\win32io.c
743 .\include\sys\socket.h \
746 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
748 UUDMAP_H = ..\uudmap.h
749 BITCOUNT_H = ..\bitcount.h
750 MG_DATA_H = ..\mg_data.h
751 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
753 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
754 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
755 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
756 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
757 $(MINIDIR)\miniperlmain$(o) \
758 $(MINIDIR)\perlio$(o)
759 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
760 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
761 DLL_OBJ = $(DYNALOADER)
762 X2P_OBJ = $(X2P_SRC:.c=.obj)
763 GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj)
765 PERLDLL_OBJ = $(CORE_OBJ)
766 PERLEXE_OBJ = perlmain$(o)
767 PERLEXEST_OBJ = perlmainst$(o)
769 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
771 !IF "$(USE_SETARGV)" != ""
772 SETARGV_OBJ = setargv$(o)
775 !IF "$(ALL_STATIC)" == "define"
776 # some exclusions, unfortunately, until fixed:
777 # - Win32 extension contains overlapped symbols with win32.c (BUG!)
778 # - MakeMaker isn't capable enough for SDBM_File (smaller bug)
779 # - Encode (encoding search algorithm relies on shared library?)
780 STATIC_EXT = * !Win32 !SDBM_File !Encode
782 # specify static extensions here, for example:
783 #STATIC_EXT = Cwd Compress/Raw/Zlib
784 STATIC_EXT = Win32CORE
787 DYNALOADER = ..\DynaLoader$(o)
790 "INST_TOP=$(INST_TOP)" \
791 "INST_VER=$(INST_VER)" \
792 "INST_ARCH=$(INST_ARCH)" \
793 "archname=$(ARCHNAME)" \
796 "ccflags=$(EXTRACFLAGS) $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
797 "cf_email=$(EMAIL)" \
798 "d_mymalloc=$(PERL_MALLOC)" \
800 "incpath=$(CCINCDIR:"=\")" \
801 "libperl=$(PERLIMPLIB:..\=)" \
802 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
804 "make=$(MAKE_BARE)" \
805 "static_ext=$(STATIC_EXT)" \
806 "usethreads=$(USE_ITHREADS)" \
807 "useithreads=$(USE_ITHREADS)" \
808 "usemultiplicity=$(USE_MULTI)" \
809 "useperlio=$(USE_PERLIO)" \
810 "use64bitint=$(USE_64_BIT_INT)" \
811 "uselargefiles=$(USE_LARGE_FILES)" \
812 "usesitecustomize=$(USE_SITECUST)" \
813 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
814 "optimize=$(OPTIMIZE:"=\")" \
817 ICWD = -I..\dist\Cwd -I..\dist\Cwd\lib
823 all : .\config.h ..\git_version.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) \
824 $(UNIDATAFILES) MakePPPort $(PERLEXE) $(X2P) Extensions_nonxs Extensions $(PERLSTATIC)
825 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
827 regnodes : ..\regnodes.h
829 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
831 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
833 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) \
834 $(UNIDATAFILES) $(PERLEXE) $(X2P) Extensions_reonly
835 @echo Perl and 're' are up to date.
837 static: $(PERLEXESTATIC)
839 #------------------------------------------------------------
841 $(GLOBEXE) : perlglob$(o)
842 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
843 perlglob$(o) setargv$(o)
846 perlglob$(o) : perlglob.c
848 config.w32 : $(CFGSH_TMPL)
849 copy $(CFGSH_TMPL) config.w32
852 # Copy the template config.h and set configurables at the end of it
853 # as per the options chosen and compiler used.
854 # Note: This config.h is only used to build miniperl.exe anyway, but
855 # it's as well to have its options correct to be sure that it builds
856 # and so that it's "-V" options are correct for use by makedef.pl. The
857 # real config.h used to build perl.exe is generated from the top-level
858 # config_h.SH by config_h.PL (run by miniperl.exe).
860 .\config.h : $(CFGH_TMPL)
862 copy $(CFGH_TMPL) config.h
864 @echo #ifndef _config_h_footer_>>$@
865 @echo #define _config_h_footer_>>$@
866 @echo #undef PTRSIZE>>$@
867 @echo #undef SSize_t>>$@
868 @echo #undef HAS_ATOLL>>$@
869 @echo #undef HAS_STRTOLL>>$@
870 @echo #undef HAS_STRTOULL>>$@
871 @echo #undef IVTYPE>>$@
872 @echo #undef UVTYPE>>$@
873 @echo #undef IVSIZE>>$@
874 @echo #undef UVSIZE>>$@
875 @echo #undef NV_PRESERVES_UV>>$@
876 @echo #undef NV_PRESERVES_UV_BITS>>$@
877 @echo #undef IVdf>>$@
878 @echo #undef UVuf>>$@
879 @echo #undef UVof>>$@
880 @echo #undef UVxf>>$@
881 @echo #undef UVXf>>$@
882 @echo #undef USE_64_BIT_INT>>$@
883 @echo #undef Size_t_size>>$@
884 !IF "$(WIN64)"=="define"
885 @echo #define PTRSIZE ^8>>$@
886 @echo #define SSize_t __int64>>$@
887 @echo #define HAS_ATOLL>>$@
888 @echo #define HAS_STRTOLL>>$@
889 @echo #define HAS_STRTOULL>>$@
890 @echo #define Size_t_size ^8>>$@
892 @echo #define PTRSIZE ^4>>$@
893 @echo #define SSize_t int>>$@
894 @echo #undef HAS_ATOLL>>$@
895 @echo #undef HAS_STRTOLL>>$@
896 @echo #undef HAS_STRTOULL>>$@
897 @echo #define Size_t_size ^4>>$@
899 !IF "$(USE_64_BIT_INT)"=="define"
900 @echo #define IVTYPE __int64>>$@
901 @echo #define UVTYPE unsigned __int64>>$@
902 @echo #define IVSIZE ^8>>$@
903 @echo #define UVSIZE ^8>>$@
904 @echo #undef NV_PRESERVES_UV>>$@
905 @echo #define NV_PRESERVES_UV_BITS 53>>$@
906 @echo #define IVdf "I64d">>$@
907 @echo #define UVuf "I64u">>$@
908 @echo #define UVof "I64o">>$@
909 @echo #define UVxf "I64x">>$@
910 @echo #define UVXf "I64X">>$@
911 @echo #define USE_64_BIT_INT>>$@
913 @echo #define IVTYPE long>>$@
914 @echo #define UVTYPE unsigned long>>$@
915 @echo #define IVSIZE ^4>>$@
916 @echo #define UVSIZE ^4>>$@
917 @echo #define NV_PRESERVES_UV>>$@
918 @echo #define NV_PRESERVES_UV_BITS 32>>$@
919 @echo #define IVdf "ld">>$@
920 @echo #define UVuf "lu">>$@
921 @echo #define UVof "lo">>$@
922 @echo #define UVxf "lx">>$@
923 @echo #define UVXf "lX">>$@
924 @echo #undef USE_64_BIT_INT>>$@
928 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
930 miniperl -Ilib make_patchnum.pl
933 # make sure that we recompile perl.c if the git version changes
934 ..\perl$(o) : ..\git_version.h
936 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL FindExt.pm
937 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
939 # This target is for when changes to the main config.sh happen.
940 # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI,
941 # ITHREADS, IMP_SYS, LARGE_FILES and PERLIO off), then make this target
942 # to regenerate config_H.vc.
944 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
945 $(MINIPERL) -I..\lib ..\configpm --chdir=..
947 -$(MINIPERL) -I..\lib $(ICWD) config_h.PL
948 rename config.h $(CFGH_TMPL)
950 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
951 $(MINIPERL) -I..\lib ..\configpm --chdir=..
952 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
953 $(XCOPY) ..\*.h $(COREDIR)\*.*
954 $(XCOPY) *.h $(COREDIR)\*.*
955 $(RCOPY) include $(COREDIR)\*.*
956 -$(MINIPERL) -I..\lib $(ICWD) config_h.PL
957 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
959 ..\lib\buildcustomize.pl: $(MINIPERL) ..\write_buildcustomize.pl
960 $(MINIPERL) -I..\lib ..\write_buildcustomize.pl .. >..\lib\buildcustomize.pl
962 $(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
963 $(LINK32) -subsystem:console -out:$@ @<<
964 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(MINI_OBJ)
969 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
971 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
972 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c
974 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
975 $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*F).c
977 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
978 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
979 !IF "$(USE_IMP_SYS)" == "define"
980 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
981 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
984 # 1. we don't want to rebuild miniperl.exe when config.h changes
985 # 2. we don't want to rebuild miniperl.exe with non-default config.h
986 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
987 $(MINI_OBJ) : $(CORE_NOCFG_H)
989 $(WIN32_OBJ) : $(CORE_H)
990 $(CORE_OBJ) : $(CORE_H)
991 $(DLL_OBJ) : $(CORE_H)
992 $(X2P_OBJ) : $(CORE_H)
994 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl
995 $(MINIPERL) -I..\lib create_perllibst_h.pl
996 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
997 CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
999 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1000 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @Extensions_static @<<
1001 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
1004 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1006 $(PERLSTATICLIB): Extensions_static
1007 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<<
1010 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1012 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1014 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
1016 miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
1019 ..\x2p\a2p$(o) : ..\x2p\a2p.c
1020 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
1022 ..\x2p\hash$(o) : ..\x2p\hash.c
1023 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
1025 ..\x2p\str$(o) : ..\x2p\str.c
1026 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
1028 ..\x2p\util$(o) : ..\x2p\util.c
1029 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
1031 ..\x2p\walk$(o) : ..\x2p\walk.c
1032 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
1034 $(X2P) : $(MINIPERL) $(X2P_OBJ) Extensions
1035 $(MINIPERL) -I..\lib ..\x2p\find2perl.PL
1036 $(MINIPERL) -I..\lib ..\x2p\s2p.PL
1037 $(LINK32) -subsystem:console -out:$@ @<<
1038 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
1042 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1044 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1046 $(BITCOUNT_H) : $(GENUUDMAP)
1047 $(GENUUDMAP) $(GENERATED_HEADERS)
1049 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1051 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1052 $(LINK32) -subsystem:console -out:$@ @<<
1053 $(LINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ)
1057 perlmain.c : runperl.c
1058 copy runperl.c perlmain.c
1060 perlmain$(o) : perlmain.c
1061 $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c
1063 perlmainst.c : runperl.c
1064 copy runperl.c perlmainst.c
1066 perlmainst$(o) : perlmainst.c
1067 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1069 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1070 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \
1071 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
1073 copy $(PERLEXE) $(WPERLEXE)
1074 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1076 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1077 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \
1078 @Extensions_static $(PERLSTATICLIB) /PDB:NONE \
1079 $(LIBFILES) $(PERLEXEST_OBJ) $(SETARGV_OBJ) $(PERLEXE_RES)
1082 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1083 $(MINIPERL) -I..\lib $(ICWD) ..\mkppport
1085 #-------------------------------------------------------------------------------
1086 # There's no direct way to mark a dependency on
1087 # DynaLoader.pm, so this will have to do
1088 Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1089 $(XCOPY) ..\*.h $(COREDIR)\*.*
1090 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1092 Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1093 $(XCOPY) ..\*.h $(COREDIR)\*.*
1094 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1096 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM)
1097 $(XCOPY) ..\*.h $(COREDIR)\*.*
1098 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1099 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1101 Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1102 $(XCOPY) ..\*.h $(COREDIR)\*.*
1103 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1105 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1106 $(XCOPY) ..\*.h $(COREDIR)\*.*
1107 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1110 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1112 Extensions_realclean:
1113 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1115 #-------------------------------------------------------------------------------
1117 doc: $(PERLEXE) ..\pod\perltoc.pod
1118 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1119 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML::=|)" \
1122 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1123 # so please check that script before making structural changes here
1125 utils: $(PERLEXE) $(X2P)
1127 $(MAKE) PERL=$(MINIPERL)
1129 copy ..\README.aix ..\pod\perlaix.pod
1130 copy ..\README.amiga ..\pod\perlamiga.pod
1131 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1132 copy ..\README.ce ..\pod\perlce.pod
1133 copy ..\README.cn ..\pod\perlcn.pod
1134 copy ..\README.cygwin ..\pod\perlcygwin.pod
1135 copy ..\README.dgux ..\pod\perldgux.pod
1136 copy ..\README.dos ..\pod\perldos.pod
1137 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1138 copy ..\README.haiku ..\pod\perlhaiku.pod
1139 copy ..\README.hpux ..\pod\perlhpux.pod
1140 copy ..\README.hurd ..\pod\perlhurd.pod
1141 copy ..\README.irix ..\pod\perlirix.pod
1142 copy ..\README.jp ..\pod\perljp.pod
1143 copy ..\README.ko ..\pod\perlko.pod
1144 copy ..\README.linux ..\pod\perllinux.pod
1145 copy ..\README.macos ..\pod\perlmacos.pod
1146 copy ..\README.macosx ..\pod\perlmacosx.pod
1147 copy ..\README.netware ..\pod\perlnetware.pod
1148 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1149 copy ..\README.os2 ..\pod\perlos2.pod
1150 copy ..\README.os390 ..\pod\perlos390.pod
1151 copy ..\README.os400 ..\pod\perlos400.pod
1152 copy ..\README.plan9 ..\pod\perlplan9.pod
1153 copy ..\README.qnx ..\pod\perlqnx.pod
1154 copy ..\README.riscos ..\pod\perlriscos.pod
1155 copy ..\README.solaris ..\pod\perlsolaris.pod
1156 copy ..\README.symbian ..\pod\perlsymbian.pod
1157 copy ..\README.tru64 ..\pod\perltru64.pod
1158 copy ..\README.tw ..\pod\perltw.pod
1159 copy ..\README.vos ..\pod\perlvos.pod
1160 copy ..\README.win32 ..\pod\perlwin32.pod
1161 copy ..\pod\perldelta.pod ..\pod\perl51710delta.pod
1163 $(PERLEXE) $(PL2BAT) $(UTILS)
1164 $(PERLEXE) $(ICWD) ..\autodoc.pl ..
1165 $(PERLEXE) $(ICWD) ..\pod\perlmodlib.pl -q
1167 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1168 $(PERLEXE) -f ..\pod\buildtoc -q
1170 # Note that the pod cleanup in this next section is parsed (and regenerated
1171 # by pod/buildtoc so please check that script before making changes here
1173 distclean: realclean
1174 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1175 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) \
1176 $(PERLEXESTATIC) $(PERLSTATICLIB)
1178 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1179 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1180 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1181 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1182 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1183 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1184 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1185 -del /f $(LIBDIR)\File\Glob.pm
1186 -del /f $(LIBDIR)\Storable.pm
1187 -del /f $(LIBDIR)\Sys\Hostname.pm
1188 -del /f $(LIBDIR)\Time\HiRes.pm
1189 -del /f $(LIBDIR)\Unicode\Normalize.pm
1190 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1191 -del /f $(LIBDIR)\Win32.pm
1192 -del /f $(LIBDIR)\Win32CORE.pm
1193 -del /f $(LIBDIR)\Win32API\File.pm
1194 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1195 -del /f $(LIBDIR)\buildcustomize.pl
1196 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1197 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1198 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1199 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1200 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1201 -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B
1202 -if exist $(LIBDIR)\CGI rmdir /s /q $(LIBDIR)\CGI
1203 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1204 -if exist $(LIBDIR)\CPANPLUS rmdir /s /q $(LIBDIR)\CPANPLUS
1205 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1206 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1207 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1208 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1209 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1210 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1211 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1212 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1213 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1214 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1215 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1216 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1217 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1218 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1219 -if exist $(LIBDIR)\I18N\LangTags rmdir /s /q $(LIBDIR)\I18N\LangTags
1220 -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc
1221 -if exist $(LIBDIR)\Module\Pluggable rmdir /s /q $(LIBDIR)\Module\Pluggable
1222 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1223 -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1224 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1225 -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1226 -if exist $(LIBDIR)\Log rmdir /s /q $(LIBDIR)\Log
1227 -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1228 -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1229 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1230 -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1231 -if exist $(LIBDIR)\mro rmdir /s /q $(LIBDIR)\mro
1232 -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1233 -if exist $(LIBDIR)\Object rmdir /s /q $(LIBDIR)\Object
1234 -if exist $(LIBDIR)\Package rmdir /s /q $(LIBDIR)\Package
1235 -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1236 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1237 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1238 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1239 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1240 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1241 -if exist $(LIBDIR)\re rmdir /s /q $(LIBDIR)\re
1242 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1243 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1244 -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1245 -if exist $(LIBDIR)\Term\UI rmdir /s /q $(LIBDIR)\Term\UI
1246 -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1247 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1248 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1249 -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1250 -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1251 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1252 -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1253 -cd $(PODDIR) && del /f *.html *.bat roffitall \
1254 perl51710delta.pod perlaix.pod perlamiga.pod perlapi.pod \
1255 perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \
1256 perldgux.pod perldos.pod perlfreebsd.pod perlhaiku.pod \
1257 perlhpux.pod perlhurd.pod perlintern.pod perlirix.pod \
1258 perljp.pod perlko.pod perllinux.pod perlmacos.pod \
1259 perlmacosx.pod perlmodlib.pod perlnetware.pod perlopenbsd.pod \
1260 perlos2.pod perlos390.pod perlos400.pod perlplan9.pod \
1261 perlqnx.pod perlriscos.pod perlsolaris.pod perlsymbian.pod \
1262 perltoc.pod perltru64.pod perltw.pod perluniprops.pod \
1263 perlvos.pod perlwin32.pod
1264 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1265 perldoc perlivp libnetcfg enc2xs piconv cpan *.bat \
1266 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep cpanp-run-perl cpanp cpan2dist shasum corelist config_data zipdetails
1267 -cd ..\x2p && del /f find2perl s2p psed *.bat
1268 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1271 -del /f ..\lib\Config_git.pl
1274 -del /f $(PERLEXE_RES) perl.base
1275 -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1276 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1277 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1278 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1279 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1280 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1281 -if exist pod2htmd.tmp del pod2htmd.tmp
1282 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1283 -del /f ..\t\test_state
1285 install : all installbare installhtml
1287 installbare : utils ..\pod\perltoc.pod
1288 $(PERLEXE) ..\installperl
1289 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1290 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1291 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1292 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1293 if exist ..\x2p\a2p.pdb $(XCOPY) ..\x2p\a2p.pdb $(INST_BIN)\*.*
1294 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1297 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1299 inst_lib : $(CONFIGPM)
1300 $(RCOPY) ..\lib $(INST_LIB)\*.*
1302 $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1303 cd ..\lib\unicore && \
1304 ..\$(MINIPERL) -I.. -I..\..\dist\Cwd\lib -I..\..\dist\Cwd mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE)
1306 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils $(UNIDATAFILES)
1307 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1308 if exist ..\t\perl.exe del /f ..\t\perl.exe
1309 rename ..\t\miniperl.exe perl.exe
1310 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1313 $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t opbasic/*.t op/*.t pragma/*.t
1315 test-prep : all utils ../pod/perltoc.pod
1316 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1317 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1318 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1319 set PERL_STATIC_EXT=$(STATIC_EXT)
1323 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1326 test_porting : test-prep
1328 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1331 test-reonly : reonly utils
1332 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1333 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1334 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1336 $(PERLEXE) -I..\lib harness $(OPT) -re \bre\\/ $(EXTRA)
1344 test-notty : test-prep
1345 set PERL_SKIP_TTY_TEST=1
1347 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1351 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1352 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1353 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1355 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1359 -@$(DEL) miniperlmain$(o)
1360 -@$(DEL) $(MINIPERL)
1361 -@$(DEL) perlglob$(o)
1362 -@$(DEL) perlmain$(o)
1363 -@$(DEL) perlmainst$(o)
1366 -@$(DEL) ..\git_version.h
1369 -@$(DEL) $(WPERLEXE)
1370 -@$(DEL) $(PERLEXESTATIC)
1371 -@$(DEL) $(PERLSTATICLIB)
1373 -@$(DEL) $(CORE_OBJ)
1374 -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1375 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1376 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1377 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1378 -@$(DEL) $(UNIDATAFILES)
1379 -@$(DEL) $(WIN32_OBJ)
1382 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1383 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1384 -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat
1387 -@$(DEL) Extensions_static
1389 clean : Extensions_clean _clean
1391 realclean : Extensions_realclean _clean
1393 # Handy way to run perlbug -ok without having to install and run the
1394 # installed perlbug. We don't re-run the tests here - we trust the user.
1395 # Please *don't* use this unless all tests pass.
1396 # If you want to report test failures, use "nmake nok" instead.
1398 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1401 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1404 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1407 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok