aboutsummaryrefslogtreecommitdiff
path: root/libexec/rlogind/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rlogind/Makefile')
-rw-r--r--libexec/rlogind/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/libexec/rlogind/Makefile b/libexec/rlogind/Makefile
index 90254a106465..3ca4401cf755 100644
--- a/libexec/rlogind/Makefile
+++ b/libexec/rlogind/Makefile
@@ -1,4 +1,5 @@
-# @(#)Makefile 5.9 (Berkeley) 9/27/90
+# $Id: Makefile,v 1.5 1994/03/04 20:32:55 wollman Exp $
+# From: @(#)Makefile 5.9 (Berkeley) 9/27/90
PROG= rlogind
SRCS= rlogind.c
@@ -7,10 +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)
+CFLAGS+= -DKERBEROS
+DPADD+= ${LIBKRB} ${LIBDES}
+LDADD+= -lkrb -ldes
.endif
.include <bsd.prog.mk>