]>
Commit | Line | Data |
---|---|---|
d4453024 RL |
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 | -} | |
777a2882 RL |
11 | LIBS=libcrypto libssl |
12 | ORDINALS[libcrypto]=crypto | |
13 | ORDINALS[libssl]=ssl | |
0483f586 RL |
14 | INCLUDE[libcrypto]=. crypto/include include |
15 | INCLUDE[libssl]=. include | |
777a2882 | 16 | DEPEND[libssl]=libcrypto |
fcf80c46 | 17 | |
27ffb86c RL |
18 | # Empty DEPEND "indices" means the dependencies are expected to be built |
19 | # unconditionally before anything else. | |
20 | DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \ | |
21 | crypto/include/internal/dso_conf.h | |
22 | DEPEND[include/openssl/opensslconf.h]=configdata.pm | |
23 | GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in | |
24 | DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm | |
25 | GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in | |
26 | DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm | |
27 | GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in | |
28 | ||
29 | ||
fcf80c46 | 30 | IF[{- $config{target} =~ /^Cygwin/ -}] |
d4453024 RL |
31 | SHARED_NAME[libcrypto]=cygcrypto-{- $sover_filename -} |
32 | SHARED_NAME[libssl]=cygssl-{- $sover_filename -} | |
fcf80c46 | 33 | ELSIF[{- $config{target} =~ /^mingw/ -}] |
d4453024 RL |
34 | SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -} |
35 | SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $config{target} eq "mingw64" ? "-x64" : "" -} | |
08479bbb | 36 | ELSIF[{- $config{target} =~ /^VC-/ -}] |
d4453024 RL |
37 | SHARED_NAME[libcrypto]=libcrypto-{- $sover_filename -}{- $target{multilib} -} |
38 | SHARED_NAME[libssl]=libssl-{- $sover_filename -}{- $target{multilib} -} | |
fcf80c46 | 39 | ENDIF |
e84193e4 RL |
40 | |
41 | # VMS has a cultural standard where all libraries are prefixed. | |
42 | # For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a | |
43 | # conversation with VSI, Tuesday January 26 2016) | |
8842005e RL |
44 | # Also, it seems it's usual to have the pointer size the libraries |
45 | # were built for as part of the name. | |
e84193e4 | 46 | IF[{- $config{target} =~ /^vms/ -}] |
8842005e RL |
47 | RENAME[libcrypto]=ossl$libcrypto{- $target{pointer_size} -} |
48 | RENAME[libssl]=ossl$libssl{- $target{pointer_size} -} | |
d4453024 RL |
49 | SHARED_NAME[libcrypto]=ossl$libcrypto{- $sover_filename -}_shr{- $target{pointer_size} -} |
50 | SHARED_NAME[libssl]=ossl$libssl{- $sover_filename -}_shr{- $target{pointer_size} -} | |
e84193e4 | 51 | ENDIF |