1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/crypto/openssl 4.PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} 5 6KMOD= ossl 7SRCS= bus_if.h \ 8 cryptodev_if.h \ 9 device_if.h \ 10 ossl.c \ 11 ossl_sha1.c \ 12 ossl_sha256.c \ 13 ossl_sha512.c \ 14 ${SRCS.${MACHINE_CPUARCH}} 15 16SRCS.aarch64= \ 17 sha1-armv8.S \ 18 sha256-armv8.S \ 19 sha512-armv8.S \ 20 ossl_aarch64.c 21 22SRCS.amd64= \ 23 sha1-x86_64.S \ 24 sha256-x86_64.S \ 25 sha512-x86_64.S \ 26 ossl_x86.c 27 28SRCS.i386= \ 29 sha1-586.S \ 30 sha256-586.S \ 31 sha512-586.S \ 32 ossl_x86.c 33 34# For arm64, we are forced to rewrite the compiler invocation for the assembly 35# files, to remove -mgeneral-regs-only. 36${SRCS.aarch64:M*.S:S/S/o/}: ${.TARGET:R}.S 37 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC} 38 ${CTFCONVERT_CMD} 39 40.include <bsd.kmod.mk> 41