aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/Makefile
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 13:26:29 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 13:26:29 +0000
commit491bafe5c696c5d69dd48d51e45231b948433c23 (patch)
treece37a168ff680044697648a8a215dea40f1c639f /sbin/route/Makefile
parent74d580d7705d85046641953033dcafd5792d2e59 (diff)
downloadsrc-491bafe5c696c5d69dd48d51e45231b948433c23.tar.gz
src-491bafe5c696c5d69dd48d51e45231b948433c23.zip
Obey MK_INET6_SUPPORT.
This is also a good chance to apply style.Makefile(5) in some cases.
Notes
Notes: svn path=/head/; revision=160747
Diffstat (limited to 'sbin/route/Makefile')
-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 - | \