2
# VCw32lib.pl - the file for Visual C++ 4.[01] for windows NT, static libraries
9
$cp='copy nul+'; # Timestamps get stuffed otherwise
14
$cflags=' /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32';
15
$lflags="/nologo /subsystem:console /machine:I386 /opt:ref";
24
$cflags=" /MDd /W3 /WX /Zi /Yd /Od /nologo -DOPENSSL_SYSNAME_WIN32 -D_DEBUG -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DDEBUG -DDSO_WIN32";
28
$cflags .= " -DOPENSSL_SYSNAME_WINNT" if $NT == 1;
39
else { $ex_libs="wsock32.lib user32.lib gdi32.lib"; }
41
# static library stuff
46
$shlibp=($shlib)?".dll":".lib";
50
$app_ex_obj="setargv.obj";
52
$asm='nasmw -f win32';
55
$asm='ml /Cp /coff /c /Cx';
56
$asm.=" /Zi" if $debug;
69
$bn_asm_obj='crypto\bn\asm\bn_win32.obj';
70
$bn_asm_src='crypto\bn\asm\bn_win32.asm';
71
$des_enc_obj='crypto\des\asm\d_win32.obj crypto\des\asm\y_win32.obj';
72
$des_enc_src='crypto\des\asm\d_win32.asm crypto\des\asm\y_win32.asm';
73
$bf_enc_obj='crypto\bf\asm\b_win32.obj';
74
$bf_enc_src='crypto\bf\asm\b_win32.asm';
75
$cast_enc_obj='crypto\cast\asm\c_win32.obj';
76
$cast_enc_src='crypto\cast\asm\c_win32.asm';
77
$rc4_enc_obj='crypto\rc4\asm\r4_win32.obj';
78
$rc4_enc_src='crypto\rc4\asm\r4_win32.asm';
79
$rc5_enc_obj='crypto\rc5\asm\r5_win32.obj';
80
$rc5_enc_src='crypto\rc5\asm\r5_win32.asm';
81
$md5_asm_obj='crypto\md5\asm\m5_win32.obj';
82
$md5_asm_src='crypto\md5\asm\m5_win32.asm';
83
$sha1_asm_obj='crypto\sha\asm\s1_win32.obj';
84
$sha1_asm_src='crypto\sha\asm\s1_win32.asm';
85
$rmd160_asm_obj='crypto\ripemd\asm\rm_win32.obj';
86
$rmd160_asm_src='crypto\ripemd\asm\rm_win32.asm';
87
$cflags.=" -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM";
92
$mlflags.=" $lflags /dll";
93
# $cflags =~ s| /MD| /MT|;
94
$lib_cflag=" -D_WINDLL";
99
$cflags.=" /Fd$out_def";
103
local($objs,$target,$name,$shlib)=@_;
106
$taget =~ s/\//$o/g if $o ne '/';
107
($Name=$name) =~ tr/a-z/A-Z/;
109
# $target="\$(LIB_D)$o$target";
110
$ret.="$target: $objs\n";
113
# $ret.="\t\$(RM) \$(O_$Name)\n";
114
$ex =' advapi32.lib';
115
$ret.="\t\$(MKLIB) $lfile$target @<<\n $objs $ex\n<<\n";
119
local($ex)=($target =~ /O_SSL/)?' $(L_CRYPTO)':'';
120
$ex.=' wsock32.lib gdi32.lib advapi32.lib';
121
$ret.="\t\$(LINK) \$(MLFLAGS) $efile$target /def:ms/${Name}.def @<<\n \$(SHLIB_EX_OBJ) $objs $ex\n<<\n";
129
local($target,$files,$dep_libs,$libs)=@_;
132
$file =~ s/\//$o/g if $o ne '/';
134
$ret.="$target: $files $dep_libs\n";
135
$ret.=" \$(LINK) \$(LFLAGS) $efile$target @<<\n";
136
$ret.=" \$(APP_EX_OBJ) $files $libs\n<<\n\n";