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"
22 LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
24 DPADD= ${LIBTERMCAP} ${LIBTELNET}
25 LDADD= -ltermcap ${LIBTELNET}
27 .if !defined(RELEASE_CRUNCH)
32 .PATH: ${TELNETDIR}/libtelnet
33 SRCS+= genget.c getent.c misc.c
34 CFLAGS+= -DHAS_CGETENT
37 .if !defined(RELEASE_CRUNCH)
38 .if ${MK_OPENSSL} != "no"
40 CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
41 DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
42 LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
45 .if ${MK_KERBEROS_SUPPORT} != "no"
46 CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
47 DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
48 LDADD+= -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
52 .include <bsd.prog.mk>