xref: /freebsd/lib/libc/tests/rpc/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1SRCS.xdr_test=		${RPCSRC:.x=_xdr.c} t_xdr.c ${RPCSRC:.x=.h} \
2			h_testbits.h
3
4NETBSD_ATF_TESTS_C=	rpc_test
5NETBSD_ATF_TESTS_C+=	xdr_test
6
7RPCSRC=			h_testbits.x
8RPCGEN=			RPCGEN_CPP=${CPP:Q} rpcgen -L -C
9
10h_testbits.h: ${RPCSRC}
11	${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
12
13h_testbits_xdr.c: ${RPCSRC} h_testbits.h
14	${RPCGEN} ${.ALLSRC:M*.x}
15
16CLEANFILES+=	${RPCSRC:.x=.h} ${RPCSRC:.x=.c} h_testbits_xdr.c
17CFLAGS+=	-I${.OBJDIR}
18
19LIBADD+=	rpcsvc util
20
21.include "../Makefile.netbsd-tests"
22
23.include <bsd.test.mk>
24