freebsd-dev/sys/modules/if_tun/Makefile
Peter Wemm 8e203b83a7 Undo #undef KERNEL hack for vnode.h to avoid vnode_if.h.
XXX It probably makes sense to have a flag for bsd.kern.mk to avoid these
    rules.
XXX IO_NDELAY seems to be the main reason for it, when used in a cdevsw
    read or write "flag" context.  Perhaps a redundant declaration
    somewhere like sys/conf.h might help remove the need for vnode.h in
    these device drivers in the first place.
1999-01-17 20:53:48 +00:00

28 lines
529 B
Makefile

# $Id: Makefile,v 1.7 1998/10/16 04:30:45 peter Exp $
.PATH: ${.CURDIR}/../../net
KMOD= if_tun
SRCS= if_tun.c bpfilter.h opt_devfs.h opt_inet.h tun.h vnode_if.h
NOMAN=
CLEANFILES+= vnode_if.h vnode_if.c
NBPFILTER?= 0
NTUN?= 2
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h opt_devfs.h opt_inet.h tun.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
opt_devfs.h:
touch opt_devfs.h
opt_inet.h:
echo "#define INET 1" > opt_inet.h
tun.h:
echo "#define NTUN ${NTUN}" > tun.h
.include <bsd.kmod.mk>