The pf' and
pflog' sources do not depend on DEV_PF or DEV_PFLOG,
which is normal for own files of a device driver. DEV_FOO should be used if an unrelated kernel file needs to know of the `foo' driver's static presence. Obviously, module source files should never use DEV_*.
This commit is contained in:
parent
2fe9aa26c6
commit
10dbb44a9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156499
@ -11,9 +11,6 @@ SRCS = pf.c pf_if.c pf_subr.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
|
||||
CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_pf.h:
|
||||
echo "#define DEV_PF 1" > opt_pf.h
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
||||
|
@ -9,9 +9,6 @@ SRCS = if_pflog.c \
|
||||
CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_pf.h:
|
||||
echo "#define DEV_PFLOG 1" > opt_pf.h
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user