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