kernel: Add some missing headers to the Makefiles of cryptodev and tun.
authorSascha Wildner <saw@online.de>
Sun, 29 Jan 2012 21:39:58 +0000 (22:39 +0100)
committerSascha Wildner <saw@online.de>
Sun, 29 Jan 2012 21:39:58 +0000 (22:39 +0100)
Reported-by: CosmicDJ on #dragonflybsd
sys/dev/crypto/cryptodev/Makefile
sys/net/tun/Makefile

index 515b4e2..bdaeda9 100644 (file)
@@ -1,8 +1,7 @@
 # $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>
index ed19c7f..8081e0d 100644 (file)
@@ -2,12 +2,12 @@
 
 .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:
@@ -20,4 +20,7 @@ opt_ipx.h:
        echo "#define IPX 1" > opt_ipx.h
 .endif
 
+use_tun.h:
+       echo "#define NTUN ${NTUN}" > use_tun.h
+
 .include <bsd.kmod.mk>