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