aboutsummaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
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 fede01d4dcc4..ef56dfd9286a 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 - | \