1
2.include <src.opts.mk>
3
4PACKAGE=pf
5CONFS=	pf.os
6PROG=	pfctl
7MAN=	pfctl.8
8
9SRCS = pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c
10SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c
11SRCS+= pfctl_optimize.c
12SRCS+= pf_ruleset.c
13
14WARNS?=	2
15CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized
16CFLAGS+= -Wstrict-prototypes
17CFLAGS+= -DENABLE_ALTQ -I${.CURDIR}
18CFLAGS+= -I${SRCTOP}/lib/libpfctl -I${OBJTOP}/lib/libpfctl
19
20# Need to use "WITH_" prefix to not conflict with the l/y INET/INET6 keywords
21.if ${MK_INET6_SUPPORT} != "no"
22CFLAGS+= -DWITH_INET6
23.endif
24.if ${MK_INET_SUPPORT} != "no"
25CFLAGS+= -DWITH_INET
26.endif
27
28YFLAGS=
29
30LIBADD=	m md pfctl
31
32HAS_TESTS=
33SUBDIR.${MK_TESTS}+= tests
34
35.include <bsd.prog.mk>
36