]>
Commit | Line | Data |
---|---|---|
2da0c119 UM |
1 | @rem OpenSSL with Mingw32+GNU as\r |
2 | @rem ---------------------------\r | |
3 | \r | |
4 | perl Configure Mingw32 %1 %2 %3 %4 %5 %6 %7 %8\r | |
5 | \r | |
6 | @echo off\r | |
9f06706b UM |
7 | \r |
8 | perl -e "exit 1 if '%1' eq 'no-asm'"\r | |
9 | if errorlevel 1 goto noasm\r | |
10 | \r | |
2da0c119 UM |
11 | echo Generating x86 for GNU assember\r |
12 | \r | |
13 | echo Bignum\r | |
14 | cd crypto\bn\asm\r | |
b89670ef DSH |
15 | perl bn-586.pl gaswin > bn-win32.s\r |
16 | perl co-586.pl gaswin > co-win32.s\r | |
2da0c119 UM |
17 | cd ..\..\..\r |
18 | \r | |
19 | echo DES\r | |
20 | cd crypto\des\asm\r | |
21 | perl des-586.pl gaswin > d-win32.s\r | |
22 | cd ..\..\..\r | |
23 | \r | |
24 | echo crypt\r | |
25 | cd crypto\des\asm\r | |
26 | perl crypt586.pl gaswin > y-win32.s\r | |
27 | cd ..\..\..\r | |
28 | \r | |
29 | echo Blowfish\r | |
30 | cd crypto\bf\asm\r | |
31 | perl bf-586.pl gaswin > b-win32.s\r | |
32 | cd ..\..\..\r | |
33 | \r | |
34 | echo CAST5\r | |
35 | cd crypto\cast\asm\r | |
36 | perl cast-586.pl gaswin > c-win32.s\r | |
37 | cd ..\..\..\r | |
38 | \r | |
39 | echo RC4\r | |
40 | cd crypto\rc4\asm\r | |
41 | perl rc4-586.pl gaswin > r4-win32.s\r | |
42 | cd ..\..\..\r | |
43 | \r | |
44 | echo MD5\r | |
45 | cd crypto\md5\asm\r | |
46 | perl md5-586.pl gaswin > m5-win32.s\r | |
47 | cd ..\..\..\r | |
48 | \r | |
49 | echo SHA1\r | |
50 | cd crypto\sha\asm\r | |
51 | perl sha1-586.pl gaswin > s1-win32.s\r | |
52 | cd ..\..\..\r | |
53 | \r | |
54 | echo RIPEMD160\r | |
55 | cd crypto\ripemd\asm\r | |
56 | perl rmd-586.pl gaswin > rm-win32.s\r | |
57 | cd ..\..\..\r | |
58 | \r | |
59 | echo RC5\32\r | |
60 | cd crypto\rc5\asm\r | |
61 | perl rc5-586.pl gaswin > r5-win32.s\r | |
62 | cd ..\..\..\r | |
63 | \r | |
9f06706b UM |
64 | :noasm\r |
65 | \r | |
66 | echo Generating makefile\r | |
2da0c119 UM |
67 | perl util\mkfiles.pl >MINFO\r |
68 | perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak\r | |
9f06706b | 69 | echo Generating DLL definition files\r |
2da0c119 UM |
70 | perl util\mkdef.pl 32 libeay >ms\libeay32.def\r |
71 | if errorlevel 1 goto end\r | |
72 | perl util\mkdef.pl 32 ssleay >ms\ssleay32.def\r | |
73 | if errorlevel 1 goto end\r | |
74 | \r | |
0214893e | 75 | rem copy ms\tlhelp32.h outinc\r |
bb28bcdf | 76 | \r |
9f06706b | 77 | echo Building the libraries\r |
0214893e | 78 | mingw32-make -f ms/mingw32a.mak\r |
2da0c119 UM |
79 | if errorlevel 1 goto end\r |
80 | \r | |
9f06706b | 81 | echo Generating the DLLs and input libraries\r |
2da0c119 UM |
82 | dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32\r |
83 | if errorlevel 1 goto end\r | |
84 | dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a\r | |
85 | if errorlevel 1 goto end\r | |
86 | \r | |
87 | echo Done compiling OpenSSL\r | |
88 | \r | |
89 | :end\r | |
90 | \r |