2019-06-16 17:57:52 +00:00
|
|
|
$ECASM=
|
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$ECASM_x86=ecp_nistz256.c ecp_nistz256-x86.s
|
|
|
|
$ECDEF_x86=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_x86_64=ecp_nistz256.c ecp_nistz256-x86_64.s x25519-x86_64.s
|
|
|
|
$ECDEF_x86_64=ECP_NISTZ256_ASM X25519_ASM
|
|
|
|
|
|
|
|
$ECASM_ia64=
|
|
|
|
|
|
|
|
$ECASM_sparcv9=ecp_nistz256.c ecp_nistz256-sparcv9.S
|
|
|
|
$ECDEF_sparcv9=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_sparcv8=
|
|
|
|
|
|
|
|
$ECASM_alpha=
|
|
|
|
|
|
|
|
$ECASM_mips32=
|
|
|
|
$ECASM_mips64=
|
|
|
|
|
|
|
|
$ECASM_s390x=
|
|
|
|
|
|
|
|
$ECASM_armv4=ecp_nistz256.c ecp_nistz256-armv4.S
|
|
|
|
$ECDEF_armv4=ECP_NISTZ256_ASM
|
|
|
|
$ECASM_aarch64=ecp_nistz256.c ecp_nistz256-armv8.S
|
|
|
|
$ECDEF_aarch64=ECP_NISTZ256_ASM
|
|
|
|
|
|
|
|
$ECASM_parisc11=
|
|
|
|
$ECASM_parisc20_64=
|
|
|
|
|
|
|
|
$ECASM_ppc32=
|
|
|
|
$ECASM_ppc64=ecp_nistz256.c ecp_nistz256-ppc64.s x25519-ppc64.s
|
|
|
|
$ECDEF_ppc64=ECP_NISTZ256_ASM X25519_ASM
|
|
|
|
|
|
|
|
$ECASM_c64xplus=
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$ECASM_{- $target{asm_arch} -}]
|
|
|
|
$ECASM=$ECASM_{- $target{asm_arch} -}
|
|
|
|
$ECDEF=$ECDEF_{- $target{asm_arch} -}
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../../libcrypto
|
|
|
|
SOURCE[../../libcrypto]=\
|
|
|
|
ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c \
|
|
|
|
ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c \
|
2018-04-24 13:01:53 +00:00
|
|
|
ec2_smpl.c ec_ameth.c ec_pmeth.c eck_prn.c \
|
2016-01-29 22:33:10 +00:00
|
|
|
ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c \
|
|
|
|
ecp_oct.c ec2_oct.c ec_oct.c ec_kmeth.c ecdh_ossl.c ecdh_kdf.c \
|
2016-08-11 14:49:07 +00:00
|
|
|
ecdsa_ossl.c ecdsa_sign.c ecdsa_vrf.c curve25519.c ecx_meth.c \
|
2017-12-05 16:59:42 +00:00
|
|
|
curve448/arch_32/f_impl.c curve448/f_generic.c curve448/scalar.c \
|
|
|
|
curve448/curve448_tables.c curve448/eddsa.c curve448/curve448.c \
|
2019-06-16 17:57:52 +00:00
|
|
|
$ECASM
|
|
|
|
DEFINE[../../libcrypto]=$ECDEF
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[ecp_nistz256-x86.s]=asm/ecp_nistz256-x86.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-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:47:09 +00:00
|
|
|
GENERATE[ecp_nistz256-x86_64.s]=asm/ecp_nistz256-x86_64.pl $(PERLASM_SCHEME)
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:47:09 +00:00
|
|
|
GENERATE[ecp_nistz256-avx2.s]=asm/ecp_nistz256-avx2.pl $(PERLASM_SCHEME)
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:47:09 +00:00
|
|
|
GENERATE[ecp_nistz256-sparcv9.S]=asm/ecp_nistz256-sparcv9.pl $(PERLASM_SCHEME)
|
2016-03-10 19:05:52 +00:00
|
|
|
INCLUDE[ecp_nistz256-sparcv9.o]=..
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-11 12:44:46 +00:00
|
|
|
GENERATE[ecp_nistz256-armv4.S]=asm/ecp_nistz256-armv4.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[ecp_nistz256-armv4.o]=..
|
|
|
|
GENERATE[ecp_nistz256-armv8.S]=asm/ecp_nistz256-armv8.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[ecp_nistz256-armv8.o]=..
|
2016-08-14 17:19:11 +00:00
|
|
|
GENERATE[ecp_nistz256-ppc64.s]=asm/ecp_nistz256-ppc64.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
|
2018-02-19 14:09:33 +00:00
|
|
|
GENERATE[x25519-x86_64.s]=asm/x25519-x86_64.pl $(PERLASM_SCHEME)
|
2018-07-25 08:24:09 +00:00
|
|
|
GENERATE[x25519-ppc64.s]=asm/x25519-ppc64.pl $(PERLASM_SCHEME)
|
2018-02-19 14:09:33 +00:00
|
|
|
|
2017-11-28 16:19:57 +00:00
|
|
|
INCLUDE[curve448/arch_32/f_impl.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/f_generic.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/scalar.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/curve448_tables.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/eddsa.o]=curve448/arch_32 curve448
|
|
|
|
INCLUDE[curve448/curve448.o]=curve448/arch_32 curve448
|