3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
8 TELNETDIR
= ${.CURDIR
}/..
/..
/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
-DENV_HACK
22 .if
${MK_INET6_SUPPORT} != "no"
26 CFLAGS
+= -I
${TELNETDIR}
28 LIBTELNET
= ${.OBJDIR
}/..
/..
/lib
/libtelnet
/libtelnet.a
30 DPADD
= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
31 LDADD
= -lutil
-ltermcap
${LIBTELNET}
33 # XXX for src/release/picobsd
34 .if
!defined
(RELEASE_CRUNCH
)
35 .if
${MK_OPENSSL} != "no"
37 CFLAGS
+= -DAUTHENTICATION
-DENCRYPTION
38 DPADD
+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
39 LDADD
+= -lmp
-lcrypto
-lcrypt
${MINUSLPAM}
42 .if
${MK_KERBEROS_SUPPORT} != "no"
43 CFLAGS
+= -DKRB5
-DFORWARD
-Dnet_write
=telnet_net_write
44 DPADD
+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
45 LDADD
+= -lkrb5
-lhx509
-lasn1
-lroken
-lcom_err
49 .
include <bsd.prog.mk
>