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
|
|
|
|
.PATH: ${.CURDIR}/../../sys/netpfil/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
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|