etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / openssl / dist / os2 / OS2-EMX.cmd
blob5924b50b6d018d412a5f7173881fc5bed9e8ed0d
1 @echo off
3 perl Configure OS2-EMX
4 perl util\mkfiles.pl > MINFO
6 @rem create make file
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
16 echo Bignum
17 cd crypto\bn\asm
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
21 cd ..\..\..
23 echo DES
24 cd crypto\des\asm
25 perl des-586.pl a.out > d-os2.asm
26 cd ..\..\..
28 echo crypt(3)
29 cd crypto\des\asm
30 perl crypt586.pl a.out > y-os2.asm
31 cd ..\..\..
33 echo Blowfish
34 cd crypto\bf\asm
35 perl bf-586.pl a.out > b-os2.asm
36 cd ..\..\..
38 echo CAST5
39 cd crypto\cast\asm
40 perl cast-586.pl a.out > c-os2.asm
41 cd ..\..\..
43 echo RC4
44 cd crypto\rc4\asm
45 perl rc4-586.pl a.out > r4-os2.asm
46 cd ..\..\..
48 echo MD5
49 cd crypto\md5\asm
50 perl md5-586.pl a.out > m5-os2.asm
51 cd ..\..\..
53 echo SHA1
54 cd crypto\sha\asm
55 perl sha1-586.pl a.out > s1-os2.asm
56 cd ..\..\..
58 echo RIPEMD160
59 cd crypto\ripemd\asm
60 perl rmd-586.pl a.out > rm-os2.asm
61 cd ..\..\..
63 echo RC5\32
64 cd crypto\rc5\asm
65 perl rc5-586.pl a.out > r5-os2.asm
66 cd ..\..\..
68 cd os2
70 if exist noname\backward_ssl.def goto nomkdir
71 mkdir noname
72 :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:
80 echo crypto.dll
81 gcc -Zomf -Zdll -Zcrtdll -o crypto.dll backward_crypto.def 2>&1 | grep -v L4085
82 echo ssl.dll
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
89 echo noname\ssl.dll
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
95 cd ..
97 echo Now run:
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