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