summaryrefslogtreecommitdiffstats
path: root/sbin/route
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-07-27 13:26:29 +0000
committeryar <yar@FreeBSD.org>2006-07-27 13:26:29 +0000
commit51c5aa346aa124a853822a7232945abaa7d17b60 (patch)
treece37a168ff680044697648a8a215dea40f1c639f /sbin/route
parentc6e8412606712a40238dd87fa9c27f8342f2f55b (diff)
downloadFreeBSD-src-51c5aa346aa124a853822a7232945abaa7d17b60.zip
FreeBSD-src-51c5aa346aa124a853822a7232945abaa7d17b60.tar.gz
Obey MK_INET6_SUPPORT.
This is also a good chance to apply style.Makefile(5) in some cases.
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/sbin/route/Makefile b/sbin/route/Makefile
index fede01d..ef56dfd 100644
--- a/sbin/route/Makefile
+++ b/sbin/route/Makefile
@@ -1,14 +1,22 @@
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= route
MAN= route.8
SRCS= route.c keywords.h
-CFLAGS+=-I. -Wall -DNS
-CFLAGS+=-DINET6
WARNS?= 0
CLEANFILES+=keywords.h _keywords.tmp
+CFLAGS+= -DNS
+
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DINET6
+.endif
+
+CFLAGS+= -I.
+
keywords.h: keywords
sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
LC_ALL=C tr 'a-z' 'A-Z' < _keywords.tmp | paste _keywords.tmp - | \
OpenPOWER on IntegriCloud