1# $FreeBSD$ 2 3LIB = ypclnt 4SHLIB_MAJOR = 1 5SHLIB_MINOR = 0 6SRCS = 7SRCS += ypclnt_connect.c 8SRCS += ypclnt_error.c 9SRCS += ypclnt_free.c 10SRCS += ypclnt_new.c 11SRCS += ypclnt_passwd.c 12SRCS += ${GENSRCS} 13INCS = ypclnt.h 14CLEANFILES += ${GENSRCS} 15DPADD += ${LIBRPCSVC} 16LDADD += -lrpcsvc 17WARNS ?= 4 18 19GENSRCS = 20GENSRCS += yp.h 21GENSRCS += yp_clnt.c 22GENSRCS += yppasswd.h 23GENSRCS += yppasswd_clnt.c 24GENSRCS += yppasswd_private.h 25GENSRCS += yppasswd_private_clnt.c 26GENSRCS += yppasswd_private_xdr.c 27 28RPCGEN = rpcgen -C 29RPCSRC = ${.CURDIR}/../../include/rpcsvc/yp.x 30RPCSRC_PW = ${.CURDIR}/../../include/rpcsvc/yppasswd.x 31RPCSRC_PRIV = ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 32 33yp.h: ${RPCSRC} 34 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 35 36yp_clnt.c: ${RPCSRC} 37 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 38 39yppasswd.h: ${RPCSRC_PW} 40 ${RPCGEN} -h -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