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} 15CFLAGS += -I. 16WARNS ?= 4 17NO_WERROR = yes 18DPADD += ${LIBRPCSVC} 19LDADD += -lrpcsvc 20 21GENSRCS = 22GENSRCS += yp.h 23GENSRCS += yp_clnt.c 24GENSRCS += yppasswd.h 25GENSRCS += yppasswd_xdr.c 26GENSRCS += yppasswd_clnt.c 27GENSRCS += yppasswd_private.h 28GENSRCS += yppasswd_private_clnt.c 29GENSRCS += yppasswd_private_xdr.c 30 31RPCGEN = rpcgen -C 32RPCSRC = ${.CURDIR}/../../include/rpcsvc/yp.x 33RPCSRC_PW = ${.CURDIR}/../../include/rpcsvc/yppasswd.x 34RPCSRC_PRIV = ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 35 36yp.h: ${RPCSRC} 37 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 38 39yp_clnt.c: ${RPCSRC} 40 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 41 42yppasswd.h: ${RPCSRC_PW} 43 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 44 45yppasswd_xdr.c: ${RPCSRC_PW} 46 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW} 47 48yppasswd_clnt.c: ${RPCSRC_PW} 49 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 50 51yppasswd_private.h: ${RPCSRC_PRIV} 52 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 53 54yppasswd_private_xdr.c: ${RPCSRC_PRIV} 55 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 56 57yppasswd_private_clnt.c: ${RPCSRC_PRIV} 58 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 59 60.include <bsd.lib.mk> 61