Makefile revision 285830
1# $FreeBSD: releng/10.2/lib/libthr/tests/dlopen/Makefile 274578 2014-11-16 06:35:20Z ngie $
2
3OBJTOP=		${.OBJDIR:H:H:H:H}
4SRCTOP=		${.CURDIR:H:H:H:H}
5TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
6
7.include <bsd.own.mk>
8
9TESTSDIR=	${TESTSBASE}/lib/libthr/dlopen
10
11CFLAGS+=	-DTESTDIR=\"${TESTSDIR:Q}/\"
12LDFLAGS+=	-L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
13
14.if !defined(NO_PIC)
15SUBDIR+=	dso
16
17NETBSD_ATF_TESTS_C=	dlopen_test
18NETBSD_ATF_TESTS_C+=	main_pthread_create_test
19# XXX: this blocks running the testcase
20#NETBSD_ATF_TESTS_C+=	dso_pthread_create_test
21
22.for t in dlopen_test main_pthread_create_test
23DPADD.$t+=	${LIBPTHREAD}
24LDADD.$t+=	-lpthread
25.endfor
26.endif
27
28.include <netbsd-tests.test.mk>
29
30.include <bsd.test.mk>
31