1 @rem OpenSSL with Mingw32
\r
2 @rem --------------------
\r
5 perl util\mkfiles.pl >MINFO
\r
6 perl util\mk1mf.pl Mingw32 >ms\mingw32.mak
\r
7 perl util\mk1mf.pl Mingw32-files >ms\mingw32f.mak
\r
8 @rem DLL definition files
\r
9 perl util\mkdef.pl 32 libeay >ms\libeay32.def
\r
10 if errorlevel 1 goto end
\r
11 perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
\r
12 if errorlevel 1 goto end
\r
14 @rem Create files -- this can be skipped if using the GNU file utilities
\r
15 make -f ms/mingw32f.mak
\r
16 echo You can ignore the error messages above
\r
18 @rem Build the libraries
\r
19 make -f ms/mingw32.mak
\r
20 if errorlevel 1 goto end
\r
22 @rem Generate the DLLs and input libraries
\r
23 dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
\r
24 if errorlevel 1 goto end
\r
25 dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
\r
26 if errorlevel 1 goto end
\r
28 echo Done compiling OpenSSL
\r