]> git.cameronkatri.com Git - pw-darwin.git/blob - chpass/Makefile
Make WARNS=5 clean.
[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?= 5
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
17
18 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
19 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
20
21 CFLAGS+=-DYP -I.
22
23 #Some people need this, uncomment to activate
24 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
25
26 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
27 LDADD+= -lcrypt -lutil -lypclnt
28
29 beforeinstall:
30 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
31 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
32 chflags noschg ${DESTDIR}${BINDIR}/$i || true
33 .endfor
34
35 afterinstall:
36 -chflags schg ${DESTDIR}${BINDIR}/chpass
37
38 .include <bsd.prog.mk>