1# $NetBSD: Makefile,v 1.6 2023/06/03 09:09:22 lukem Exp $ 2# $OpenBSD: Makefile,v 1.17 2004/07/16 23:44:24 frantzen Exp $ 3 4.include <bsd.own.mk> # for MKDYNAMICROOT definition 5 6PROG= pfctl 7SRCS= pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c 8SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c 9SRCS+= pfctl_optimize.c pf_ruleset.c 10CPPFLAGS+=-I${NETBSDSRCDIR}/dist/pf/sbin/pfctl 11CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf 12YFLAGS= 13MAN= pfctl.8 14 15# Ruleset and Anchor handling 16.PATH: ${NETBSDSRCDIR}/sys/dist/pf/net 17 18LDADD+= -lm 19DPADD+= ${LIBM} 20 21BINDIR= /sbin 22.if (${MKDYNAMICROOT} == "no") 23LDSTATIC?= -static 24.endif 25 26.include <bsd.prog.mk> 27 28COPTS.pfctl_osfp.c+= ${CC_WNO_FORMAT_TRUNCATION} 29 30.PATH: ${NETBSDSRCDIR}/dist/pf/sbin/pfctl 31