1 @rem OpenSSL with Mingw32+GNU as
\r
2 @rem ---------------------------
\r
4 perl Configure Mingw32 %1 %2 %3 %4 %5 %6 %7 %8
\r
7 echo Generating x86 for GNU assember
\r
11 perl x86.pl gaswin > bn-win32.s
\r
16 perl des-586.pl gaswin > d-win32.s
\r
21 perl crypt586.pl gaswin > y-win32.s
\r
26 perl bf-586.pl gaswin > b-win32.s
\r
31 perl cast-586.pl gaswin > c-win32.s
\r
36 perl rc4-586.pl gaswin > r4-win32.s
\r
41 perl md5-586.pl gaswin > m5-win32.s
\r
46 perl sha1-586.pl gaswin > s1-win32.s
\r
50 cd crypto\ripemd\asm
\r
51 perl rmd-586.pl gaswin > rm-win32.s
\r
56 perl rc5-586.pl gaswin > r5-win32.s
\r
60 perl util\mkfiles.pl >MINFO
\r
61 perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak
\r
62 perl util\mk1mf.pl gaswin Mingw32-files >ms\mingw32f.mak
\r
63 @rem DLL definition files
\r
64 perl util\mkdef.pl 32 libeay >ms\libeay32.def
\r
65 if errorlevel 1 goto end
\r
66 perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
\r
67 if errorlevel 1 goto end
\r
69 @rem Create files -- this can be skipped if using the GNU file utilities
\r
70 make -f ms/mingw32f.mak
\r
71 echo You can ignore the error messages above
\r
73 @rem Build the libraries
\r
74 make -f ms/mingw32a.mak
\r
75 if errorlevel 1 goto end
\r
77 @rem Generate the DLLs and input libraries
\r
78 dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
\r
79 if errorlevel 1 goto end
\r
80 dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
\r
81 if errorlevel 1 goto end
\r
83 echo Done compiling OpenSSL
\r