Add reachover Makefiles for contrib/netbsd-tests/lib/librt

A variant of this code has been tested on amd64/i386 for some time by
EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the
code will remain off until it's proven it works on virtual hardware or real
hardware on other architectures

Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2014-11-16 07:03:19 +00:00
parent e2b4fa14f9
commit 536b1b933e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274580
5 changed files with 35 additions and 0 deletions

View File

@ -149,6 +149,8 @@
..
libproc
..
librt
..
libthr
dlopen
..

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
LIB=rt
SHLIB_MAJOR= 1
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}
@ -18,4 +20,6 @@ PRECIOUSLIB=
VERSION_MAP= ${.CURDIR}/Version.map
.include <bsd.arch.inc.mk>
.include <bsd.lib.mk>

6
lib/librt/Makefile.amd64 Normal file
View File

@ -0,0 +1,6 @@
# $FreeBSD$
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif

6
lib/librt/Makefile.i386 Normal file
View File

@ -0,0 +1,6 @@
# $FreeBSD$
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif

17
lib/librt/tests/Makefile Normal file
View File

@ -0,0 +1,17 @@
# $FreeBSD$
OBJTOP= ${.OBJDIR:H:H:H}
SRCTOP= ${.CURDIR:H:H:H}
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/librt
TESTSDIR= ${TESTSBASE}/lib/librt
DPADD+= ${LIBRT}
LDADD+= -lrt
NETBSD_ATF_TESTS_C= sched_test
NETBSD_ATF_TESTS_C+= sem_test
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>