1# From: @(#)Makefile 8.3 (Berkeley) 4/2/94 2# $Id: Makefile,v 1.11 1995/02/14 15:38:13 wpaul Exp $ 3 4PROG= passwd 5SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c 6LDADD= -lcrypt 7.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 8 ${.CURDIR}/../rlogin ${.CURDIR}/../../gnu/usr.sbin/yppasswdd 9 10CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \ 11 -I${.CURDIR}/../../usr.bin/chpass \ 12 -I${.CURDIR}/../../gnu/usr.sbin/yppasswdd 13 14BINOWN= root 15BINMODE=4555 16INSTALLFLAGS=-fschg 17MAN1=passwd.1 yppasswd.1 18MLINKS=yppasswd.1 ypchsh.1 yppasswd.1 ypchpass.1 yppasswd.1 ypchfn.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 29LDADD= -lkadm -lkrb -ldes -lcrypt -lcom_err 30.endif 31 32afterinstall: 33 ln -sf passwd ${DESTDIR}${BINDIR}/yppasswd 34 ln -sf passwd ${DESTDIR}${BINDIR}/ypchsh 35 ln -sf passwd ${DESTDIR}${BINDIR}/ypchfn 36 ln -sf passwd ${DESTDIR}${BINDIR}/ypchpass 37 38.include <bsd.prog.mk> 39