mingw32.bat 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. @rem OpenSSL with Mingw32+GNU as
  2. @rem ---------------------------
  3. perl Configure Mingw32 %1 %2 %3 %4 %5 %6 %7 %8
  4. @echo off
  5. perl -e "exit 1 if '%1' eq 'no-asm'"
  6. if errorlevel 1 goto noasm
  7. echo Generating x86 for GNU assember
  8. echo Bignum
  9. cd crypto\bn\asm
  10. perl bn-586.pl gaswin > bn-win32.s
  11. perl co-586.pl gaswin > co-win32.s
  12. cd ..\..\..
  13. echo DES
  14. cd crypto\des\asm
  15. perl des-586.pl gaswin > d-win32.s
  16. cd ..\..\..
  17. echo crypt
  18. cd crypto\des\asm
  19. perl crypt586.pl gaswin > y-win32.s
  20. cd ..\..\..
  21. echo Blowfish
  22. cd crypto\bf\asm
  23. perl bf-586.pl gaswin > b-win32.s
  24. cd ..\..\..
  25. echo CAST5
  26. cd crypto\cast\asm
  27. perl cast-586.pl gaswin > c-win32.s
  28. cd ..\..\..
  29. echo RC4
  30. cd crypto\rc4\asm
  31. perl rc4-586.pl gaswin > r4-win32.s
  32. cd ..\..\..
  33. echo MD5
  34. cd crypto\md5\asm
  35. perl md5-586.pl gaswin > m5-win32.s
  36. cd ..\..\..
  37. echo SHA1
  38. cd crypto\sha\asm
  39. perl sha1-586.pl gaswin > s1-win32.s
  40. cd ..\..\..
  41. echo RIPEMD160
  42. cd crypto\ripemd\asm
  43. perl rmd-586.pl gaswin > rm-win32.s
  44. cd ..\..\..
  45. echo RC5\32
  46. cd crypto\rc5\asm
  47. perl rc5-586.pl gaswin > r5-win32.s
  48. cd ..\..\..
  49. :noasm
  50. echo Generating makefile
  51. perl util\mkfiles.pl >MINFO
  52. perl util\mk1mf.pl gaswin Mingw32 >ms\mingw32a.mak
  53. perl util\mk1mf.pl gaswin Mingw32-files >ms\mingw32f.mak
  54. echo Generating DLL definition files
  55. perl util\mkdef.pl 32 libeay >ms\libeay32.def
  56. if errorlevel 1 goto end
  57. perl util\mkdef.pl 32 ssleay >ms\ssleay32.def
  58. if errorlevel 1 goto end
  59. rem Create files -- this can be skipped if using the GNU file utilities
  60. make -f ms/mingw32f.mak
  61. echo You can ignore the error messages above
  62. copy ms\tlhelp32.h outinc
  63. echo Building the libraries
  64. make -f ms/mingw32a.mak
  65. if errorlevel 1 goto end
  66. echo Generating the DLLs and input libraries
  67. dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
  68. if errorlevel 1 goto end
  69. dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
  70. if errorlevel 1 goto end
  71. echo Done compiling OpenSSL
  72. :end