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