1# $FreeBSD$ 2 3TESTSDIR= ${TESTSBASE}/lib/libc/rpc 4SRCS.xdr_test= ${RPCSRC:.x=_xdr.c} t_xdr.c ${RPCSRC:.x=.h} 5 6NETBSD_ATF_TESTS_C= rpc_test 7NETBSD_ATF_TESTS_C+= xdr_test 8 9RPCSRC= h_testbits.x 10RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C 11 12h_testbits.h: ${RPCSRC} 13 ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 14 15h_testbits_xdr.c: ${RPCSRC} h_testbits.h 16 ${RPCGEN} ${.ALLSRC:M*.x} 17 18CLEANFILES+= ${RPCSRC:.x=.h} ${RPCSRC:.x=.c} h_testbits_xdr.c 19CFLAGS+= -I${.OBJDIR} 20DPSRCS+= h_testbits.h 21 22LDADD+= -lrpcsvc -lutil 23DPADD+= ${LIBRPCSVC} ${LIBUTIL} 24 25.include "../Makefile.netbsd-tests" 26 27.include <bsd.test.mk> 28