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