freebsd-skq/usr.sbin/flowctl/Makefile
Sergey Kandaurov 6765aefcf3 Conditionally compile in the IPv4/IPv6 address family support.
Test it with feature_present(3), so that we do not end up with passing
an unsupported version to NgSendMsg(3).

Approved by:	glebius
2011-07-06 15:18:32 +00:00

22 lines
258 B
Makefile

#
# $FreeBSD$
#
.include <bsd.own.mk>
PROG= flowctl
MAN= flowctl.8
WARNS?= 2
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
.if ${MK_INET_SUPPORT} != "no"
CFLAGS+= -DINET
.endif
.include <bsd.prog.mk>