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