1# $FreeBSD$ 2 3LIB= ypclnt 4SHLIB_MAJOR= 3 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. 15WARNS?= 5 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 -C 27RPCSRC= ${.CURDIR}/../../include/rpcsvc/yp.x 28RPCSRC_PW= ${.CURDIR}/../../include/rpcsvc/yppasswd.x 29RPCSRC_PRIV= ${.CURDIR}/../../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