b2d48be1bc
netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
27 lines
560 B
Makefile
27 lines
560 B
Makefile
# $FreeBSD$
|
|
|
|
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>
|