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