mw.bat 958 B

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