2018-11-03 17:38:04 +00:00
|
|
|
# Note that these directories are filtered in Configure. Look for %skipdir
|
|
|
|
# there for further explanations.
|
2019-05-13 16:07:45 +00:00
|
|
|
SUBDIRS=objects buffer bio stack lhash rand evp asn1 pem x509 conf \
|
2018-11-16 01:44:30 +00:00
|
|
|
txt_db pkcs7 pkcs12 ui kdf store property \
|
2018-11-05 15:52:46 +00:00
|
|
|
md2 md4 md5 sha mdc2 gmac hmac ripemd whrlpool poly1305 blake2 \
|
2018-11-03 17:26:35 +00:00
|
|
|
siphash sm3 des aes rc2 rc4 rc5 idea aria bf cast camellia \
|
|
|
|
seed sm4 chacha modes bn ec rsa dsa dh sm2 dso engine \
|
2019-04-02 09:16:53 +00:00
|
|
|
err comp ocsp cms ts srp cmac ct async kmac ess crmf cmp
|
2018-11-03 17:26:35 +00:00
|
|
|
|
2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../libcrypto
|
2019-06-16 10:56:21 +00:00
|
|
|
|
|
|
|
$UPLINKSRC=
|
|
|
|
$UPLINKDEF=
|
|
|
|
IF[{- !$disabled{uplink} -}]
|
|
|
|
$UPLINKSRC_common=../ms/uplink.c
|
|
|
|
$UPLINKSRC_x86=$UPLINKSRC_common uplink-x86.s
|
|
|
|
$UPLINKSRC_x86_64=$UPLINKSRC_common uplink-x86_64.s
|
|
|
|
$UPLINKSRC_ia64=$UPLINKSRC_common uplink-ia64.s
|
|
|
|
|
|
|
|
IF[$UPLINKSRC_{- $target{uplink_arch} -}]
|
|
|
|
$UPLINKSRC=$UPLINKSRC_{- $target{uplink_arch} -}
|
|
|
|
$UPLINKDEF=OPENSSL_USE_APPLINK
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2019-06-16 17:35:08 +00:00
|
|
|
$CPUIDASM=mem_clr.c
|
|
|
|
$CPUIDDEF=
|
|
|
|
IF[{- !$disabled{asm} && $config{processor} ne '386' -}]
|
|
|
|
$CPUIDASM_x86=x86cpuid.s
|
|
|
|
|
|
|
|
$CPUIDASM_x86_64=x86_64cpuid.s
|
|
|
|
|
|
|
|
$CPUIDASM_ia64=ia64cpuid.s
|
|
|
|
|
|
|
|
$CPUIDASM_sparcv9=sparcv9cap.c sparccpuid.S
|
|
|
|
|
|
|
|
$CPUIDASM_alpha=alphacpuid.s
|
|
|
|
|
|
|
|
$CPUIDASM_s390x=s390xcap.c s390xcpuid.S
|
|
|
|
|
|
|
|
$CPUIDASM_armv4=armcap.c armv4cpuid.S
|
|
|
|
|
|
|
|
$CPUIDASM_aarch64=armcap.c arm64cpuid.S
|
|
|
|
|
|
|
|
$CPUIDASM_parisc11=pariscid.s
|
|
|
|
$CPUIDASM_parisc20_64=$CPUIDASM_parisc11
|
|
|
|
|
|
|
|
$CPUIDASM_ppc32=ppccpuid.s ppccap.c
|
|
|
|
$CPUIDASM_ppc64=$CPUIDASM_ppc32
|
|
|
|
|
|
|
|
$CPUIDASM_c64xplus=c64xpluscpuid.s
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$CPUIDASM_{- $target{asm_arch} -}]
|
|
|
|
$CPUIDASM=$CPUIDASM_{- $target{asm_arch} -}
|
|
|
|
$CPUIDDEF=OPENSSL_CPUID_OBJ
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2019-01-20 12:14:58 +00:00
|
|
|
# The Core
|
2019-07-10 21:11:27 +00:00
|
|
|
$CORE_COMMON=provider_core.c provider_predefined.c \
|
|
|
|
core_fetch.c core_algorithm.c core_namemap.c
|
2019-01-20 12:14:58 +00:00
|
|
|
|
2019-06-12 10:10:00 +00:00
|
|
|
SOURCE[../libcrypto]=$CORE_COMMON provider_conf.c
|
|
|
|
SOURCE[../providers/fips]=$CORE_COMMON
|
2019-04-10 14:01:40 +00:00
|
|
|
|
2019-01-20 12:14:58 +00:00
|
|
|
# Central utilities
|
2019-06-12 10:10:00 +00:00
|
|
|
$UTIL_COMMON=\
|
2019-07-11 05:53:59 +00:00
|
|
|
cryptlib.c params.c bsearch.c ex_data.c o_str.c \
|
2019-05-27 15:31:27 +00:00
|
|
|
ctype.c threads_pthread.c threads_win.c threads_none.c initthread.c \
|
2019-07-17 06:59:09 +00:00
|
|
|
context.c sparse_array.c param_build.c $CPUIDASM
|
2019-06-16 17:35:08 +00:00
|
|
|
$UTIL_DEFINE=$CPUIDDEF
|
2019-03-20 14:27:52 +00:00
|
|
|
|
2019-06-12 10:10:00 +00:00
|
|
|
SOURCE[../libcrypto]=$UTIL_COMMON \
|
2019-07-22 14:19:02 +00:00
|
|
|
mem.c mem_sec.c mem_dbg.c \
|
2019-07-11 05:53:59 +00:00
|
|
|
cversion.c info.c cpt_err.c ebcdic.c uid.c o_time.c o_dir.c \
|
2019-06-12 10:10:00 +00:00
|
|
|
o_fopen.c getenv.c o_init.c o_fips.c init.c trace.c provider.c \
|
2019-06-07 15:32:49 +00:00
|
|
|
asn1_dsa.c packet.c $UPLINKSRC
|
2019-06-16 17:35:08 +00:00
|
|
|
DEFINE[../libcrypto]=$UTIL_DEFINE $UPLINKDEF
|
2019-06-12 10:10:00 +00:00
|
|
|
SOURCE[../providers/fips]=$UTIL_COMMON
|
2019-06-16 17:35:08 +00:00
|
|
|
DEFINE[../providers/fips]=$UTIL_DEFINE
|
2019-06-12 10:10:00 +00:00
|
|
|
|
2019-03-20 14:27:52 +00:00
|
|
|
|
2016-01-29 22:33:10 +00:00
|
|
|
DEPEND[cversion.o]=buildinf.h
|
2018-03-09 11:39:01 +00:00
|
|
|
GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
|
2016-03-19 00:01:07 +00:00
|
|
|
DEPEND[buildinf.h]=../configdata.pm
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[uplink-x86.s]=../ms/uplink-x86.pl $(PERLASM_SCHEME)
|
2016-03-18 22:31:17 +00:00
|
|
|
GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[uplink-ia64.s]=../ms/uplink-ia64.pl $(PERLASM_SCHEME)
|
2016-01-30 06:14:58 +00:00
|
|
|
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[x86cpuid.s]=x86cpuid.pl \
|
Harmonize the make variables across all known platforms families
The make variables LIB_CFLAGS, DSO_CFLAGS and so on were used in
addition to CFLAGS and so on. This works without problem on Unix and
Windows, where options with different purposes (such as -D and -I) can
appear anywhere on the command line and get accumulated as they come.
This is not necessarely so on VMS. For example, macros must all be
collected and given through one /DEFINE, and the same goes for
inclusion directories (/INCLUDE).
So, to harmonize all platforms, we repurpose make variables starting
with LIB_, DSO_ and BIN_ to be all encompassing variables that
collects the corresponding values from CFLAGS, CPPFLAGS, DEFINES,
INCLUDES and so on together with possible config target values
specific for libraries DSOs and programs, and use them instead of the
general ones everywhere.
This will, for example, allow VMS to use the exact same generators for
generated files that go through cpp as all other platforms, something
that has been impossible to do safely before now.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5357)
2018-02-13 19:32:42 +00:00
|
|
|
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
2016-03-07 14:00:45 +00:00
|
|
|
DEPEND[x86cpuid.s]=perlasm/x86asm.pl
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[x86_64cpuid.s]=x86_64cpuid.pl $(PERLASM_SCHEME)
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[ia64cpuid.s]=ia64cpuid.S
|
2016-03-13 10:07:12 +00:00
|
|
|
GENERATE[ppccpuid.s]=ppccpuid.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[pariscid.s]=pariscid.pl $(PERLASM_SCHEME)
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[alphacpuid.s]=alphacpuid.pl
|
|
|
|
GENERATE[arm64cpuid.S]=arm64cpuid.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
INCLUDE[arm64cpuid.o]=.
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[armv4cpuid.S]=armv4cpuid.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
INCLUDE[armv4cpuid.o]=.
|
2017-10-02 13:53:00 +00:00
|
|
|
GENERATE[s390xcpuid.S]=s390xcpuid.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[s390xcpuid.o]=.
|
2016-03-29 14:48:02 +00:00
|
|
|
|
|
|
|
IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
|
|
|
|
SHARED_SOURCE[../libcrypto]=dllmain.c
|
|
|
|
ENDIF
|