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