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