diff options
| author | miod <> | 2014-04-17 18:11:47 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-17 18:11:47 +0000 |
| commit | 22bab90c92ee62bbe16d73084a853233fc368a8e (patch) | |
| tree | 878e3428b7edc93672d78531a70dd734acc115bd /src/lib/libcrypto/arch/amd64 | |
| parent | 27f04b6fefa84dda7e41d6cbfd72696e7ea088b0 (diff) | |
| download | openbsd-22bab90c92ee62bbe16d73084a853233fc368a8e.tar.gz openbsd-22bab90c92ee62bbe16d73084a853233fc368a8e.tar.bz2 openbsd-22bab90c92ee62bbe16d73084a853233fc368a8e.zip | |
Move the machine-specific parts of the libcrypto Makefile to per-arch makefile
fragments, to ease maintainance, and see through the fog of bugs.
"looks good" deraadt@
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
| -rw-r--r-- | src/lib/libcrypto/arch/amd64/Makefile.inc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc new file mode 100644 index 0000000000..a408186a03 --- /dev/null +++ b/src/lib/libcrypto/arch/amd64/Makefile.inc | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/17 18:11:47 miod Exp $ | ||
| 2 | |||
| 3 | # amd64-specific libcrypto build rules | ||
| 4 | |||
| 5 | SRCS+= bf_enc.c des_enc.c fcrypt_b.c | ||
| 6 | SRCS+= x86_64-gcc.c | ||
| 7 | |||
| 8 | CFLAGS+= -DOPENSSL_BN_ASM_GF2m | ||
| 9 | CFLAGS+= -DOPENSSL_BN_ASM_MONT | ||
| 10 | CFLAGS+= -DOPENSSL_BN_ASM_MONT5 | ||
| 11 | CFLAGS+= -DOPENSSL_CPUID_OBJ | ||
| 12 | CFLAGS+= -DOPENSSL_IA32_SSE2 | ||
| 13 | |||
| 14 | CFLAGS+= -DAES_ASM | ||
| 15 | CFLAGS+= -DBSAES_ASM | ||
| 16 | CFLAGS+= -DGHASH_ASM | ||
| 17 | CFLAGS+= -DMD5_ASM | ||
| 18 | CFLAGS+= -DSHA1_ASM | ||
| 19 | CFLAGS+= -DSHA256_ASM | ||
| 20 | CFLAGS+= -DSHA512_ASM | ||
| 21 | CFLAGS+= -DVPAES_ASM | ||
| 22 | CFLAGS+= -DWHIRLPOOL_ASM | ||
| 23 | |||
| 24 | SSLASM=\ | ||
| 25 | aes aes-x86_64 \ | ||
| 26 | aes aesni-x86_64 \ | ||
| 27 | aes aesni-sha1-x86_64 \ | ||
| 28 | aes bsaes-x86_64 \ | ||
| 29 | aes vpaes-x86_64 \ | ||
| 30 | bn x86_64-mont \ | ||
| 31 | bn x86_64-mont5 \ | ||
| 32 | bn x86_64-gf2m \ | ||
| 33 | bn modexp512-x86_64 \ | ||
| 34 | md5 md5-x86_64 \ | ||
| 35 | modes ghash-x86_64 \ | ||
| 36 | rc4 rc4-x86_64 \ | ||
| 37 | rc4 rc4-md5-x86_64 \ | ||
| 38 | sha sha1-x86_64 \ | ||
| 39 | whrlpool wp-x86_64 | ||
| 40 | |||
| 41 | .for dir f in ${SSLASM} | ||
| 42 | SRCS+= ${f}.S | ||
| 43 | GENERATED+=${f}.S | ||
| 44 | ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl | ||
| 45 | (cd ${LCRYPTO_SRC}/${dir} ; \ | ||
| 46 | /usr/bin/perl ./asm/${f}.pl openbsd-elf) > ${.TARGET} | ||
| 47 | .endfor | ||
| 48 | |||
| 49 | SRCS+= x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | ||
| 50 | GENERATED+=x86_64cpuid.S sha256-x86_64.S sha512-x86_64.S | ||
| 51 | |||
| 52 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl | ||
| 53 | (cd ${LCRYPTO_SRC}/${dir} ; \ | ||
| 54 | /usr/bin/perl ./x86_64cpuid.pl) > ${.TARGET} | ||
| 55 | sha256-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
| 56 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
| 57 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
| 58 | sha512-x86_64.S: ${LCRYPTO_SRC}/sha/asm/sha512-x86_64.pl | ||
| 59 | cd ${LCRYPTO_SRC}/sha/asm ; \ | ||
| 60 | /usr/bin/perl ./sha512-x86_64.pl ${.OBJDIR}/${.TARGET} | ||
