Makefile revision 319016
1#	@(#)Makefile	8.2 (Berkeley) 4/2/94
2# $FreeBSD: stable/11/usr.bin/chpass/Makefile 319016 2017-05-28 00:13:44Z rgrimes $
3
4.include <src.opts.mk>
5
6.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
7
8PROG=	chpass
9SRCS=	chpass.c edit.c field.c pw_scan.c table.c util.c
10BINOWN=	root
11BINMODE=4555
12PRECIOUSPROG=
13.if ${MK_NIS} != "no"
14CFLAGS+= -DYP
15.endif
16#Some people need this, uncomment to activate
17#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
18CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
19
20LIBADD=	crypt util
21.if ${MK_NIS} != "no"
22LIBADD+=	ypclnt
23.endif 
24
25SYMLINKS=	chpass ${BINDIR}/chfn
26SYMLINKS+=	chpass ${BINDIR}/chsh
27.if ${MK_NIS} != "no"
28SYMLINKS+=	chpass ${BINDIR}/ypchfn
29SYMLINKS+=	chpass ${BINDIR}/ypchpass
30SYMLINKS+=	chpass ${BINDIR}/ypchsh
31.endif
32
33MLINKS=	chpass.1 chfn.1 chpass.1 chsh.1
34.if ${MK_NIS} != "no"
35MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
36.endif
37
38beforeinstall:
39.for i in chpass chfn chsh ypchpass ypchfn ypchsh
40.if exists(${DESTDIR}${BINDIR}/$i)
41	-chflags noschg ${DESTDIR}${BINDIR}/$i
42.endif
43.endfor
44
45.include <bsd.prog.mk>
46