]> git.ipfire.org Git - thirdparty/openssl.git/blame - ms/mingw32.bat
Workaround for tlhelp32.h: place the missing header file in outinc
[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
15perl x86.pl gaswin > bn-win32.s\r
16cd ..\..\..\r
17\r
18echo DES\r
19cd crypto\des\asm\r
20perl des-586.pl gaswin > d-win32.s\r
21cd ..\..\..\r
22\r
23echo crypt\r
24cd crypto\des\asm\r
25perl crypt586.pl gaswin > y-win32.s\r
26cd ..\..\..\r
27\r
28echo Blowfish\r
29cd crypto\bf\asm\r
30perl bf-586.pl gaswin > b-win32.s\r
31cd ..\..\..\r
32\r
33echo CAST5\r
34cd crypto\cast\asm\r
35perl cast-586.pl gaswin > c-win32.s\r
36cd ..\..\..\r
37\r
38echo RC4\r
39cd crypto\rc4\asm\r
40perl rc4-586.pl gaswin > r4-win32.s\r
41cd ..\..\..\r
42\r
43echo MD5\r
44cd crypto\md5\asm\r
45perl md5-586.pl gaswin > m5-win32.s\r
46cd ..\..\..\r
47\r
48echo SHA1\r
49cd crypto\sha\asm\r
50perl sha1-586.pl gaswin > s1-win32.s\r
51cd ..\..\..\r
52\r
53echo RIPEMD160\r
54cd crypto\ripemd\asm\r
55perl rmd-586.pl gaswin > rm-win32.s\r
56cd ..\..\..\r
57\r
58echo RC5\32\r
59cd crypto\rc5\asm\r
60perl rc5-586.pl gaswin > r5-win32.s\r
61cd ..\..\..\r
62\r
9f06706b
UM
63:noasm\r
64\r
65echo Generating makefile\r
2da0c119
UM
66perl util\mkfiles.pl >MINFO\r
67perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak\r
68perl util\mk1mf.pl gaswin Mingw32-files >ms\mingw32f.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
9f06706b 75rem Create files -- this can be skipped if using the GNU file utilities\r
2da0c119
UM
76make -f ms/mingw32f.mak\r
77echo You can ignore the error messages above\r
78\r
bb28bcdf
UM
79copy ms\tlhelp32.h outinc\r
80\r
9f06706b 81echo Building the libraries\r
2da0c119
UM
82make -f ms/mingw32a.mak\r
83if errorlevel 1 goto end\r
84\r
9f06706b 85echo Generating the DLLs and input libraries\r
2da0c119
UM
86dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32\r
87if errorlevel 1 goto end\r
88dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a\r
89if errorlevel 1 goto end\r
90\r
91echo Done compiling OpenSSL\r
92\r
93:end\r
94\r