1# $FreeBSD$ 2 3.include <bsd.own.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 20LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a 21 22DPADD= ${LIBTERMCAP} ${LIBTELNET} 23LDADD= -ltermcap ${LIBTELNET} 24 25.if !defined(RELEASE_CRUNCH) 26CFLAGS+= -DIPSEC 27DPADD+= ${LIBIPSEC} 28LDADD+= -lipsec 29.else 30.PATH: ${TELNETDIR}/libtelnet 31SRCS+= genget.c getent.c misc.c 32CFLAGS+= -DHAS_CGETENT 33.endif 34 35.if !defined(RELEASE_CRUNCH) 36.if ${MK_OPENSSL} != "no" 37SRCS+= authenc.c 38CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC 39DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM} 40LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM} 41.endif 42 43.if ${MK_KERBEROS_SUPPORT} != "no" 44CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write 45DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} 46LDADD+= -lkrb5 -lasn1 -lcom_err -lroken 47.endif 48.endif 49 50.include <bsd.prog.mk> 51