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 # (perl56.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 # Beginnings of interpreter cloning/threads; still very incomplete.
53 # This should be enabled to get the fork() emulation. This needs
56 #USE_ITHREADS = define
59 # uncomment to enable the implicit "host" layer for all system calls
60 # made by perl. This needs USE_MULTI above. This is also needed to
66 # WARNING! This option is deprecated and will eventually go away (enable
67 # USE_ITHREADS instead).
69 # uncomment to enable threads-capabilities. This is incompatible with
70 # USE_ITHREADS, and is only here for people who may have come to rely
71 # on the experimental Thread support that was in 5.005.
73 #USE_5005THREADS= define
76 # WARNING! This option is deprecated and will eventually go away (enable
79 # uncomment next line if you want to use the PERL_OBJECT build option.
80 # DO NOT ENABLE unless you have legacy code that relies on the C++
81 # CPerlObj class that was available in 5.005. This cannot be enabled
82 # if you ask for USE_5005THREADS above.
87 # uncomment one of the following lines if you are using either
88 # Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
94 # uncomment next line if you want debug version of perl (big,slow)
99 # uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
100 # It has patches that fix known bugs in older versions of MSVCRT.DLL.
101 # This currently requires VC 5.0 with Service Pack 3 or later.
102 # Get it from CPAN at http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/
103 # and follow the directions in the package to install.
105 # Not recommended if you have VC 6.x and you're not running Windows 9x.
107 #USE_PERLCRT = define
110 # uncomment to enable linking with setargv.obj under the Visual C
111 # compiler. Setting this options enables perl to expand wildcards in
112 # arguments, but it may be harder to use alternate methods like
113 # File::DosGlob that are more powerful. This option is supported only with
116 #USE_SETARGV = define
119 # if you have the source for des_fcrypt(), uncomment this and make sure the
120 # file exists (see README.win32). File should be located in the same
121 # directory as this file.
123 #CRYPT_SRC = fcrypt.c
126 # if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
127 # library, uncomment this, and make sure the library exists (see README.win32)
128 # Specify the full pathname of the library.
130 #CRYPT_LIB = fcrypt.lib
133 # set this if you wish to use perl's malloc
134 # WARNING: Turning this on/off WILL break binary compatibility with extensions
135 # you may have compiled with/without it. Be prepared to recompile all
136 # extensions if you change the default. Currently, this cannot be enabled
137 # if you ask for USE_IMP_SYS above.
139 #PERL_MALLOC = define
142 # set the install locations of the compiler include/libraries
143 # Running VCVARS32.BAT is *required* when using Visual C.
144 # Some versions of Visual C don't define MSVCDIR in the environment,
145 # so you may have to set CCHOME explicitly (spaces in the path name should
150 CCINCDIR = $(CCHOME)\include
151 CCLIBDIR = $(CCHOME)\lib
154 # Additional compiler flags can be specified here.
158 # This should normally be disabled. Adding -DPERL_POLLUTE enables support
159 # for old symbols by default, at the expense of extreme pollution. You most
160 # probably just want to build modules that won't compile with
161 # perl Makefile.PL POLLUTE=1
162 # instead of enabling this. Please report such modules to the respective
165 #BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
168 # This should normally be disabled. Enabling it will disable the File::Glob
169 # implementation of CORE::glob.
171 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
174 # This should normally be disabled. Enabling it causes perl to read scripts
175 # in text mode (which is the 5.005 behavior) and will break ByteLoader.
176 #BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
179 # specify semicolon-separated list of extra directories that modules will
180 # look for libraries (spaces in path names need not be quoted)
185 # set this to your email address (perl will guess a value from
186 # from your loginname and your hostname, which may not be right)
191 ## Build configuration ends.
194 ##################### CHANGE THESE ONLY IF YOU MUST #####################
196 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
200 CRYPT_FLAG = -DHAVE_DES_FCRYPT
203 !IF "$(USE_OBJECT)" == "define"
205 USE_5005THREADS = undef
210 !IF "$(PERL_MALLOC)" == ""
214 !IF "$(USE_5005THREADS)" == ""
215 USE_5005THREADS = undef
218 !IF "$(USE_5005THREADS)" == "define"
222 !IF "$(USE_IMP_SYS)" == "define"
226 !IF "$(USE_MULTI)" == ""
230 !IF "$(USE_OBJECT)" == ""
234 !IF "$(USE_ITHREADS)" == ""
238 !IF "$(USE_IMP_SYS)" == ""
242 !IF "$(USE_PERLCRT)" == ""
246 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
250 !IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
252 USE_5005THREADS = undef
255 !IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
256 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
259 !IF "$(USE_IMP_SYS)" != "undef"
260 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
263 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
264 PROCESSOR_ARCHITECTURE = x86
267 !IF "$(USE_OBJECT)" == "define"
268 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object
270 !IF "$(USE_5005THREADS)" == "define"
271 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
273 !IF "$(USE_MULTI)" == "define"
274 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
276 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
281 !IF "$(USE_ITHREADS)" == "define"
282 ARCHNAME = $(ARCHNAME)-thread
285 # Visual Studio 98 specific
286 !IF "$(CCTYPE)" == "MSVC60"
288 # VC 6.0 can load the socket dll on demand. Makes the test suite
289 # run in about 10% less time.
290 DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
292 # VC 6.0 seems capable of compiling perl correctly with optimizations
293 # enabled. Anything earlier fails tests.
299 ARCHDIR = ..\lib\$(ARCHNAME)
300 COREDIR = ..\lib\CORE
301 AUTODIR = ..\lib\auto
305 EXTUTILSDIR = $(LIBDIR)\ExtUtils
308 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
309 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
310 INST_LIB = $(INST_TOP)$(INST_VER)\lib
311 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
312 INST_COREDIR = $(INST_ARCHLIB)\CORE
313 INST_POD = $(INST_LIB)\pod
314 INST_HTML = $(INST_POD)\html
317 # Programs to compile, build .lib files and link
322 LIB32 = $(LINK32) -lib
329 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
330 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
331 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
332 LOCDEFS = -DPERLDLL -DPERL_CORE
336 !IF "$(USE_PERLCRT)" != "define"
345 !IF "$(CFG)" == "Debug"
346 ! IF "$(CCTYPE)" == "MSVC20"
347 OPTIMIZE = -Od -MD -Z7 -DDEBUGGING
349 OPTIMIZE = -Od -MD -Zi -DDEBUGGING
351 LINK_DBG = -debug -pdb:none
353 ! IF "$(CFG)" == "Optimize"
354 # -O1 yields smaller code, which turns out to be faster than -O2
355 #OPTIMIZE = -O2 -MD -DNDEBUG
356 OPTIMIZE = -O1 -MD -DNDEBUG
358 OPTIMIZE = -Od -MD -DNDEBUG
363 !IF "$(USE_OBJECT)" == "define"
364 OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
365 BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
368 !IF "$(USE_PERLCRT)" != "define"
369 BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
372 LIBBASEFILES = $(CRYPT_LIB) \
373 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
374 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
375 netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
376 version.lib odbc32.lib odbccp32.lib
378 # we add LIBC here, since we may be using PerlCRT.dll
379 LIBFILES = $(LIBBASEFILES) $(LIBC)
381 CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
382 $(PCHFLAGS) $(OPTIMIZE)
383 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
384 -libpath:"$(INST_COREDIR)" \
385 -machine:$(PROCESSOR_ARCHITECTURE)
389 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
391 #################### do not edit below this line #######################
392 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
400 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
403 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
409 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
410 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
417 PERLIMPLIB = ..\perl56.lib
418 PERLDLL = ..\perl56.dll
420 MINIPERL = ..\miniperl.exe
422 PERLEXE = ..\perl.exe
423 WPERLEXE = ..\wperl.exe
424 GLOBEXE = ..\perlglob.exe
425 CONFIGPM = ..\lib\Config.pm
426 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
429 PL2BAT = bin\pl2bat.pl
430 GLOBBAT = bin\perlglob.bat
460 CFGSH_TMPL = config.vc
461 CFGH_TMPL = config_H.vc
463 XCOPY = xcopy /f /r /i /d
464 RCOPY = xcopy /f /r /i /e /d
469 # filenames given to xsubpp must have forward slashes (since it puts
470 # full pathnames in #line strings)
471 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
504 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
506 !IF "$(PERL_MALLOC)" == "define"
507 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
510 !IF "$(USE_OBJECT)" != "define"
511 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
519 !IF "$(CRYPT_SRC)" != ""
520 WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
523 DLL_SRC = $(DYNALOADER).c
569 .\include\sys\socket.h \
572 CORE_H = $(CORE_NOCFG_H) .\config.h
574 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
575 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
576 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
577 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
578 $(MINIDIR)\miniperlmain$(o) \
579 $(MINIDIR)\perlio$(o)
580 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
581 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
582 DLL_OBJ = $(DLL_SRC:.c=.obj)
583 X2P_OBJ = $(X2P_SRC:.c=.obj)
585 PERLDLL_OBJ = $(CORE_OBJ)
586 PERLEXE_OBJ = perlmain$(o)
588 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
589 #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
591 !IF "$(USE_SETARGV)" != ""
592 SETARGV_OBJ = setargv$(o)
595 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
596 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
598 STATIC_EXT = DynaLoader
601 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
602 SOCKET = $(EXTDIR)\Socket\Socket
603 FCNTL = $(EXTDIR)\Fcntl\Fcntl
604 OPCODE = $(EXTDIR)\Opcode\Opcode
605 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
607 POSIX = $(EXTDIR)\POSIX\POSIX
608 ATTRS = $(EXTDIR)\attrs\attrs
609 THREAD = $(EXTDIR)\Thread\Thread
612 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
613 ERRNO = $(EXTDIR)\Errno\Errno
614 PEEK = $(EXTDIR)\Devel\Peek\Peek
615 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
616 DPROF = $(EXTDIR)\Devel\DProf\DProf
617 GLOB = $(EXTDIR)\File\Glob\Glob
618 HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
620 SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
621 FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
622 OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
623 SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
624 IO_DLL = $(AUTODIR)\IO\IO.dll
625 POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
626 ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
627 THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
628 B_DLL = $(AUTODIR)\B\B.dll
629 DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
630 PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
631 RE_DLL = $(AUTODIR)\re\re.dll
632 BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
633 DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
634 GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
635 HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
637 ERRNO_PM = $(LIBDIR)\Errno.pm
678 POD2HTML = $(PODDIR)\pod2html
679 POD2MAN = $(PODDIR)\pod2man
680 POD2LATEX = $(PODDIR)\pod2latex
681 POD2TEXT = $(PODDIR)\pod2text
684 "INST_DRV=$(INST_DRV)" \
685 "INST_TOP=$(INST_TOP)" \
686 "INST_VER=$(INST_VER)" \
687 "INST_ARCH=$(INST_ARCH)" \
688 "archname=$(ARCHNAME)" \
690 "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
691 "cf_email=$(EMAIL)" \
692 "d_crypt=$(D_CRYPT)" \
693 "d_mymalloc=$(PERL_MALLOC)" \
695 "incpath=$(CCINCDIR:"=\")" \
696 "libperl=$(PERLIMPLIB:..\=)" \
697 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
700 "static_ext=$(STATIC_EXT)" \
701 "dynamic_ext=$(DYNAMIC_EXT)" \
702 "nonxs_ext=$(NONXS_EXT)" \
703 "use5005threads=$(USE_5005THREADS)" \
704 "useithreads=$(USE_ITHREADS)" \
705 "usethreads=$(USE_5005THREADS)" \
706 "usemultiplicity=$(USE_MULTI)" \
707 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
708 "optimize=$(OPTIMIZE:"=\")"
714 all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
715 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
717 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
719 #------------------------------------------------------------
721 $(GLOBEXE) : perlglob$(o)
722 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
723 perlglob$(o) setargv$(o)
725 perlglob$(o) : perlglob.c
727 config.w32 : $(CFGSH_TMPL)
728 copy $(CFGSH_TMPL) config.w32
730 .\config.h : $(CFGH_TMPL)
732 copy $(CFGH_TMPL) config.h
734 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL
735 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
737 # this target is for when changes to the main config.sh happen
738 # edit config.{b,v,g}c and make this target once for each supported
739 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
741 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
748 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
749 rename config.h $(CFGH_TMPL)
751 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
752 cd .. && miniperl configpm
753 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
754 $(XCOPY) ..\*.h $(COREDIR)\*.*
755 $(XCOPY) *.h $(COREDIR)\*.*
756 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
757 $(RCOPY) include $(COREDIR)\*.*
758 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
759 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
761 $(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
762 $(LINK32) -subsystem:console -out:$@ @<<
763 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
767 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
769 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
770 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
772 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
773 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
775 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
776 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
777 !IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
778 perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
779 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
782 # 1. we don't want to rebuild miniperl.exe when config.h changes
783 # 2. we don't want to rebuild miniperl.exe with non-default config.h
784 $(MINI_OBJ) : $(CORE_NOCFG_H)
786 $(WIN32_OBJ) : $(CORE_H)
787 $(CORE_OBJ) : $(CORE_H)
788 $(DLL_OBJ) : $(CORE_H)
789 $(X2P_OBJ) : $(CORE_H)
791 perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
792 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
793 CCTYPE=$(CCTYPE) > perldll.def
795 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
796 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<<
797 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
799 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
801 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
802 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
804 ..\x2p\a2p$(o) : ..\x2p\a2p.c
805 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
807 ..\x2p\hash$(o) : ..\x2p\hash.c
808 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
810 ..\x2p\str$(o) : ..\x2p\str.c
811 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
813 ..\x2p\util$(o) : ..\x2p\util.c
814 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
816 ..\x2p\walk$(o) : ..\x2p\walk.c
817 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
819 $(X2P) : $(MINIPERL) $(X2P_OBJ)
820 $(MINIPERL) ..\x2p\find2perl.PL
821 $(MINIPERL) ..\x2p\s2p.PL
822 $(LINK32) -subsystem:console -out:$@ @<<
823 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
826 perlmain.c : runperl.c
827 copy runperl.c perlmain.c
829 perlmain$(o) : perlmain.c
830 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
832 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
833 $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
834 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
835 copy $(PERLEXE) $(WPERLEXE)
836 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
838 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
840 $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
841 if not exist $(AUTODIR) mkdir $(AUTODIR)
843 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
844 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
846 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
847 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
849 $(XSUBPP) dl_win32.xs > $(*B).c
852 $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
853 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
855 $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
856 cd $(EXTDIR)\Data\$(*B)
857 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
861 $(DPROF_DLL): $(PERLEXE) $(DPROF).xs
862 cd $(EXTDIR)\Devel\$(*B)
863 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
867 $(GLOB_DLL): $(PERLEXE) $(GLOB).xs
868 cd $(EXTDIR)\File\$(*B)
869 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
873 $(PEEK_DLL): $(PERLEXE) $(PEEK).xs
874 cd $(EXTDIR)\Devel\$(*B)
875 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
879 $(RE_DLL): $(PERLEXE) $(RE).xs
881 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
885 $(B_DLL): $(PERLEXE) $(B).xs
887 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
891 $(THREAD_DLL): $(PERLEXE) $(THREAD).xs
893 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
897 $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
899 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
903 $(POSIX_DLL): $(PERLEXE) $(POSIX).xs
905 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
909 $(IO_DLL): $(PERLEXE) $(IO).xs
911 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
915 $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
917 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
921 $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
923 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
927 $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
929 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
933 $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
935 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
939 $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
940 cd $(EXTDIR)\Sys\$(*B)
941 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
945 $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
947 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
951 $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
953 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
958 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
959 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
960 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
962 utils: $(PERLEXE) $(X2P)
964 $(MAKE) PERL=$(MINIPERL)
966 copy ..\README.amiga .\perlamiga.pod
967 copy ..\README.cygwin .\perlcygwin.pod
968 copy ..\README.dos .\perldos.pod
969 copy ..\README.hpux .\perlhpux.pod
970 copy ..\README.machten .\perlmachten.pod
971 copy ..\README.os2 .\perlos2.pod
972 copy ..\vms\perlvms.pod .\perlvms.pod
973 copy ..\README.win32 .\perlwin32.pod
974 $(MAKE) -f ..\win32\pod.mak converters
978 $(PERLEXE) $(PL2BAT) $(UTILS)
981 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
982 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
984 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
985 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
986 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
987 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
988 -del /f $(LIBDIR)\XSLoader.pm
989 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
990 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
991 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
992 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
993 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
994 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
995 -del /f $(LIBDIR)\File\Glob.pm
996 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
997 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
998 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
999 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
1000 -del /f $(PODDIR)\*.html
1001 -del /f $(PODDIR)\*.bat
1003 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1007 -del /f find2perl s2p
1010 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1014 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1016 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
1017 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
1019 install : all installbare installhtml
1022 $(PERLEXE) ..\installperl
1023 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1024 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1025 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1028 $(RCOPY) html\*.* $(INST_HTML)\*.*
1030 inst_lib : $(CONFIGPM)
1031 copy splittree.pl ..
1032 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1033 $(RCOPY) ..\lib $(INST_LIB)\*.*
1035 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
1036 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1037 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1041 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1044 test-prep : all utils
1045 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1046 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1047 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1051 $(PERLEXE) -I..\lib harness
1054 test-notty : test-prep
1055 set PERL_SKIP_TTY_TEST=1
1057 $(PERLEXE) -I..\lib harness
1060 test-wide : test-prep
1061 set HARNESS_PERL_SWITCHES=-C
1063 $(PERLEXE) -I..\lib harness
1066 test-wide-notty : test-prep
1067 set PERL_SKIP_TTY_TEST=1
1068 set HARNESS_PERL_SWITCHES=-C
1070 $(PERLEXE) -I..\lib harness
1074 -@erase miniperlmain$(o)
1076 -@erase perlglob$(o)
1077 -@erase perlmain$(o)
1085 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
1086 -@erase $(WIN32_OBJ)
1089 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1090 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1091 -@erase ..\x2p\*.exe ..\x2p\*.bat