summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/pl/VC-32.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/pl/VC-32.pl')
-rw-r--r--src/lib/libcrypto/util/pl/VC-32.pl33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/lib/libcrypto/util/pl/VC-32.pl b/src/lib/libcrypto/util/pl/VC-32.pl
index 701e282c33..6db1c9fe23 100644
--- a/src/lib/libcrypto/util/pl/VC-32.pl
+++ b/src/lib/libcrypto/util/pl/VC-32.pl
@@ -1,4 +1,4 @@
1#!/usr/bin/perl 1#!/usr/local/bin/perl
2# VCw32lib.pl - the file for Visual C++ 4.[01] for windows NT, static libraries 2# VCw32lib.pl - the file for Visual C++ 4.[01] for windows NT, static libraries
3# 3#
4 4
@@ -7,7 +7,7 @@ $crypto="libeay32";
7$RSAref="RSAref32"; 7$RSAref="RSAref32";
8 8
9$o='\\'; 9$o='\\';
10$cp='copy'; 10$cp='copy nul+'; # Timestamps get stuffed otherwise
11$rm='del'; 11$rm='del';
12 12
13# C compiler stuff 13# C compiler stuff
@@ -22,10 +22,11 @@ $inc_def="inc32";
22 22
23if ($debug) 23if ($debug)
24 { 24 {
25 $cflags=" /MDd /W3 /WX /Zi /Yd /Od /nologo -DWINDOWS -DWIN32 -D_DEBUG -DL_ENDIAN"; 25 $cflags=" /MDd /W3 /WX /Zi /Yd /Od /nologo -DWINDOWS -DWIN32 -D_DEBUG -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DDEBUG";
26 $lflags.=" /debug"; 26 $lflags.=" /debug";
27 $mlflags.=' /debug'; 27 $mlflags.=' /debug';
28 } 28 }
29$cflags .= " -DWINNT" if $NT == 1;
29 30
30$obj='.obj'; 31$obj='.obj';
31$ofile="/Fo"; 32$ofile="/Fo";
@@ -48,13 +49,17 @@ $lfile='/out:';
48 49
49$shlib_ex_obj=""; 50$shlib_ex_obj="";
50$app_ex_obj="setargv.obj"; 51$app_ex_obj="setargv.obj";
51 52if ($nasm) {
52$asm='ml /Cp /coff /c /Cx'; 53 $asm='nasmw -f win32';
53$asm.=" /Zi" if $debug; 54 $afile='-o ';
54$afile='/Fo'; 55} else {
55 56 $asm='ml /Cp /coff /c /Cx';
56$bn_mulw_obj=''; 57 $asm.=" /Zi" if $debug;
57$bn_mulw_src=''; 58 $afile='/Fo';
59}
60
61$bn_asm_obj='';
62$bn_asm_src='';
58$des_enc_obj=''; 63$des_enc_obj='';
59$des_enc_src=''; 64$des_enc_src='';
60$bf_enc_obj=''; 65$bf_enc_obj='';
@@ -62,8 +67,8 @@ $bf_enc_src='';
62 67
63if (!$no_asm) 68if (!$no_asm)
64 { 69 {
65 $bn_mulw_obj='crypto\bn\asm\bn-win32.obj'; 70 $bn_asm_obj='crypto\bn\asm\bn-win32.obj';
66 $bn_mulw_src='crypto\bn\asm\bn-win32.asm'; 71 $bn_asm_src='crypto\bn\asm\bn-win32.asm';
67 $des_enc_obj='crypto\des\asm\d-win32.obj crypto\des\asm\y-win32.obj'; 72 $des_enc_obj='crypto\des\asm\d-win32.obj crypto\des\asm\y-win32.obj';
68 $des_enc_src='crypto\des\asm\d-win32.asm crypto\des\asm\y-win32.asm'; 73 $des_enc_src='crypto\des\asm\d-win32.asm crypto\des\asm\y-win32.asm';
69 $bf_enc_obj='crypto\bf\asm\b-win32.obj'; 74 $bf_enc_obj='crypto\bf\asm\b-win32.obj';
@@ -92,6 +97,8 @@ if ($shlib)
92 $tmp_def="tmp32dll"; 97 $tmp_def="tmp32dll";
93 } 98 }
94 99
100$cflags.=" /Fd$out_def";
101
95sub do_lib_rule 102sub do_lib_rule
96 { 103 {
97 local($objs,$target,$name,$shlib)=@_; 104 local($objs,$target,$name,$shlib)=@_;
@@ -110,7 +117,7 @@ sub do_lib_rule
110 else 117 else
111 { 118 {
112 local($ex)=($target =~ /O_SSL/)?' $(L_CRYPTO)':''; 119 local($ex)=($target =~ /O_SSL/)?' $(L_CRYPTO)':'';
113 $ex.=' wsock32.lib gdi32.lib'; 120 $ex.=' wsock32.lib gdi32.lib advapi32.lib';
114 $ret.="\t\$(LINK) \$(MLFLAGS) $efile$target /def:ms/${Name}.def @<<\n \$(SHLIB_EX_OBJ) $objs $ex\n<<\n"; 121 $ret.="\t\$(LINK) \$(MLFLAGS) $efile$target /def:ms/${Name}.def @<<\n \$(SHLIB_EX_OBJ) $objs $ex\n<<\n";
115 } 122 }
116 $ret.="\n"; 123 $ret.="\n";