hammer2 - Fix kmalloc pool blowout on low-memory machines
[dragonfly.git] / usr.bin / chpass / Makefile
blob5d12028e2dd0ba49d2f7a5b8c7ef3b24d4a4c517
1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
2 # $FreeBSD: src/usr.bin/chpass/Makefile,v 1.30 2004/12/29 08:13:20 ache Exp $
3 # $DragonFly: src/usr.bin/chpass/Makefile,v 1.4 2007/08/27 16:50:52 pavalos Exp $
5 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
7 PROG= chpass
8 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
9 BINOWN= root
10 BINMODE=4555
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.
18 DPADD= ${LIBCRYPT} ${LIBUTIL}
19 LDADD= -lcrypt -lutil
20 .if !defined(NO_NIS)
21 DPADD+= ${LIBYPCLNT}
22 LDADD+= -lypclnt
23 .endif
25 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
26 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
27 .if !defined(NO_NIS)
28 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
29 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
30 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
31 .endif
33 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
34 .if !defined(NO_NIS)
35 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
36 .endif
38 beforeinstall:
39 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
40 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
41 chflags noschg ${DESTDIR}${BINDIR}/$i || true
42 .endfor
44 .if !defined(NOFSCHG)
45 afterinstall:
46 -chflags schg ${DESTDIR}${BINDIR}/chpass
47 .endif
49 .include <bsd.prog.mk>