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
12 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
13 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
14 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
15 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
16 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
18 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
19 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
23 #Some people need this, uncomment to activate
24 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
26 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
27 LDADD+= -lcrypt -lutil -lypclnt
30 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
31 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
32 chflags noschg ${DESTDIR}${BINDIR}/$i || true
36 -chflags schg ${DESTDIR}${BINDIR}/chpass
38 .include <bsd.prog.mk>