1 2PACKAGE= runtime 3LIB= ypclnt 4SHLIB_MAJOR= 4 5SRCS= ypclnt_connect.c \ 6 ypclnt_error.c \ 7 ypclnt_free.c \ 8 ypclnt_new.c \ 9 ypclnt_passwd.c \ 10 ${GENSRCS} 11CLEANFILES+= ${GENSRCS} 12INCS= ypclnt.h 13 14CFLAGS+= -I. 15 16GENSRCS=yp.h \ 17 yp_clnt.c \ 18 yppasswd.h \ 19 yppasswd_xdr.c \ 20 yppasswd_clnt.c \ 21 yppasswd_private.h \ 22 yppasswd_private_clnt.c \ 23 yppasswd_private_xdr.c 24 25RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -C 26RPCSRC= ${SRCTOP}/include/rpcsvc/yp.x 27RPCSRC_PW= ${SRCTOP}/include/rpcsvc/yppasswd.x 28RPCSRC_PRIV= ${SRCTOP}/usr.sbin/rpc.yppasswdd/yppasswd_private.x 29 30yp.h: ${RPCSRC} 31 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 32 33yp_clnt.c: ${RPCSRC} 34 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 35 36yppasswd.h: ${RPCSRC_PW} 37 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 38 39yppasswd_xdr.c: ${RPCSRC_PW} 40 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW} 41 42yppasswd_clnt.c: ${RPCSRC_PW} 43 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 44 45yppasswd_private.h: ${RPCSRC_PRIV} 46 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 47 48yppasswd_private_xdr.c: ${RPCSRC_PRIV} 49 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 50 51yppasswd_private_clnt.c: ${RPCSRC_PRIV} 52 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 53 54.include <bsd.lib.mk> 55