2 # Makefile to build perl on Windows using DMAKE.
4 # Microsoft Visual C++ 6.0 or later
5 # MinGW with gcc-3.4.5 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 # (perl523.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.
39 # Comment this out if you DON'T want your perl installation to be versioned.
40 # This means that the new installation will overwrite any files from the
41 # old installation at the same INST_TOP location. Leaving it enabled is
42 # the safest route, as perl adds the extra version directory to all the
43 # locations it installs files to. If you disable it, an alternative
44 # versioned installation can be obtained by setting INST_TOP above to a
45 # path that includes an arbitrary version string.
50 # Comment this out if you DON'T want your perl installation to have
51 # architecture specific components. This means that architecture-
52 # specific files will be installed along with the architecture-neutral
53 # files. Leaving it enabled is safer and more flexible, in case you
54 # want to build multiple flavors of perl and install them together in
55 # the same location. Commenting it out gives you a simpler
56 # installation that is easier to understand for beginners.
58 #INST_ARCH *= \$(ARCHNAME)
61 # Uncomment this if you want perl to run
62 # $Config{sitelibexp}\sitecustomize.pl
63 # before anything else. This script can then be set up, for example,
64 # to add additional entries to @INC.
66 #USE_SITECUST *= define
69 # uncomment to enable multiple interpreters. This is needed for fork()
70 # emulation and for thread support, and is auto-enabled by USE_IMP_SYS
71 # and USE_ITHREADS below.
76 # Interpreter cloning/threads; now reasonably complete.
77 # This should be enabled to get the fork() emulation. This needs (and
78 # will auto-enable) USE_MULTI above.
80 USE_ITHREADS *= define
83 # uncomment to enable the implicit "host" layer for all system calls
84 # made by perl. This is also needed to get fork(). This needs (and
85 # will auto-enable) USE_MULTI above.
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.
94 USE_LARGE_FILES *= define
97 # Uncomment this if you're building a 32-bit perl and want 64-bit integers.
98 # (If you're building a 64-bit perl then you will have 64-bit integers whether
99 # or not this is uncommented.)
100 # Note: This option is not supported in 32-bit MSVC60 builds.
102 #USE_64_BIT_INT *= define
105 # Uncomment this if you want to support the use of long doubles in GCC builds.
106 # This option is not supported for MSVC builds.
108 #USE_LONG_DOUBLE *=define
111 # uncomment exactly one of the following
113 # Visual C++ 6.0 (aka Visual C++ 98)
115 # Visual C++ .NET 2002/2003 (aka Visual C++ 7.0/7.1) (full version)
117 # Visual C++ Toolkit 2003 (aka Visual C++ 7.1) (free command-line tools)
118 #CCTYPE *= MSVC70FREE
119 # Windows Server 2003 SP1 Platform SDK (April 2005)
121 # Visual C++ 2005 (aka Visual C++ 8.0) (full version)
123 # Visual C++ 2005 Express Edition (aka Visual C++ 8.0) (free version)
124 #CCTYPE *= MSVC80FREE
125 # Visual C++ 2008 (aka Visual C++ 9.0) (full version)
127 # Visual C++ 2008 Express Edition (aka Visual C++ 9.0) (free version)
128 #CCTYPE *= MSVC90FREE
129 # Visual C++ 2010 (aka Visual C++ 10.0) (full version)
131 # Visual C++ 2010 Express Edition (aka Visual C++ 10.0) (free version)
132 #CCTYPE = MSVC100FREE
133 # Visual C++ 2012 (aka Visual C++ 11.0) (full version)
135 # Visual C++ 2012 Express Edition (aka Visual C++ 11.0) (free version)
136 #CCTYPE = MSVC110FREE
137 # Visual C++ 2013 (aka Visual C++ 12.0) (full version)
139 # Visual C++ 2013 Express Edition (aka Visual C++ 12.0) (free version)
140 #CCTYPE = MSVC120FREE
141 # MinGW or mingw-w64 with gcc-3.4.5 or later
145 # If you are using GCC, 4.3 or later by default we add the -fwrapv option.
146 # See https://rt.perl.org/Ticket/Display.html?id=121505
151 # If you are using Intel C++ Compiler uncomment this
156 # Uncomment this if you want to build everything in C++ mode
158 #USE_CPLUSPLUS *= define
161 # uncomment next line if you want debug version of perl (big/slow)
162 # If not enabled, we automatically try to use maximum optimization
163 # with all compilers that are known to have a working optimizer.
165 # You can also set CFG = DebugSymbols for a slightly smaller/faster
166 # debug build without the special debugging code in perl which is
167 # enabled via -DDEBUGGING;
169 # or you can set CFG = DebugFull for an even fuller (bigger/slower)
170 # debug build using the debug version of the CRT, and enabling VC++
171 # debug features such as extra assertions and invalid parameter warnings
172 # in perl and CRT code via -D_DEBUG. (Note that the invalid parameter
173 # handler does get triggered from time to time in this configuration,
174 # which causes warnings to be printed on STDERR, which in turn causes a
175 # few tests to fail.) (This configuration is only available for VC++ builds.)
180 # uncomment to enable linking with setargv.obj under the Visual C
181 # compiler. Setting this options enables perl to expand wildcards in
182 # arguments, but it may be harder to use alternate methods like
183 # File::DosGlob that are more powerful. This option is supported only with
186 #USE_SETARGV *= define
189 # set this if you wish to use perl's malloc
190 # WARNING: Turning this on/off WILL break binary compatibility with extensions
191 # you may have compiled with/without it. Be prepared to recompile all
192 # extensions if you change the default. Currently, this cannot be enabled
193 # if you ask for USE_IMP_SYS above.
195 #PERL_MALLOC *= define
198 # set this to enable debugging mstats
199 # This must be enabled to use the Devel::Peek::mstat() function. This cannot
200 # be enabled without PERL_MALLOC as well.
202 #DEBUG_MSTATS *= define
205 # set this to additionally provide a statically linked perl-static.exe.
206 # Note that dynamic loading will not work with this perl, so you must
207 # include required modules statically using the STATIC_EXT or ALL_STATIC
208 # variables below. A static library perl523s.lib will also be created.
209 # Ordinary perl.exe is not affected by this option.
211 #BUILD_STATIC *= define
214 # in addition to BUILD_STATIC the option ALL_STATIC makes *every*
215 # extension get statically built
216 # This will result in a very large perl executable, but the main purpose
217 # is to have proper linking set so as to be able to create miscellaneous
218 # executables with different built-in extensions
220 #ALL_STATIC *= define
223 # set the install locations of the compiler include/libraries
224 # Running VCVARS32.BAT is *required* when using Visual C.
225 # Some versions of Visual C don't define MSVCDIR in the environment,
226 # so you may have to set CCHOME explicitly (spaces in the path name should
229 .IF "$(CCTYPE)" == "GCC"
236 # uncomment this if you are using x86_64-w64-mingw32 cross-compiler
237 # ie if your gcc executable is called 'x86_64-w64-mingw32-gcc'
238 # instead of the usual 'gcc'.
243 # Following sets $Config{incpath} and $Config{libpth}
246 .IF "$(GCCCROSS)" == "define"
247 CCINCDIR *= $(CCHOME)\x86_64-w64-mingw32\include
248 CCLIBDIR *= $(CCHOME)\x86_64-w64-mingw32\lib
249 CCDLLDIR *= $(CCLIBDIR)
251 CCINCDIR *= $(CCHOME)\include
252 CCLIBDIR *= $(CCHOME)\lib
253 CCDLLDIR *= $(CCHOME)\bin
257 # Additional compiler flags can be specified here.
259 BUILDOPT *= $(BUILDOPTEXTRA)
262 # This should normally be disabled. Enabling it will disable the File::Glob
263 # implementation of CORE::glob.
265 #BUILDOPT += -DPERL_EXTERNAL_GLOB
268 # Perl needs to read scripts in text mode so that the DATA filehandle
269 # works correctly with seek() and tell(), or around auto-flushes of
270 # all filehandles (e.g. by system(), backticks, fork(), etc).
272 # The current version on the ByteLoader module on CPAN however only
273 # works if scripts are read in binary mode. But before you disable text
274 # mode script reading (and break some DATA filehandle functionality)
275 # please check first if an updated ByteLoader isn't available on CPAN.
277 BUILDOPT += -DPERL_TEXTMODE_SCRIPTS
280 # specify semicolon-separated list of extra directories that modules will
281 # look for libraries (spaces in path names need not be quoted)
286 # set this to point to cmd.exe (only needed if you use some
287 # alternate shell that doesn't grok cmd.exe style commands)
289 #SHELL *= g:\winnt\system32\cmd.exe
292 # set this to your email address (perl will guess a value from
293 # from your loginname and your hostname, which may not be right)
298 ## Build configuration ends.
301 ##################### CHANGE THESE ONLY IF YOU MUST #####################
304 DEBUG_MSTATS *= undef
306 USE_SITECUST *= undef
308 USE_ITHREADS *= undef
310 USE_LARGE_FILES *= undef
311 USE_64_BIT_INT *= undef
312 USE_LONG_DOUBLE *= undef
314 .IF "$(USE_IMP_SYS)" == "define"
318 .IF "$(PERL_MALLOC)" == "undef"
322 .IF "$(DEBUG_MSTATS)" == "define"
323 BUILDOPT += -DPERL_DEBUGGING_MSTATS
326 .IF "$(USE_IMP_SYS) $(USE_MULTI)" == "define undef"
330 .IF "$(USE_ITHREADS) $(USE_MULTI)" == "define undef"
334 .IF "$(USE_SITECUST)" == "define"
335 BUILDOPT += -DUSE_SITECUSTOMIZE
338 .IF "$(USE_MULTI)" != "undef"
339 BUILDOPT += -DPERL_IMPLICIT_CONTEXT
342 .IF "$(USE_IMP_SYS)" != "undef"
343 BUILDOPT += -DPERL_IMPLICIT_SYS
346 PROCESSOR_ARCHITECTURE *= x86
349 # When we are running from a 32bit cmd.exe on AMD64 then
350 # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432
352 .IF "$(PROCESSOR_ARCHITEW6432)" != ""
353 PROCESSOR_ARCHITECTURE != $(PROCESSOR_ARCHITEW6432)
355 .ELIF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64"
362 .IF "$(WIN64)" == "define"
363 USE_64_BIT_INT = define
366 # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because
367 # both link against MSVCRT.dll (which is part of Windows itself) and
368 # not against a compiler specific versioned runtime.
369 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60"
373 # Disable the 64-bit-int option for (32-bit) MSVC60 builds since that compiler
374 # does not support it.
375 .IF "$(CCTYPE)" == "MSVC60"
376 USE_64_BIT_INT != undef
379 # Disable the long double option for MSVC builds since that compiler
380 # does not support it.
381 .IF "$(CCTYPE)" != "GCC"
382 USE_LONG_DOUBLE != undef
385 ARCHITECTURE = $(PROCESSOR_ARCHITECTURE)
386 .IF "$(ARCHITECTURE)" == "AMD64"
389 .IF "$(ARCHITECTURE)" == "IA64"
393 .IF "$(USE_MULTI)" == "define"
394 ARCHNAME = MSWin32-$(ARCHITECTURE)-multi
396 ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio
399 .IF "$(USE_ITHREADS)" == "define"
400 ARCHNAME !:= $(ARCHNAME)-thread
403 .IF "$(WIN64)" != "define"
404 .IF "$(USE_64_BIT_INT)" == "define"
405 ARCHNAME !:= $(ARCHNAME)-64int
409 .IF "$(USE_LONG_DOUBLE)" == "define"
410 ARCHNAME !:= $(ARCHNAME)-ld
413 ARCHDIR = ..\lib\$(ARCHNAME)
414 COREDIR = ..\lib\CORE
415 AUTODIR = ..\lib\auto
424 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
425 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
426 INST_LIB = $(INST_TOP)$(INST_VER)\lib
427 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
428 INST_COREDIR = $(INST_ARCHLIB)\CORE
429 INST_HTML = $(INST_TOP)$(INST_VER)\html
432 # Programs to compile, build .lib files and link
439 .IF "$(CCTYPE)" == "GCC"
441 .IF "$(GCCCROSS)" == "define"
442 ARCHPREFIX = x86_64-w64-mingw32-
445 CC = $(ARCHPREFIX)gcc
446 LINK32 = $(ARCHPREFIX)g++
447 LIB32 = $(ARCHPREFIX)ar rc
448 IMPLIB = $(ARCHPREFIX)dlltool
449 RSC = $(ARCHPREFIX)windres
451 .IF "$(USE_LONG_DOUBLE)" == "define"
452 BUILDOPT += -D__USE_MINGW_ANSI_STDIO
453 MINIBUILDOPT += -D__USE_MINGW_ANSI_STDIO
456 GCCWRAPV *= $(shell for /f "delims=. tokens=1,2,3" %i in ('$(CC) -dumpversion') do @if "%i"=="4" (if "%j" geq "3" echo define) else if "%i" geq "5" (echo define))
458 .IF "$(GCCWRAPV)" == "define"
460 MINIBUILDOPT += -fwrapv
471 INCLUDES = -I.\include -I. -I.. -I$(COREDIR)
473 .IF "$(WIN64)" == "define"
474 DEFINES += -DWIN64 -DCONSERVATIVE
476 LOCDEFS = -DPERLDLL -DPERL_CORE
479 # Current releases of MinGW 5.1.4 (as of 11-Aug-2009) will fail to link
480 # correctly if -lmsvcrt is specified explicitly.
486 -lmoldname -lkernel32 -luser32 -lgdi32 \
487 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 \
488 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr \
489 -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
491 .IF "$(CFG)" == "Debug"
492 OPTIMIZE = -g -O2 -DDEBUGGING
494 .ELIF "$(CFG)" == "DebugSymbols"
503 .IF "$(USE_CPLUSPLUS)" == "define"
504 EXTRACFLAGS += $(CXX_FLAG)
506 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
507 LINK_FLAGS = $(LINK_DBG) -L"$(INST_COREDIR)" -L"$(CCLIBDIR)"
512 BUILDOPT += -fno-strict-aliasing -mms-bitfields
513 MINIBUILDOPT += -fno-strict-aliasing
515 TESTPREPGCC = test-prep-gcc
519 # All but the free version of VC++ 7.1 can load DLLs on demand. Makes the test
520 # suite run in about 10% less time.
521 .IF "$(CCTYPE)" != "MSVC70FREE"
522 DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib
525 # Visual C++ 2005 and 2008 (VC++ 8.0 and 9.0) create manifest files for EXEs and
526 # DLLs. These either need copying everywhere with the binaries, or else need
527 # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For
528 # simplicity, embed them if they exist (and delete them afterwards so that they
529 # don't get installed too).
530 EMBED_EXE_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \
531 if exist $@.manifest del $@.manifest
532 EMBED_DLL_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \
533 if exist $@.manifest del $@.manifest
535 # Most relevant compiler-specific options fall into two groups:
536 # either pre-MSVC80 or MSVC80 onwards, so define a macro for this.
537 .IF "$(CCTYPE)" == "MSVC60" || \
538 "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE"
544 .IF "$(__ICC)" != "define"
551 LIB32 = $(LINK32) -lib
558 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
559 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
560 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT
561 LOCDEFS = -DPERLDLL -DPERL_CORE
566 .IF "$(CFG)" == "Debug"
567 OPTIMIZE = -Od -MD -Zi -DDEBUGGING
569 .ELIF "$(CFG)" == "DebugSymbols"
570 OPTIMIZE = -Od -MD -Zi
572 .ELIF "$(CFG)" == "DebugFull"
574 OPTIMIZE = -Od -MDd -Zi -D_DEBUG -DDEBUGGING
577 # -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64
578 OPTIMIZE = -O1 -MD -Zi -DNDEBUG
579 # we enable debug symbols in release builds also
580 LINK_DBG = -debug -opt:ref,icf
581 # you may want to enable this if you want COFF symbols in the executables
582 # in addition to the PDB symbols. The default Dr. Watson that ships with
583 # Windows can use the the former but not latter. The free WinDbg can be
584 # installed to get better stack traces from just the PDB symbols, so we
585 # avoid the bloat of COFF symbols by default.
586 #LINK_DBG = $(LINK_DBG) -debugtype:both
587 .IF "$(CCTYPE)" != "MSVC60"
588 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
595 .IF "$(WIN64)" == "define"
596 DEFINES += -DWIN64 -DCONSERVATIVE
597 OPTIMIZE += -fp:precise
600 # For now, silence warnings from VC++ 8.0 onwards about "unsafe" CRT functions
601 # and POSIX CRT function names being deprecated.
602 .IF "$(PREMSVC80)" == "undef"
603 DEFINES += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
606 # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to
607 # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T
608 # preprocessor option to revert back to the old functionality for
609 # backward compatibility. We define this symbol here for older 32-bit
610 # compilers only (which aren't using it at all) for the sole purpose
611 # of getting it into $Config{ccflags}. That way if someone builds
612 # Perl itself with e.g. VC6 but later installs an XS module using VC8
613 # the time_t types will still be compatible.
614 .IF "$(WIN64)" == "undef"
615 .IF "$(PREMSVC80)" == "define"
616 BUILDOPT += -D_USE_32BIT_TIME_T
621 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
622 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
623 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
624 version.lib odbc32.lib odbccp32.lib comctl32.lib
626 # Avoid __intel_new_proc_init link error for libircmt.
627 # libmmd is /MD equivelent, other variants exist.
628 # libmmd is Intel C's math addon funcs to MS CRT, contains long doubles, C99,
629 # and optimized C89 funcs
630 .IF "$(__ICC)" == "define"
631 LIBBASEFILES += libircmt.lib libmmd.lib
634 # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which
635 # doesn't include the buffer overrun verification code used by the /GS switch.
636 # Since the code links against libraries that are compiled with /GS, this
637 # "security cookie verification" code must be included via bufferoverflow.lib.
638 .IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1"
639 LIBBASEFILES += bufferoverflowU.lib
642 LIBFILES = $(LIBBASEFILES) $(LIBC)
644 EXTRACFLAGS = -nologo -GF -W3
645 .IF "$(__ICC)" == "define"
646 EXTRACFLAGS += -Qstd=c99
648 .IF "$(USE_CPLUSPLUS)" == "define"
649 EXTRACFLAGS += $(CXX_FLAG)
651 CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \
652 $(PCHFLAGS) $(OPTIMIZE)
653 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
654 -libpath:"$(INST_COREDIR)" \
655 -machine:$(PROCESSOR_ARCHITECTURE)
656 LIB_FLAGS = $(LIB_FLAGS) -nologo
665 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
667 .IF "$(PREMSVC80)" == "undef"
668 LINK_FLAGS += "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
670 RSC_FLAGS = -DINCLUDE_MANIFEST
674 # For XP support in >= VS 2013 (VC++ 12.0), subsystem is always in Config.pm
675 # LINK_FLAGS else subsystem is only needed for EXE building, not XS DLL building
676 # Console vs GUI makes no difference for DLLs, so use default for cleaner
678 .IF "$(CCTYPE)" == "MSVC120" || "$(CCTYPE)" == "MSVC120FREE" \
679 || "$(CCTYPE)" == "MSVC140" || "$(CCTYPE)" == "MSVC140FREE"
680 .IF "$(WIN64)" == "define"
681 LINK_FLAGS += -subsystem:console,"5.02"
683 LINK_FLAGS += -subsystem:console,"5.01"
687 .ELIF "$(CCTYPE)" != "GCC"
688 PRIV_LINK_FLAGS = -subsystem:console
691 BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS)
693 #################### do not edit below this line #######################
694 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
696 # Some old dmakes (including Sarathy's one at
697 # http://search.cpan.org/CPAN/authors/id/G/GS/GSAR/dmake-4.1pl1-win32.zip)
698 # don't support logical OR (||) or logical AND (&&) in conditional
699 # expressions and hence don't process this makefile correctly. Determine
700 # whether this is the case so that we can give the user an error message.
717 .SUFFIXES : .c .i $(o) .dll $(a) .exe .rc .res
720 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
723 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) -E $< >$@
729 .IF "$(CCTYPE)" == "GCC"
730 $(LINK32) -o $@ $(BLINK_FLAGS) $< $(LIBFILES)
731 $(IMPLIB) --input-def $(*B).def --output-lib $(*B).a $@
733 $(LINK32) -dll -implib:$(*B).lib -def:$(*B).def \
734 -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
739 .IF "$(CCTYPE)" == "GCC"
740 $(RSC) --use-temp-file --include-dir=. --include-dir=.. -O COFF -D INCLUDE_MANIFEST -i $< -o $@
742 $(RSC) -i.. -DINCLUDE_MANIFEST $<
747 MINIPERL = ..\miniperl.exe
749 PERLEXE = ..\perl.exe
750 WPERLEXE = ..\wperl.exe
751 PERLEXESTATIC = ..\perl-static.exe
752 STATICDIR = .\static.tmp
753 GLOBEXE = ..\perlglob.exe
754 CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
755 GENUUDMAP = ..\generate_uudmap.exe
756 .IF "$(BUILD_STATIC)" == "define" || "$(ALL_STATIC)" == "define"
762 # Unicode data files generated by mktables
763 UNIDATAFILES = ..\lib\unicore\Decomposition.pl ..\lib\unicore\TestProp.pl \
764 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
765 ..\lib\unicore\UCD.pl ..\lib\unicore\Name.pm \
766 ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst
768 # Directories of Unicode data files generated by mktables
769 UNIDATADIR1 = ..\lib\unicore\To
770 UNIDATADIR2 = ..\lib\unicore\lib
772 PERLEXE_MANIFEST= .\perlexe.manifest
773 PERLEXE_ICO = .\perlexe.ico
774 PERLEXE_RES = .\perlexe.res
777 # Nominate a target which causes extensions to be re-built
778 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
779 # on and really only the interface - i.e. the .def file used to export symbols
781 PERLDEP = perldll.def
784 PL2BAT = bin\pl2bat.pl
808 ..\utils\zipdetails \
818 .IF "$(CCTYPE)" == "GCC"
820 CFGSH_TMPL = config.gc
821 CFGH_TMPL = config_H.gc
822 PERLIMPLIB = ..\libperl523$(a)
823 PERLSTATICLIB = ..\libperl523s$(a)
828 CFGSH_TMPL = config.vc
829 CFGH_TMPL = config_H.vc
834 # makedef.pl must be updated if this changes, and this should normally
835 # only change when there is an incompatible revision of the public API.
836 PERLIMPLIB *= ..\perl523$(a)
837 PERLSTATICLIB *= ..\perl523s$(a)
838 PERLDLL = ..\perl523.dll
840 XCOPY = xcopy /f /r /i /d /y
841 RCOPY = xcopy /f /r /i /e /d /y
885 EXTRACORE_SRC += perllib.c
887 .IF "$(PERL_MALLOC)" == "define"
888 EXTRACORE_SRC += ..\malloc.c
891 EXTRACORE_SRC += ..\perlio.c
937 .\include\sys\errno2.h \
938 .\include\sys\socket.h \
941 CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h
943 UUDMAP_H = ..\uudmap.h
944 BITCOUNT_H = ..\bitcount.h
945 MG_DATA_H = ..\mg_data.h
946 GENERATED_HEADERS = $(UUDMAP_H) $(BITCOUNT_H) $(MG_DATA_H)
948 MICROCORE_OBJ = $(MICROCORE_SRC:db:+$(o))
949 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o))
950 WIN32_OBJ = $(WIN32_SRC:db:+$(o))
951 MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)}
952 MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)}
953 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
954 DLL_OBJ = $(DYNALOADER)
955 GENUUDMAP_OBJ = $(GENUUDMAP:db:+$(o))
957 PERLDLL_OBJ = $(CORE_OBJ)
958 PERLEXE_OBJ = perlmain$(o)
959 PERLEXEST_OBJ = perlmainst$(o)
961 PERLDLL_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
963 .IF "$(USE_SETARGV)" != ""
964 SETARGV_OBJ = setargv$(o)
967 .IF "$(ALL_STATIC)" == "define"
968 # some exclusions, unfortunately, until fixed:
969 # - MakeMaker isn't capable enough for SDBM_File (small bug)
970 STATIC_EXT = * !SDBM_File
972 # specify static extensions here, for example:
973 # (be sure to include Win32CORE to load Win32 on demand)
974 #STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib
975 STATIC_EXT = Win32CORE
978 DYNALOADER = ..\DynaLoader$(o)
980 # vars must be separated by "\t+~\t+", since we're using the tempfile
981 # version of config_sh.pl (we were overflowing someone's buffer by
982 # trying to fit them all on the command line)
985 INST_TOP=$(INST_TOP) ~ \
986 INST_VER=$(INST_VER) ~ \
987 INST_ARCH=$(INST_ARCH) ~ \
988 archname=$(ARCHNAME) ~ \
991 ccflags=$(EXTRACFLAGS) $(OPTIMIZE) $(DEFINES) $(BUILDOPT) ~ \
992 usecplusplus=$(USE_CPLUSPLUS) ~ \
993 cf_email=$(EMAIL) ~ \
994 d_mymalloc=$(PERL_MALLOC) ~ \
995 libs=$(LIBFILES:f) ~ \
996 incpath=$(CCINCDIR) ~ \
997 libperl=$(PERLIMPLIB:f) ~ \
998 libpth=$(CCLIBDIR);$(EXTRALIBDIRS) ~ \
1005 static_ext=$(STATIC_EXT) ~ \
1006 usethreads=$(USE_ITHREADS) ~ \
1007 useithreads=$(USE_ITHREADS) ~ \
1008 usemultiplicity=$(USE_MULTI) ~ \
1009 use64bitint=$(USE_64_BIT_INT) ~ \
1010 uselongdouble=$(USE_LONG_DOUBLE) ~ \
1011 uselargefiles=$(USE_LARGE_FILES) ~ \
1012 usesitecustomize=$(USE_SITECUST) ~ \
1013 LINK_FLAGS=$(LINK_FLAGS) ~ \
1014 optimize=$(OPTIMIZE) ~ \
1015 ARCHPREFIX=$(ARCHPREFIX) ~ \
1022 all : CHECKDMAKE .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \
1023 $(CONFIGPM) $(UNIDATAFILES) MakePPPort \
1024 $(PERLEXE) Extensions Extensions_nonxs $(PERLSTATIC)
1026 regnodes : ..\regnodes.h
1028 ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
1030 ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
1032 reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \
1033 $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \
1036 static: $(PERLEXESTATIC)
1038 #----------------------------------------------------------------
1041 .IF "$(NEWDMAKE)" == "define"
1044 @echo Your dmake doesn't support ^|^| or ^&^& in conditional expressions.
1045 @echo Please get the latest dmake from http://search.cpan.org/dist/dmake/
1049 $(GLOBEXE) : perlglob$(o)
1050 .IF "$(CCTYPE)" == "GCC"
1051 $(LINK32) $(BLINK_FLAGS) -mconsole -o $@ perlglob$(o) $(LIBFILES)
1053 $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ perlglob$(o) setargv$(o)
1057 perlglob$(o) : perlglob.c
1059 config.w32 : $(CFGSH_TMPL)
1060 copy $(CFGSH_TMPL) config.w32
1063 # Copy the template config.h and set configurables at the end of it
1064 # as per the options chosen and compiler used.
1065 # Note: This config.h is only used to build miniperl.exe anyway, but
1066 # it's as well to have its options correct to be sure that it builds
1067 # and so that it's "-V" options are correct for use by makedef.pl. The
1068 # real config.h used to build perl.exe is generated from the top-level
1069 # config_h.SH by config_h.PL (run by miniperl.exe).
1071 .\config.h : $(CFGH_TMPL) $(CORE_NOCFG_H)
1073 copy $(CFGH_TMPL) config.h
1075 @echo #ifndef _config_h_footer_>>$@
1076 @echo #define _config_h_footer_>>$@
1077 @echo #undef Off_t>>$@
1078 @echo #undef LSEEKSIZE>>$@
1079 @echo #undef Off_t_size>>$@
1080 @echo #undef PTRSIZE>>$@
1081 @echo #undef SSize_t>>$@
1082 @echo #undef HAS_ATOLL>>$@
1083 @echo #undef HAS_STRTOLL>>$@
1084 @echo #undef HAS_STRTOULL>>$@
1085 @echo #undef Size_t_size>>$@
1086 @echo #undef IVTYPE>>$@
1087 @echo #undef UVTYPE>>$@
1088 @echo #undef IVSIZE>>$@
1089 @echo #undef UVSIZE>>$@
1090 @echo #undef NV_PRESERVES_UV>>$@
1091 @echo #undef NV_PRESERVES_UV_BITS>>$@
1092 @echo #undef IVdf>>$@
1093 @echo #undef UVuf>>$@
1094 @echo #undef UVof>>$@
1095 @echo #undef UVxf>>$@
1096 @echo #undef UVXf>>$@
1097 @echo #undef USE_64_BIT_INT>>$@
1098 @echo #undef Gconvert>>$@
1099 @echo #undef HAS_FREXPL>>$@
1100 @echo #undef HAS_ISNANL>>$@
1101 @echo #undef HAS_MODFL>>$@
1102 @echo #undef HAS_MODFL_PROTO>>$@
1103 @echo #undef HAS_SQRTL>>$@
1104 @echo #undef HAS_STRTOLD>>$@
1105 @echo #undef PERL_PRIfldbl>>$@
1106 @echo #undef PERL_PRIgldbl>>$@
1107 @echo #undef PERL_PRIeldbl>>$@
1108 @echo #undef PERL_SCNfldbl>>$@
1109 @echo #undef NVTYPE>>$@
1110 @echo #undef NVSIZE>>$@
1111 @echo #undef LONG_DOUBLESIZE>>$@
1112 @echo #undef NV_OVERFLOWS_INTEGERS_AT>>$@
1113 @echo #undef NVef>>$@
1114 @echo #undef NVff>>$@
1115 @echo #undef NVgf>>$@
1116 @echo #undef USE_LONG_DOUBLE>>$@
1117 @echo #undef USE_CPLUSPLUS>>$@
1118 .IF "$(USE_LARGE_FILES)"=="define"
1119 @echo #define Off_t $(INT64)>>$@
1120 @echo #define LSEEKSIZE ^8>>$@
1121 @echo #define Off_t_size ^8>>$@
1123 @echo #define Off_t long>>$@
1124 @echo #define LSEEKSIZE ^4>>$@
1125 @echo #define Off_t_size ^4>>$@
1127 .IF "$(WIN64)"=="define"
1128 @echo #define PTRSIZE ^8>>$@
1129 @echo #define SSize_t $(INT64)>>$@
1130 @echo #define HAS_ATOLL>>$@
1131 @echo #define HAS_STRTOLL>>$@
1132 @echo #define HAS_STRTOULL>>$@
1133 @echo #define Size_t_size ^8>>$@
1135 @echo #define PTRSIZE ^4>>$@
1136 @echo #define SSize_t int>>$@
1137 @echo #undef HAS_ATOLL>>$@
1138 @echo #undef HAS_STRTOLL>>$@
1139 @echo #undef HAS_STRTOULL>>$@
1140 @echo #define Size_t_size ^4>>$@
1142 .IF "$(USE_64_BIT_INT)"=="define"
1143 @echo #define IVTYPE $(INT64)>>$@
1144 @echo #define UVTYPE unsigned $(INT64)>>$@
1145 @echo #define IVSIZE ^8>>$@
1146 @echo #define UVSIZE ^8>>$@
1147 .IF "$(USE_LONG_DOUBLE)"=="define"
1148 @echo #define NV_PRESERVES_UV>>$@
1149 @echo #define NV_PRESERVES_UV_BITS 64>>$@
1151 @echo #undef NV_PRESERVES_UV>>$@
1152 @echo #define NV_PRESERVES_UV_BITS 53>>$@
1154 @echo #define IVdf "I64d">>$@
1155 @echo #define UVuf "I64u">>$@
1156 @echo #define UVof "I64o">>$@
1157 @echo #define UVxf "I64x">>$@
1158 @echo #define UVXf "I64X">>$@
1159 @echo #define USE_64_BIT_INT>>$@
1161 @echo #define IVTYPE long>>$@
1162 @echo #define UVTYPE unsigned long>>$@
1163 @echo #define IVSIZE ^4>>$@
1164 @echo #define UVSIZE ^4>>$@
1165 @echo #define NV_PRESERVES_UV>>$@
1166 @echo #define NV_PRESERVES_UV_BITS 32>>$@
1167 @echo #define IVdf "ld">>$@
1168 @echo #define UVuf "lu">>$@
1169 @echo #define UVof "lo">>$@
1170 @echo #define UVxf "lx">>$@
1171 @echo #define UVXf "lX">>$@
1172 @echo #undef USE_64_BIT_INT>>$@
1174 .IF "$(USE_LONG_DOUBLE)"=="define"
1175 @echo #define Gconvert(x,n,t,b) sprintf((b),"%.*""Lg",(n),(x))>>$@
1176 @echo #define HAS_FREXPL>>$@
1177 @echo #define HAS_ISNANL>>$@
1178 @echo #define HAS_MODFL>>$@
1179 @echo #define HAS_MODFL_PROTO>>$@
1180 @echo #define HAS_SQRTL>>$@
1181 @echo #define HAS_STRTOLD>>$@
1182 @echo #define PERL_PRIfldbl "Lf">>$@
1183 @echo #define PERL_PRIgldbl "Lg">>$@
1184 @echo #define PERL_PRIeldbl "Le">>$@
1185 @echo #define PERL_SCNfldbl "Lf">>$@
1186 @echo #define NVTYPE long double>>$@
1187 .IF "$(WIN64)"=="define"
1188 @echo #define NVSIZE ^16>>$@
1189 @echo #define LONG_DOUBLESIZE ^16>>$@
1191 @echo #define NVSIZE ^12>>$@
1192 @echo #define LONG_DOUBLESIZE ^12>>$@
1194 @echo #define NV_OVERFLOWS_INTEGERS_AT 256.0*256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0*2.0>>$@
1195 @echo #define NVef "Le">>$@
1196 @echo #define NVff "Lf">>$@
1197 @echo #define NVgf "Lg">>$@
1198 @echo #define USE_LONG_DOUBLE>>$@
1200 @echo #define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x))>>$@
1201 @echo #undef HAS_FREXPL>>$@
1202 @echo #undef HAS_ISNANL>>$@
1203 @echo #undef HAS_MODFL>>$@
1204 @echo #undef HAS_MODFL_PROTO>>$@
1205 @echo #undef HAS_SQRTL>>$@
1206 @echo #undef HAS_STRTOLD>>$@
1207 @echo #undef PERL_PRIfldbl>>$@
1208 @echo #undef PERL_PRIgldbl>>$@
1209 @echo #undef PERL_PRIeldbl>>$@
1210 @echo #undef PERL_SCNfldbl>>$@
1211 @echo #define NVTYPE double>>$@
1212 @echo #define NVSIZE ^8>>$@
1213 @echo #define LONG_DOUBLESIZE ^8>>$@
1214 @echo #define NV_OVERFLOWS_INTEGERS_AT 256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0>>$@
1215 @echo #define NVef "e">>$@
1216 @echo #define NVff "f">>$@
1217 @echo #define NVgf "g">>$@
1218 @echo #undef USE_LONG_DOUBLE>>$@
1220 .IF "$(USE_CPLUSPLUS)"=="define"
1221 @echo #define USE_CPLUSPLUS>>$@
1223 @echo #undef USE_CPLUSPLUS>>$@
1227 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
1228 cd .. && miniperl -Ilib make_patchnum.pl
1230 # make sure that we recompile perl.c if the git version changes
1231 ..\perl$(o) : ..\git_version.h
1233 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL FindExt.pm
1234 $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file \
1235 $(mktmp $(CFG_VARS)) config.w32 > ..\config.sh
1237 # This target is for when changes to the main config.sh happen.
1238 # Edit config.gc, then make perl using GCC in a minimal configuration (i.e.
1239 # with MULTI, ITHREADS, IMP_SYS and LARGE_FILES off), then make
1240 # this target to regenerate config_H.gc.
1242 $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file $(mktmp $(CFG_VARS)) \
1243 $(CFGSH_TMPL) > ..\config.sh
1244 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1245 -del /f $(CFGH_TMPL)
1246 -$(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)"
1247 rename config.h $(CFGH_TMPL)
1249 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL
1250 $(MINIPERL) -I..\lib ..\configpm --chdir=..
1251 $(XCOPY) ..\*.h $(COREDIR)\*.*
1252 $(XCOPY) *.h $(COREDIR)\*.*
1253 $(RCOPY) include $(COREDIR)\*.*
1254 $(MINIPERL) -I..\lib config_h.PL "ARCHPREFIX=$(ARCHPREFIX)" \
1255 || $(MAKE) $(MAKEMACROS) $(CONFIGPM) $(MAKEFILE)
1257 # See the comment in Makefile.SH explaining this seemingly cranky ordering
1258 $(MINIPERL) : ..\lib\buildcustomize.pl
1260 ..\lib\buildcustomize.pl : $(MINIDIR) $(MINI_OBJ) $(CRTIPMLIBS) ..\write_buildcustomize.pl
1261 .IF "$(CCTYPE)" == "GCC"
1262 $(LINK32) -v -mconsole -o $(MINIPERL) $(BLINK_FLAGS) \
1263 $(mktmp $(LKPRE) $(MINI_OBJ) $(LIBFILES) $(LKPOST))
1265 $(LINK32) -out:$(MINIPERL) $(BLINK_FLAGS) \
1266 @$(mktmp $(DELAYLOAD) $(LIBFILES) $(MINI_OBJ))
1267 $(EMBED_EXE_MANI:s/$@/$(MINIPERL)/)
1269 $(MINIPERL) -I..\lib -f ..\write_buildcustomize.pl ..
1272 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
1274 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
1275 $(CC) -c $(CFLAGS) $(MINIBUILDOPT) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*B).c
1277 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
1278 $(CC) -c $(CFLAGS) $(MINIBUILDOPT) -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ $(*B).c
1280 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
1281 # rules wrapped in .IFs break Win9X build (we end up with unbalanced []s unless
1282 # unless the .IF is true), so instead we use a .ELSE with the default.
1283 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
1285 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
1286 .IF "$(USE_IMP_SYS)" == "define"
1287 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
1289 $(CC) -c -I. $(CFLAGS_O) $(OBJOUT_FLAG)$@ perllib.c
1292 # 1. we don't want to rebuild miniperl.exe when config.h changes
1293 # 2. we don't want to rebuild miniperl.exe with non-default config.h
1294 # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it
1295 $(MINI_OBJ) : $(CORE_NOCFG_H)
1297 $(WIN32_OBJ) : $(CORE_H)
1299 $(CORE_OBJ) : $(CORE_H)
1301 $(DLL_OBJ) : $(CORE_H)
1303 perldll.def : $(MINIPERL) $(CONFIGPM) ..\embed.fnc ..\makedef.pl create_perllibst_h.pl
1304 $(MINIPERL) -I..\lib create_perllibst_h.pl
1305 $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) \
1306 $(BUILDOPT) CCTYPE=$(CCTYPE) TARG_DIR=..\ > perldll.def
1308 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
1309 .IF "$(CCTYPE)" == "GCC"
1310 $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(BLINK_FLAGS) \
1311 $(mktmp $(LKPRE) $(PERLDLL_OBJ) \
1312 $(shell @type Extensions_static) \
1313 $(LIBFILES) $(LKPOST))
1314 $(IMPLIB) --output-lib $(PERLIMPLIB) \
1315 --dllname $(PERLDLL:b).dll \
1317 --base-file perl.base \
1318 --output-exp perl.exp
1319 $(LINK32) -mdll -o $@ $(BLINK_FLAGS) \
1320 $(mktmp $(LKPRE) $(PERLDLL_OBJ) \
1321 $(shell @type Extensions_static) \
1322 $(LIBFILES) perl.exp $(LKPOST))
1324 $(LINK32) -dll -def:perldll.def -out:$@ $(BLINK_FLAGS) \
1325 @Extensions_static \
1326 @$(mktmp -base:0x28000000 $(DELAYLOAD) $(LIBFILES) \
1327 $(PERLDLL_RES) $(PERLDLL_OBJ))
1330 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1332 $(PERLSTATICLIB): $(PERLDLL_OBJ) Extensions_static
1333 .IF "$(CCTYPE)" == "GCC"
1334 $(LIB32) $(LIB_FLAGS) $@ $(PERLDLL_OBJ)
1335 if exist $(STATICDIR) rmdir /s /q $(STATICDIR)
1336 for %i in ($(shell @type Extensions_static)) do \
1337 @mkdir $(STATICDIR) && cd $(STATICDIR) && \
1338 $(ARCHPREFIX)ar x ..\%i && \
1339 $(ARCHPREFIX)ar q ..\$@ *$(o) && \
1340 cd .. && rmdir /s /q $(STATICDIR)
1342 $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static \
1343 @$(mktmp $(PERLDLL_OBJ))
1345 $(XCOPY) $(PERLSTATICLIB) $(COREDIR)
1347 $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO)
1349 $(MINIDIR)\globals$(o) : $(GENERATED_HEADERS)
1351 $(UUDMAP_H) $(MG_DATA_H) : $(BITCOUNT_H)
1353 $(BITCOUNT_H) : $(GENUUDMAP)
1354 $(GENUUDMAP) $(GENERATED_HEADERS)
1356 $(GENUUDMAP_OBJ) : ..\mg_raw.h
1358 $(GENUUDMAP) : $(GENUUDMAP_OBJ)
1359 .IF "$(CCTYPE)" == "GCC"
1360 $(LINK32) -v -o $@ $(BLINK_FLAGS) \
1361 $(mktmp $(LKPRE) $(GENUUDMAP_OBJ) $(LIBFILES) $(LKPOST))
1363 $(LINK32) -out:$@ $(BLINK_FLAGS) @$(mktmp $(LIBFILES) $(GENUUDMAP_OBJ))
1367 perlmain.c : runperl.c
1368 copy runperl.c perlmain.c
1370 perlmain$(o) : perlmain.c
1371 $(CC) $(CFLAGS_O:s,-DPERLDLL,-UPERLDLL,) $(OBJOUT_FLAG)$@ -c perlmain.c
1373 perlmainst.c : runperl.c
1374 copy runperl.c perlmainst.c
1376 perlmainst$(o) : perlmainst.c
1377 $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c
1379 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1380 .IF "$(CCTYPE)" == "GCC"
1381 $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
1382 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES)
1384 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1385 $(PERLEXE_OBJ) $(PERLEXE_RES) $(PERLIMPLIB) $(LIBFILES) $(SETARGV_OBJ)
1388 copy $(PERLEXE) $(WPERLEXE)
1389 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1391 $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES)
1392 .IF "$(CCTYPE)" == "GCC"
1393 $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \
1394 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES)
1396 $(LINK32) -out:$@ $(BLINK_FLAGS) \
1397 $(PERLEXEST_OBJ) $(PERLEXE_RES) $(PERLSTATICLIB) $(LIBFILES) $(SETARGV_OBJ)
1401 MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs
1402 $(MINIPERL) -I..\lib ..\mkppport
1404 #-------------------------------------------------------------------------------
1405 # There's no direct way to mark a dependency on
1406 # DynaLoader.pm, so this will have to do
1407 Extensions : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1408 $(XCOPY) ..\*.h $(COREDIR)\*.*
1409 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic
1411 Extensions_reonly : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER)
1412 $(XCOPY) ..\*.h $(COREDIR)\*.*
1413 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re
1415 Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1416 $(XCOPY) ..\*.h $(COREDIR)\*.*
1417 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
1418 $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
1420 Extensions_nonxs : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
1421 $(XCOPY) ..\*.h $(COREDIR)\*.*
1422 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
1424 $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs
1425 $(XCOPY) ..\*.h $(COREDIR)\*.*
1426 $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader
1429 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean
1431 Extensions_realclean :
1432 -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean
1434 #-------------------------------------------------------------------------------
1437 doc: $(PERLEXE) ..\pod\perltoc.pod
1438 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \
1439 --podpath=pod:lib:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
1442 ..\utils\Makefile: $(CONFIGPM) ..\utils\Makefile.PL
1443 $(MINIPERL) -I..\lib ..\utils\Makefile.PL ..
1445 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1446 # so please check that script before making structural changes here
1447 utils: $(PERLEXE) ..\utils\Makefile
1448 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
1449 copy ..\README.aix ..\pod\perlaix.pod
1450 copy ..\README.amiga ..\pod\perlamiga.pod
1451 copy ..\README.android ..\pod\perlandroid.pod
1452 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1453 copy ..\README.ce ..\pod\perlce.pod
1454 copy ..\README.cn ..\pod\perlcn.pod
1455 copy ..\README.cygwin ..\pod\perlcygwin.pod
1456 copy ..\README.dos ..\pod\perldos.pod
1457 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1458 copy ..\README.haiku ..\pod\perlhaiku.pod
1459 copy ..\README.hpux ..\pod\perlhpux.pod
1460 copy ..\README.hurd ..\pod\perlhurd.pod
1461 copy ..\README.irix ..\pod\perlirix.pod
1462 copy ..\README.jp ..\pod\perljp.pod
1463 copy ..\README.ko ..\pod\perlko.pod
1464 copy ..\README.linux ..\pod\perllinux.pod
1465 copy ..\README.macos ..\pod\perlmacos.pod
1466 copy ..\README.macosx ..\pod\perlmacosx.pod
1467 copy ..\README.netware ..\pod\perlnetware.pod
1468 copy ..\README.openbsd ..\pod\perlopenbsd.pod
1469 copy ..\README.os2 ..\pod\perlos2.pod
1470 copy ..\README.os390 ..\pod\perlos390.pod
1471 copy ..\README.os400 ..\pod\perlos400.pod
1472 copy ..\README.plan9 ..\pod\perlplan9.pod
1473 copy ..\README.qnx ..\pod\perlqnx.pod
1474 copy ..\README.riscos ..\pod\perlriscos.pod
1475 copy ..\README.solaris ..\pod\perlsolaris.pod
1476 copy ..\README.symbian ..\pod\perlsymbian.pod
1477 copy ..\README.synology ..\pod\perlsynology.pod
1478 copy ..\README.tru64 ..\pod\perltru64.pod
1479 copy ..\README.tw ..\pod\perltw.pod
1480 copy ..\README.vos ..\pod\perlvos.pod
1481 copy ..\README.win32 ..\pod\perlwin32.pod
1482 copy ..\pod\perldelta.pod ..\pod\perl5232delta.pod
1483 $(PERLEXE) $(PL2BAT) $(UTILS)
1484 $(MINIPERL) -I..\lib ..\autodoc.pl ..
1485 $(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
1487 ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs
1488 $(PERLEXE) -f ..\pod\buildtoc -q
1490 # Note that the pod cleanup in this next section is parsed (and regenerated
1491 # by pod/buildtoc so please check that script before making changes here
1493 distclean: realclean
1494 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1495 $(PERLIMPLIB) ..\miniperl$(a) $(PERLEXESTATIC) $(PERLSTATICLIB)
1496 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1497 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1498 -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
1499 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1500 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1501 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1502 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1503 -del /f $(LIBDIR)\File\Glob.pm
1504 -del /f $(LIBDIR)\Storable.pm
1505 -del /f $(LIBDIR)\Sys\Hostname.pm
1506 -del /f $(LIBDIR)\Time\HiRes.pm
1507 -del /f $(LIBDIR)\Unicode\Normalize.pm
1508 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1509 -del /f $(LIBDIR)\Win32.pm
1510 -del /f $(LIBDIR)\Win32CORE.pm
1511 -del /f $(LIBDIR)\Win32API\File.pm
1512 -del /f $(LIBDIR)\Win32API\File\cFile.pc
1513 -del /f $(LIBDIR)\buildcustomize.pl
1514 -del /f $(DISTDIR)\XSLoader\XSLoader.pm
1516 -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App
1517 -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive
1518 -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute
1519 -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie
1520 -if exist $(LIBDIR)\Carp rmdir /s /q $(LIBDIR)\Carp
1521 -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress
1522 -if exist $(LIBDIR)\Config\Perl rmdir /s /q $(LIBDIR)\Config\Perl
1523 -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN
1524 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1525 -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel
1526 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
1527 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1528 -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding
1529 -if exist $(LIBDIR)\Exporter rmdir /s /q $(LIBDIR)\Exporter
1530 -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder
1531 -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command
1532 -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant
1533 -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist
1534 -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker
1535 -if exist $(LIBDIR)\ExtUtils\ParseXS rmdir /s /q $(LIBDIR)\ExtUtils\ParseXS
1536 -if exist $(LIBDIR)\ExtUtils\Typemaps rmdir /s /q $(LIBDIR)\ExtUtils\Typemaps
1537 -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec
1538 -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter
1539 -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash
1540 -if exist $(LIBDIR)\HTTP rmdir /s /q $(LIBDIR)\HTTP
1541 -if exist $(LIBDIR)\I18N rmdir /s /q $(LIBDIR)\I18N
1542 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1543 -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC
1544 -if exist $(LIBDIR)\JSON rmdir /s /q $(LIBDIR)\JSON
1545 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1546 -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale
1547 -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math
1548 -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize
1549 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1550 -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module
1551 -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP
1552 -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params
1553 -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse
1554 -if exist $(LIBDIR)\Perl rmdir /s /q $(LIBDIR)\Perl
1555 -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO
1556 -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc
1557 -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple
1558 -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text
1559 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1560 -if exist $(LIBDIR)\Search rmdir /s /q $(LIBDIR)\Search
1561 -if exist $(LIBDIR)\Sub rmdir /s /q $(LIBDIR)\Sub
1562 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1563 -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP
1564 -if exist $(LIBDIR)\Term rmdir /s /q $(LIBDIR)\Term
1565 -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test
1566 -if exist $(LIBDIR)\Text rmdir /s /q $(LIBDIR)\Text
1567 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1568 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1569 -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash
1570 -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate
1571 -if exist $(LIBDIR)\Unicode\Collate\Locale rmdir /s /q $(LIBDIR)\Unicode\Collate\Locale
1572 -if exist $(LIBDIR)\version rmdir /s /q $(LIBDIR)\version
1573 -if exist $(LIBDIR)\VMS rmdir /s /q $(LIBDIR)\VMS
1574 -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
1575 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1576 -cd $(PODDIR) && del /f *.html *.bat roffitall \
1577 perl5232delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
1578 perlapi.pod perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \
1579 perldos.pod perlfreebsd.pod perlhaiku.pod perlhpux.pod \
1580 perlhurd.pod perlintern.pod perlirix.pod perljp.pod perlko.pod \
1581 perllinux.pod perlmacos.pod perlmacosx.pod perlmodlib.pod \
1582 perlnetware.pod perlopenbsd.pod perlos2.pod perlos390.pod \
1583 perlos400.pod perlplan9.pod perlqnx.pod perlriscos.pod \
1584 perlsolaris.pod perlsymbian.pod perlsynology.pod perltoc.pod \
1585 perltru64.pod perltw.pod perluniprops.pod perlvos.pod \
1587 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1588 perldoc perlivp libnetcfg enc2xs encguess piconv cpan *.bat \
1589 xsubpp pod2html instmodsh json_pp prove ptar ptardiff ptargrep shasum corelist zipdetails
1590 -del /f ..\config.sh perlmain.c dlutils.c config.h.new \
1593 -del /f ..\lib\Config_git.pl
1596 -del /f $(PERLEXE_RES) perl.base
1597 -cd .. && del /s *$(a) *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h
1598 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1599 -cd $(DISTDIR) && del /s *.def Makefile Makefile.old
1600 -cd $(CPANDIR) && del /s *.def Makefile Makefile.old
1601 -del /s ..\utils\Makefile
1602 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1603 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1604 -if exist pod2htmd.tmp del pod2htmd.tmp
1605 -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR)
1606 -del /f ..\t\test_state
1608 install : all installbare installhtml
1610 installbare : utils ..\pod\perltoc.pod
1611 $(PERLEXE) ..\installperl
1612 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1613 if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.*
1614 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1615 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1616 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1619 $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.*
1621 inst_lib : $(CONFIGPM)
1622 $(RCOPY) ..\lib $(INST_LIB)\*.*
1624 $(UNIDATAFILES) ..\pod\perluniprops.pod .UPDATEALL : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs
1625 cd ..\lib\unicore && \
1626 ..\$(MINIPERL) -I.. mktables -P ..\..\pod -maketest -makelist -p
1628 minitest : .\config.h $(MINIPERL) ..\git_version.h $(GLOBEXE) $(CONFIGPM) $(UNIDATAFILES) $(TESTPREPGCC)
1629 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1630 if exist ..\t\perl.exe del /f ..\t\perl.exe
1631 rename ..\t\miniperl.exe perl.exe
1632 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1633 # Note this perl.exe is miniperl
1634 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
1636 test-prep : all utils ..\pod\perltoc.pod $(TESTPREPGCC)
1637 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1638 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1639 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1641 # If building with gcc versions 4.x.x or greater, then
1642 # the GCC helper DLL will also need copied to the test directory.
1643 # The name of the dll can change, depending upon which vendor has supplied
1644 # your compiler, and upon the values of "x".
1645 # libstdc++-6.dll is copied if it exists as it, too, may then be needed.
1646 # Without this copying, the op/taint.t test script will fail.
1648 .IF "$(CCTYPE)" == "GCC"
1651 if exist $(CCDLLDIR)\libgcc_s_seh-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_seh-1.dll ..\t\$(NULL)
1652 if exist $(CCDLLDIR)\libgcc_s_sjlj-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_sjlj-1.dll ..\t\$(NULL)
1653 if exist $(CCDLLDIR)\libgcc_s_dw2-1.dll $(XCOPY) $(CCDLLDIR)\libgcc_s_dw2-1.dll ..\t\$(NULL)
1654 if exist $(CCDLLDIR)\libstdc++-6.dll $(XCOPY) $(CCDLLDIR)\libstdc++-6.dll ..\t\$(NULL)
1655 if exist $(CCDLLDIR)\libwinpthread-1.dll $(XCOPY) $(CCDLLDIR)\libwinpthread-1.dll ..\t\$(NULL)
1660 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1661 cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1663 test_porting : test-prep
1664 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1665 cd ..\t && perl.exe harness $(TEST_SWITCHES) porting\*.t ..\lib\diagnostics.t
1667 test-reonly : reonly utils
1668 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1669 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1670 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1671 cd ..\t && perl.exe harness $(OPT) -re \bpat\\/ $(EXTRA)
1676 test-notty : test-prep
1677 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1678 set PERL_SKIP_TTY_TEST=1 && \
1679 cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1682 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1683 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1684 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1685 set PERL_STATIC_EXT=$(STATIC_EXT) && \
1686 cd ..\t && perl.exe harness $(TEST_SWITCHES) $(TEST_FILES)
1689 -@erase miniperlmain$(o)
1691 -@erase perlglob$(o)
1692 -@erase perlmain$(o)
1693 -@erase perlmainst$(o)
1696 -@erase /f ..\git_version.h
1700 -@erase $(PERLEXESTATIC)
1701 -@erase $(PERLSTATICLIB)
1704 -@erase $(GENUUDMAP) $(GENUUDMAP_OBJ) $(GENERATED_HEADERS)
1705 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1706 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1707 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1708 -@erase $(UNIDATAFILES)
1709 -@erase $(WIN32_OBJ)
1711 -@erase ..\*$(o) ..\*$(a) ..\*.exp *$(o) *$(a) *.exp *.res
1712 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1715 -@erase Extensions_static
1719 clean : Extensions_clean _clean
1721 realclean : Extensions_realclean _clean
1723 # Handy way to run perlbug -ok without having to install and run the
1724 # installed perlbug. We don't re-run the tests here - we trust the user.
1725 # Please *don't* use this unless all tests pass.
1726 # If you want to report test failures, use "dmake nok" instead.
1728 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)"
1731 $(PERLEXE) ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1734 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)"
1737 $(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok