blob: fa136dc43143622549631299e1cd82c1d04c062b [file] [log] [blame]
Richard Levitte777a2882016-01-29 23:33:10 +01001LIBS=libcrypto libssl
2ORDINALS[libcrypto]=crypto
3ORDINALS[libssl]=ssl
Richard Levitte0483f582016-06-29 22:59:50 +02004INCLUDE[libcrypto]=. crypto/include include
5INCLUDE[libssl]=. include
Richard Levitte777a2882016-01-29 23:33:10 +01006DEPEND[libssl]=libcrypto
Richard Levittefcf80c42016-01-30 05:45:29 +01007
Richard Levitte27ffb862016-06-13 22:01:08 +02008# Empty DEPEND "indices" means the dependencies are expected to be built
9# unconditionally before anything else.
10DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \
11 crypto/include/internal/dso_conf.h
12DEPEND[include/openssl/opensslconf.h]=configdata.pm
13GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in
14DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm
15GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in
16DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm
17GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in
18
19
Richard Levittefcf80c42016-01-30 05:45:29 +010020IF[{- $config{target} =~ /^Cygwin/ -}]
21 SHARED_NAME[libcrypto]=cygcrypto-{- $config{shlib_major}.".".$config{shlib_minor} -}
22 SHARED_NAME[libssl]=cygssl-{- $config{shlib_major}.".".$config{shlib_minor} -}
23ELSIF[{- $config{target} =~ /^mingw/ -}]
Richard Levitte520f4342016-02-16 20:37:28 +010024 SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
25 SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $config{target} eq "mingw64" ? "-x64" : "" -}
Richard Levitte08479bb2016-03-05 20:02:05 +010026ELSIF[{- $config{target} =~ /^VC-/ -}]
Andy Polyakov6ddb62a2016-03-23 20:33:29 +010027 SHARED_NAME[libcrypto]=libcrypto-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
28 SHARED_NAME[libssl]=libssl-{- $config{shlib_major}."_".$config{shlib_minor} -}{- $target{multilib} -}
Richard Levittefcf80c42016-01-30 05:45:29 +010029ENDIF
Richard Levittee84193e2016-01-30 07:14:58 +010030
31# VMS has a cultural standard where all libraries are prefixed.
32# For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
33# conversation with VSI, Tuesday January 26 2016)
Richard Levitte88420052016-07-02 08:35:12 +020034# Also, it seems it's usual to have the pointer size the libraries
35# were built for as part of the name.
Richard Levittee84193e2016-01-30 07:14:58 +010036IF[{- $config{target} =~ /^vms/ -}]
Richard Levitte88420052016-07-02 08:35:12 +020037 RENAME[libcrypto]=ossl$libcrypto{- $target{pointer_size} -}
38 RENAME[libssl]=ossl$libssl{- $target{pointer_size} -}
39 SHARED_NAME[libcrypto]=ossl$libcrypto{- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -}_shr{- $target{pointer_size} -}
40 SHARED_NAME[libssl]=ossl$libssl{- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -}_shr{- $target{pointer_size} -}
Richard Levittee84193e2016-01-30 07:14:58 +010041ENDIF