]> git.cameronkatri.com Git - pw-darwin.git/blob - chpass/Makefile
Grammar in a comment.
[pw-darwin.git] / chpass / Makefile
1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
2 # $FreeBSD$
3
4 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
5
6 PROG= chpass
7 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
8 BINOWN= root
9 BINMODE=4555
10 WARNS?= 5
11 .if !defined(NO_NIS)
12 CFLAGS+= -DYP
13 .endif
14 #Some people need this, uncomment to activate
15 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
16 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
17
18 DPADD= ${LIBCRYPT} ${LIBUTIL}
19 LDADD= -lcrypt -lutil
20 .if !defined(NO_NIS)
21 DPADD+= ${LIBYPCLNT}
22 LDADD+= -lypclnt
23 .endif
24
25 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
26 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
27 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
28 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
29 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
30
31 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
32 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
33
34 beforeinstall:
35 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
36 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
37 chflags noschg ${DESTDIR}${BINDIR}/$i || true
38 .endfor
39
40 afterinstall:
41 -chflags schg ${DESTDIR}${BINDIR}/chpass
42
43 .include <bsd.prog.mk>