Blame build.info

Packit Service 084de1
{-
Packit Service 084de1
     our $sover = $config{shlib_version_number};
Packit Service 084de1
     our $sover_filename = $sover;
Packit Service 084de1
     $sover_filename =~ s|\.|_|g
Packit Service 084de1
         if $config{target} =~ /^mingw/ || $config{target} =~ /^VC-/;
Packit Service 084de1
     $sover_filename =
Packit Service 084de1
         sprintf "%02d%02d", split m|\.|, $config{shlib_version_number}
Packit Service 084de1
         if $config{target} =~ /^vms/;
Packit Service 084de1
     "";
Packit Service 084de1
-}
Packit Service 084de1
LIBS=libcrypto libssl
Packit Service 084de1
INCLUDE[libcrypto]=. include
Packit Service 084de1
INCLUDE[libssl]=. include
Packit Service 084de1
DEPEND[libssl]=libcrypto
Packit Service 084de1
Packit Service 084de1
# Empty DEPEND "indices" means the dependencies are expected to be built
Packit Service 084de1
# unconditionally before anything else.
Packit Service 084de1
DEPEND[]=include/openssl/opensslconf.h include/crypto/bn_conf.h \
Packit Service 084de1
         include/crypto/dso_conf.h
Packit Service 084de1
DEPEND[include/openssl/opensslconf.h]=configdata.pm
Packit Service 084de1
GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in
Packit Service 084de1
DEPEND[include/crypto/bn_conf.h]=configdata.pm
Packit Service 084de1
GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in
Packit Service 084de1
DEPEND[include/crypto/dso_conf.h]=configdata.pm
Packit Service 084de1
GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in
Packit Service 084de1
Packit Service 084de1
IF[{- defined $target{shared_defflag} -}]
Packit Service 084de1
  IF[{- $config{target} =~ /^mingw/ -}]
Packit Service 084de1
    GENERATE[libcrypto.def]=util/mkdef.pl crypto 32
Packit Service 084de1
    DEPEND[libcrypto.def]=util/libcrypto.num
Packit Service 084de1
    GENERATE[libssl.def]=util/mkdef.pl ssl 32
Packit Service 084de1
    DEPEND[libssl.def]=util/libssl.num
Packit Service 084de1
Packit Service 084de1
    SHARED_SOURCE[libcrypto]=libcrypto.def
Packit Service 084de1
    SHARED_SOURCE[libssl]=libssl.def
Packit Service 084de1
  ELSIF[{- $config{target} =~ /^aix/ -}]
Packit Service 084de1
    GENERATE[libcrypto.map]=util/mkdef.pl crypto aix
Packit Service 084de1
    DEPEND[libcrypto.map]=util/libcrypto.num
Packit Service 084de1
    GENERATE[libssl.map]=util/mkdef.pl ssl aix
Packit Service 084de1
    DEPEND[libssl.map]=util/libssl.num
Packit Service 084de1
Packit Service 084de1
    SHARED_SOURCE[libcrypto]=libcrypto.map
Packit Service 084de1
    SHARED_SOURCE[libssl]=libssl.map
Packit Service 084de1
  ELSE
Packit Service 084de1
    GENERATE[libcrypto.map]=util/mkdef.pl crypto linux
Packit Service 084de1
    DEPEND[libcrypto.map]=util/libcrypto.num
Packit Service 084de1
    GENERATE[libssl.map]=util/mkdef.pl ssl linux
Packit Service 084de1
    DEPEND[libssl.map]=util/libssl.num
Packit Service 084de1
Packit Service 084de1
    SHARED_SOURCE[libcrypto]=libcrypto.map
Packit Service 084de1
    SHARED_SOURCE[libssl]=libssl.map
Packit Service 084de1
  ENDIF
Packit Service 084de1
ENDIF
Packit Service 084de1
# VMS and VC don't have parametrised .def / .symvec generation, so they get
Packit Service 084de1
# special treatment, since we know they do use these files
Packit Service 084de1
IF[{- $config{target} =~ /^VC-/ -}]
Packit Service 084de1
  GENERATE[libcrypto.def]=util/mkdef.pl crypto 32
Packit Service 084de1
  DEPEND[libcrypto.def]=util/libcrypto.num
Packit Service 084de1
  GENERATE[libssl.def]=util/mkdef.pl ssl 32
Packit Service 084de1
  DEPEND[libssl.def]=util/libssl.num
Packit Service 084de1
Packit Service 084de1
  SHARED_SOURCE[libcrypto]=libcrypto.def
Packit Service 084de1
  SHARED_SOURCE[libssl]=libssl.def
Packit Service 084de1
ELSIF[{- $config{target} =~ /^vms/ -}]
Packit Service 084de1
  GENERATE[libcrypto.opt]=util/mkdef.pl crypto "VMS"
Packit Service 084de1
  DEPEND[libcrypto.opt]=util/libcrypto.num
Packit Service 084de1
  GENERATE[libssl.opt]=util/mkdef.pl ssl "VMS"
Packit Service 084de1
  DEPEND[libssl.opt]=util/libssl.num
Packit Service 084de1
Packit Service 084de1
  SHARED_SOURCE[libcrypto]=libcrypto.opt
Packit Service 084de1
  SHARED_SOURCE[libssl]=libssl.opt
Packit Service 084de1
ENDIF
Packit Service 084de1
Packit Service 084de1
IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
Packit Service 084de1
  GENERATE[libcrypto.rc]=util/mkrc.pl libcrypto
Packit Service 084de1
  GENERATE[libssl.rc]=util/mkrc.pl libssl
Packit Service 084de1
Packit Service 084de1
  SHARED_SOURCE[libcrypto]=libcrypto.rc
Packit Service 084de1
  SHARED_SOURCE[libssl]=libssl.rc
Packit Service 084de1
ENDIF
Packit Service 084de1
Packit Service 084de1
IF[{- $config{target} =~ /^Cygwin/ -}]
Packit Service 084de1
 SHARED_NAME[libcrypto]=cygcrypto-{- $sover_filename -}
Packit Service 084de1
 SHARED_NAME[libssl]=cygssl-{- $sover_filename -}
Packit Service 084de1
ELSIF[{- $config{target} =~ /^mingw/ -}]
Packit Service 084de1
 SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
Packit Service 084de1
 SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
Packit Service 084de1
ELSIF[{- $config{target} =~ /^VC-/ -}]
Packit Service 084de1
 SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $target{multilib} -}
Packit Service 084de1
 SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $target{multilib} -}
Packit Service 084de1
ENDIF
Packit Service 084de1
Packit Service 084de1
# VMS has a cultural standard where all libraries are prefixed.
Packit Service 084de1
# For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
Packit Service 084de1
# conversation with VSI, Tuesday January 26 2016)
Packit Service 084de1
# Also, it seems it's usual to have the pointer size the libraries
Packit Service 084de1
# were built for as part of the name.
Packit Service 084de1
IF[{- $config{target} =~ /^vms/ -}]
Packit Service 084de1
 RENAME[libcrypto]=ossl$libcrypto{- $target{pointer_size} -}
Packit Service 084de1
 RENAME[libssl]=ossl$libssl{- $target{pointer_size} -}
Packit Service 084de1
 SHARED_NAME[libcrypto]=ossl$libcrypto{- $sover_filename -}_shr{- $target{pointer_size} -}
Packit Service 084de1
 SHARED_NAME[libssl]=ossl$libssl{- $sover_filename -}_shr{- $target{pointer_size} -}
Packit Service 084de1
ENDIF