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