xref: /freebsd/lib/libypclnt/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1*93c43690SEmmanuel VadotPACKAGE=	runtime
2c0f2281eSDag-Erling SmørgravLIB=	ypclnt
33ca3047aSKen SmithSHLIB_MAJOR= 4
4dfca108cSDavid E. O'BrienSRCS=	ypclnt_connect.c \
5dfca108cSDavid E. O'Brien	ypclnt_error.c \
6dfca108cSDavid E. O'Brien	ypclnt_free.c \
7dfca108cSDavid E. O'Brien	ypclnt_new.c \
8dfca108cSDavid E. O'Brien	ypclnt_passwd.c \
9dfca108cSDavid E. O'Brien	${GENSRCS}
10c0f2281eSDag-Erling SmørgravCLEANFILES+= ${GENSRCS}
11dfca108cSDavid E. O'BrienINCS= ypclnt.h
12c0f2281eSDag-Erling Smørgrav
13dfca108cSDavid E. O'BrienCFLAGS+= -I.
14dfca108cSDavid E. O'Brien
15dfca108cSDavid E. O'BrienGENSRCS=yp.h \
16dfca108cSDavid E. O'Brien	yp_clnt.c \
17dfca108cSDavid E. O'Brien	yppasswd.h \
18dfca108cSDavid E. O'Brien	yppasswd_xdr.c \
19dfca108cSDavid E. O'Brien	yppasswd_clnt.c \
20dfca108cSDavid E. O'Brien	yppasswd_private.h \
21dfca108cSDavid E. O'Brien	yppasswd_private_clnt.c \
22dfca108cSDavid E. O'Brien	yppasswd_private_xdr.c
23c0f2281eSDag-Erling Smørgrav
245e0a19bdSDimitry AndricRPCGEN=	RPCGEN_CPP=${CPP:Q} rpcgen -C
255943dd2aSEnji CooperRPCSRC=	${SRCTOP}/include/rpcsvc/yp.x
265943dd2aSEnji CooperRPCSRC_PW=	${SRCTOP}/include/rpcsvc/yppasswd.x
275943dd2aSEnji CooperRPCSRC_PRIV=	${SRCTOP}/usr.sbin/rpc.yppasswdd/yppasswd_private.x
28c0f2281eSDag-Erling Smørgrav
29c0f2281eSDag-Erling Smørgravyp.h: ${RPCSRC}
30c0f2281eSDag-Erling Smørgrav	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
31c0f2281eSDag-Erling Smørgrav
32c0f2281eSDag-Erling Smørgravyp_clnt.c: ${RPCSRC}
33c0f2281eSDag-Erling Smørgrav	${RPCGEN} -l -o ${.TARGET} ${RPCSRC}
34c0f2281eSDag-Erling Smørgrav
35c0f2281eSDag-Erling Smørgravyppasswd.h: ${RPCSRC_PW}
36c0f2281eSDag-Erling Smørgrav	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}
37c0f2281eSDag-Erling Smørgrav
38fc27278bSDag-Erling Smørgravyppasswd_xdr.c: ${RPCSRC_PW}
39e9b35570SDag-Erling Smørgrav	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW}
40e9b35570SDag-Erling Smørgrav
41c0f2281eSDag-Erling Smørgravyppasswd_clnt.c: ${RPCSRC_PW}
42c0f2281eSDag-Erling Smørgrav	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}
43c0f2281eSDag-Erling Smørgrav
44c0f2281eSDag-Erling Smørgravyppasswd_private.h: ${RPCSRC_PRIV}
45c0f2281eSDag-Erling Smørgrav	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}
46c0f2281eSDag-Erling Smørgrav
47c0f2281eSDag-Erling Smørgravyppasswd_private_xdr.c: ${RPCSRC_PRIV}
48c0f2281eSDag-Erling Smørgrav	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
49c0f2281eSDag-Erling Smørgrav
50c0f2281eSDag-Erling Smørgravyppasswd_private_clnt.c: ${RPCSRC_PRIV}
51c0f2281eSDag-Erling Smørgrav	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}
52c0f2281eSDag-Erling Smørgrav
53c0f2281eSDag-Erling Smørgrav.include <bsd.lib.mk>
54