diff options
author | yar <yar@FreeBSD.org> | 2006-07-27 13:26:29 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-27 13:26:29 +0000 |
commit | 51c5aa346aa124a853822a7232945abaa7d17b60 (patch) | |
tree | ce37a168ff680044697648a8a215dea40f1c639f /sbin/setkey | |
parent | c6e8412606712a40238dd87fa9c27f8342f2f55b (diff) | |
download | FreeBSD-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/setkey')
-rw-r--r-- | sbin/setkey/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sbin/setkey/Makefile b/sbin/setkey/Makefile index 794d6dd..9dd7cf5 100644 --- a/sbin/setkey/Makefile +++ b/sbin/setkey/Makefile @@ -27,9 +27,12 @@ # # $FreeBSD$ +.include <bsd.own.mk> + PROG= setkey MAN= setkey.8 SRCS= setkey.c parse.y token.l +WARNS?= 1 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../lib/libipsec YFLAGS= -d @@ -47,7 +50,11 @@ CFLAGS+= -I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey SRCS+= y.tab.h y.tab.h: parse.y -CFLAGS+= -DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT -I. +CFLAGS+= -DIPSEC_DEBUG -DYY_NO_UNPUT +.if ${MK_INET6_SUPPORT} != "no" +CFLAGS+= -DINET6 +.endif +CFLAGS+= -I. DPADD+= ${LIBIPSEC} LDADD+= -lipsec CLEANFILES+= scriptdump y.tab.h @@ -56,8 +63,6 @@ CLEANFILES+= scriptdump y.tab.h LOCALPREFIX= /usr -WARNS= 1 - scriptdump: scriptdump.pl sed -e 's#@LOCALPREFIX@#${LOCALPREFIX}#' < $> > scriptdump |