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