1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5TELNETDIR= ${.CURDIR}/../../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 24.if !defined(RELEASE_CRUNCH) 25CFLAGS+= -DIPSEC 26LIBADD+= ipsec 27.else 28.PATH: ${TELNETDIR}/libtelnet 29SRCS+= genget.c getent.c misc.c 30CFLAGS+= -DHAS_CGETENT 31.endif 32 33.if ${MK_OPENSSL} != "no" 34SRCS+= authenc.c 35CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC 36LIBADD+= mp crypto ipsec pam 37.endif 38 39.if ${MK_KERBEROS_SUPPORT} != "no" 40CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write 41LIBADD+= krb5 roken 42.endif 43 44.include <bsd.prog.mk> 45