NetBSD/usr.sbin/ipf/Makefile.inc
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00

30 lines
771 B
Makefile

# $NetBSD: Makefile.inc,v 1.15 2005/01/10 02:58:59 lukem Exp $
.include <bsd.own.mk>
CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf
CPPFLAGS+= -I${NETBSDSRCDIR}/dist/ipf/tools
CPPFLAGS+= -I${NETBSDSRCDIR}/sys
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/dist/ipf
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/dist/ipf/netinet
CPPFLAGS+= -DSTATETOP -D__UIO_EXPOSE
.if (${USE_INET6} == "no")
CPPFLAGS+= -DNOINET6
.endif
IPFOBJDIR!= cd $(.CURDIR)/../libipf && ${PRINTOBJDIR}
DPADD+= ${IPFOBJDIR}/libipf.a ${LIBKVM}
LDADD+= -L${IPFOBJDIR} -lipf -lkvm
CLEANFILES+= y.tab.c y.tab.h
.PATH: ${NETBSDSRCDIR}/dist/ipf \
${NETBSDSRCDIR}/dist/ipf/lib \
${NETBSDSRCDIR}/dist/ipf/tools \
${NETBSDSRCDIR}/dist/ipf/man
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif