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 # XXX WARNING! This option currently undergoing changes. May be broken.
48 # uncomment to enable threads-capabilities
53 # XXX WARNING! This option currently undergoing changes. May be broken.
55 # uncomment to enable multiple interpreters
60 # XXX WARNING! This option currently undergoing changes. May be broken.
62 # uncomment next line if you want to use the perl object
63 # Currently, this cannot be enabled if you ask for threads above
68 # XXX WARNING! This option currently undergoing changes. May be broken.
70 # Beginnings of interpreter cloning/threads: still rather rough, fails
71 # tests. This should be enabled to get the fork() emulation. Do not
72 # enable unless you know what you're doing!
74 #USE_ITHREADS = define
77 # uncomment to enable the implicit "host" layer for all system calls
78 # made by perl. This is needed and auto-enabled by USE_OBJECT above.
79 # This is also needed to get fork().
84 # uncomment one of the following lines if you are using either
85 # Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
91 # uncomment next line if you want debug version of perl (big,slow)
96 # uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
97 # It has patches that fix known bugs in older versions of MSVCRT.DLL.
98 # This currently requires VC 5.0 with Service Pack 3 or later.
99 # Get it from CPAN at http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/
100 # and follow the directions in the package to install.
102 #USE_PERLCRT = define
103 #BUILD_FOR_WIN95 = define
106 # uncomment to enable linking with setargv.obj under the Visual C
107 # compiler. Setting this options enables perl to expand wildcards in
108 # arguments, but it may be harder to use alternate methods like
109 # File::DosGlob that are more powerful. This option is supported only with
112 #USE_SETARGV = define
115 # if you have the source for des_fcrypt(), uncomment this and make sure the
116 # file exists (see README.win32). File should be located in the same
117 # directory as this file.
119 #CRYPT_SRC = fcrypt.c
122 # if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
123 # library, uncomment this, and make sure the library exists (see README.win32)
124 # Specify the full pathname of the library.
126 #CRYPT_LIB = fcrypt.lib
129 # set this if you wish to use perl's malloc
130 # WARNING: Turning this on/off WILL break binary compatibility with extensions
131 # you may have compiled with/without it. Be prepared to recompile all
132 # extensions if you change the default. Currently, this cannot be enabled
133 # if you ask for USE_OBJECT above.
135 #PERL_MALLOC = define
138 # set the install locations of the compiler include/libraries
139 # Running VCVARS32.BAT is *required* when using Visual C.
140 # Some versions of Visual C don't define MSVCDIR in the environment,
141 # so you may have to set CCHOME explicitly (spaces in the path name should
146 CCINCDIR = $(CCHOME)\include
147 CCLIBDIR = $(CCHOME)\lib
150 # additional compiler flags can be specified here.
152 # Adding -DPERL_POLLUTE enables support for old symbols, at the expense of
153 # extreme pollution. You most probably want this if you're compiling modules
154 # from CPAN, or other such serious uses of this experimental perl release.
155 # We don't enable this by default because we want the modules to get fixed
156 # instead of clinging to shortcuts like this one.
158 #BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
161 # enable this to disable the File::Glob implementation of CORE::glob
163 #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
165 # Enabling this causes perl to do its own CR/LF conversions, and is required
166 # if you want to be able to use the bytecode compiler and ByteLoader
167 BUILDOPT = $(BUILDOPT) -DUSE_BINMODE_SCRIPTS
169 # Enabling this runs a cloned toplevel interpreter (*EXPERIMENTAL*, fails tests)
170 #BUILDOPT = $(BUILDOPT) -DTOP_CLONE
172 # specify semicolon-separated list of extra directories that modules will
173 # look for libraries (spaces in path names need not be quoted)
178 # set this to your email address (perl will guess a value from
179 # from your loginname and your hostname, which may not be right)
184 ## Build configuration ends.
187 ##################### CHANGE THESE ONLY IF YOU MUST #####################
189 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
193 CRYPT_FLAG = -DHAVE_DES_FCRYPT
196 !IF "$(USE_OBJECT)" == "define"
203 !IF "$(PERL_MALLOC)" == ""
207 !IF "$(USE_THREADS)" == ""
211 !IF "$(USE_THREADS)" == "define"
215 !IF "$(USE_MULTI)" == ""
219 !IF "$(USE_OBJECT)" == ""
223 !IF "$(USE_ITHREADS)" == ""
227 !IF "$(USE_IMP_SYS)" == ""
231 !IF "$(USE_MULTI)$(USE_THREADS)$(USE_OBJECT)" != "undefundefundef"
232 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
235 !IF "$(USE_ITHREADS)" != "undef"
236 BUILDOPT = $(BUILDOPT) -DUSE_ITHREADS
239 !IF "$(USE_IMP_SYS)" != "undef"
240 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
243 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
244 PROCESSOR_ARCHITECTURE = x86
247 !IF "$(USE_OBJECT)" == "define"
248 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object
250 !IF "$(USE_THREADS)" == "define"
251 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
253 !IF "$(USE_MULTI)" == "define"
254 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
256 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
261 # Visual Studio 98 specific
262 !IF "$(CCTYPE)" == "MSVC60"
264 # VC 6.0 can load the socket dll on demand. Makes the test suite
265 # run in about 10% less time.
266 DELAYLOAD = -DELAYLOAD:wsock32.dll delayimp.lib
268 # VC 6.0 seems capable of compiling perl correctly with optimizations
269 # enabled. Anything earlier fails tests.
275 ARCHDIR = ..\lib\$(ARCHNAME)
276 COREDIR = ..\lib\CORE
277 AUTODIR = ..\lib\auto
281 EXTUTILSDIR = $(LIBDIR)\ExtUtils
284 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
285 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
286 INST_LIB = $(INST_TOP)$(INST_VER)\lib
287 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
288 INST_COREDIR = $(INST_ARCHLIB)\CORE
289 INST_POD = $(INST_LIB)\pod
290 INST_HTML = $(INST_POD)\html
293 # Programs to compile, build .lib files and link
298 LIB32 = $(LINK32) -lib
306 INCLUDES = -I$(COREDIR) -I.\include -I. -I..
307 #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
308 DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
309 LOCDEFS = -DPERLDLL -DPERL_CORE
313 !IF "$(USE_PERLCRT)" == ""
314 ! IF "$(CFG)" == "Debug"
315 PERLCRTLIBC = msvcrtd.lib
317 PERLCRTLIBC = msvcrt.lib
320 ! IF "$(CFG)" == "Debug"
321 PERLCRTLIBC = PerlCRTD.lib
323 PERLCRTLIBC = PerlCRT.lib
330 !IF "$(RUNTIME)" == "-MD"
331 LIBC = $(PERLCRTLIBC)
336 !IF "$(CFG)" == "Debug"
337 ! IF "$(CCTYPE)" == "MSVC20"
338 OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
340 OPTIMIZE = -Od $(RUNTIME)d -Zi -D_DEBUG -DDEBUGGING
342 LINK_DBG = -debug -pdb:none
344 ! IF "$(CFG)" == "Optimize"
345 # -O1 yields smaller code, which turns out to be faster than -O2
346 #OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG
347 OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG
349 OPTIMIZE = -Od $(RUNTIME) -DNDEBUG
354 !IF "$(USE_OBJECT)" == "define"
355 OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
356 BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
359 LIBBASEFILES = $(DELAYLOAD) $(CRYPT_LIB) \
360 oldnames.lib kernel32.lib user32.lib gdi32.lib \
361 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib \
362 oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
363 version.lib odbc32.lib odbccp32.lib
365 # we add LIBC here, since we may be using PerlCRT.dll
366 LIBFILES = $(LIBBASEFILES) $(LIBC)
368 CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
369 $(PCHFLAGS) $(OPTIMIZE)
370 LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
371 -libpath:"$(INST_COREDIR)" \
372 -machine:$(PROCESSOR_ARCHITECTURE)
376 CFLAGS_O = $(CFLAGS) $(BUILDOPT)
378 #################### do not edit below this line #######################
379 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
387 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
390 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
396 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
397 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
404 !IF "$(USE_OBJECT)" == "define"
405 PERLIMPLIB = ..\perl56.lib
406 PERLDLL = ..\perl56.dll
408 PERLIMPLIB = ..\perl.lib
409 PERLDLL = ..\perl.dll
412 MINIPERL = ..\miniperl.exe
414 PERLEXE = ..\perl.exe
415 WPERLEXE = ..\wperl.exe
416 GLOBEXE = ..\perlglob.exe
417 CONFIGPM = ..\lib\Config.pm
418 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
421 PL2BAT = bin\pl2bat.pl
422 GLOBBAT = bin\perlglob.bat
451 CFGSH_TMPL = config.vc
452 CFGH_TMPL = config_H.vc
454 !IF "$(BUILD_FOR_WIN95)" == "define"
455 PERL95EXE = ..\perl95.exe
458 XCOPY = xcopy /f /r /i /d
459 RCOPY = xcopy /f /r /i /e /d
464 # filenames given to xsubpp must have forward slashes (since it puts
465 # full pathnames in #line strings)
466 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
499 EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
501 !IF "$(PERL_MALLOC)" == "define"
502 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
505 !IF "$(USE_OBJECT)" != "define"
506 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
513 !IF "$(USE_THREADS)" == "define"
514 WIN32_SRC = $(WIN32_SRC) .\win32thread.c
517 !IF "$(CRYPT_SRC)" != ""
518 WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
526 !IF "$(CRYPT_SRC)" != ""
527 PERL95_SRC = $(PERL95_SRC) .\$(CRYPT_SRC)
530 DLL_SRC = $(DYNALOADER).c
576 .\include\sys\socket.h \
582 CORE_H = $(CORE_NOCFG_H) .\config.h
584 MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
585 CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
586 WIN32_OBJ = $(WIN32_SRC:.c=.obj)
587 MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
588 $(MINIDIR)\miniperlmain$(o) \
589 $(MINIDIR)\perlio$(o)
590 MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
591 MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
592 PERL95_OBJ = $(PERL95_SRC:.c=.obj)
593 DLL_OBJ = $(DLL_SRC:.c=.obj)
594 X2P_OBJ = $(X2P_SRC:.c=.obj)
596 PERLDLL_OBJ = $(CORE_OBJ)
597 PERLEXE_OBJ = perlmain$(o)
599 PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
600 #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
601 #PERL95_OBJ = $(PERL95_OBJ) DynaLoadmt$(o)
603 !IF "$(USE_SETARGV)" != ""
604 SETARGV_OBJ = setargv$(o)
607 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
608 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob
609 STATIC_EXT = DynaLoader
612 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
613 SOCKET = $(EXTDIR)\Socket\Socket
614 FCNTL = $(EXTDIR)\Fcntl\Fcntl
615 OPCODE = $(EXTDIR)\Opcode\Opcode
616 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
618 POSIX = $(EXTDIR)\POSIX\POSIX
619 ATTRS = $(EXTDIR)\attrs\attrs
620 THREAD = $(EXTDIR)\Thread\Thread
623 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
624 ERRNO = $(EXTDIR)\Errno\Errno
625 PEEK = $(EXTDIR)\Devel\Peek\Peek
626 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
627 DPROF = $(EXTDIR)\Devel\DProf\DProf
628 GLOB = $(EXTDIR)\File\Glob\Glob
630 SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
631 FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
632 OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
633 SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
634 IO_DLL = $(AUTODIR)\IO\IO.dll
635 POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
636 ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
637 THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
638 B_DLL = $(AUTODIR)\B\B.dll
639 DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
640 PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
641 RE_DLL = $(AUTODIR)\re\re.dll
642 BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
643 DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
644 GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
646 ERRNO_PM = $(LIBDIR)\Errno.pm
685 POD2HTML = $(PODDIR)\pod2html
686 POD2MAN = $(PODDIR)\pod2man
687 POD2LATEX = $(PODDIR)\pod2latex
688 POD2TEXT = $(PODDIR)\pod2text
691 "INST_DRV=$(INST_DRV)" \
692 "INST_TOP=$(INST_TOP)" \
693 "INST_VER=$(INST_VER)" \
694 "INST_ARCH=$(INST_ARCH)" \
695 "archname=$(ARCHNAME)" \
697 "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
698 "cf_email=$(EMAIL)" \
699 "d_crypt=$(D_CRYPT)" \
700 "d_mymalloc=$(PERL_MALLOC)" \
702 "incpath=$(CCINCDIR:"=\")" \
703 "libperl=$(PERLIMPLIB:..\=)" \
704 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
707 "static_ext=$(STATIC_EXT)" \
708 "dynamic_ext=$(DYNAMIC_EXT)" \
709 "nonxs_ext=$(NONXS_EXT)" \
710 "usethreads=$(USE_THREADS)" \
711 "usemultiplicity=$(USE_MULTI)" \
712 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
713 "optimize=$(OPTIMIZE:"=\")"
719 all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) $(PERL95EXE) \
720 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
722 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
724 #------------------------------------------------------------
726 $(GLOBEXE) : perlglob$(o)
727 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
728 perlglob$(o) setargv$(o)
730 perlglob$(o) : perlglob.c
732 config.w32 : $(CFGSH_TMPL)
733 copy $(CFGSH_TMPL) config.w32
735 .\config.h : $(CFGH_TMPL)
737 copy $(CFGH_TMPL) config.h
739 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL
740 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
742 # this target is for when changes to the main config.sh happen
743 # edit config.{b,v,g}c and make this target once for each supported
744 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
746 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
753 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
754 rename config.h $(CFGH_TMPL)
756 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
757 cd .. && miniperl configpm
758 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
759 $(XCOPY) ..\*.h $(COREDIR)\*.*
760 $(XCOPY) *.h $(COREDIR)\*.*
761 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
762 $(RCOPY) include $(COREDIR)\*.*
763 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
764 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
766 $(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
767 $(LINK32) -subsystem:console -out:$@ @<<
768 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
772 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
774 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
775 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
777 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
778 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
780 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
781 !IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
782 perllib$(o) : perllib.c
783 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
786 # 1. we don't want to rebuild miniperl.exe when config.h changes
787 # 2. we don't want to rebuild miniperl.exe with non-default config.h
788 $(MINI_OBJ) : $(CORE_NOCFG_H)
790 $(WIN32_OBJ) : $(CORE_H)
791 $(CORE_OBJ) : $(CORE_H)
792 $(DLL_OBJ) : $(CORE_H)
793 $(PERL95_OBJ) : $(CORE_H)
794 $(X2P_OBJ) : $(CORE_H)
796 perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
797 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
798 CCTYPE=$(CCTYPE) > perldll.def
800 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
801 $(LINK32) -dll -def:perldll.def -out:$@ @<<
802 $(LINK_FLAGS) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
804 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
806 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
807 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
809 ..\x2p\a2p$(o) : ..\x2p\a2p.c
810 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
812 ..\x2p\hash$(o) : ..\x2p\hash.c
813 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
815 ..\x2p\str$(o) : ..\x2p\str.c
816 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
818 ..\x2p\util$(o) : ..\x2p\util.c
819 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
821 ..\x2p\walk$(o) : ..\x2p\walk.c
822 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
824 $(X2P) : $(MINIPERL) $(X2P_OBJ)
825 $(MINIPERL) ..\x2p\find2perl.PL
826 $(MINIPERL) ..\x2p\s2p.PL
827 $(LINK32) -subsystem:console -out:$@ @<<
828 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
831 perlmain.c : runperl.c
832 copy runperl.c perlmain.c
834 perlmain$(o) : perlmain.c
835 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
837 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
838 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
839 $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
840 copy $(PERLEXE) $(WPERLEXE)
841 editbin /subsystem:windows $(WPERLEXE)
843 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
845 !IF "$(BUILD_FOR_WIN95)" == "define"
848 copy runperl.c perl95.c
850 perl95$(o) : perl95.c
851 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c perl95.c
853 win32sckmt$(o) : win32sck.c
854 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
855 $(OBJOUT_FLAG)win32sckmt$(o) win32sck.c
857 win32mt$(o) : win32.c
858 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
859 $(OBJOUT_FLAG)win32mt$(o) win32.c
861 DynaLoadmt$(o) : $(DYNALOADER).c
862 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
863 $(OBJOUT_FLAG)DynaLoadmt$(o) $(DYNALOADER).c
865 $(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
866 $(LINK32) -subsystem:console -nodefaultlib -out:$@ $(LINK_FLAGS) \
867 $(LIBBASEFILES) $(PERL95_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) \
872 $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
873 if not exist $(AUTODIR) mkdir $(AUTODIR)
875 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
876 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
878 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
879 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
881 $(XSUBPP) dl_win32.xs > $(*B).c
884 $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
885 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
887 $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
888 cd $(EXTDIR)\Data\$(*B)
889 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
893 $(DPROF_DLL): $(PERLEXE) $(DPROF).xs
894 cd $(EXTDIR)\Devel\$(*B)
895 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
899 $(GLOB_DLL): $(PERLEXE) $(GLOB).xs
900 cd $(EXTDIR)\File\$(*B)
901 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
905 $(PEEK_DLL): $(PERLEXE) $(PEEK).xs
906 cd $(EXTDIR)\Devel\$(*B)
907 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
911 $(RE_DLL): $(PERLEXE) $(RE).xs
913 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
917 $(B_DLL): $(PERLEXE) $(B).xs
919 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
923 $(THREAD_DLL): $(PERLEXE) $(THREAD).xs
925 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
929 $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
931 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
935 $(POSIX_DLL): $(PERLEXE) $(POSIX).xs
937 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
941 $(IO_DLL): $(PERLEXE) $(IO).xs
943 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
947 $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
949 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
953 $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
955 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
959 $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
961 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
965 $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
967 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
971 $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
973 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
977 $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
979 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
984 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
985 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
986 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
988 utils: $(PERLEXE) $(X2P)
990 $(MAKE) PERL=$(MINIPERL)
992 copy ..\README.win32 .\perlwin32.pod
993 $(MAKE) -f ..\win32\pod.mak converters
995 $(PERLEXE) $(PL2BAT) $(UTILS)
998 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
999 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1001 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
1002 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1003 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1004 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1005 -del /f $(LIBDIR)\XSLoader.pm
1006 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1007 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1008 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1009 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1010 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1011 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1012 -del /f $(LIBDIR)\File\Glob.pm
1013 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
1014 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
1015 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
1016 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
1017 -del /f $(PODDIR)\*.html
1018 -del /f $(PODDIR)\*.bat
1020 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1024 -del /f find2perl s2p
1027 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1032 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1034 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
1035 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
1037 install : all installbare installhtml
1040 $(PERLEXE) ..\installperl
1041 !IF "$(BUILD_FOR_WIN95)" == "define"
1042 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
1044 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1045 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1046 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1049 $(RCOPY) html\*.* $(INST_HTML)\*.*
1051 inst_lib : $(CONFIGPM)
1052 copy splittree.pl ..
1053 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1054 $(RCOPY) ..\lib $(INST_LIB)\*.*
1056 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
1057 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1058 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1062 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1065 test-prep : all utils
1066 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1067 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1068 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1072 $(PERLEXE) -I..\lib harness
1075 test-notty : test-prep
1076 set PERL_SKIP_TTY_TEST=1
1078 $(PERLEXE) -I..\lib harness
1082 -@erase miniperlmain$(o)
1084 -@erase perlglob$(o)
1085 -@erase perlmain$(o)
1093 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
1094 -@erase $(WIN32_OBJ)
1097 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1098 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1099 -@erase ..\x2p\*.exe ..\x2p\*.bat