opnsense-src/lib/libc/tests/rpc/Makefile
Enji Cooper 2f1217877e Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
500 new testcases

Various TODOs have been sprinkled around the Makefiles for items that even need
to be ported (missing features), testcases have issues with building/linking, or
issues at runtime.

A variant of this code has been tested extensively on amd64 and i386
10-STABLE/11-CURRENT for several months without issue. It builds on other
architectures, but the code will remain off until I have prove it works on
virtual hardware or real hardware on other architectures

In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
Sponsored by: EMC / Isilon Storage Division
2014-11-04 00:56:25 +00:00

27 lines
597 B
Makefile

# $FreeBSD$
TESTSDIR= ${TESTSBASE}/lib/libc/rpc
SRCS.xdr_test= ${RPCSRC:.x=_xdr.c} t_xdr.c ${RPCSRC:.x=.h}
NETBSD_ATF_TESTS_C= rpc_test
NETBSD_ATF_TESTS_C+= xdr_test
RPCSRC= h_testbits.x
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C
h_testbits.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
h_testbits_xdr.c: ${RPCSRC} h_testbits.h
${RPCGEN} ${.ALLSRC:M*.x}
CLEANFILES+= ${RPCSRC:.x=.h} ${RPCSRC:.x=.c} h_testbits_xdr.c
CFLAGS+= -I${.OBJDIR}
DPSRCS+= h_testbits.h
LDADD+= -lrpcsvc -lutil
DPADD+= ${LIBRPCSVC} ${LIBUTIL}
.include "../Makefile.netbsd-tests"
.include <bsd.test.mk>