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