xref: /freebsd/lib/libthr/tests/dlopen/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1TESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
2
3WARNS?=		2
4
5.include <bsd.own.mk>
6
7TESTSDIR=	${TESTSBASE}/lib/libthr/dlopen
8
9CFLAGS+=	-DTESTDIR=\"${TESTSDIR:Q}/\"
10LDFLAGS+=	-L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
11
12.if !defined(NO_PIC)
13SUBDIR+=	dso
14
15NETBSD_ATF_TESTS_C=	dlopen_test
16NETBSD_ATF_TESTS_C+=	main_pthread_create_test
17# XXX: this blocks running the testcase
18#NETBSD_ATF_TESTS_C+=	dso_pthread_create_test
19
20.for t in dlopen_test main_pthread_create_test
21LIBADD.${t}+=	pthread
22.endfor
23.endif
24
25.include <netbsd-tests.test.mk>
26
27.include <bsd.test.mk>
28