1# @(#)Makefile 8.2 (Berkeley) 4/2/94 2 3PROG= chpass 4SRCS= chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c table.c util.c 5BINOWN= root 6BINMODE=4555 7.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw 8CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw 9LINKS= ${BINDIR}/chpass ${BINDIR}/chfn 10LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh 11LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass 12LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn 13LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh 14MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 15COPTS+= -DYP 16SRCS+= pw_yp.c 17DPADD= ${LIBRPCSVC} ${LIBCRYPT} 18LDADD+= -lrpcsvc -lcrypt 19 20beforeinstall: 21 [ ! -e ${DESTDIR}${BINDIR}/chpass ] || \ 22 chflags noschg ${DESTDIR}${BINDIR}/chpass 23 24afterinstall: 25 chflags schg ${DESTDIR}${BINDIR}/chpass 26 27.include <bsd.prog.mk> 28