Reported-by: CosmicDJ on #dragonflybsd
# $FreeBSD: src/sys/modules/cryptodev/Makefile,v 1.1.2.1 2002/11/21 23:38:46 sam Exp $
-# $DragonFly: src/sys/dev/crypto/cryptodev/Makefile,v 1.3 2003/08/15 08:32:28 dillon Exp $
.PATH: ${.CURDIR}/../../../opencrypto
KMOD = cryptodev
-SRCS = cryptodev.c
+SRCS = cryptodev.c device_if.h bus_if.h
.include <bsd.kmod.mk>
.PATH: ${.CURDIR}/../../net
KMOD= if_tun
-SRCS= if_tun.c opt_inet.h opt_inet6.h opt_ipx.h
+SRCS= if_tun.c opt_inet.h opt_inet6.h opt_ipx.h use_tun.h
-NBPF?= 1
-NTUN?= 2
+NTUN?= 2
CFLAGS+= ${PROTOS}
+CLEANFILES= use_tun.h
.if !defined(BUILDING_WITH_KERNEL)
opt_inet.h:
echo "#define IPX 1" > opt_ipx.h
.endif
+use_tun.h:
+ echo "#define NTUN ${NTUN}" > use_tun.h
+
.include <bsd.kmod.mk>