2 # Makefile to build perl on Windows using DMAKE.
4 # Microsoft Visual C++ 6.0 or later
5 # MinGW with gcc-3.2 or later
6 # Windows SDK 64-bit compiler and tools
8 # This is set up to build a perl.exe that runs off a shared library
9 # (perl519.dll). Also makes individual DLLs for the XS extensions.
13 ## Make sure you read README.win32 *before* you mess with anything here!
17 # Import everything from the environment like NMAKE does.
22 ## Build configuration. Edit the values below to suit your needs.
26 # Set these to wherever you want "dmake install" to put your
30 INST_TOP *= $(INST_DRV)\perl
33 # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler
34 # on a 64-bit version of Windows.
38 # Comment this out if you DON'T want your perl installation to be versioned.
39 # This means that the new installation will overwrite any files from the
40 # old installation at the same INST_TOP location. Leaving it enabled is
41 # the safest route, as perl adds the extra version directory to all the
42 # locations it installs files to. If you disable it, an alternative
43 # versioned installation can be obtained by setting INST_TOP above to a
44 # path that includes an arbitrary version string.
49 # Comment this out if you DON'T want your perl installation to have
50 # architecture specific components. This means that architecture-
51 # specific files will be installed along with the architecture-neutral
52 # files. Leaving it enabled is safer and more flexible, in case you
53 # want to build multiple flavors of perl and install them together in
54 # the same location. Commenting it out gives you a simpler
55 # installation that is easier to understand for beginners.
57 #INST_ARCH *= \$(ARCHNAME)
60 # Uncomment this if you want perl to run
61 # $Config{sitelibexp}\sitecustomize.pl
62 # before anything else. This script can then be set up, for example,
63 # to add additional entries to @INC.
65 #USE_SITECUST *= define
68 # uncomment to enable multiple interpreters. This is need for fork()
69 # emulation and for thread support.
74 # Interpreter cloning/threads; now reasonably complete.
75 # This should be enabled to get the fork() emulation.
76 # This needs USE_MULTI above.
78 USE_ITHREADS *= define
81 # uncomment to enable the implicit "host" layer for all system calls
82 # made by perl. This needs USE_MULTI above.
83 # This is also needed to get fork().
88 # Comment out next assign to disable perl's I/O subsystem and use compiler's
89 # stdio for IO - depending on your compiler vendor and run time library you may
90 # then get a number of fails from make test i.e. bugs - complain to them not us ;-).
91 # You will also be unable to take full advantage of perl5.8's support for multiple
92 # encodings and may see lower IO performance. You have been warned.
96 # Comment this out if you don't want to enable large file support for
97 # some reason. Should normally only be changed to maintain compatibility
98 # with an older release of perl.
99 USE_LARGE_FILES *= define
102 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
103 # (If you're building a 64-bit perl then you will have 64-bit integers whether
104 # or not this is uncommented.)
105 # Note: This option is not supported in 32-bit MSVC60 builds.
106 #USE_64_BIT_INT *= define
109 # uncomment exactly one of the following
111 # Visual C++ 6.x (aka Visual C++ 98)
113 # Visual C++ .NET 2002/2003 (aka Visual C++ 7.x) (full version)
115 # Visual C++ Toolkit 2003 (aka Visual C++ 7.x) (free command-line tools)
116 #CCTYPE *= MSVC70FREE
117 # Windows Server 2003 SP1 Platform SDK (April 2005)
119 # Visual C++ 2005 (aka Visual C++ 8.x) (full version)
121 # Visual C++ 2005 Express Edition (aka Visual C++ 8.x) (free version)
122 #CCTYPE *= MSVC80FREE
123 # Visual C++ 2008 (aka Visual C++ 9.x) (full version)
125 # Visual C++ 2008 Express Edition (aka Visual C++ 9.x) (free version)
126 #CCTYPE *= MSVC90FREE
127 # Visual C++ 2010 (aka Visual C++ 10.x) (full version)
129 # Visual C++ 2010 Express Edition (aka Visual C++ 10.x) (free version)
130 #CCTYPE = MSVC100FREE
131 # Visual C++ 2012 (aka Visual C++ 11.x) (full version)
133 # Visual C++ 2012 Express Edition (aka Visual C++ 11.x) (free version)
134 #CCTYPE = MSVC110FREE
135 # Visual C++ 2013 (aka Visual C++ 12.x) (full version)
137 # Visual C++ 2013 Express Edition (aka Visual C++ 12.x) (free version)
138 #CCTYPE = MSVC120FREE
139 # MinGW or mingw-w64 with gcc-3.2 or later
143 # If you are using Intel C++ Compiler uncomment this
148 # uncomment next line if you want debug version of perl (big,slow)
149 # If not enabled, we automatically try to use maximum optimization
150 # with all compilers that are known to have a working optimizer.
155 # uncomment to enable linking with setargv.obj under the Visual C
156 # compiler. Setting this options enables perl to expand wildcards in
157 # arguments, but it may be harder to use alternate methods like
158 # File::DosGlob that are more powerful. This option is supported only with
161 #USE_SETARGV *= define
164 # set this if you wish to use perl's malloc
165 # WARNING: Turning this on/off WILL break binary compatibility with extensions
166 # you may have compiled with/without it. Be prepared to recompile all
167 # extensions if you change the default. Currently, this cannot be enabled
168 # if you ask for USE_IMP_SYS above.
170 #PERL_MALLOC *= define
173 # set this to enable debugging mstats
174 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
175 # be enabled without PERL_MALLOC as well.
177 #DEBUG_MSTATS *= define
180 # set this to additionally provide a statically linked perl-static.exe.
181 # Note that dynamic loading will not work with this perl, so you must
182 # include required modules statically using the STATIC_EXT or ALL_STATIC
183 # variables below. A static library perl519s.lib will also be created.
184 # Ordinary perl.exe is not affected by this option.
186 #BUILD_STATIC *= define
189 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
190 # extension get statically built
191 # This will result in a very large perl executable, but the main purpose
192 # is to have proper linking set so as to be able to create miscellaneous
193 # executables with different built-in extensions
195 #ALL_STATIC *= define
198 # set the install locations of the compiler include/libraries
199 # Running VCVARS32.BAT is *required* when using Visual C.
200 # Some versions of Visual C don't define MSVCDIR in the environment,
201 # so you may have to set CCHOME explicitly (spaces in the path name should
204 .IF "$(CCTYPE)" == "GCC"
211 # uncomment this if you are using x86_64-w64-mingw32 cross-compiler
212 # ie if your gcc executable is called 'x86_64-w64-mingw32-gcc'
213 # instead of the usual 'gcc'.
218 # Following sets $Config{incpath} and $Config{libpth}
221 .IF "$(GCCCROSS)" == "define"
222 CCINCDIR *= $(CCHOME)\x86_64-w64-mingw32\include
223 CCLIBDIR *= $(CCHOME)\x86_64-w64-mingw32\lib
224 CCDLLDIR *= $(CCLIBDIR)
226 CCINCDIR *= $(CCHOME)\include
227 CCLIBDIR *= $(CCHOME)\lib
228 CCDLLDIR *= $(CCHOME)\bin
232 # Additional compiler flags can be specified here.
234 BUILDOPT *= $(BUILDOPTEXTRA)
237 # This should normally be disabled. Enabling it will disable the File::Glob
238 # implementation of CORE::glob.
240 #BUILDOPT += -DPERL_EXTERNAL_GLOB
243 # Perl needs to read scripts in text mode so that the DATA filehandle
244 # works correctly with seek() and tell(), or around auto-flushes of
245 # all filehandles (e.g. by system(), backticks, fork(), etc).
247 # The current version on the ByteLoader module on CPAN however only
248 # works if scripts are read in binary mode. But before you disable text
249 # mode script reading (and break some DATA filehandle functionality)
250 # please check first if an updated ByteLoader isn't available on CPAN.
252 BUILDOPT += -DPERL_TEXTMODE_SCRIPTS
255 # specify semicolon-separated list of extra directories that modules will
256 # look for libraries (spaces in path names need not be quoted)
261 # set this to point to cmd.exe (only needed if you use some
262 # alternate shell that doesn't grok cmd.exe style commands)
264 #SHELL *= g:\winnt\system32\cmd.exe
267 # set this to your email address (perl will guess a value from
268 # from your loginname and your hostname, which may not be right)
273 ## Build configuration ends.
276 ##################### CHANGE THESE ONLY IF YOU MUST #####################
279 DEBUG_MSTATS *= undef
281 USE_SITECUST *= undef
283 USE_ITHREADS *= undef
286 USE_LARGE_FILES *= undef
287 USE_64_BIT_INT *= undef
289 .IF "$(USE_IMP_SYS)" == "define"
293 .IF "$(PERL_MALLOC)" == "undef"
297 .IF "$(DEBUG_MSTATS)" == "define"
298 BUILDOPT += -DPERL_DEBUGGING_MSTATS
301 .IF "$(USE_IMP_SYS) $(USE_MULTI)" == "define undef"
305 .IF "$(USE_ITHREADS) $(USE_MULTI)" == "define undef"
309 .IF "$(USE_SITECUST)" == "define"
310 BUILDOPT += -DUSE_SITECUSTOMIZE
313 .IF "$(USE_MULTI)" != "undef"
314 BUILDOPT += -DPERL_IMPLICIT_CONTEXT
317 .IF "$(USE_IMP_SYS)" != "undef"
318 BUILDOPT += -DPERL_IMPLICIT_SYS
321 PROCESSOR_ARCHITECTURE *= x86
324 # When we are running from a 32bit cmd.exe on AMD64 then
325 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
327 .IF "$(PROCESSOR_ARCHITEW6432)" != ""
328 PROCESSOR_ARCHITECTURE != $(PROCESSOR_ARCHITEW6432)
330 .ELIF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
337 .IF "$(WIN64)" == "define"
338 USE_64_BIT_INT = define
341 # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because
342 # both link against MSVCRT.dll (which is part of Windows itself) and
343 # not against a compiler specific versioned runtime.
344 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60"
348 # Disable the 64-bit-int option for (32-bit) MSVC60 builds since that compiler
349 # does not support it.
350 .IF "$(CCTYPE)" == "MSVC60"
351 USE_64_BIT_INT != undef
354 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
355 .IF "$(ARCHITECTURE)" == "AMD64"
358 .IF "$(ARCHITECTURE)" == "IA64"
362 .IF "$(USE_MULTI)" == "define"
363 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
365 .IF "$(USE_PERLIO)" == "define"
366 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
368 ARCHNAME = MSWin32-$(ARCHITECTURE)
372 .IF "$(USE_PERLIO)" == "define"
373 BUILDOPT += -DUSE_PERLIO
376 .IF "$(USE_ITHREADS)" == "define"
377 ARCHNAME !:= $(ARCHNAME)-thread
380 .IF "$(WIN64)" != "define"
381 .IF "$(USE_64_BIT_INT)" == "define"
382 ARCHNAME !:= $(ARCHNAME)-64int
386 ARCHDIR = ..\lib\$(ARCHNAME)
387 COREDIR = ..\lib\CORE
388 AUTODIR = ..\lib\auto
397 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
398 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
399 INST_LIB = $(INST_TOP)$(INST_VER)\lib
400 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
401 INST_COREDIR = $(INST_ARCHLIB)\CORE
402 INST_HTML = $(INST_TOP)$(INST_VER)\html
405 # Programs to compile, build .lib files and link
410 .IF "$(CCTYPE)" == "GCC"
412 .IF "$(GCCCROSS)" == "define"
413 ARCHPREFIX = x86_64-w64-mingw32-
416 CC = $(ARCHPREFIX)gcc
417 LINK32 = $(ARCHPREFIX)g++
418 LIB32 = $(ARCHPREFIX)ar rc
419 IMPLIB = $(ARCHPREFIX)dlltool
420 RSC = $(ARCHPREFIX)windres
430 INCLUDES = -I.\include -I. -I.. -I$(COREDIR)
432 .IF "$(WIN64)" == "define"
433 DEFINES += -DWIN64 -DCONSERVATIVE
435 LOCDEFS = -DPERLDLL -DPERL_CORE
439 # Current releases of MinGW 5.1.4 (as of 11-Aug-2009) will fail to link
440 # correctly if -lmsvcrt is specified explicitly.
446 -lmoldname -lkernel32 -luser32 -lgdi32 \
447 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 \
448 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr \
449 -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
451 .IF "$(CFG)" == "Debug"
452 OPTIMIZE = -g -O2 -DDEBUGGING
460 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
461 LINK_FLAGS = $(LINK_DBG) -L"$(INST_COREDIR)" -L"$(CCLIBDIR)"
466 BUILDOPT += -fno-strict-aliasing -mms-bitfields
470 # All but the free version of VC++ 7.x can load DLLs on demand. Makes the test
471 # suite run in about 10% less time.
472 .IF "$(CCTYPE)" != "MSVC70FREE"
473 DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib
476 # Visual C++ 2005 and 2008 (VC++ 8.x and 9.x) create manifest files for EXEs and
477 # DLLs. These either need copying everywhere with the binaries, or else need
478 # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For
479 # simplicity, embed them if they exist (and delete them afterwards so that they
480 # don't get installed too).
481 EMBED_EXE_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \
482 if exist $@.manifest del $@.manifest
483 EMBED_DLL_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \
484 if exist $@.manifest del $@.manifest
486 # Most relevant compiler-specific options fall into two groups:
487 # either pre-MSVC80 or MSVC80 onwards, so define a macro for this.
488 .IF "$(CCTYPE)" == "MSVC60" || \
489 "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
495 .IF "$(__ICC)" != "define"
502 LIB32 = $(LINK32) -lib
509 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
510 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
511 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT
512 LOCDEFS = -DPERLDLL -DPERL_CORE
518 .IF "$(CFG)" == "Debug"
519 OPTIMIZE = -Od -MD -Zi -DDEBUGGING
522 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
523 OPTIMIZE = -O1 -MD -Zi -DNDEBUG
524 # we enable debug symbols in release builds also
525 LINK_DBG = -debug -opt:ref,icf
526 # you may want to enable this if you want COFF symbols in the executables
527 # in addition to the PDB symbols. The default Dr. Watson that ships with
528 # Windows can use the the former but not latter. The free WinDbg can be
529 # installed to get better stack traces from just the PDB symbols, so we
530 # avoid the bloat of COFF symbols by default.
531 #LINK_DBG = $(LINK_DBG) -debugtype:both
532 .IF "$(CCTYPE)" != "MSVC60"
533 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
540 .IF "$(WIN64)" == "define"
541 DEFINES += -DWIN64 -DCONSERVATIVE
542 OPTIMIZE += -fp:precise
545 # For now, silence warnings from VC++ 8.x onwards about "unsafe" CRT functions
546 # and POSIX CRT function names being deprecated.
547 .IF "$(PREMSVC80)" == "undef"
548 DEFINES += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
551 # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
552 # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T
553 # preprocessor option to revert back to the old functionality for
554 # backward compatibility. We define this symbol here for older 32-bit
555 # compilers only (which aren't using it at all) for the sole purpose
556 # of getting it into $Config{ccflags}. That way if someone builds
557 # Perl itself with e.g. VC6 but later installs an XS module using VC8
558 # the time_t types will still be compatible.
559 .IF "$(WIN64)" == "undef"
560 .IF "$(PREMSVC80)" == "define"
561 BUILDOPT += -D_USE_32BIT_TIME_T
566 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
567 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
568 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
569 version.lib odbc32.lib odbccp32.lib comctl32.lib
571 # Avoid __intel_new_proc_init link error for libircmt.
572 # libmmd is /MD equivelent, other variants exist.
573 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
574 # and optimized C89 funcs
575 .IF "$(__ICC)" == "define"
576 LIBBASEFILES += libircmt.lib libmmd.lib
579 # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which
580 # doesn't include the buffer overrun verification code used by the /GS switch.
581 # Since the code links against libraries that are compiled with /GS, this
582 # "security cookie verification" code must be included via bufferoverflow.lib.
583 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1"
584 LIBBASEFILES += bufferoverflowU.lib
587 LIBFILES = $(LIBBASEFILES) $(LIBC)
589 EXTRACFLAGS = -nologo -GF -W3
590 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
591 $(PCHFLAGS) $(OPTIMIZE)
592 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
593 -libpath:"$(INST_COREDIR)" \
594 -machine:$(PROCESSOR_ARCHITECTURE)
595 LIB_FLAGS = $(LIB_FLAGS) -nologo
602 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
604 .IF "$(PREMSVC80)" == "undef"
605 LINK_FLAGS += "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
607 RSC_FLAGS = -DINCLUDE_MANIFEST
611 # used to allow local linking flags that are not propogated into Config.pm,
615 BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
617 #################### do not edit below this line #######################
618 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
620 # Some old dmakes (including Sarathy's one at
621 # http://search.cpan.org/CPAN/authors/id/G/GS/GSAR/dmake-4.1pl1-win32.zip)
622 # don't support logical OR (||) or logical AND (&&) in conditional
623 # expressions and hence don't process this makefile correctly. Determine
624 # whether this is the case so that we can give the user an error message.
641 .SUFFIXES : .c .i $(o) .dll $(a) .exe .rc .res
644 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
647 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) -E $< >$@
653 .IF "$(CCTYPE)" == "GCC"
654 $(LINK32) -o $@ $(BLINK_FLAGS) $< $(LIBFILES)
655 $(IMPLIB) --input-def $(*B).def --output-lib $(*B).a $@
657 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
658 -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
663 .IF "$(CCTYPE)" == "GCC"
664 $(RSC) --use-temp-file --include-dir=. --include-dir=.. -O COFF -D INCLUDE_MANIFEST -i $< -o $@
666 $(RSC) -i.. -DINCLUDE_MANIFEST $<
671 MINIPERL = ..\miniperl.exe
673 PERLEXE = ..\perl.exe
674 WPERLEXE = ..\wperl.exe
675 PERLEXESTATIC = ..\perl-static.exe
676 STATICDIR = .\static.tmp
677 GLOBEXE = ..\perlglob.exe
678 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
680 GENUUDMAP = ..\generate_uudmap.exe
681 .IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
687 # Unicode data files generated by mktables
688 UNIDATAFILES = ..\lib\unicore\Decomposition.pl ..\lib\unicore\TestProp.pl \
689 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
690 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
691 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst
693 # Directories of Unicode data files generated by mktables
694 UNIDATADIR1 = ..\lib\unicore\To
695 UNIDATADIR2 = ..\lib\unicore\lib
697 PERLEXE_MANIFEST= .\perlexe.manifest
698 PERLEXE_ICO = .\perlexe.ico
699 PERLEXE_RES = .\perlexe.res
702 # Nominate a target which causes extensions to be re-built
703 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
704 # on and really only the interface - i.e. the .def file used to export symbols
706 PERLDEP = perldll.def
709 PL2BAT = bin\pl2bat.pl
724 ..\utils\config_data \
733 ..\utils\zipdetails \
746 .IF "$(CCTYPE)" == "GCC"
748 CFGSH_TMPL = config.gc
749 CFGH_TMPL = config_H.gc
750 PERLIMPLIB = ..\libperl519$(a)
751 PERLSTATICLIB = ..\libperl519s$(a)
757 CFGSH_TMPL = config.vc
758 CFGH_TMPL = config_H.vc
764 # makedef.pl must be updated if this changes, and this should normally
765 # only change when there is an incompatible revision of the public API.
766 PERLIMPLIB *= ..\perl519$(a)
767 PERLSTATICLIB *= ..\perl519s$(a)
768 PERLDLL = ..\perl519.dll
770 XCOPY = xcopy /f /r /i /d /y
771 RCOPY = xcopy /f /r /i /e /d /y
813 EXTRACORE_SRC += perllib.c
815 .IF "$(PERL_MALLOC)" == "define"
816 EXTRACORE_SRC += ..\malloc.c
819 EXTRACORE_SRC += ..\perlio.c
827 # We need this for miniperl build unless we override canned
828 # config.h #define building mini\*
829 #.IF "$(USE_PERLIO)" == "define"
830 WIN32_SRC += .\win32io.c
878 .\include\sys\errno2.h \
879 .\include\sys\socket.h \
882 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
884 UUDMAP_H = ..\uudmap.h
885 BITCOUNT_H = ..\bitcount.h
886 MG_DATA_H = ..\mg_data.h
887 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
889 MICROCORE_OBJ = $(MICROCORE_SRC:db:+$(o))
890 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o))
891 WIN32_OBJ = $(WIN32_SRC:db:+$(o))
892 MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)}
893 MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)}
894 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
895 DLL_OBJ = $(DYNALOADER)
896 X2P_OBJ = $(X2P_SRC:db:+$(o))
897 GENUUDMAP_OBJ = $(GENUUDMAP:db:+$(o))
899 PERLDLL_OBJ = $(CORE_OBJ)
900 PERLEXE_OBJ = perlmain$(o)
901 PERLEXEST_OBJ = perlmainst$(o)
903 PERLDLL_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
905 .IF "$(USE_SETARGV)" != ""
906 SETARGV_OBJ = setargv$(o)
909 .IF "$(ALL_STATIC)" == "define"
910 # some exclusions, unfortunately, until fixed:
911 # - MakeMaker isn't capable enough for SDBM_File (small bug)
912 STATIC_EXT = * !SDBM_File
914 # specify static extensions here, for example:
915 # (be sure to include Win32CORE to load Win32 on demand)
916 #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib
917 STATIC_EXT = Win32CORE
920 DYNALOADER = ..\DynaLoader$(o)
922 # vars must be separated by "\t+~\t+", since we're using the tempfile
923 # version of config_sh.pl (we were overflowing someone's buffer by
924 # trying to fit them all on the command line)
927 INST_TOP=$(INST_TOP) ~ \
928 INST_VER=$(INST_VER) ~ \
929 INST_ARCH=$(INST_ARCH) ~ \
930 archname=$(ARCHNAME) ~ \
933 ccflags=$(EXTRACFLAGS) $(OPTIMIZE) $(DEFINES) $(BUILDOPT) ~ \
934 cf_email=$(EMAIL) ~ \
935 d_mymalloc=$(PERL_MALLOC) ~ \
936 libs=$(LIBFILES:f) ~ \
937 incpath=$(CCINCDIR) ~ \
938 libperl=$(PERLIMPLIB:f) ~ \
939 libpth=$(CCLIBDIR);$(EXTRALIBDIRS) ~ \
946 static_ext=$(STATIC_EXT) ~ \
947 usethreads=$(USE_ITHREADS) ~ \
948 useithreads=$(USE_ITHREADS) ~ \
949 usemultiplicity=$(USE_MULTI) ~ \
950 useperlio=$(USE_PERLIO) ~ \
951 use64bitint=$(USE_64_BIT_INT) ~ \
952 uselargefiles=$(USE_LARGE_FILES) ~ \
953 usesitecustomize=$(USE_SITECUST) ~ \
954 LINK_FLAGS=$(LINK_FLAGS) ~ \
955 optimize=$(OPTIMIZE) ~ \
956 ARCHPREFIX=$(ARCHPREFIX) ~ \
963 all : CHECKDMAKE .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \
964 $(CONFIGPM) $(UNIDATAFILES) MakePPPort \
965 $(PERLEXE) $(X2P) Extensions Extensions_nonxs $(PERLSTATIC)
967 regnodes : ..\regnodes.h
969 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
971 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
973 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \
974 $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \
975 $(X2P) Extensions_reonly
977 static: $(PERLEXESTATIC)
979 #----------------------------------------------------------------
982 .IF "$(NEWDMAKE)" == "define"
985 @echo Your dmake doesn't support ^|^| or ^&^& in conditional expressions.
986 @echo Please get the latest dmake from http://search.cpan.org/dist/dmake/
990 $(GLOBEXE) : perlglob$(o)
991 .IF "$(CCTYPE)" == "GCC"
992 $(LINK32) $(BLINK_FLAGS) -mconsole -o $@ perlglob$(o) $(LIBFILES)
994 $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
995 perlglob$(o) setargv$(o)
999 perlglob$(o) : perlglob.c
1001 config.w32 : $(CFGSH_TMPL)
1002 copy $(CFGSH_TMPL) config.w32
1005 # Copy the template config.h and set configurables at the end of it
1006 # as per the options chosen and compiler used.
1007 # Note: This config.h is only used to build miniperl.exe anyway, but
1008 # it's as well to have its options correct to be sure that it builds
1009 # and so that it's "-V" options are correct for use by makedef.pl. The
1010 # real config.h used to build perl.exe is generated from the top-level
1011 # config_h.SH by config_h.PL (run by miniperl.exe).
1013 .\config.h : $(CFGH_TMPL) $(CORE_NOCFG_H)
1015 copy $(CFGH_TMPL) config.h
1017 @echo #ifndef _config_h_footer_>>$@
1018 @echo #define _config_h_footer_>>$@
1019 @echo #undef PTRSIZE>>$@
1020 @echo #undef SSize_t>>$@
1021 @echo #undef HAS_ATOLL>>$@
1022 @echo #undef HAS_STRTOLL>>$@
1023 @echo #undef HAS_STRTOULL>>$@
1024 @echo #undef IVTYPE>>$@
1025 @echo #undef UVTYPE>>$@
1026 @echo #undef IVSIZE>>$@
1027 @echo #undef UVSIZE>>$@
1028 @echo #undef NV_PRESERVES_UV>>$@
1029 @echo #undef NV_PRESERVES_UV_BITS>>$@
1030 @echo #undef IVdf>>$@
1031 @echo #undef UVuf>>$@
1032 @echo #undef UVof>>$@
1033 @echo #undef UVxf>>$@
1034 @echo #undef UVXf>>$@
1035 @echo #undef USE_64_BIT_INT>>$@
1036 @echo #undef Size_t_size>>$@
1037 .IF "$(WIN64)"=="define"
1038 @echo #define PTRSIZE ^8>>$@
1039 @echo #define SSize_t $(INT64)>>$@
1040 @echo #define HAS_ATOLL>>$@
1041 @echo #define HAS_STRTOLL>>$@
1042 @echo #define HAS_STRTOULL>>$@
1043 @echo #define Size_t_size ^8>>$@
1045 @echo #define PTRSIZE ^4>>$@
1046 @echo #define SSize_t int>>$@
1047 @echo #undef HAS_ATOLL>>$@
1048 @echo #undef HAS_STRTOLL>>$@
1049 @echo #undef HAS_STRTOULL>>$@
1050 @echo #define Size_t_size ^4>>$@
1052 .IF "$(USE_64_BIT_INT)"=="define"
1053 @echo #define IVTYPE $(INT64)>>$@
1054 @echo #define UVTYPE unsigned $(INT64)>>$@
1055 @echo #define IVSIZE ^8>>$@
1056 @echo #define UVSIZE ^8>>$@
1057 @echo #undef NV_PRESERVES_UV>>$@
1058 @echo #define NV_PRESERVES_UV_BITS 53>>$@
1059 @echo #define IVdf "$(INT64f)d">>$@
1060 @echo #define UVuf "$(INT64f)u">>$@
1061 @echo #define UVof "$(INT64f)o">>$@
1062 @echo #define UVxf "$(INT64f)x">>$@
1063 @echo #define UVXf "$(INT64f)X">>$@
1064 @echo #define USE_64_BIT_INT>>$@
1066 @echo #define IVTYPE long>>$@
1067 @echo #define UVTYPE unsigned long>>$@
1068 @echo #define IVSIZE ^4>>$@
1069 @echo #define UVSIZE ^4>>$@
1070 @echo #define NV_PRESERVES_UV>>$@
1071 @echo #define NV_PRESERVES_UV_BITS 32>>$@
1072 @echo #define IVdf "ld">>$@
1073 @echo #define UVuf "lu">>$@
1074 @echo #define UVof "lo">>$@
1075 @echo #define UVxf "lx">>$@
1076 @echo #define UVXf "lX">>$@
1077 @echo #undef USE_64_BIT_INT>>$@
1081 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
1082 cd .. && miniperl -Ilib make_patchnum.pl
1084 # make sure that we recompile perl.c if the git version changes
1085 ..\perl$(o) : ..\git_version.h
1087 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL FindExt.pm
1088 $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file \
1089 $(mktmp $(CFG_VARS)) config.w32 > ..\config.sh
1091 # This target is for when changes to the main config.sh happen.
1092 # Edit config.gc, then make perl using GCC in a minimal configuration (i.e.
1093 # with MULTI, ITHREADS, IMP_SYS, LARGE_FILES and PERLIO off), then make
1094 # this target to regenerate config_H.gc.
1096 $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file $(mktmp $(CFG_VARS)) \
1097 $(CFGSH_TMPL) > ..\config.sh
1098 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1099 -del /f $(CFGH_TMPL)
1100 -$(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)"
1101 rename config.h $(CFGH_TMPL)
1103 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL
1104 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1105 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
1106 $(XCOPY) ..\*.h $(COREDIR)\*.*
1107 $(XCOPY) *.h $(COREDIR)\*.*
1108 $(RCOPY) include $(COREDIR)\*.*
1109 $(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)" \
1110 || $(MAKE) $(MAKEMACROS) $(CONFIGPM) $(MAKEFILE)
1112 # See the comment in Makefile.SH explaining this seemingly cranky ordering
1113 $(MINIPERL) : ..\lib\buildcustomize.pl
1115 ..\lib\buildcustomize.pl : $(MINIDIR) $(MINI_OBJ) $(CRTIPMLIBS) ..\write_buildcustomize.pl
1116 .IF "$(CCTYPE)" == "GCC"
1117 $(LINK32) -v -mconsole -o $(MINIPERL) $(BLINK_FLAGS) \
1118 $(mktmp $(LKPRE) $(MINI_OBJ) $(LIBFILES) $(LKPOST))
1120 $(LINK32) -subsystem:console -out:$(MINIPERL) $(BLINK_FLAGS) \
1121 @$(mktmp $(DELAYLOAD) $(LIBFILES) $(MINI_OBJ))
1122 $(EMBED_EXE_MANI:s/$@/$(MINIPERL)/)
1124 $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
1127 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
1129 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
1130 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*B).c
1132 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1133 $(CC) -c $(CFLAGS) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*B).c
1135 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1136 # rules wrapped in .IFs break Win9X build (we end up with unbalanced []s unless
1137 # unless the .IF is true), so instead we use a .ELSE with the default.
1138 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1140 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
1141 .IF "$(USE_IMP_SYS)" == "define"
1142 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
1144 $(CC) -c -I. $(CFLAGS_O) $(OBJOUT_FLAG)$@ perllib.c
1147 # 1. we don't want to rebuild miniperl.exe when config.h changes
1148 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1149 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1150 $(MINI_OBJ) : $(CORE_NOCFG_H)
1152 $(WIN32_OBJ) : $(CORE_H)
1154 $(CORE_OBJ) : $(CORE_H)
1156 $(DLL_OBJ) : $(CORE_H)
1158 $(X2P_OBJ) : $(CORE_H)
1160 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl
1161 $(MINIPERL) -I..\lib create_perllibst_h.pl
1162 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) \
1163 $(BUILDOPT) CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1165 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1166 .IF "$(CCTYPE)" == "GCC"
1167 $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(BLINK_FLAGS) \
1168 $(mktmp $(LKPRE) $(PERLDLL_OBJ) \
1169 $(shell @type Extensions_static) \
1170 $(LIBFILES) $(LKPOST))
1171 $(IMPLIB) --output-lib $(PERLIMPLIB) \
1172 --dllname $(PERLDLL:b).dll \
1174 --base-file perl.base \
1175 --output-exp perl.exp
1176 $(LINK32) -mdll -o $@ $(BLINK_FLAGS) \
1177 $(mktmp $(LKPRE) $(PERLDLL_OBJ) \
1178 $(shell @type Extensions_static) \
1179 $(LIBFILES) perl.exp $(LKPOST))
1181 $(LINK32) -dll -def:perldll.def -out:$@ $(BLINK_FLAGS) \
1182 @Extensions_static \
1183 @$(mktmp -base:0x28000000 $(DELAYLOAD) $(LIBFILES) \
1184 $(PERLDLL_RES) $(PERLDLL_OBJ))
1187 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1189 $(PERLSTATICLIB): $(PERLDLL_OBJ) Extensions_static
1190 .IF "$(CCTYPE)" == "GCC"
1191 $(LIB32) $(LIB_FLAGS) $@ $(PERLDLL_OBJ)
1192 if exist $(STATICDIR) rmdir /s /q $(STATICDIR)
1193 for %i in ($(shell @type Extensions_static)) do \
1194 @mkdir $(STATICDIR) && cd $(STATICDIR) && \
1195 $(ARCHPREFIX)ar x ..\%i && \
1196 $(ARCHPREFIX)ar q ..\$@ *$(o) && \
1197 cd .. && rmdir /s /q $(STATICDIR)
1199 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static \
1200 @$(mktmp $(PERLDLL_OBJ))
1202 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1204 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1206 ..\x2p\a2p$(o) : ..\x2p\a2p.c
1207 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
1209 ..\x2p\hash$(o) : ..\x2p\hash.c
1210 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
1212 ..\x2p\str$(o) : ..\x2p\str.c
1213 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
1215 ..\x2p\util$(o) : ..\x2p\util.c
1216 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
1218 ..\x2p\walk$(o) : ..\x2p\walk.c
1219 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
1221 $(X2P) : $(MINIPERL) $(X2P_OBJ) Extensions
1222 $(MINIPERL) -I..\lib ..\x2p\find2perl.PL
1223 $(MINIPERL) -I..\lib ..\x2p\s2p.PL
1224 .IF "$(CCTYPE)" == "GCC"
1225 $(LINK32) -v -o $@ $(BLINK_FLAGS) \
1226 $(mktmp $(LKPRE) $(X2P_OBJ) $(LIBFILES) $(LKPOST))
1228 $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \
1229 @$(mktmp $(LIBFILES) $(X2P_OBJ))
1233 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1235 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1237 $(BITCOUNT_H) : $(GENUUDMAP)
1238 $(GENUUDMAP) $(GENERATED_HEADERS)
1240 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1242 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1243 .IF "$(CCTYPE)" == "GCC"
1244 $(LINK32) -v -o $@ $(BLINK_FLAGS) \
1245 $(mktmp $(LKPRE) $(GENUUDMAP_OBJ) $(LIBFILES) $(LKPOST))
1247 $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \
1248 @$(mktmp $(LIBFILES) $(GENUUDMAP_OBJ))
1252 perlmain.c : runperl.c
1253 copy runperl.c perlmain.c
1255 perlmain$(o) : perlmain.c
1256 $(CC) $(CFLAGS_O:s,-DPERLDLL,-UPERLDLL,) $(OBJOUT_FLAG)$@ -c perlmain.c
1258 perlmainst.c : runperl.c
1259 copy runperl.c perlmainst.c
1261 perlmainst$(o) : perlmainst.c
1262 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1264 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1265 .IF "$(CCTYPE)" == "GCC"
1266 $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
1267 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES)
1269 $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \
1270 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1273 copy $(PERLEXE) $(WPERLEXE)
1274 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1276 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1277 .IF "$(CCTYPE)" == "GCC"
1278 $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
1279 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES)
1281 $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) \
1282 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1286 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1287 $(MINIPERL) -I..\lib ..\mkppport
1289 #-------------------------------------------------------------------------------
1290 # There's no direct way to mark a dependency on
1291 # DynaLoader.pm, so this will have to do
1292 Extensions : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1293 $(XCOPY) ..\*.h $(COREDIR)\*.*
1294 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1296 Extensions_reonly : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1297 $(XCOPY) ..\*.h $(COREDIR)\*.*
1298 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1300 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM)
1301 $(XCOPY) ..\*.h $(COREDIR)\*.*
1302 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1303 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1305 Extensions_nonxs : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1306 $(XCOPY) ..\*.h $(COREDIR)\*.*
1307 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1309 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1310 $(XCOPY) ..\*.h $(COREDIR)\*.*
1311 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1314 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1316 Extensions_realclean :
1317 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1319 #-------------------------------------------------------------------------------
1322 doc: $(PERLEXE) ..\pod\perltoc.pod
1323 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1324 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
1327 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1328 $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1330 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1331 # so please check that script before making structural changes here
1332 utils: $(PERLEXE) $(X2P) ..\utils\Makefile
1333 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
1334 copy ..\README.aix ..\pod\perlaix.pod
1335 copy ..\README.amiga ..\pod\perlamiga.pod
1336 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1337 copy ..\README.ce ..\pod\perlce.pod
1338 copy ..\README.cn ..\pod\perlcn.pod
1339 copy ..\README.cygwin ..\pod\perlcygwin.pod
1340 copy ..\README.dos ..\pod\perldos.pod
1341 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1342 copy ..\README.haiku ..\pod\perlhaiku.pod
1343 copy ..\README.hpux ..\pod\perlhpux.pod
1344 copy ..\README.hurd ..\pod\perlhurd.pod
1345 copy ..\README.irix ..\pod\perlirix.pod
1346 copy ..\README.jp ..\pod\perljp.pod
1347 copy ..\README.ko ..\pod\perlko.pod
1348 copy ..\README.linux ..\pod\perllinux.pod
1349 copy ..\README.macos ..\pod\perlmacos.pod
1350 copy ..\README.macosx ..\pod\perlmacosx.pod
1351 copy ..\README.netware ..\pod\perlnetware.pod
1352 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1353 copy ..\README.os2 ..\pod\perlos2.pod
1354 copy ..\README.os390 ..\pod\perlos390.pod
1355 copy ..\README.os400 ..\pod\perlos400.pod
1356 copy ..\README.plan9 ..\pod\perlplan9.pod
1357 copy ..\README.qnx ..\pod\perlqnx.pod
1358 copy ..\README.riscos ..\pod\perlriscos.pod
1359 copy ..\README.solaris ..\pod\perlsolaris.pod
1360 copy ..\README.symbian ..\pod\perlsymbian.pod
1361 copy ..\README.synology ..\pod\perlsynology.pod
1362 copy ..\README.tru64 ..\pod\perltru64.pod
1363 copy ..\README.tw ..\pod\perltw.pod
1364 copy ..\README.vos ..\pod\perlvos.pod
1365 copy ..\README.win32 ..\pod\perlwin32.pod
1366 copy ..\pod\perldelta.pod ..\pod\perl5198delta.pod
1367 $(PERLEXE) $(PL2BAT) $(UTILS)
1368 $(MINIPERL) -I..\lib ..\autodoc.pl ..
1369 $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1371 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1372 $(PERLEXE) -f ..\pod\buildtoc -q
1374 # Note that the pod cleanup in this next section is parsed (and regenerated
1375 # by pod/buildtoc so please check that script before making changes here
1377 distclean: realclean
1378 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1379 $(PERLIMPLIB) ..\miniperl$(a) $(PERLEXESTATIC) $(PERLSTATICLIB)
1380 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1381 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1382 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1383 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1384 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1385 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1386 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1387 -del /f $(LIBDIR)\File\Glob.pm
1388 -del /f $(LIBDIR)\Storable.pm
1389 -del /f $(LIBDIR)\Sys\Hostname.pm
1390 -del /f $(LIBDIR)\Time\HiRes.pm
1391 -del /f $(LIBDIR)\Unicode\Normalize.pm
1392 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1393 -del /f $(LIBDIR)\Win32.pm
1394 -del /f $(LIBDIR)\Win32CORE.pm
1395 -del /f $(LIBDIR)\Win32API\File.pm
1396 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1397 -del /f $(LIBDIR)\buildcustomize.pl
1398 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1400 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1401 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1402 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1403 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1404 -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1405 -if exist $(LIBDIR)\CGI rmdir /s /q $(LIBDIR)\CGI
1406 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1407 -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1408 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1409 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1410 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1411 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1412 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1413 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1414 -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1415 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1416 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1417 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1418 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1419 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1420 -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1421 -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1422 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1423 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1424 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1425 -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1426 -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
1427 -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc
1428 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1429 -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1430 -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON
1431 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1432 -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1433 -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1434 -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1435 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1436 -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1437 -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1438 -if exist $(LIBDIR)\Package rmdir /s /q $(LIBDIR)\Package
1439 -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1440 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1441 -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1442 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1443 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1444 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1445 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1446 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1447 -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1448 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1449 -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1450 -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term
1451 -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1452 -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text
1453 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1454 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1455 -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1456 -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1457 -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale
1458 -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version
1459 -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS
1460 -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1461 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1462 -cd $(PODDIR) && del /f *.html *.bat roffitall \
1463 perl5198delta.pod perlaix.pod perlamiga.pod perlapi.pod \
1464 perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod perldos.pod \
1465 perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \
1466 perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \
1467 perlmacos.pod perlmacosx.pod perlmodlib.pod perlnetware.pod \
1468 perlopenbsd.pod perlos2.pod perlos390.pod perlos400.pod \
1469 perlplan9.pod perlqnx.pod perlriscos.pod perlsolaris.pod \
1470 perlsymbian.pod perlsynology.pod perltoc.pod perltru64.pod \
1471 perltw.pod perluniprops.pod perlvos.pod perlwin32.pod
1472 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1473 perldoc perlivp libnetcfg enc2xs piconv cpan *.bat \
1474 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist config_data zipdetails
1475 -cd ..\x2p && del /f find2perl s2p psed *.bat
1476 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1479 -del /f ..\lib\Config_git.pl
1482 -del /f $(PERLEXE_RES) perl.base
1483 -cd .. && del /s *$(a) *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1484 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1485 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1486 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1487 -del /s ..\utils\Makefile
1488 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1489 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1490 -if exist pod2htmd.tmp del pod2htmd.tmp
1491 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1492 -del /f ..\t\test_state
1494 install : all installbare installhtml
1496 installbare : utils ..\pod\perltoc.pod
1497 $(PERLEXE) ..\installperl
1498 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1499 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1500 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1501 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1502 if exist ..\x2p\a2p.pdb $(XCOPY) ..\x2p\a2p.pdb $(INST_BIN)\*.*
1503 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1506 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1508 inst_lib : $(CONFIGPM)
1509 $(RCOPY) ..\lib $(INST_LIB)\*.*
1511 $(UNIDATAFILES) ..\pod\perluniprops.pod .UPDATEALL : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1512 cd ..\lib\unicore && \
1513 ..\$(MINIPERL) -I.. -I..\..\dist\Cwd\lib -I..\..\dist\Cwd mktables -P ..\..\pod -maketest -makelist -p
1515 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES) utils
1516 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1517 if exist ..\t\perl.exe del /f ..\t\perl.exe
1518 rename ..\t\miniperl.exe perl.exe
1519 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1522 $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t opbasic/*.t op/*.t pragma/*.t
1524 test-prep : all utils ..\pod\perltoc.pod
1525 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1526 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1527 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1528 .IF "$(CCTYPE)" == "GCC"
1529 # If building with gcc versions 4.x.x or greater, then
1530 # the GCC helper DLL will also need copied to the test directory.
1531 # The name of the dll can change, depending upon which vendor has supplied
1532 # your compiler, and upon the values of "x".
1533 # libstdc++-6.dll is copied if it exists as it, too, may then be needed.
1534 # Without this copying, the op/taint.t test script will fail.
1535 if exist $(CCDLLDIR)\libgcc_s_sjlj-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_sjlj-1.dll ..\t\$(NULL)
1536 if exist $(CCDLLDIR)\libgcc_s_dw2-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_dw2-1.dll ..\t\$(NULL)
1537 if exist $(CCDLLDIR)\libstdc++-6.dll $(XCOPY) $(CCDLLDIR)\libstdc++-6.dll ..\t\$(NULL)
1541 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1542 cd ..\t && $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1544 test_porting : test-prep
1545 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1546 cd ..\t && $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1548 test-reonly : reonly utils
1549 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1550 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1551 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1553 $(PERLEXE) -I..\lib harness $(OPT) -re \bpat\\/ $(EXTRA) && \
1557 cd .. && regen.pl && cd win32
1559 test-notty : test-prep
1560 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1561 set PERL_SKIP_TTY_TEST=1 && \
1562 cd ..\t && $(PERLEXE) -I.\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1565 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1566 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1567 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1568 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1569 cd ..\t && $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1572 -@erase miniperlmain$(o)
1574 -@erase perlglob$(o)
1575 -@erase perlmain$(o)
1576 -@erase perlmainst$(o)
1579 -@erase /f ..\git_version.h
1583 -@erase $(PERLEXESTATIC)
1584 -@erase $(PERLSTATICLIB)
1587 -@erase $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1588 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1589 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1590 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1591 -@erase $(UNIDATAFILES)
1592 -@erase $(WIN32_OBJ)
1595 -@erase ..\*$(o) ..\*$(a) ..\*.exp *$(o) *$(a) *.exp *.res
1596 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1597 -@erase ..\x2p\*.exe ..\x2p\*.bat
1600 -@erase Extensions_static
1604 clean : Extensions_clean _clean
1606 realclean : Extensions_realclean _clean
1608 # Handy way to run perlbug -ok without having to install and run the
1609 # installed perlbug. We don't re-run the tests here - we trust the user.
1610 # Please *don't* use this unless all tests pass.
1611 # If you want to report test failures, use "dmake nok" instead.
1613 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1616 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1619 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1622 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok