Makefile revision 94713
194575Sdes# $FreeBSD: head/lib/libypclnt/Makefile 94713 2002-04-15 02:32:04Z des $
294575Sdes
394575SdesLIB		 = ypclnt
494575SdesSHLIB_MAJOR	 = 1
594575SdesSHLIB_MINOR	 = 0
694713SdesSRCS		 =
794575SdesSRCS		+= ypclnt_connect.c
894575SdesSRCS		+= ypclnt_error.c
994575SdesSRCS		+= ypclnt_free.c
1094575SdesSRCS		+= ypclnt_new.c
1194575SdesSRCS		+= ypclnt_passwd.c
1294575SdesSRCS		+= ${GENSRCS}
1394575SdesINCS		 = ypclnt.h
1494575SdesCLEANFILES	+= ${GENSRCS}
1594577SdesCFLAGS		+= -I.
1694577SdesWARNS		?= 4
1794575SdesDPADD		+= ${LIBRPCSVC}
1894575SdesLDADD		+= -lrpcsvc
1994575Sdes
2094575SdesGENSRCS		 =
2194575SdesGENSRCS		+= yp.h
2294575SdesGENSRCS		+= yp_clnt.c
2394575SdesGENSRCS		+= yppasswd.h
2494713SdesGENSRCS		+= yppasswd_xdr.c
2594575SdesGENSRCS		+= yppasswd_clnt.c
2694575SdesGENSRCS		+= yppasswd_private.h
2794575SdesGENSRCS		+= yppasswd_private_clnt.c
2894575SdesGENSRCS		+= yppasswd_private_xdr.c
2994575Sdes
3094575SdesRPCGEN		 = rpcgen -C
3194575SdesRPCSRC		 = ${.CURDIR}/../../include/rpcsvc/yp.x
3294575SdesRPCSRC_PW	 = ${.CURDIR}/../../include/rpcsvc/yppasswd.x
3394575SdesRPCSRC_PRIV	 = ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x
3494575Sdes
3594575Sdesyp.h: ${RPCSRC}
3694575Sdes	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
3794575Sdes
3894575Sdesyp_clnt.c: ${RPCSRC}
3994575Sdes	${RPCGEN} -l -o ${.TARGET} ${RPCSRC}
4094575Sdes
4194575Sdesyppasswd.h: ${RPCSRC_PW}
4294575Sdes	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}
4394575Sdes
4494713Sdesyppasswd_xdr.c: ${RPCSRC_PRIV}
4594713Sdes	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW}
4694713Sdes
4794575Sdesyppasswd_clnt.c: ${RPCSRC_PW}
4894575Sdes	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}
4994575Sdes
5094575Sdesyppasswd_private.h: ${RPCSRC_PRIV}
5194575Sdes	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}
5294575Sdes
5394575Sdesyppasswd_private_xdr.c: ${RPCSRC_PRIV}
5494575Sdes	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
5594575Sdes
5694575Sdesyppasswd_private_clnt.c: ${RPCSRC_PRIV}
5794575Sdes	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}
5894575Sdes
5994575Sdes.include <bsd.lib.mk>
60