1# $FreeBSD: src/usr.bin/telnet/Makefile,v 1.33 2007/07/05 08:56:45 bz Exp $ 2 3PROG= telnet 4 5SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \ 6 telnet.c terminal.c utilities.c 7 8CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK \ 9 -I${.CURDIR}/../../lib -I${.CURDIR}/../../lib/libtelnet 10WARNS?= 2 11NO_STRICT_ALIASING= 12 13LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a 14 15.if !defined(NO_INET6) 16CFLAGS+= -DINET6 17.endif 18 19DPADD= ${LIBNCURSES} ${LIBTELNET} 20LDADD= -lprivate_ncurses ${LIBTELNET} 21CFLAGS+= -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses 22LDFLAGS+= ${PRIVATELIB_LDFLAGS} 23 24CFLAGS+= -DENCRYPTION -DAUTHENTICATION 25CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include 26DPADD+= ${LIBCRYPTO} ${LIBCRYPT} 27LDADD+= -lprivate_crypto -lcrypt 28 29.if !defined(RESCUE) 30# libtelnet requires PAM by default 31DPADD+= ${LIBPAM} 32LDADD+= ${MINUSLPAM} 33.endif 34 35.include <bsd.prog.mk> 36