5 TELNETDIR= ${.CURDIR}/../../contrib/telnet
6 .PATH: ${TELNETDIR}/telnet
10 SRCS= commands.c main.c network.c ring.c sys_bsd.c \
11 telnet.c terminal.c utilities.c
13 CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
14 -I${TELNETDIR} -I${TELNETDIR}/libtelnet/
16 .if ${MK_INET6_SUPPORT} != "no"
20 LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
22 DPADD= ${LIBTERMCAP} ${LIBTELNET}
23 LDADD= -ltermcap ${LIBTELNET}
25 .if !defined(RELEASE_CRUNCH)
30 .PATH: ${TELNETDIR}/libtelnet
31 SRCS+= genget.c getent.c misc.c
32 CFLAGS+= -DHAS_CGETENT
35 .if !defined(RELEASE_CRUNCH)
36 .if ${MK_OPENSSL} != "no"
38 CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
39 DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
40 LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
43 .if ${MK_KERBEROS_SUPPORT} != "no"
44 CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
45 DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
46 LDADD+= -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
50 .include <bsd.prog.mk>