Fix un-init variable leading to spurious "Out of Memory!"
[p5sagit/p5-mst-13.2.git] / win32 / Makefile
index fe1b1b1..295afc4 100644 (file)
@@ -31,7 +31,7 @@ INST_TOP      = $(INST_DRV)\perl
 # versioned installation can be obtained by setting INST_TOP above to a
 # path that includes an arbitrary version string.
 #
-INST_VER       = \5.7.0
+#INST_VER = \5.7.0
 
 #
 # Comment this out if you DON'T want your perl installation to have
@@ -42,33 +42,31 @@ INST_VER    = \5.7.0
 # the same location.  Commenting it out gives you a simpler
 # installation that is easier to understand for beginners.
 #
-INST_ARCH      = \$(ARCHNAME)
+#INST_ARCH = \$(ARCHNAME)
 
 #
 # uncomment to enable multiple interpreters.  This is need for fork()
 # emulation.
 #
-#USE_MULTI     = define
+USE_MULTI = define
 
 #
 # Beginnings of interpreter cloning/threads; still very incomplete.
 # This should be enabled to get the fork() emulation.  This needs
 # USE_MULTI as well.
 #
-#USE_ITHREADS  = define
+USE_ITHREADS = define
 
 #
 # uncomment to enable the implicit "host" layer for all system calls
 # made by perl.  This needs USE_MULTI above.  This is also needed to
 # get fork().
 #
-#USE_IMP_SYS   = define
+USE_IMP_SYS = define
 
 #
 # uncomment to enable the experimental PerlIO I/O subsystem.
-# This is currently incompatible with USE_MULTI, USE_ITHREADS,
-# and USE_IMP_SYS
-#USE_PERLIO    = define
+USE_PERLIO     = define
 
 #
 # WARNING! This option is deprecated and will eventually go away (enable
@@ -247,6 +245,10 @@ USE_ITHREADS       = undef
 USE_IMP_SYS    = undef
 !ENDIF
 
+!IF "$(USE_PERLIO)" == ""
+USE_PERLIO     = undef
+!ENDIF
+
 !IF "$(USE_PERLCRT)" == ""
 USE_PERLCRT    = undef
 !ENDIF
@@ -304,12 +306,6 @@ ARCHNAME   = $(ARCHNAME)-thread
 # VC 6.0 can load the socket dll on demand.  Makes the test suite
 # run in about 10% less time.
 DELAYLOAD      = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
-
-# VC 6.0 seems capable of compiling perl correctly with optimizations
-# enabled.  Anything earlier fails tests.
-!IF "$(CFG)" == ""
-CFG            = Optimize
-!ENDIF
 !ENDIF
 
 ARCHDIR                = ..\lib\$(ARCHNAME)
@@ -327,7 +323,7 @@ INST_LIB    = $(INST_TOP)$(INST_VER)\lib
 INST_ARCHLIB   = $(INST_LIB)$(INST_ARCH)
 INST_COREDIR   = $(INST_ARCHLIB)\CORE
 INST_POD       = $(INST_LIB)\pod
-INST_HTML      = $(INST_POD)\html
+INST_HTML      = $(INST_TOP)$(INST_VER)\html
 
 #
 # Programs to compile, build .lib files and link
@@ -366,13 +362,9 @@ OPTIMIZE   = -Od -MD -Zi -DDEBUGGING
 !  ENDIF
 LINK_DBG       = -debug -pdb:none
 !ELSE
-!  IF  "$(CFG)" == "Optimize"
 # -O1 yields smaller code, which turns out to be faster than -O2
 #OPTIMIZE      = -O2 -MD -DNDEBUG
 OPTIMIZE       = -O1 -MD -DNDEBUG
-!  ELSE
-OPTIMIZE       = -Od -MD -DNDEBUG
-!  ENDIF
 LINK_DBG       = -release
 !ENDIF
 
@@ -616,7 +608,7 @@ SETARGV_OBJ = setargv$(o)
 
 DYNAMIC_EXT    = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
                Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
-               Sys/Hostname Storable Filter/Util/Call Encode
+               Sys/Hostname Storable Filter/Util/Call Encode Digest/MD5
 STATIC_EXT     = DynaLoader
 NONXS_EXT      = Errno
 
@@ -641,6 +633,7 @@ HOSTNAME    = $(EXTDIR)\Sys\Hostname\Hostname
 STORABLE       = $(EXTDIR)\Storable\Storable
 FILTER         = $(EXTDIR)\Filter\Util\Call\Call
 ENCODE         = $(EXTDIR)\Encode\Encode
+MD5            = $(EXTDIR)\Digest\MD5\MD5
 
 SOCKET_DLL     = $(AUTODIR)\Socket\Socket.dll
 FCNTL_DLL      = $(AUTODIR)\Fcntl\Fcntl.dll
@@ -661,6 +654,7 @@ HOSTNAME_DLL        = $(AUTODIR)\Sys\Hostname\Hostname.dll
 STORABLE_DLL   = $(AUTODIR)\Storable\Storable.dll
 FILTER_DLL     = $(AUTODIR)\Filter\Util\Call\Call.dll
 ENCODE_DLL     = $(AUTODIR)\Encode\Encode.dll
+MD5_DLL                = $(AUTODIR)\Digest\MD5\MD5.dll
 
 ERRNO_PM       = $(LIBDIR)\Errno.pm
 
@@ -683,7 +677,8 @@ EXTENSION_C =               \
                $(HOSTNAME).c   \
                $(STORABLE).c   \
                $(FILTER).c     \
-               $(ENCODE).c     
+               $(ENCODE).c     \
+               $(MD5).c        
 
 EXTENSION_DLL  =               \
                $(SOCKET_DLL)   \
@@ -704,7 +699,8 @@ EXTENSION_DLL       =               \
                $(HOSTNAME_DLL) \
                $(STORABLE_DLL) \
                $(FILTER_DLL)   \
-               $(ENCODE_DLL)
+               $(ENCODE_DLL)   \
+               $(MD5_DLL)
 
 EXTENSION_PM   =               \
                $(ERRNO_PM)
@@ -739,6 +735,7 @@ CFG_VARS    =                                       \
                "useithreads=$(USE_ITHREADS)"           \
                "usethreads=$(USE_5005THREADS)"         \
                "usemultiplicity=$(USE_MULTI)"          \
+               "useperlio=$(USE_PERLIO)"               \
                "LINK_FLAGS=$(LINK_FLAGS:"=\")"         \
                "optimize=$(OPTIMIZE:"=\")"
 
@@ -987,12 +984,6 @@ $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
        $(MAKE)
        cd ..\..\win32
 
-$(ENCODE_DLL): $(PERLEXE) $(ENCODE).xs
-       cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
-       $(MAKE)
-       cd ..\..\win32
-
 $(STORABLE_DLL): $(PERLEXE) $(STORABLE).xs
        cd $(EXTDIR)\$(*B)
        ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
@@ -1011,6 +1002,12 @@ $(ENCODE_DLL): $(PERLEXE) $(ENCODE).xs
        $(MAKE)
        cd ..\..\win32
 
+$(MD5_DLL): $(PERLEXE) $(MD5).xs
+       cd $(EXTDIR)\$(*B)
+       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       $(MAKE)
+       cd ..\..\win32
+
 $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
        cd $(EXTDIR)\$(*B)
        ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
@@ -1026,13 +1023,20 @@ utils: $(PERLEXE) $(X2P)
        cd ..\utils
        $(MAKE) PERL=$(MINIPERL)
        cd ..\pod
+       copy ..\README.aix .\perlaix.pod
        copy ..\README.amiga .\perlamiga.pod
        copy ..\README.cygwin .\perlcygwin.pod
        copy ..\README.dos .\perldos.pod
+       copy ..\README.epoc .\perlepoc.pod
        copy ..\README.hpux .\perlhpux.pod
        copy ..\README.machten .\perlmachten.pod
        copy ..\README.os2 .\perlos2.pod
+       copy ..\README.os390 .\perlos390.pod
+       copy ..\README.vmesa .\perlvmesa.pod
+       copy ..\README.bs2000 .\perlbs2000.pod
+       copy ..\README.solaris .\perlsolaris.pod
        copy ..\vms\perlvms.pod .\perlvms.pod
+       copy ..\README.vos .\perlvos.pod
        copy ..\README.win32 .\perlwin32.pod
        $(MAKE) -f ..\win32\pod.mak converters
        cd ..\lib
@@ -1058,6 +1062,7 @@ distclean: clean
        -del /f $(LIBDIR)\File\Glob.pm
        -del /f $(LIBDIR)\Storable.pm
        -del /f $(LIBDIR)\Filter\Util\Call\Call.pm
+       -del /f $(LIBDIR)\Digest\MD5.pm
        -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
        -rmdir /s $(LIBDIR)\IO
        -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
@@ -1068,6 +1073,8 @@ distclean: clean
        -rmdir /s $(LIBDIR)\Data
        -if exist $(LIBDIR)\Filter\Util\Call rmdir /s /q $(LIBDIR)\Filter\Util\Call
        -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util
+       -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
+       -rmdir /s $(LIBDIR)\Digest
        -del /f $(PODDIR)\*.html
        -del /f $(PODDIR)\*.bat
        cd ..\utils