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