1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5# pf_ruleset.c is shared between kernel and pfctl 6.PATH: ${.CURDIR}/../../sys/netpfil/pf 7 8PROG= pfctl 9MAN= pfctl.8 10 11SRCS = pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c 12SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c 13SRCS+= pfctl_optimize.c 14SRCS+= pf_ruleset.c 15 16WARNS?= 2 17CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized 18CFLAGS+= -Wstrict-prototypes 19CFLAGS+= -DENABLE_ALTQ -I${.CURDIR} 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 31LDADD+= -lm -lmd 32DPADD+= ${LIBM} ${LIBMD} 33 34.include <bsd.prog.mk> 35