3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
8 TELNETDIR= ${SRCTOP}/contrib/telnet
9 .PATH: ${TELNETDIR}/telnetd
14 SRCS= global.c slc.c state.c sys_term.c telnetd.c \
20 CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
21 -DENV_HACK -DSTREAMSPTY
23 .if ${MK_INET6_SUPPORT} != "no"
27 CFLAGS+= -I${TELNETDIR}
28 CFLAGS+= -I${TELNETDIR}/telnet
30 LIBADD= telnet util ncursesw
32 .if ${MK_OPENSSL} != "no"
34 CFLAGS+= -DAUTHENTICATION -DENCRYPTION
35 LIBADD+= mp crypto pam
38 .if ${MK_KERBEROS_SUPPORT} != "no"
39 CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
43 .include <bsd.prog.mk>