1 @rem OpenSSL with Mingw32+GNU as
2 @rem ---------------------------
4 perl Configure mingw %1 %2 %3 %4 %5 %6 %7 %8
8 perl -e "exit 1 if '%1' eq 'no-asm'"
9 if errorlevel 1 goto noasm
11 echo Generating x86 for GNU assember
15 perl bn-586.pl gaswin > bn-win32.s
16 perl co-586.pl gaswin > co-win32.s
21 perl des-586.pl gaswin > d-win32.s
26 perl crypt586.pl gaswin > y-win32.s
31 perl bf-586.pl gaswin > b-win32.s
36 perl cast-586.pl gaswin > c-win32.s
41 perl rc4-586.pl gaswin > r4-win32.s
46 perl md5-586.pl gaswin > m5-win32.s
51 perl sha1-586.pl gaswin > s1-win32.s
56 perl rmd-586.pl gaswin > rm-win32.s
61 perl rc5-586.pl gaswin > r5-win32.s
65 perl x86cpuid.pl gaswin > cpu-win32.s
70 echo Generating makefile
71 perl util\mkfiles.pl >MINFO
72 perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak
73 echo Generating DLL definition files
74 perl util\mkdef.pl 32 libeay >ms\libeay32.def
75 if errorlevel 1 goto end
76 perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
77 if errorlevel 1 goto end
79 rem copy ms\tlhelp32.h outinc
81 echo Building the libraries
82 mingw32-make -f ms/mingw32a.mak
83 if errorlevel 1 goto end
85 echo Generating the DLLs and input libraries
86 dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
87 if errorlevel 1 goto end
88 dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
89 if errorlevel 1 goto end
91 echo Done compiling OpenSSL