2010-07-23 11:00:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../crypto/aesni
|
|
|
|
|
|
|
|
KMOD= aesni
|
2013-09-03 18:31:23 +00:00
|
|
|
SRCS= aesni.c
|
|
|
|
SRCS+= aeskeys_${MACHINE_CPUARCH}.S
|
2010-07-23 11:00:46 +00:00
|
|
|
SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h
|
|
|
|
|
2014-12-12 19:56:36 +00:00
|
|
|
OBJS+= aesni_ghash.o aesni_wrap.o
|
2013-09-03 18:31:23 +00:00
|
|
|
|
|
|
|
# Remove -nostdinc so we can get the intrinsics.
|
2014-12-12 19:56:36 +00:00
|
|
|
aesni_ghash.o: aesni_ghash.c
|
|
|
|
# XXX - gcc won't understand -mpclmul
|
|
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \
|
|
|
|
-mmmx -msse -msse4 -maes -mpclmul ${.IMPSRC}
|
|
|
|
${CTFCONVERT_CMD}
|
|
|
|
|
2013-09-03 18:31:23 +00:00
|
|
|
aesni_wrap.o: aesni_wrap.c
|
|
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} \
|
2014-12-12 19:56:36 +00:00
|
|
|
-mmmx -msse -msse4 -maes ${.IMPSRC}
|
2013-09-03 18:31:23 +00:00
|
|
|
${CTFCONVERT_CMD}
|
|
|
|
|
2015-07-04 08:16:32 +00:00
|
|
|
aesni_ghash.o: aesni.h
|
|
|
|
aesni_wrap.o: aesni.h
|
|
|
|
|
2010-07-23 11:00:46 +00:00
|
|
|
.include <bsd.kmod.mk>
|
2015-01-30 18:17:17 +00:00
|
|
|
|
|
|
|
CWARNFLAGS.aesni_ghash.c= ${NO_WCAST_QUAL}
|
|
|
|
CWARNFLAGS.aesni_wrap.c= ${NO_WCAST_QUAL}
|