2004-02-28 21:50:50 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2013-12-26 15:51:14 +00:00
|
|
|
|
2012-09-14 11:51:49 +00:00
|
|
|
# pf_ruleset.c is shared between kernel and pfctl
|
2017-03-04 11:33:01 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/netpfil/pf
|
2004-02-28 21:50:50 +00:00
|
|
|
|
Create packages for atm, ccdconfig, devd, ipf, ipfw,
iscsi, natd, nandfs, pf, quotacheck, and routed.
Add ping6 and rtsol to the runtime package.
Sponsored by: The FreeBSD Foundation
2016-02-09 19:30:31 +00:00
|
|
|
PACKAGE=pf
|
2004-02-28 21:50:50 +00:00
|
|
|
PROG= pfctl
|
2012-09-14 11:51:49 +00:00
|
|
|
MAN= pfctl.8
|
2004-02-28 21:50:50 +00:00
|
|
|
|
|
|
|
SRCS = pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c
|
|
|
|
SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c
|
2005-05-03 16:57:38 +00:00
|
|
|
SRCS+= pfctl_optimize.c
|
2007-07-03 12:46:08 +00:00
|
|
|
SRCS+= pf_ruleset.c
|
2004-02-28 21:50:50 +00:00
|
|
|
|
2009-10-19 16:00:24 +00:00
|
|
|
WARNS?= 2
|
2004-02-28 21:50:50 +00:00
|
|
|
CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized
|
2012-09-14 11:51:49 +00:00
|
|
|
CFLAGS+= -Wstrict-prototypes
|
|
|
|
CFLAGS+= -DENABLE_ALTQ -I${.CURDIR}
|
2004-02-28 21:50:50 +00:00
|
|
|
|
2013-12-26 15:51:14 +00:00
|
|
|
# Need to use "WITH_" prefix to not conflict with the l/y INET/INET6 keywords
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DWITH_INET6
|
|
|
|
.endif
|
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DWITH_INET
|
|
|
|
.endif
|
|
|
|
|
2004-02-28 21:50:50 +00:00
|
|
|
YFLAGS=
|
|
|
|
|
2014-11-25 11:23:12 +00:00
|
|
|
LIBADD= m md
|
2004-02-28 21:50:50 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:38:36 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2017-07-15 19:22:01 +00:00
|
|
|
|
2004-02-28 21:50:50 +00:00
|
|
|
.include <bsd.prog.mk>
|