1126385Smlaier# $FreeBSD: releng/10.2/sbin/pfctl/Makefile 270047 2014-08-16 13:20:44Z bz $ 2126385Smlaier 3270047Sbz.include <bsd.own.mk> 4270047Sbz 5240494Sglebius# pf_ruleset.c is shared between kernel and pfctl 6240494Sglebius.PATH: ${.CURDIR}/../../sys/netpfil/pf 7126385Smlaier 8126385SmlaierPROG= pfctl 9240494SglebiusMAN= pfctl.8 10126385Smlaier 11126385SmlaierSRCS = pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c 12126385SmlaierSRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c 13145841SmlaierSRCS+= pfctl_optimize.c 14171173SmlaierSRCS+= pf_ruleset.c 15126385Smlaier 16198236SruWARNS?= 2 17126385SmlaierCFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized 18240494SglebiusCFLAGS+= -Wstrict-prototypes 19240494SglebiusCFLAGS+= -DENABLE_ALTQ -I${.CURDIR} 20126385Smlaier 21270047Sbz# Need to use "WITH_" prefix to not conflict with the l/y INET/INET6 keywords 22270047Sbz.if ${MK_INET6_SUPPORT} != "no" 23270047SbzCFLAGS+= -DWITH_INET6 24270047Sbz.endif 25270047Sbz.if ${MK_INET_SUPPORT} != "no" 26270047SbzCFLAGS+= -DWITH_INET 27270047Sbz.endif 28270047Sbz 29126385SmlaierYFLAGS= 30126385Smlaier 31126385SmlaierLDADD+= -lm -lmd 32157721SruDPADD+= ${LIBM} ${LIBMD} 33126385Smlaier 34126385Smlaier.include <bsd.prog.mk> 35