4 perl util\mkfiles.pl
> MINFO
7 perl util\mk1mf.pl OS2
-EMX
> OS2
-EMX.mak
8 perl util\mk1mf.pl dll OS2
-EMX
> OS2
-EMX
-DLL.mak
10 echo Generating export definition
files
11 perl util\mkdef.pl crypto OS2
> os2\crypto.def
12 perl util\mkdef.pl ssl OS2
> os2\ssl.def
14 echo Generating x86
for GNU assember
18 rem perl x86.pl a.out > bn-os2.asm
19 perl bn
-586.pl a.out
> bn
-os2.asm
20 perl co
-586.pl a.out
> co
-os2.asm
25 perl des
-586.pl a.out
> d
-os2.asm
30 perl crypt586.pl a.out
> y
-os2.asm
35 perl bf
-586.pl a.out
> b
-os2.asm
40 perl cast
-586.pl a.out
> c
-os2.asm
45 perl rc4
-586.pl a.out
> r4
-os2.asm
50 perl md5
-586.pl a.out
> m5
-os2.asm
55 perl sha1
-586.pl a.out
> s1
-os2.asm
60 perl rmd
-586.pl a.out
> rm
-os2.asm
65 perl rc5
-586.pl a.out
> r5
-os2.asm
70 if exist noname
\backward_ssl.def
goto nomkdir
74 perl backwardify.pl crypto.def
>backward_crypto.def
75 perl backwardify.pl ssl.def
>backward_ssl.def
76 perl backwardify.pl
-noname crypto.def
>noname
\backward_crypto.def
77 perl backwardify.pl
-noname ssl.def
>noname
\backward_ssl.def
79 echo Creating backward compatibility forwarder dlls
:
81 gcc
-Zomf
-Zdll
-Zcrtdll
-o crypto.dll backward_crypto.def
2>&1 | grep
-v L4085
83 gcc
-Zomf
-Zdll
-Zcrtdll
-o ssl.dll backward_ssl.def
2>&1 | grep
-v L4085
85 echo Creating smaller backward compatibility forwarder dlls
:
86 echo These DLLs are
not good
for runtime resolution of symbols.
87 echo noname\crypto.dll
88 gcc
-Zomf
-Zdll
-Zcrtdll
-o noname
/crypto.dll noname
/backward_crypto.def
2>&1 | grep
-v L4085
90 gcc
-Zomf
-Zdll
-Zcrtdll
-o noname
/ssl.dll noname
/backward_ssl.def
2>&1 | grep
-v L4085
92 echo Compressing forwarders
(it is ok
if lxlite is
not found
):
93 lxlite
*.dll noname
/*.dll
98 echo For static build
:
99 echo make
-f OS2
-EMX.mak
100 echo For dynamic build
:
101 echo make
-f OS2
-EMX
-DLL.mak
102 echo then rename crypto.dll to cryptssl.dll
, ssl.dll to open_ssl.dll