1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE= telnet 6 7TELNETDIR= ${SRCTOP}/contrib/telnet 8.PATH: ${TELNETDIR}/telnet 9 10PROG= telnet 11 12SRCS= commands.c main.c network.c ring.c sys_bsd.c \ 13 telnet.c terminal.c utilities.c 14 15CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \ 16 -I${TELNETDIR} -I${TELNETDIR}/libtelnet/ 17 18.if ${MK_INET6_SUPPORT} != "no" 19CFLAGS+= -DINET6 20.endif 21 22WARNS?= 2 23 24LIBADD= telnet tinfow 25 26CFLAGS+= -DIPSEC 27LIBADD+= ipsec 28 29.if ${MK_OPENSSL} != "no" 30SRCS+= authenc.c 31CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC 32LIBADD+= mp crypto ipsec pam 33.endif 34 35.if ${MK_KERBEROS_SUPPORT} != "no" 36CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write 37LIBADD+= krb5 roken 38.endif 39 40.include <bsd.prog.mk> 41