aboutsummaryrefslogtreecommitdiff
path: root/lib/librt
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2014-11-16 07:03:19 +0000
committerEnji Cooper <ngie@FreeBSD.org>2014-11-16 07:03:19 +0000
commit536b1b933ed25a91ae99dcfa99c4459eae04307e (patch)
treec5aaa14fd981b22c721b4edc700646e35e789a04 /lib/librt
parente2b4fa14f9b719e3a7be7d74ba767d945603f561 (diff)
downloadsrc-536b1b933ed25a91ae99dcfa99c4459eae04307e.tar.gz
src-536b1b933ed25a91ae99dcfa99c4459eae04307e.zip
Notes
Diffstat (limited to 'lib/librt')
-rw-r--r--lib/librt/Makefile4
-rw-r--r--lib/librt/Makefile.amd646
-rw-r--r--lib/librt/Makefile.i3866
-rw-r--r--lib/librt/tests/Makefile17
4 files changed, 33 insertions, 0 deletions
diff --git a/lib/librt/Makefile b/lib/librt/Makefile
index f624cf7b1d50..bd6ec0717d91 100644
--- a/lib/librt/Makefile
+++ b/lib/librt/Makefile
@@ -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>
diff --git a/lib/librt/Makefile.amd64 b/lib/librt/Makefile.amd64
new file mode 100644
index 000000000000..dd0f5b0cfb2d
--- /dev/null
+++ b/lib/librt/Makefile.amd64
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
diff --git a/lib/librt/Makefile.i386 b/lib/librt/Makefile.i386
new file mode 100644
index 000000000000..dd0f5b0cfb2d
--- /dev/null
+++ b/lib/librt/Makefile.i386
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
diff --git a/lib/librt/tests/Makefile b/lib/librt/tests/Makefile
new file mode 100644
index 000000000000..224f52ea85aa
--- /dev/null
+++ b/lib/librt/tests/Makefile
@@ -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>