Move the Configure generated header files to the top build.info
[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 # Empty DEPEND "indices" means the dependencies are expected to be built
10 # unconditionally before anything else.
11 DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \
12          crypto/include/internal/dso_conf.h
13 DEPEND[include/openssl/opensslconf.h]=configdata.pm
14 GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in
15 DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm
16 GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in
17 DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm
18 GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in
19
20
21 IF[{- $config{target} =~ /^Cygwin/ -}]
22  SHARED_NAME[libcrypto]=cygcrypto-{- $config{shlib_major}.".".$config{shlib_minor} -}
23  SHARED_NAME[libssl]=cygssl-{- $config{shlib_major}.".".$config{shlib_minor} -}
24 ELSIF[{- $config{target} =~ /^mingw/ -}]
25  SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
26  SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
27 ELSIF[{- $config{target} =~ /^VC-/ -}]
28  SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
29  SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
30 ENDIF
31
32 # VMS has a cultural standard where all libraries are prefixed.
33 # For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
34 # conversation with VSI, Tuesday January 26 2016)
35 # Also, it seems it's usual to have a suffix to the shared library name
36 # for the different pointer sizes that were built for.
37 IF[{- $config{target} =~ /^vms/ -}]
38  RENAME[libcrypto]=ossl$libcrypto
39  RENAME[libssl]=ossl$libssl
40  SHARED_NAME[libcrypto]=ossl$libcrypto_shr{- $target{pointer_size} -}
41  SHARED_NAME[libssl]=ossl$libssl_shr{- $target{pointer_size} -}
42 ENDIF