1# From: @(#)Makefile 8.3 (Berkeley) 4/2/94 2# $Id: Makefile,v 1.15 1995/08/13 16:07:28 wpaul Exp $ 3 4PROG= passwd 5SRCS= local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c 6DPADD= ${LIBCRYPT} ${LIBRPCSVC} 7LDADD= -lcrypt -lrpcsvc 8.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 9 ${.CURDIR}/../rlogin 10 11CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \ 12 -I${.CURDIR}/../../usr.bin/chpass 13 14BINOWN= root 15BINMODE=4555 16MAN1=passwd.1 17LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd 18MLINKS=passwd.1 yppasswd.1 19 20.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES)) 21SRCS+= kpasswd.c 22.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 23 ${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \ 24 ${.CURDIR}/../../eBones/passwd 25 26CFLAGS+= -DKERBEROS \ 27 -I${.CURDIR}/../../eBones/include \ 28 -I${.CURDIR}/../../eBones/libkadm 29# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} 30DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} 31LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err 32DISTRIBUTION= krb 33.endif 34 35beforeinstall: 36 [ ! -e ${DESTDIR}${BINDIR}/passwd ] || \ 37 chflags noschg ${DESTDIR}${BINDIR}/passwd 38 39afterinstall: 40 chflags schg ${DESTDIR}${BINDIR}/passwd 41 42.include <bsd.prog.mk> 43