Add support for newer CPU models.
[dragonfly.git] / usr.sbin / rpc.yppasswdd / Makefile
blob79526796feb2ee240442ed6fb6c4ffddfcdfaeaa
1 # $FreeBSD: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.13.2.3 2002/08/07 16:32:02 ru Exp $
2 # $DragonFly: src/usr.sbin/rpc.yppasswdd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
4 PROG= rpc.yppasswdd
5 SRCS= pw_copy.c pw_util.c util.c yp_access.c yp_dblookup.c yp_dbwrite.c \
6 yp_error.c yppasswdd_main.c yppasswdd_server.c ypxfr_misc.c ${GENSRCS}
7 GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \
8 yppasswd_private_xdr.c yppasswd_svc.c
10 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
12 .PATH: ${.CURDIR}/../../usr.sbin/ypserv ${.CURDIR}/../../usr.bin/chpass \
13 ${.CURDIR}/../../libexec/ypxfr ${RPCDIR}
15 MAN= rpc.yppasswdd.8
17 CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw -I${.CURDIR}/../../usr.sbin/ypserv \
18 -I${.CURDIR}/../../libexec/ypxfr -I${.CURDIR}/../../usr.bin/chpass \
19 -I${.CURDIR} -I.
21 DPADD= ${LIBRPCSVC} ${LIBCRYPT}
22 LDADD= -lrpcsvc -lcrypt
24 CLEANFILES= ${GENSRCS}
26 RPCGEN= rpcgen -I -C
28 # We need to remove the 'static' keyword from _rpcsvcstate so that
29 # yppasswdd_main.c can see it.
30 yppasswd_svc.c: yppasswd.x
31 rm -f ${.TARGET}
32 ${RPCGEN} -m ${RPCDIR}/yppasswd.x | \
33 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
35 yppasswd.h: yppasswd.x
36 rm -f ${.TARGET}
37 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yppasswd.x
39 yp.h: yp.x
40 rm -f ${.TARGET}
41 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
43 yp_clnt.c: yp.x
44 rm -f ${.TARGET}
45 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
47 yppasswd_private.h: yppasswd_private.x
48 rm -f ${.TARGET}
49 ${RPCGEN} -h -o ${.TARGET} ${.CURDIR}/yppasswd_private.x
51 yppasswd_private_xdr.c: yppasswd_private.x
52 rm -f ${.TARGET}
53 ${RPCGEN} -c -o ${.TARGET} ${.CURDIR}/yppasswd_private.x
55 yppasswd_private_svc.c: yppasswd_private.x
56 rm -f ${.TARGET}
57 ${RPCGEN} -m ${.CURDIR}/yppasswd_private.x | \
58 sed s/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g > ${.TARGET}
60 afterinstall:
61 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
62 ${.CURDIR}/yppwupdate \
63 ${DESTDIR}/usr/libexec/yppwupdate
65 .include <bsd.prog.mk>