Fix mixed declarations and code
[openssl.git] / build.info
1 {- use File::Spec::Functions qw/catdir rel2abs/; -}
2 LIBS=libcrypto libssl
3 ORDINALS[libcrypto]=crypto
4 ORDINALS[libssl]=ssl
5 INCLUDE[libcrypto]={- rel2abs(catdir($builddir,"include")) -} . crypto/include include
6 INCLUDE[libssl]={- rel2abs(catdir($builddir,"include")) -} . include
7 DEPEND[libssl]=libcrypto
8
9 IF[{- $config{target} =~ /^Cygwin/ -}]
10  SHARED_NAME[libcrypto]=cygcrypto-{- $config{shlib_major}.".".$config{shlib_minor} -}
11  SHARED_NAME[libssl]=cygssl-{- $config{shlib_major}.".".$config{shlib_minor} -}
12 ELSIF[{- $config{target} =~ /^mingw/ -}]
13  SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
14  SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
15 ELSIF[{- $config{target} =~ /^VC-/ -}]
16  SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
17  SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
18 ENDIF
19
20 # VMS has a cultural standard where all libraries are prefixed.
21 # For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
22 # conversation with VSI, Tuesday January 26 2016)
23 # Also, it seems it's usual to have a suffix to the shared library name
24 # for the different pointer sizes that were built for.
25 IF[{- $config{target} =~ /^vms/ -}]
26  RENAME[libcrypto]=ossl$libcrypto
27  RENAME[libssl]=ossl$libssl
28  SHARED_NAME[libcrypto]=ossl$libcrypto_shr{- $target{pointer_size} -}
29  SHARED_NAME[libssl]=ossl$libssl_shr{- $target{pointer_size} -}
30 ENDIF