1# $FreeBSD: src/usr.bin/telnet/Makefile,v 1.33 2007/07/05 08:56:45 bz Exp $ 2 3PROG= telnet 4 5SRCS= 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 -DOPIE \ 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} 21LDFLAGS+= -rpath /lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv 22 23CFLAGS+= -DIPSEC 24DPADD+= ${LIBIPSEC} 25LDADD+= -lipsec 26 27.if !defined(NO_LIBRESSL) 28SRCS+= authenc.c 29CFLAGS+= -DENCRYPTION -DAUTHENTICATION 30DPADD+= ${LIBRECRYPTO} ${LIBCRYPT} ${LIBPAM} 31LDADD+= -lprivate_crypto -lcrypt ${MINUSLPAM} 32LDFLAGS+= -rpath /lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv 33CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include 34.endif 35 36.include <bsd.prog.mk> 37