aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/telnet/Makefile
diff options
context:
space:
mode:
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