1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
2 # $FreeBSD: src/usr.bin/chpass/Makefile,v 1.20.2.3 2001/12/19 04:49:11 dd Exp $
3 # $DragonFly: src/usr.bin/chpass/Makefile,v 1.4 2007/08/27 16:50:52 pavalos Exp $
6 SRCS
= chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c pw_yp.c \
7 table.c util.c ypxfr_misc.c
${GENSRCS}
8 GENSRCS
=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c yppasswd_private.h \
9 yppasswd_private_clnt.c yppasswd_private_xdr.c
12 .PATH
: ${.CURDIR
}/..
/..
/usr.sbin
/pwd_mkdb
${.CURDIR
}/..
/..
/usr.sbin
/vipw \
13 ${.CURDIR
}/..
/..
/libexec
/ypxfr \
14 ${.CURDIR
}/..
/..
/usr.sbin
/rpc.yppasswdd \
15 ${.CURDIR
}/..
/..
/lib
/libc
/gen
16 CFLAGS
+=-I
${.CURDIR
}/..
/..
/usr.sbin
/pwd_mkdb
-I
${.CURDIR
}/..
/..
/usr.sbin
/vipw
-I
${.CURDIR
}/..
/..
/lib
/libc
/gen
17 LINKS
= ${BINDIR}/chpass
${BINDIR}/chfn
18 LINKS
+= ${BINDIR}/chpass
${BINDIR}/chsh
19 LINKS
+= ${BINDIR}/chpass
${BINDIR}/ypchpass
20 LINKS
+= ${BINDIR}/chpass
${BINDIR}/ypchfn
21 LINKS
+= ${BINDIR}/chpass
${BINDIR}/ypchsh
23 MLINKS
= chpass
.1 chfn
.1 chpass
.1 chsh
.1
24 MLINKS
+= chpass
.1 ypchpass
.1 chpass
.1 ypchfn
.1 chpass
.1 ypchsh
.1
26 CFLAGS
+=-DYP
-I.
-I
${.CURDIR
}/..
/..
/libexec
/ypxfr \
27 -I
${.CURDIR
}/..
/..
/usr.sbin
/rpc.yppasswdd
-Dyp_error
=warnx
29 #Some people need this, uncomment to activate
30 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
32 DPADD
= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
33 LDADD
+= -lrpcsvc
-lcrypt
-lmd
35 CLEANFILES
= ${GENSRCS}
38 RPCSRC
= ${DESTDIR}/usr
/include/rpcsvc
/yp.x
39 RPCSRC_PW
= ${DESTDIR}/usr
/include/rpcsvc
/yppasswd.x
40 RPCSRC_PRIV
= ${.CURDIR
}/..
/..
/usr.sbin
/rpc.yppasswdd
/yppasswd_private.x
43 ${RPCGEN} -h
-o
${.TARGET
} ${RPCSRC}
46 ${RPCGEN} -l
-o
${.TARGET
} ${RPCSRC}
48 yppasswd.h
: ${RPCSRC_PW}
49 ${RPCGEN} -h
-o
${.TARGET
} ${RPCSRC_PW}
51 yppasswd_clnt.c
: ${RPCSRC_PW}
52 ${RPCGEN} -l
-o
${.TARGET
} ${RPCSRC_PW}
54 yppasswd_private.h
: ${RPCSRC_PRIV}
55 ${RPCGEN} -h
-o
${.TARGET
} ${RPCSRC_PRIV}
57 yppasswd_private_xdr.c
: ${RPCSRC_PRIV}
58 ${RPCGEN} -c
-o
${.TARGET
} ${RPCSRC_PRIV}
60 yppasswd_private_clnt.c
: ${RPCSRC_PRIV}
61 ${RPCGEN} -l
-o
${.TARGET
} ${RPCSRC_PRIV}
64 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
65 [ ! -e
${DESTDIR}${BINDIR}/$i ] || \
66 chflags noschg
${DESTDIR}${BINDIR}/$i || true
71 -chflags schg
${DESTDIR}${BINDIR}/chpass
74 .
include <bsd.prog.mk
>