aboutsummaryrefslogtreecommitdiff
path: root/secure/usr.bin/telnet/Makefile
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1995-07-20 11:40:06 +0000
committerPaul Traina <pst@FreeBSD.org>1995-07-20 11:40:06 +0000
commit9809ff32f6a90857a60234aa64e9a10b4af591f0 (patch)
tree16908c200b05bff2e4532927f105621ae791d795 /secure/usr.bin/telnet/Makefile
parent24aa09cd4f883e5b85f8215f3f75130a9772915e (diff)
downloadsrc-9809ff32f6a90857a60234aa64e9a10b4af591f0.tar.gz
src-9809ff32f6a90857a60234aa64e9a10b4af591f0.zip
Update telnet to the 95.05.31 release.
Obtained from: Dave Borman <dab@cray.com>
Notes
Notes: svn path=/head/; revision=9590
Diffstat (limited to 'secure/usr.bin/telnet/Makefile')
-rw-r--r--secure/usr.bin/telnet/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/secure/usr.bin/telnet/Makefile b/secure/usr.bin/telnet/Makefile
index 1c8bd26f7a92..1f4b2882d447 100644
--- a/secure/usr.bin/telnet/Makefile
+++ b/secure/usr.bin/telnet/Makefile
@@ -35,14 +35,27 @@
PROG= telnet
-CFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO #-DAUTHENTICATION -DENCRYPTION
+CFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO
CFLAGS+=-DENV_HACK
CFLAGS+=-I${.CURDIR}/../../lib
-#CFLAGS+= -DKRB4
+#ifdef ENCRYPTION
+
+CFLAGS+=-DAUTHENTICATION -DENCRYPTION
+
+.if exists(/usr/lib/libkrb.a)
+CFLAGS+= -DKRB4
+LDADD+= -lkrb -ldes
+.endif
+
+.if exists(/usr/lib/libkrb4.a)
+CFLAGS+= -DKRB5 -DFORWARD
+LDADD+= -lkrb5 -ldes
+.endif
+
+#endif /* ENCRYPTION */
LDADD= -ltermcap -ltelnet
-#LDADD+= -lkrb -ldes
DPADD= ${LIBTERMCAP}
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \