aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/telnet/Makefile
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 14:19:30 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-07-27 14:19:30 +0000
commitd1773e839f6f75f906e5ed8fda29cbaa91b9e621 (patch)
treecff84b911e3928deb00aa088e8845530a358f9f5 /usr.bin/telnet/Makefile
parent46ae6656134cb0ff299fa4be1664c328ea05c1e7 (diff)
downloadsrc-d1773e839f6f75f906e5ed8fda29cbaa91b9e621.tar.gz
src-d1773e839f6f75f906e5ed8fda29cbaa91b9e621.zip
Respect MK_INET6_SUPPORT.
Move INET6 out of the RELEASE_CRUNCH conditional block because it saves as little as 2% of the binary size and IPv6 is rather popular today. (Some other binaries, e.g., telnetd, include INET6 for RELEASE_CRUNCH already.)
Notes
Notes: svn path=/head/; revision=160749
Diffstat (limited to 'usr.bin/telnet/Makefile')
-rw-r--r--usr.bin/telnet/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index 424f261376c9..c688c5231ace 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -13,13 +13,17 @@ SRCS= commands.c main.c network.c ring.c sys_bsd.c \
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DINET6
+.endif
+
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
DPADD= ${LIBTERMCAP} ${LIBTELNET}
LDADD= -ltermcap ${LIBTELNET}
.if !defined(RELEASE_CRUNCH)
-CFLAGS+= -DINET6 -DIPSEC
+CFLAGS+= -DIPSEC
DPADD+= ${LIBIPSEC}
LDADD+= -lipsec
.else