03cd45e2c7
This adds initial support for assembly crypto acceleration on x86_64 for ELF (Linux, *BSD, Solaris) and Mach-O (OS-X) systems. The build method is a little different than OpenSSL and OpenBSD. All the .s files are generated ahead of time when the tarball is generated, so there are no complicated makefile rules at configure/build time. This also means the builds are faster and perl is not required on the build system. Thanks to Wouter Clarie for providing the initial cleanup and patch that this is based on.
42 lines
1.5 KiB
Makefile
42 lines
1.5 KiB
Makefile
|
|
ASM_X86_64_MACOSX = aes/aes-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += aes/bsaes-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += aes/vpaes-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += aes/aesni-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += aes/aesni-sha1-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += bn/modexp512-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += bn/mont-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += bn/mont5-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += bn/gf2m-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += camellia/cmll-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += md5/md5-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += modes/ghash-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += rc4/rc4-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += rc4/rc4-md5-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += sha/sha1-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += sha/sha256-macosx-x86_64.S
|
|
ASM_X86_64_MACOSX += sha/sha512-macosx-x86_64.S
|
|
ASM_X86_64_MACOSX += whrlpool/wp-macosx-x86_64.s
|
|
ASM_X86_64_MACOSX += cpuid-macosx-x86_64.S
|
|
|
|
EXTRA_DIST += $(ASM_X86_64_MACOSX)
|
|
|
|
if HOST_ASM_MACOSX_X86_64
|
|
libcrypto_la_CFLAGS += -DAES_ASM
|
|
libcrypto_la_CFLAGS += -DBSAES_ASM
|
|
libcrypto_la_CFLAGS += -DVPAES_ASM
|
|
libcrypto_la_CFLAGS += -DOPENSSL_IA32_SSE2
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_MONT
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_MONT5
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_GF2m
|
|
libcrypto_la_CFLAGS += -DMD5_ASM
|
|
libcrypto_la_CFLAGS += -DGHASH_ASM
|
|
libcrypto_la_CFLAGS += -DRSA_ASM
|
|
libcrypto_la_CFLAGS += -DSHA1_ASM
|
|
libcrypto_la_CFLAGS += -DSHA256_ASM
|
|
libcrypto_la_CFLAGS += -DSHA512_ASM
|
|
libcrypto_la_CFLAGS += -DWHIRLPOOL_ASM
|
|
libcrypto_la_CFLAGS += -DOPENSSL_CPUID_OBJ
|
|
libcrypto_la_SOURCES += $(ASM_X86_64_MACOSX)
|
|
endif
|