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