summaryrefslogtreecommitdiff
path: root/libexec/rshd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rshd/Makefile')
-rw-r--r--libexec/rshd/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/libexec/rshd/Makefile b/libexec/rshd/Makefile
index bf4b594e99e6d..2c0ac884c0e61 100644
--- a/libexec/rshd/Makefile
+++ b/libexec/rshd/Makefile
@@ -1,4 +1,5 @@
-# @(#)Makefile 5.6 (Berkeley) 9/27/90
+# $Id: Makefile,v 1.5 1994/03/04 20:36:58 wollman Exp $
+# From: @(#)Makefile 5.6 (Berkeley) 9/27/90
PROG= rshd
SRCS= rshd.c
@@ -7,11 +8,14 @@ DPADD= ${LIBUTIL}
LDADD= -lutil
.PATH: ${.CURDIR}/../../usr.bin/rlogin
-.if exists(/usr/lib/libcrypt.a)
-#CFLAGS+=-DCRYPT -DKERBEROS
-DPADD+= ${LIBCRYPT} #${LIBKRB}
-LDADD+= -lcrypt #-lkrb
+.if exists(${DESTDIR}/usr/lib/libcrypt.a)
+DPADD+= ${LIBCRYPT}
+LDADD+= -lcrypt
+.endif
+.if exists(${DESTDIR}/usr/lib/libkrb.a)
+DPADD+= ${LIBKRB} ${LIBDES}
+LDADD+= -lkrb -ldes
+CFLAGS+= -DKERBEROS -DCRYPT
.endif
-
.include <bsd.prog.mk>