xref: /minix3/crypto/external/bsd/openssl/dist/os2/OS2-EMX.cmd (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc@echo off
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambucperl Configure OS2-EMX
4*ebfedea0SLionel Sambucperl util\mkfiles.pl > MINFO
5*ebfedea0SLionel Sambuc
6*ebfedea0SLionel Sambuc@rem create make file
7*ebfedea0SLionel Sambucperl util\mk1mf.pl OS2-EMX > OS2-EMX.mak
8*ebfedea0SLionel Sambucperl util\mk1mf.pl dll OS2-EMX > OS2-EMX-DLL.mak
9*ebfedea0SLionel Sambuc
10*ebfedea0SLionel Sambucecho Generating export definition files
11*ebfedea0SLionel Sambucperl util\mkdef.pl crypto OS2 > os2\crypto.def
12*ebfedea0SLionel Sambucperl util\mkdef.pl ssl OS2 > os2\ssl.def
13*ebfedea0SLionel Sambuc
14*ebfedea0SLionel Sambucecho Generating x86 for GNU assember
15*ebfedea0SLionel Sambuc
16*ebfedea0SLionel Sambucecho Bignum
17*ebfedea0SLionel Sambuccd crypto\bn\asm
18*ebfedea0SLionel Sambucrem perl x86.pl a.out > bn-os2.asm
19*ebfedea0SLionel Sambucperl bn-586.pl a.out > bn-os2.asm
20*ebfedea0SLionel Sambucperl co-586.pl a.out > co-os2.asm
21*ebfedea0SLionel Sambuccd ..\..\..
22*ebfedea0SLionel Sambuc
23*ebfedea0SLionel Sambucecho DES
24*ebfedea0SLionel Sambuccd crypto\des\asm
25*ebfedea0SLionel Sambucperl des-586.pl a.out > d-os2.asm
26*ebfedea0SLionel Sambuccd ..\..\..
27*ebfedea0SLionel Sambuc
28*ebfedea0SLionel Sambucecho crypt(3)
29*ebfedea0SLionel Sambuccd crypto\des\asm
30*ebfedea0SLionel Sambucperl crypt586.pl a.out > y-os2.asm
31*ebfedea0SLionel Sambuccd ..\..\..
32*ebfedea0SLionel Sambuc
33*ebfedea0SLionel Sambucecho Blowfish
34*ebfedea0SLionel Sambuccd crypto\bf\asm
35*ebfedea0SLionel Sambucperl bf-586.pl a.out > b-os2.asm
36*ebfedea0SLionel Sambuccd ..\..\..
37*ebfedea0SLionel Sambuc
38*ebfedea0SLionel Sambucecho CAST5
39*ebfedea0SLionel Sambuccd crypto\cast\asm
40*ebfedea0SLionel Sambucperl cast-586.pl a.out > c-os2.asm
41*ebfedea0SLionel Sambuccd ..\..\..
42*ebfedea0SLionel Sambuc
43*ebfedea0SLionel Sambucecho RC4
44*ebfedea0SLionel Sambuccd crypto\rc4\asm
45*ebfedea0SLionel Sambucperl rc4-586.pl a.out > r4-os2.asm
46*ebfedea0SLionel Sambuccd ..\..\..
47*ebfedea0SLionel Sambuc
48*ebfedea0SLionel Sambucecho MD5
49*ebfedea0SLionel Sambuccd crypto\md5\asm
50*ebfedea0SLionel Sambucperl md5-586.pl a.out > m5-os2.asm
51*ebfedea0SLionel Sambuccd ..\..\..
52*ebfedea0SLionel Sambuc
53*ebfedea0SLionel Sambucecho SHA1
54*ebfedea0SLionel Sambuccd crypto\sha\asm
55*ebfedea0SLionel Sambucperl sha1-586.pl a.out > s1-os2.asm
56*ebfedea0SLionel Sambuccd ..\..\..
57*ebfedea0SLionel Sambuc
58*ebfedea0SLionel Sambucecho RIPEMD160
59*ebfedea0SLionel Sambuccd crypto\ripemd\asm
60*ebfedea0SLionel Sambucperl rmd-586.pl a.out > rm-os2.asm
61*ebfedea0SLionel Sambuccd ..\..\..
62*ebfedea0SLionel Sambuc
63*ebfedea0SLionel Sambucecho RC5\32
64*ebfedea0SLionel Sambuccd crypto\rc5\asm
65*ebfedea0SLionel Sambucperl rc5-586.pl a.out > r5-os2.asm
66*ebfedea0SLionel Sambuccd ..\..\..
67*ebfedea0SLionel Sambuc
68*ebfedea0SLionel Sambuccd os2
69*ebfedea0SLionel Sambuc
70*ebfedea0SLionel Sambucif exist noname\backward_ssl.def goto nomkdir
71*ebfedea0SLionel Sambucmkdir noname
72*ebfedea0SLionel Sambuc:nomkdir
73*ebfedea0SLionel Sambuc
74*ebfedea0SLionel Sambucperl backwardify.pl		crypto.def	>backward_crypto.def
75*ebfedea0SLionel Sambucperl backwardify.pl		ssl.def		>backward_ssl.def
76*ebfedea0SLionel Sambucperl backwardify.pl -noname	crypto.def	>noname\backward_crypto.def
77*ebfedea0SLionel Sambucperl backwardify.pl -noname	ssl.def		>noname\backward_ssl.def
78*ebfedea0SLionel Sambuc
79*ebfedea0SLionel Sambucecho Creating backward compatibility forwarder dlls:
80*ebfedea0SLionel Sambucecho  crypto.dll
81*ebfedea0SLionel Sambucgcc -Zomf -Zdll -Zcrtdll -o crypto.dll backward_crypto.def 2>&1 | grep -v L4085
82*ebfedea0SLionel Sambucecho  ssl.dll
83*ebfedea0SLionel Sambucgcc -Zomf -Zdll -Zcrtdll -o ssl.dll backward_ssl.def 2>&1 | grep -v L4085
84*ebfedea0SLionel Sambuc
85*ebfedea0SLionel Sambucecho Creating smaller backward compatibility forwarder dlls:
86*ebfedea0SLionel Sambucecho These DLLs are not good for runtime resolution of symbols.
87*ebfedea0SLionel Sambucecho  noname\crypto.dll
88*ebfedea0SLionel Sambucgcc -Zomf -Zdll -Zcrtdll -o noname/crypto.dll noname/backward_crypto.def 2>&1 | grep -v L4085
89*ebfedea0SLionel Sambucecho  noname\ssl.dll
90*ebfedea0SLionel Sambucgcc -Zomf -Zdll -Zcrtdll -o noname/ssl.dll noname/backward_ssl.def 2>&1 | grep -v L4085
91*ebfedea0SLionel Sambuc
92*ebfedea0SLionel Sambucecho Compressing forwarders (it is ok if lxlite is not found):
93*ebfedea0SLionel Sambuclxlite *.dll noname/*.dll
94*ebfedea0SLionel Sambuc
95*ebfedea0SLionel Sambuccd ..
96*ebfedea0SLionel Sambuc
97*ebfedea0SLionel Sambucecho Now run:
98*ebfedea0SLionel Sambucecho For static build:
99*ebfedea0SLionel Sambucecho  make -f OS2-EMX.mak
100*ebfedea0SLionel Sambucecho For dynamic build:
101*ebfedea0SLionel Sambucecho  make -f OS2-EMX-DLL.mak
102*ebfedea0SLionel Sambucecho then rename crypto.dll to cryptssl.dll, ssl.dll to open_ssl.dll
103