1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
24 lines
362 B
Makefile
24 lines
362 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../sys/net
|
|
KMOD= if_tun_mod
|
|
SRCS= if_tun.c bpfilter.h tun.h
|
|
NOMAN=
|
|
PSEUDO_LKM=
|
|
CFLAGS+= -I.
|
|
|
|
NBPFILTER?= 0
|
|
NTUN?= 2
|
|
PROTOS?= -DINET
|
|
|
|
CFLAGS+= ${PROTOS}
|
|
CLEANFILES+= bpfilter.h tun.h
|
|
|
|
bpfilter.h:
|
|
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
|
|
|
|
tun.h:
|
|
echo "#define NTUN ${NTUN}" > tun.h
|
|
|
|
.include <bsd.kmod.mk>
|