1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
6 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
9 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
15 #Some people need this, uncomment to activate
16 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
17 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
19 DPADD= ${LIBCRYPT} ${LIBUTIL}
26 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
27 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
29 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
30 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
31 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
34 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
36 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
40 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
41 .if exists(${DESTDIR}${BINDIR}/$i)
42 -chflags noschg ${DESTDIR}${BINDIR}/$i
46 .if !defined(NO_FSCHG)
48 -chflags schg ${DESTDIR}${BINDIR}/chpass
51 .include <bsd.prog.mk>