mirror of
https://github.com/opnsense/src.git
synced 2026-03-08 00:01:54 -05:00
that doesn't have it. This is achieved by having minimal do-nothing stubs enabled when there are no bpfilter devices configured. Driver modules should be built with BPF enabled for maximum convenience (but can be built without it for maximum performance).
27 lines
529 B
Makefile
27 lines
529 B
Makefile
# $Id: Makefile,v 1.8 1999/01/17 20:53:47 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?= 1
|
|
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>
|