build.info 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Note that some of these directories are filtered in Configure. Look for
  2. # %skipdir there for further explanations.
  3. SUBDIRS=crypto ssl apps test util tools fuzz engines
  4. {-
  5. my @sover = split(/\./, $config{shlib_version});
  6. our $sover_filename;
  7. $sover_filename = join('.', @sover)
  8. if $config{target} =~ /^mingw/ || $config{target} =~ /^VC-/;
  9. $sover_filename = join('', map { sprintf "%02d", $_ } @sover)
  10. if $config{target} =~ /^vms/;
  11. "";
  12. -}
  13. LIBS=libcrypto libssl
  14. INCLUDE[libcrypto]=. crypto/include include
  15. INCLUDE[libssl]=. include
  16. DEPEND[libssl]=libcrypto
  17. # Empty DEPEND "indices" means the dependencies are expected to be built
  18. # unconditionally before anything else.
  19. DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \
  20. crypto/include/internal/dso_conf.h doc/man7/openssl_user_macros.pod
  21. DEPEND[include/openssl/opensslconf.h]=configdata.pm
  22. GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in
  23. DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm
  24. GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in
  25. DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm
  26. GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in
  27. DEPEND[doc/man7/openssl_user_macros.pod]=configdata.pm
  28. GENERATE[doc/man7/openssl_user_macros.pod]=doc/man7/openssl_user_macros.pod.in
  29. IF[{- defined $target{shared_defflag} -}]
  30. SHARED_SOURCE[libcrypto]=libcrypto.ld
  31. SHARED_SOURCE[libssl]=libssl.ld
  32. GENERATE[libcrypto.ld]=util/libcrypto.num libcrypto
  33. GENERATE[libssl.ld]=util/libssl.num libssl
  34. ENDIF
  35. IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
  36. GENERATE[libcrypto.rc]=util/mkrc.pl libcrypto
  37. GENERATE[libssl.rc]=util/mkrc.pl libssl
  38. SHARED_SOURCE[libcrypto]=libcrypto.rc
  39. SHARED_SOURCE[libssl]=libssl.rc
  40. ENDIF
  41. IF[{- $config{target} =~ /^Cygwin/ -}]
  42. SHARED_NAME[libcrypto]=cygcrypto-{- $sover_filename -}
  43. SHARED_NAME[libssl]=cygssl-{- $sover_filename -}
  44. ELSIF[{- $config{target} =~ /^mingw/ -}]
  45. SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
  46. SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
  47. ELSIF[{- $config{target} =~ /^VC-/ -}]
  48. SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $target{multilib} -}
  49. SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $target{multilib} -}
  50. ENDIF
  51. # VMS has a cultural standard where all libraries are prefixed.
  52. # For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
  53. # conversation with VSI, Tuesday January 26 2016)
  54. # Also, it seems it's usual to have the pointer size the libraries
  55. # were built for as part of the name.
  56. IF[{- $config{target} =~ /^vms/ -}]
  57. RENAME[libcrypto]=ossl$libcrypto{- $target{pointer_size} -}
  58. RENAME[libssl]=ossl$libssl{- $target{pointer_size} -}
  59. SHARED_NAME[libcrypto]=ossl$libcrypto{- $sover_filename -}_shr{- $target{pointer_size} -}
  60. SHARED_NAME[libssl]=ossl$libssl{- $sover_filename -}_shr{- $target{pointer_size} -}
  61. ENDIF