From e9bb220eefc37eecee5de118173282f633485000 Mon Sep 17 00:00:00 2001 From: csgr Date: Thu, 29 Sep 1994 13:06:54 +0000 Subject: First level of changes for bringing in eBones (kerberos). - Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile, and replace with MAKE_KERBEROS and MAKE_EBONES. (Far fewer contortions, and both default to off.) IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY DEFINE ONE OF THESE. - Make Makefiles kerberos-aware. --- usr.bin/passwd/Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'usr.bin/passwd/Makefile') diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 1614ba4..f502361 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -1,15 +1,24 @@ -# @(#)Makefile 8.3 (Berkeley) 4/2/94 +# From: @(#)Makefile 8.3 (Berkeley) 4/2/94 +# $Id$ PROG= passwd SRCS= local_passwd.c passwd.c pw_copy.c pw_util.c LDADD= -lcrypt -#krb_passwd.c -#DPADD= ${LIBKRB} ${LIBDES} .PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ ${.CURDIR}/../rlogin CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \ -I${.CURDIR}/../../usr.bin/chpass -#LDADD+=-lkrb -ldes + + +.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \ + || defined(MAKE_EBONES)) +SRCS+= krb_passwd.c +CFLAGS+=-DKERBEROS +LDADD+=-lkrb -ldes +DPADD= ${LIBKRB} ${LIBDES} +.endif + + BINOWN= root BINMODE=4555 INSTALLFLAGS=-fschg -- cgit v1.1