2
0

OS2-EMX.cmd 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @echo off
  2. perl Configure OS2-EMX
  3. perl util\mkfiles.pl > MINFO
  4. @rem create make file
  5. perl util\mk1mf.pl OS2-EMX > OS2-EMX.mak
  6. perl util\mk1mf.pl dll OS2-EMX > OS2-EMX-DLL.mak
  7. echo Generating export definition files
  8. perl util\mkdef.pl crypto OS2 > os2\crypto.def
  9. perl util\mkdef.pl ssl OS2 > os2\ssl.def
  10. echo Generating x86 for GNU assember
  11. echo Bignum
  12. cd crypto\bn\asm
  13. rem perl x86.pl a.out > bn-os2.asm
  14. perl bn-586.pl a.out > bn-os2.asm
  15. perl co-586.pl a.out > co-os2.asm
  16. cd ..\..\..
  17. echo DES
  18. cd crypto\des\asm
  19. perl des-586.pl a.out > d-os2.asm
  20. cd ..\..\..
  21. echo crypt(3)
  22. cd crypto\des\asm
  23. perl crypt586.pl a.out > y-os2.asm
  24. cd ..\..\..
  25. echo Blowfish
  26. cd crypto\bf\asm
  27. perl bf-586.pl a.out > b-os2.asm
  28. cd ..\..\..
  29. echo CAST5
  30. cd crypto\cast\asm
  31. perl cast-586.pl a.out > c-os2.asm
  32. cd ..\..\..
  33. echo RC4
  34. cd crypto\rc4\asm
  35. perl rc4-586.pl a.out > r4-os2.asm
  36. cd ..\..\..
  37. echo MD5
  38. cd crypto\md5\asm
  39. perl md5-586.pl a.out > m5-os2.asm
  40. cd ..\..\..
  41. echo SHA1
  42. cd crypto\sha\asm
  43. perl sha1-586.pl a.out > s1-os2.asm
  44. cd ..\..\..
  45. echo RIPEMD160
  46. cd crypto\ripemd\asm
  47. perl rmd-586.pl a.out > rm-os2.asm
  48. cd ..\..\..
  49. echo RC5\32
  50. cd crypto\rc5\asm
  51. perl rc5-586.pl a.out > r5-os2.asm
  52. cd ..\..\..
  53. cd os2
  54. if exist noname\backward_ssl.def goto nomkdir
  55. mkdir noname
  56. :nomkdir
  57. perl backwardify.pl crypto.def >backward_crypto.def
  58. perl backwardify.pl ssl.def >backward_ssl.def
  59. perl backwardify.pl -noname crypto.def >noname\backward_crypto.def
  60. perl backwardify.pl -noname ssl.def >noname\backward_ssl.def
  61. echo Creating backward compatibility forwarder dlls:
  62. echo crypto.dll
  63. gcc -Zomf -Zdll -Zcrtdll -o crypto.dll backward_crypto.def 2>&1 | grep -v L4085
  64. echo ssl.dll
  65. gcc -Zomf -Zdll -Zcrtdll -o ssl.dll backward_ssl.def 2>&1 | grep -v L4085
  66. echo Creating smaller backward compatibility forwarder dlls:
  67. echo These DLLs are not good for runtime resolution of symbols.
  68. echo noname\crypto.dll
  69. gcc -Zomf -Zdll -Zcrtdll -o noname/crypto.dll noname/backward_crypto.def 2>&1 | grep -v L4085
  70. echo noname\ssl.dll
  71. gcc -Zomf -Zdll -Zcrtdll -o noname/ssl.dll noname/backward_ssl.def 2>&1 | grep -v L4085
  72. echo Compressing forwarders (it is ok if lxlite is not found):
  73. lxlite *.dll noname/*.dll
  74. cd ..
  75. echo Now run:
  76. echo For static build:
  77. echo make -f OS2-EMX.mak
  78. echo For dynamic build:
  79. echo make -f OS2-EMX-DLL.mak
  80. echo then rename crypto.dll to cryptssl.dll, ssl.dll to open_ssl.dll