]> git.cameronkatri.com Git - pw-darwin.git/blob - chpass/Makefile
Consistently use FBSDID
[pw-darwin.git] / chpass / Makefile
1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
2 # $FreeBSD$
3
4 PROG= chpass
5 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
6 BINOWN= root
7 BINMODE=4555
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
11 WARNS?= 4
12 NO_WERROR=yes
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
18
19 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
20 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
21
22 CFLAGS+=-DYP -I.
23
24 #Some people need this, uncomment to activate
25 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
26
27 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
28 LDADD+= -lcrypt -lutil -lypclnt
29
30 beforeinstall:
31 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
32 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
33 chflags noschg ${DESTDIR}${BINDIR}/$i || true
34 .endfor
35
36 afterinstall:
37 -chflags schg ${DESTDIR}${BINDIR}/chpass
38
39 .include <bsd.prog.mk>