summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-07-27 12:15:37 +0000
committeryar <yar@FreeBSD.org>2006-07-27 12:15:37 +0000
commit856c09a08ab60eb34a27b37ce184a50e74d1c5c7 (patch)
tree0a3040be6dd2da8da142765a5e617b02f2e93f65 /libexec/telnetd
parent423dee4361585c2fdf74171b53ab41936a05e20b (diff)
downloadFreeBSD-src-856c09a08ab60eb34a27b37ce184a50e74d1c5c7.zip
FreeBSD-src-856c09a08ab60eb34a27b37ce184a50e74d1c5c7.tar.gz
Respect MK_INET6_SUPPORT.
Apply style.Makefile(5).
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 11f4b0c..4281db8 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -14,13 +14,17 @@ MAN= telnetd.8
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c
-CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
- -DENV_HACK \
- -I${TELNETDIR} -DINET6
-
WARNS?= 2
WFORMAT?= 0
+CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK
+
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DINET6
+.endif
+
+CFLAGS+= -I${TELNETDIR}
+
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
OpenPOWER on IntegriCloud