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