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