37 lines
892 B
Makefile
37 lines
892 B
Makefile
# $NetBSD: Makefile.inc,v 1.19 2009/04/22 15:23:03 lukem Exp $
|
|
|
|
WARNS?= 1 # XXX -Wcast-qual -Wshadow
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
USE_FORT?= yes # network client/server
|
|
|
|
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
|
|
CPPFLAGS+= -DINET
|
|
|
|
.if (${USE_INET6} == "no")
|
|
CPPFLAGS+= -DNOINET6
|
|
.else
|
|
CPPFLAGS+= -DINET6
|
|
.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
|