aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/telnet
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
commit98e0ffaefb0f241cda3a72395d3be04192ae0d47 (patch)
tree55c065b6730aaac2afb6c29933ee6ec5fa4c4249 /usr.bin/telnet
parentb17ff922d4072ae132ece458f5b5d74a236880ac (diff)
parente81032ad243db32b8fd615b2d55ee94b9f6a5b6a (diff)
Notes
Diffstat (limited to 'usr.bin/telnet')
-rw-r--r--usr.bin/telnet/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index b88f8e1a532c6..a24a9669fb55a 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -19,15 +19,11 @@ CFLAGS+= -DINET6
WARNS?= 2
-LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
-
-DPADD= ${LIBTERMCAPW} ${LIBTELNET}
-LDADD= -ltermcapw ${LIBTELNET}
+LIBADD= telnet ncursesw
.if !defined(RELEASE_CRUNCH)
CFLAGS+= -DIPSEC
-DPADD+= ${LIBIPSEC}
-LDADD+= -lipsec
+LIBADD+= ipsec
.else
.PATH: ${TELNETDIR}/libtelnet
SRCS+= genget.c getent.c misc.c
@@ -35,16 +31,14 @@ CFLAGS+= -DHAS_CGETENT
.endif
.if ${MK_OPENSSL} != "no"
-SRCS+= authenc.c
+SRCS+= authenc.c
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
-DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
-LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
+LIBADD+= mp crypto ipsec pam
.endif
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
-DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
-LDADD+= -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
+LIBADD+= krb5 roken
.endif
.include <bsd.prog.mk>