mw.bat 733 B

1234567891011121314151617181920212223242526
  1. @rem OpenSSL with Mingw32
  2. @rem --------------------
  3. @rem Makefile
  4. perl util\mkfiles.pl >MINFO
  5. perl util\mk1mf.pl Mingw32 >ms\mingw32.mak
  6. @rem DLL definition files
  7. perl util\mkdef.pl 32 libeay >ms\libeay32.def
  8. if errorlevel 1 goto end
  9. perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
  10. if errorlevel 1 goto end
  11. @rem Build the libraries
  12. make -f ms/mingw32.mak
  13. if errorlevel 1 goto end
  14. @rem Generate the DLLs and input libraries
  15. dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lws2_32 -lgdi32
  16. if errorlevel 1 goto end
  17. dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
  18. if errorlevel 1 goto end
  19. echo Done compiling OpenSSL
  20. :end