summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-15 04:59:47 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-15 04:59:47 +0000
commita1dd93259a6bf8541f88c948d6f510cc5090ff8e (patch)
tree2e76c37923a54847a36472b8857a12a6427702da /win32
parent55d729e4e15089064cd25ed6dce2c105389f3837 (diff)
downloadperl-a1dd93259a6bf8541f88c948d6f510cc5090ff8e.tar.gz
[win32] tweaks to win32 makefiles. This version builds and passes all
tests on Solaris/gcc, win32/[bv]c. Looks all set to go. p4raw-id: //depot/win32/perl@979
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile15
-rw-r--r--win32/makefile.mk13
2 files changed, 24 insertions, 4 deletions
diff --git a/win32/Makefile b/win32/Makefile
index 4a518fbbd7..d860a3c1a7 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -25,12 +25,14 @@ INST_TOP = $(INST_DRV)\perl5004.5x
#
# if you have the source for des_fcrypt(), uncomment this and make sure the
-# file exists (see README.win32)
+# file exists (see README.win32). File should be located at the perl
+# top level directory.
#CRYPT_SRC = des_fcrypt.c
#
# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
# library, uncomment this, and make sure the library exists (see README.win32)
+# Specify the full pathname of the library.
#CRYPT_LIB = des_fcrypt.lib
#
@@ -254,7 +256,9 @@ CORE_SRC = \
..\universal.c \
..\util.c
-CORE_SRC = $(CORE_SRC) $(CRYPT_SRC)
+!IF "$(CRYPT_SRC)" != ""
+CORE_SRC = $(CORE_SRC) ..\$(CRYPT_SRC)
+!ENDIF
!IF "$(PERL_MALLOC)" == "define"
CORE_SRC = $(CORE_SRC) ..\malloc.c
@@ -277,6 +281,10 @@ PERL95_SRC = \
win32mt.c \
win32sckmt.c
+!IF "$(CRYPT_SRC)" != ""
+PERL95_SRC = $(PERL95_SRC) ..\$(CRYPT_SRC)
+!ENDIF
+
DLL_SRC = $(DYNALOADER).c
@@ -550,6 +558,9 @@ $(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
if not exist $(AUTODIR) mkdir $(AUTODIR)
+ cd $(EXTDIR)\$(*B)
+ ..\$(MINIPERL) -I..\..\lib $(*B).pm.PL
+ cd ..\..\win32
$(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
cd $(EXTDIR)\$(*B)
$(XSUBPP) dl_win32.xs > $(*B).c
diff --git a/win32/makefile.mk b/win32/makefile.mk
index 17dda74c73..e77713ce68 100644
--- a/win32/makefile.mk
+++ b/win32/makefile.mk
@@ -32,12 +32,14 @@ CCTYPE *= BORLAND
#
# if you have the source for des_fcrypt(), uncomment this and make sure the
-# file exists (see README.win32)
+# file exists (see README.win32). File should be located at the perl
+# top level directory.
#CRYPT_SRC *= des_fcrypt.c
#
# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
# library, uncomment this, and make sure the library exists (see README.win32)
+# Specify the full pathname of the library.
#CRYPT_LIB *= des_fcrypt.lib
#
@@ -362,7 +364,9 @@ CORE_SRC = \
..\universal.c \
..\util.c
-CORE_SRC += $(CRYPT_SRC)
+.IF "$(CRYPT_SRC)" != ""
+CORE_SRC += ..\$(CRYPT_SRC)
+.ENDIF
.IF "$(PERL_MALLOC)" == "define"
CORE_SRC += ..\malloc.c
@@ -385,6 +389,10 @@ PERL95_SRC = \
win32mt.c \
win32sckmt.c
+.IF "$(CRYPT_SRC)" != ""
+PERL95_SRC += ..\$(CRYPT_SRC)
+.ENDIF
+
DLL_SRC = $(DYNALOADER).c
@@ -727,6 +735,7 @@ $(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
if not exist $(AUTODIR) mkdir $(AUTODIR)
+ cd $(EXTDIR)\$(*B) && ..\$(MINIPERL) -I..\..\lib $(*B).pm.PL
$(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
$(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .