1999-01-17 20:53:48 +00:00
|
|
|
# $Id: Makefile,v 1.7 1998/10/16 04:30:45 peter Exp $
|
1995-03-20 19:25:49 +00:00
|
|
|
|
1998-10-16 04:30:52 +00:00
|
|
|
.PATH: ${.CURDIR}/../../net
|
|
|
|
KMOD= if_tun
|
1999-01-17 20:53:48 +00:00
|
|
|
SRCS= if_tun.c bpfilter.h opt_devfs.h opt_inet.h tun.h vnode_if.h
|
1995-03-20 19:25:49 +00:00
|
|
|
NOMAN=
|
1999-01-17 20:53:48 +00:00
|
|
|
CLEANFILES+= vnode_if.h vnode_if.c
|
1995-03-20 19:25:49 +00:00
|
|
|
|
|
|
|
NBPFILTER?= 0
|
|
|
|
NTUN?= 2
|
|
|
|
|
|
|
|
CFLAGS+= ${PROTOS}
|
1998-01-24 02:21:53 +00:00
|
|
|
CLEANFILES+= bpfilter.h opt_devfs.h opt_inet.h tun.h
|
1995-03-20 19:25:49 +00:00
|
|
|
|
|
|
|
bpfilter.h:
|
|
|
|
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
|
|
|
|
|
1998-01-24 02:21:53 +00:00
|
|
|
opt_devfs.h:
|
|
|
|
touch opt_devfs.h
|
|
|
|
|
1998-01-08 23:50:27 +00:00
|
|
|
opt_inet.h:
|
|
|
|
echo "#define INET 1" > opt_inet.h
|
|
|
|
|
1995-03-20 19:25:49 +00:00
|
|
|
tun.h:
|
|
|
|
echo "#define NTUN ${NTUN}" > tun.h
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|