# $FreeBSD: src/sys/modules/if_tun/Makefile,v 1.19.2.1 2001/07/24 09:49:42 dd Exp $

KMOD=   if_tun
SRCS=   if_tun.c opt_inet.h opt_inet6.h opt_ipx.h use_tun.h

NTUN?=	2

.if !defined(BUILDING_WITH_KERNEL)
opt_inet.h:
	echo "#define INET 1" > ${.TARGET}

opt_inet6.h:
	echo "#define INET6 1" > ${.TARGET}

opt_ipx.h:
	echo "#define IPX 1" > ${.TARGET}
.endif

use_tun.h:
	echo "#define NTUN ${NTUN}" > ${.TARGET}

.include <bsd.kmod.mk>
