1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../crypto/aesni 4 5KMOD= aesni 6SRCS= aesni.c 7SRCS+= aeskeys_${MACHINE_CPUARCH}.S 8SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h 9 10OBJS+= aesni_ghash.o aesni_wrap.o 11 12# Remove -nostdinc so we can get the intrinsics. 13aesni_ghash.o: aesni_ghash.c 14 # XXX - gcc won't understand -mpclmul 15 ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ 16 -mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC} 17 ${CTFCONVERT_CMD} 18 19aesni_wrap.o: aesni_wrap.c 20 ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \ 21 -mmmx -msse -msse4 -maes ${.IMPSRC} 22 ${CTFCONVERT_CMD} 23 24aesni_ghash.o: aesni.h 25aesni_wrap.o: aesni.h 26 27.include <bsd.kmod.mk> 28 29CWARNFLAGS.aesni_ghash.c= ${NO_WCAST_QUAL} 30CWARNFLAGS.aesni_wrap.c= ${NO_WCAST_QUAL} 31