xref: /freebsd/lib/libc/yp/Makefile.inc (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1# yp sources
2.PATH: ${LIBC_SRCTOP}/yp
3
4SRCS+=	xdryp.c yp.h yp_xdr.c yplib.c
5CLEANFILES+=	yp.h yp_xdr.c
6
7SYM_MAPS+=	${LIBC_SRCTOP}/yp/Symbol.map
8
9RPCSRC=	${SRCTOP}/include/rpcsvc/yp.x
10RPCGEN=	RPCGEN_CPP=${CPP:Q} rpcgen -C
11
12yp_xdr.c: ${RPCSRC}
13	${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
14
15yp.h: ${RPCSRC}
16	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
17