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