xref: /freebsd/sbin/ipf/Makefile.inc (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1e722d6f2SCy Schubert.include <src.opts.mk>
2e722d6f2SCy Schubert
3106d8391SRuslan ErmilovWARNS?=		2
4650fd1e4SDimitry AndricNO_WFORMAT=
5106d8391SRuslan Ermilov
622289a8cSEnji CooperCFLAGS+=	-I${SRCTOP}/sys
73b9b51feSCy SchubertCFLAGS+=	-I${SRCTOP}/sys/netpfil/ipfilter
8*41edb306SCy SchubertCFLAGS+=	-I${SRCTOP}/sbin/ipf/common
9f81bd860SDarren ReedCFLAGS+=	-DSTATETOP -D__UIO_EXPOSE
10f81bd860SDarren Reed
11e722d6f2SCy Schubert.if ${MK_INET6_SUPPORT} != "no"
12e722d6f2SCy SchubertCFLAGS+=	-DUSE_INET6
13e722d6f2SCy Schubert.else
14e722d6f2SCy SchubertCFLAGS+=	-DNOINET6
15e722d6f2SCy Schubert.endif
16e722d6f2SCy Schubert
17b748535cSBryan Drewery.if ${.CURDIR:M*/libipf} == ""
1813eb765fSBaptiste DaroussinLIBADD+=	ipf
19b748535cSBryan Drewery.endif
20f81bd860SDarren Reed
21f81bd860SDarren ReedCLEANFILES+=	y.tab.c y.tab.h
22f81bd860SDarren Reed
23*41edb306SCy Schubert.PATH:	${SRCTOP}/sbin/ipf/libipf		\
24*41edb306SCy Schubert	${SRCTOP}/sbin/ipf/common
25f81bd860SDarren Reed
2695f55a63SRuslan Ermilov.include "../Makefile.inc"
27