1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
5 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
8 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb \
9 ${.CURDIR}/../../lib/libc/gen
10 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen
13 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
14 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
15 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
16 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
17 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
19 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
20 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
24 #Some people need this, uncomment to activate
25 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
27 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
28 LDADD+= -lcrypt -lutil -lypclnt
31 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
32 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
33 chflags noschg ${DESTDIR}${BINDIR}/$i || true
37 -chflags schg ${DESTDIR}${BINDIR}/chpass
39 .include <bsd.prog.mk>