2 # Makefile to build perl on Windows NT using Microsoft NMAKE.
4 # This is set up to build a perl.exe that runs off a shared library
5 # (perl.dll). Also makes individual DLLs for the XS extensions.
9 ## Make sure you read README.win32 *before* you mess with anything here!
13 ## Build configuration. Edit the values below to suit your needs.
17 # Set these to wherever you want "nmake install" to put your
21 INST_TOP = $(INST_DRV)\perl
24 # Comment this out if you DON'T want your perl installation to be versioned.
25 # This means that the new installation will overwrite any files from the
26 # old installation at the same INST_TOP location. Leaving it enabled is
27 # the safest route, as perl adds the extra version directory to all the
28 # locations it installs files to. If you disable it, an alternative
29 # versioned installation can be obtained by setting INST_TOP above to a
30 # path that includes an arbitrary version string.
35 # Comment this out if you DON'T want your perl installation to have
36 # architecture specific components. This means that architecture-
37 # specific files will be installed along with the architecture-neutral
38 # files. Leaving it enabled is safer and more flexible, in case you
39 # want to build multiple flavors of perl and install them together in
40 # the same location. Commenting it out gives you a simpler
41 # installation that is easier to understand for beginners.
43 INST_ARCH = \$(ARCHNAME)
46 # uncomment to enable multiple interpreters. This is need for fork()
52 # XXX WARNING! This option is still very experimental. May be broken.
54 # Beginnings of interpreter cloning/threads; still very incomplete.
55 # This should be enabled to get the fork() emulation. This needs
58 #USE_ITHREADS = define
61 # uncomment to enable the implicit "host" layer for all system calls
62 # made by perl. This needs USE_MULTI above. This is also needed to
68 # WARNING! This option is deprecated and will eventually go away (enable
69 # USE_ITHREADS instead).
71 # uncomment to enable threads-capabilities. This is incompatible with
72 # USE_ITHREADS, and is only here for people who may have come to rely
73 # on the experimental Thread support that was in 5.005.
75 #USE_5005THREADS= define
78 # WARNING! This option is deprecated and will eventually go away (enable
81 # uncomment next line if you want to use the PERL_OBJECT build option.
82 # DO NOT ENABLE unless you have legacy code that relies on the C++
83 # CPerlObj class that was available in 5.005. This cannot be enabled
84 # if you ask for USE_5005THREADS above.
89 # uncomment one of the following lines if you are using either
90 # Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
96 # uncomment next line if you want debug version of perl (big,slow)
101 # uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
102 # It has patches that fix known bugs in older versions of MSVCRT.DLL.
103 # This currently requires VC 5.0 with Service Pack 3 or later.
104 # Get it from CPAN at http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/
105 # and follow the directions in the package to install.
107 # Not recommended if you have VC 6.x and you're not running Windows 9x.
109 #USE_PERLCRT = define
112 # uncomment to enable linking with setargv.obj under the Visual C
113 # compiler. Setting this options enables perl to expand wildcards in
114 # arguments, but it may be harder to use alternate methods like
115 # File::DosGlob that are more powerful. This option is supported only with
118 #USE_SETARGV = define
121 # if you have the source for des_fcrypt(), uncomment this and make sure the
122 # file exists (see README.win32). File should be located in the same
123 # directory as this file.
125 #CRYPT_SRC = fcrypt.c
128 # if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
129 # library, uncomment this, and make sure the library exists (see README.win32)
130 # Specify the full pathname of the library.
132 #CRYPT_LIB = fcrypt.lib
135 # set this if you wish to use perl's malloc
136 # WARNING: Turning this on/off WILL break binary compatibility with extensions
137 # you may have compiled with/without it. Be prepared to recompile all
138 # extensions if you change the default. Currently, this cannot be enabled
139 # if you ask for USE_IMP_SYS above.
141 #PERL_MALLOC = define
144 # set the install locations of the compiler include/libraries
145 # Running VCVARS32.BAT is *required* when using Visual C.
146 # Some versions of Visual C don't define MSVCDIR in the environment,
147 # so you may have to set CCHOME explicitly (spaces in the path name should
152 CCINCDIR = $(CCHOME)\include
153 CCLIBDIR = $(CCHOME)\lib
156 # Additional compiler flags can be specified here.
160 # This should normally be disabled. Adding -DPERL_POLLUTE enables support
161 # for old symbols by default, at the expense of extreme pollution. You most
162 # probably just want to build modules that won't compile with
163 # perl Makefile.PL POLLUTE=1
164 # instead of enabling this. Please report such modules to the respective
167 #BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
170 # This should normally be disabled. Enabling it will disable the File::Glob
171 # implementation of CORE::glob.
173 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
176 # This should normally be disabled. Enabling it causes perl to read scripts
177 # in text mode (which is the 5.005 behavior) and will break ByteLoader.
178 #BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
181 # This should normally be disabled. Enabling it runs a cloned toplevel
182 # interpreter (*EXPERIMENTAL*, fails tests)
183 #BUILDOPT = $(BUILDOPT) -DTOP_CLONE
186 # specify semicolon-separated list of extra directories that modules will
187 # look for libraries (spaces in path names need not be quoted)
192 # set this to your email address (perl will guess a value from
193 # from your loginname and your hostname, which may not be right)
198 ## Build configuration ends.
201 ##################### CHANGE THESE ONLY IF YOU MUST #####################
203 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
207 CRYPT_FLAG = -DHAVE_DES_FCRYPT
210 !IF "$(USE_OBJECT)" == "define"
212 USE_5005THREADS = undef
217 !IF "$(PERL_MALLOC)" == ""
221 !IF "$(USE_5005THREADS)" == ""
222 USE_5005THREADS = undef
225 !IF "$(USE_5005THREADS)" == "define"
229 !IF "$(USE_IMP_SYS)" == "define"
233 !IF "$(USE_MULTI)" == ""
237 !IF "$(USE_OBJECT)" == ""
241 !IF "$(USE_ITHREADS)" == ""
245 !IF "$(USE_IMP_SYS)" == ""
249 !IF "$(USE_PERLCRT)" == ""
253 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
257 !IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
259 USE_5005THREADS = undef
262 !IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
263 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
266 !IF "$(USE_IMP_SYS)" != "undef"
267 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
270 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
271 PROCESSOR_ARCHITECTURE = x86
274 !IF "$(USE_OBJECT)" == "define"
275 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object
277 !IF "$(USE_5005THREADS)" == "define"
278 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
280 !IF "$(USE_MULTI)" == "define"
281 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
283 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
288 !IF "$(USE_ITHREADS)" == "define"
289 ARCHNAME = $(ARCHNAME)-thread
292 # Visual Studio 98 specific
293 !IF "$(CCTYPE)" == "MSVC60"
295 # VC 6.0 can load the socket dll on demand. Makes the test suite
296 # run in about 10% less time.
297 DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
299 # VC 6.0 seems capable of compiling perl correctly with optimizations
300 # enabled. Anything earlier fails tests.
306 ARCHDIR = ..\lib\$(ARCHNAME)
307 COREDIR = ..\lib\CORE
308 AUTODIR = ..\lib\auto
312 EXTUTILSDIR = $(LIBDIR)\ExtUtils
315 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
316 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
317 INST_LIB = $(INST_TOP)$(INST_VER)\lib
318 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
319 INST_COREDIR = $(INST_ARCHLIB)\CORE
320 INST_POD = $(INST_LIB)\pod
321 INST_HTML = $(INST_POD)\html
324 # Programs to compile, build .lib files and link
329 LIB32 = $(LINK32) -lib
337 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
338 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
339 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
340 LOCDEFS = -DPERLDLL -DPERL_CORE
344 !IF "$(USE_PERLCRT)" != "define"
345 ! IF "$(CFG)" == "Debug"
346 PERLCRTLIBC = msvcrtd.lib
348 PERLCRTLIBC = msvcrt.lib
351 ! IF "$(CFG)" == "Debug"
352 PERLCRTLIBC = PerlCRTD.lib
354 PERLCRTLIBC = PerlCRT.lib
361 !IF "$(RUNTIME)" == "-MD"
362 LIBC = $(PERLCRTLIBC)
367 !IF "$(CFG)" == "Debug"
368 ! IF "$(CCTYPE)" == "MSVC20"
369 OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
371 OPTIMIZE = -Od $(RUNTIME)d -Zi -D_DEBUG -DDEBUGGING
373 LINK_DBG = -debug -pdb:none
375 ! IF "$(CFG)" == "Optimize"
376 # -O1 yields smaller code, which turns out to be faster than -O2
377 #OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG
378 OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG
380 OPTIMIZE = -Od $(RUNTIME) -DNDEBUG
385 !IF "$(USE_OBJECT)" == "define"
386 OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
387 BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
390 !IF "$(USE_PERLCRT)" != "define"
391 BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
394 LIBBASEFILES = $(DELAYLOAD) $(CRYPT_LIB) \
395 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
396 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
397 netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
398 version.lib odbc32.lib odbccp32.lib
400 # we add LIBC here, since we may be using PerlCRT.dll
401 LIBFILES = $(LIBBASEFILES) $(LIBC)
403 CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
404 $(PCHFLAGS) $(OPTIMIZE)
405 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
406 -libpath:"$(INST_COREDIR)" \
407 -machine:$(PROCESSOR_ARCHITECTURE)
411 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
413 #################### do not edit below this line #######################
414 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
422 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
425 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
431 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
432 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
439 PERLIMPLIB = ..\perl56.lib
440 PERLDLL = ..\perl56.dll
442 MINIPERL = ..\miniperl.exe
444 PERLEXE = ..\perl.exe
445 WPERLEXE = ..\wperl.exe
446 GLOBEXE = ..\perlglob.exe
447 CONFIGPM = ..\lib\Config.pm
448 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
451 PL2BAT = bin\pl2bat.pl
452 GLOBBAT = bin\perlglob.bat
482 CFGSH_TMPL = config.vc
483 CFGH_TMPL = config_H.vc
485 XCOPY = xcopy /f /r /i /d
486 RCOPY = xcopy /f /r /i /e /d
491 # filenames given to xsubpp must have forward slashes (since it puts
492 # full pathnames in #line strings)
493 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
526 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
528 !IF "$(PERL_MALLOC)" == "define"
529 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
532 !IF "$(USE_OBJECT)" != "define"
533 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
541 !IF "$(CRYPT_SRC)" != ""
542 WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
545 DLL_SRC = $(DYNALOADER).c
591 .\include\sys\socket.h \
594 CORE_H = $(CORE_NOCFG_H) .\config.h
596 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
597 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
598 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
599 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
600 $(MINIDIR)\miniperlmain$(o) \
601 $(MINIDIR)\perlio$(o)
602 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
603 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
604 DLL_OBJ = $(DLL_SRC:.c=.obj)
605 X2P_OBJ = $(X2P_SRC:.c=.obj)
607 PERLDLL_OBJ = $(CORE_OBJ)
608 PERLEXE_OBJ = perlmain$(o)
610 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
611 #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
613 !IF "$(USE_SETARGV)" != ""
614 SETARGV_OBJ = setargv$(o)
617 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
618 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
620 STATIC_EXT = DynaLoader
623 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
624 SOCKET = $(EXTDIR)\Socket\Socket
625 FCNTL = $(EXTDIR)\Fcntl\Fcntl
626 OPCODE = $(EXTDIR)\Opcode\Opcode
627 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
629 POSIX = $(EXTDIR)\POSIX\POSIX
630 ATTRS = $(EXTDIR)\attrs\attrs
631 THREAD = $(EXTDIR)\Thread\Thread
634 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
635 ERRNO = $(EXTDIR)\Errno\Errno
636 PEEK = $(EXTDIR)\Devel\Peek\Peek
637 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
638 DPROF = $(EXTDIR)\Devel\DProf\DProf
639 GLOB = $(EXTDIR)\File\Glob\Glob
640 HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
642 SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
643 FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
644 OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
645 SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
646 IO_DLL = $(AUTODIR)\IO\IO.dll
647 POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
648 ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
649 THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
650 B_DLL = $(AUTODIR)\B\B.dll
651 DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
652 PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
653 RE_DLL = $(AUTODIR)\re\re.dll
654 BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
655 DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
656 GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
657 HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
659 ERRNO_PM = $(LIBDIR)\Errno.pm
700 POD2HTML = $(PODDIR)\pod2html
701 POD2MAN = $(PODDIR)\pod2man
702 POD2LATEX = $(PODDIR)\pod2latex
703 POD2TEXT = $(PODDIR)\pod2text
706 "INST_DRV=$(INST_DRV)" \
707 "INST_TOP=$(INST_TOP)" \
708 "INST_VER=$(INST_VER)" \
709 "INST_ARCH=$(INST_ARCH)" \
710 "archname=$(ARCHNAME)" \
712 "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
713 "cf_email=$(EMAIL)" \
714 "d_crypt=$(D_CRYPT)" \
715 "d_mymalloc=$(PERL_MALLOC)" \
717 "incpath=$(CCINCDIR:"=\")" \
718 "libperl=$(PERLIMPLIB:..\=)" \
719 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
722 "static_ext=$(STATIC_EXT)" \
723 "dynamic_ext=$(DYNAMIC_EXT)" \
724 "nonxs_ext=$(NONXS_EXT)" \
725 "use5005threads=$(USE_5005THREADS)" \
726 "useithreads=$(USE_ITHREADS)" \
727 "usethreads=$(USE_5005THREADS)" \
728 "usemultiplicity=$(USE_MULTI)" \
729 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
730 "optimize=$(OPTIMIZE:"=\")"
736 all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
737 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
739 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
741 #------------------------------------------------------------
743 $(GLOBEXE) : perlglob$(o)
744 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
745 perlglob$(o) setargv$(o)
747 perlglob$(o) : perlglob.c
749 config.w32 : $(CFGSH_TMPL)
750 copy $(CFGSH_TMPL) config.w32
752 .\config.h : $(CFGH_TMPL)
754 copy $(CFGH_TMPL) config.h
756 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL
757 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
759 # this target is for when changes to the main config.sh happen
760 # edit config.{b,v,g}c and make this target once for each supported
761 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
763 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
770 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
771 rename config.h $(CFGH_TMPL)
773 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
774 cd .. && miniperl configpm
775 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
776 $(XCOPY) ..\*.h $(COREDIR)\*.*
777 $(XCOPY) *.h $(COREDIR)\*.*
778 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
779 $(RCOPY) include $(COREDIR)\*.*
780 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
781 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
783 $(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
784 $(LINK32) -subsystem:console -out:$@ @<<
785 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
789 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
791 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
792 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
794 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
795 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
797 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
798 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
799 !IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
800 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
801 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
804 # 1. we don't want to rebuild miniperl.exe when config.h changes
805 # 2. we don't want to rebuild miniperl.exe with non-default config.h
806 $(MINI_OBJ) : $(CORE_NOCFG_H)
808 $(WIN32_OBJ) : $(CORE_H)
809 $(CORE_OBJ) : $(CORE_H)
810 $(DLL_OBJ) : $(CORE_H)
811 $(X2P_OBJ) : $(CORE_H)
813 perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
814 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
815 CCTYPE=$(CCTYPE) > perldll.def
817 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
818 $(LINK32) -dll -def:perldll.def -out:$@ @<<
819 $(LINK_FLAGS) /base:0x28000000 $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
821 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
823 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
824 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
826 ..\x2p\a2p$(o) : ..\x2p\a2p.c
827 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
829 ..\x2p\hash$(o) : ..\x2p\hash.c
830 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
832 ..\x2p\str$(o) : ..\x2p\str.c
833 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
835 ..\x2p\util$(o) : ..\x2p\util.c
836 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
838 ..\x2p\walk$(o) : ..\x2p\walk.c
839 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
841 $(X2P) : $(MINIPERL) $(X2P_OBJ)
842 $(MINIPERL) ..\x2p\find2perl.PL
843 $(MINIPERL) ..\x2p\s2p.PL
844 $(LINK32) -subsystem:console -out:$@ @<<
845 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
848 perlmain.c : runperl.c
849 copy runperl.c perlmain.c
851 perlmain$(o) : perlmain.c
852 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
854 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
855 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
856 $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
857 copy $(PERLEXE) $(WPERLEXE)
858 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
860 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
862 $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
863 if not exist $(AUTODIR) mkdir $(AUTODIR)
865 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
866 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
868 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
869 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
871 $(XSUBPP) dl_win32.xs > $(*B).c
874 $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
875 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
877 $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
878 cd $(EXTDIR)\Data\$(*B)
879 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
883 $(DPROF_DLL): $(PERLEXE) $(DPROF).xs
884 cd $(EXTDIR)\Devel\$(*B)
885 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
889 $(GLOB_DLL): $(PERLEXE) $(GLOB).xs
890 cd $(EXTDIR)\File\$(*B)
891 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
895 $(PEEK_DLL): $(PERLEXE) $(PEEK).xs
896 cd $(EXTDIR)\Devel\$(*B)
897 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
901 $(RE_DLL): $(PERLEXE) $(RE).xs
903 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
907 $(B_DLL): $(PERLEXE) $(B).xs
909 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
913 $(THREAD_DLL): $(PERLEXE) $(THREAD).xs
915 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
919 $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
921 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
925 $(POSIX_DLL): $(PERLEXE) $(POSIX).xs
927 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
931 $(IO_DLL): $(PERLEXE) $(IO).xs
933 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
937 $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
939 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
943 $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
945 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
949 $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
951 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
955 $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
957 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
961 $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
962 cd $(EXTDIR)\Sys\$(*B)
963 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
967 $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
969 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
973 $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
975 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
980 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
981 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
982 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
984 utils: $(PERLEXE) $(X2P)
986 $(MAKE) PERL=$(MINIPERL)
988 copy ..\README.win32 .\perlwin32.pod
989 $(MAKE) -f ..\win32\pod.mak converters
991 $(PERLEXE) $(PL2BAT) $(UTILS)
994 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
995 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
997 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
998 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
999 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1000 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1001 -del /f $(LIBDIR)\XSLoader.pm
1002 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1003 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1004 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1005 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1006 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1007 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1008 -del /f $(LIBDIR)\File\Glob.pm
1009 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
1010 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
1011 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
1012 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
1013 -del /f $(PODDIR)\*.html
1014 -del /f $(PODDIR)\*.bat
1016 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1020 -del /f find2perl s2p
1023 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1027 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1029 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
1030 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
1032 install : all installbare installhtml
1035 $(PERLEXE) ..\installperl
1036 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1037 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1038 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1041 $(RCOPY) html\*.* $(INST_HTML)\*.*
1043 inst_lib : $(CONFIGPM)
1044 copy splittree.pl ..
1045 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1046 $(RCOPY) ..\lib $(INST_LIB)\*.*
1048 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
1049 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1050 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1054 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1057 test-prep : all utils
1058 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1059 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1060 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1064 $(PERLEXE) -I..\lib harness
1067 test-notty : test-prep
1068 set PERL_SKIP_TTY_TEST=1
1070 $(PERLEXE) -I..\lib harness
1073 test-wide : test-prep
1074 set HARNESS_PERL_SWITCHES=-C
1076 $(PERLEXE) -I..\lib harness
1079 test-wide-notty : test-prep
1080 set PERL_SKIP_TTY_TEST=1
1081 set HARNESS_PERL_SWITCHES=-C
1083 $(PERLEXE) -I..\lib harness
1087 -@erase miniperlmain$(o)
1089 -@erase perlglob$(o)
1090 -@erase perlmain$(o)
1098 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
1099 -@erase $(WIN32_OBJ)
1102 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1103 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1104 -@erase ..\x2p\*.exe ..\x2p\*.bat