A local copy of OpenSSL from GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.3 KiB

  1. my %targets = (
  2. "BC-32" => {
  3. inherit_from => [ "BASE_Windows" ],
  4. sys_id => "WIN32",
  5. bn_ops => "BN_LLONG",
  6. thread_scheme => "winthreads",
  7. cc => "bcc32c",
  8. defines => add("WIN32_LEAN_AND_MEAN", "OPENSSL_SYS_WIN32",
  9. "L_ENDIAN", "DSO_WIN32", "_stricmp=stricmp",
  10. "_strnicmp=strnicmp", "_malloca=malloc",
  11. "_freea=free", "_setmode=setmode"),
  12. cflags => picker(default => add("-q -c",
  13. threads("-tM"),
  14. shared("-tR")),
  15. debug => "-Od -v -vi- -D_DEBUG",
  16. release => "-O2"),
  17. bin_cflags => "-tWC",
  18. lib_cflags => shared("-tWD -D_WINDLL -D_DLL"),
  19. coutflag => "-o",
  20. LD => "ilink32",
  21. LDFLAGS => picker(default => "-ap -x -Gn -q",
  22. debug => '-j"$(BDS)\lib\win32c\debug" ' .
  23. '-L"$(BDS)\lib\win32c\debug" -v',
  24. release => '-j"$(BDS)\lib\win32c\release" ' .
  25. '-L"$(BDS)\lib\win32c\release"'),
  26. bin_lflags => "-Tpe c0x32.obj wildargs.obj",
  27. ldoutflag => ",",
  28. ldpostoutflag => ",,",
  29. ld_resp_delim => " +\n",
  30. ex_libs => add(sub {
  31. my @ex_libs = ("import32.lib",
  32. ($disabled{shared}
  33. ? ($disabled{threads} ? "cw32.lib" : "cw32mt.lib")
  34. : ($disabled{threads} ? "cw32i.lib" : "cw32mti.lib")));
  35. push @ex_libs, ("crypt32.lib", "ws2_32.lib") unless $disabled{sock};
  36. return join(" ", @ex_libs);
  37. }),
  38. AR => "tlib",
  39. ARFLAGS => "/P256 /N /u",
  40. ar_resp_delim => " &\n",
  41. shared_target => "win-shared",
  42. shared_ldflag => "-Tpd c0d32.obj",
  43. dso_lflags => "-Tpd c0d32.obj",
  44. lddefflag => ",",
  45. ld_implib_rule => 'implib $< $**',
  46. dso_scheme => "win32",
  47. }
  48. );