xref: /freebsd/lib/libthr/tests/dlopen/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
13eee258dSEnji CooperTESTSRC=	${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
23eee258dSEnji Cooper
3*fe815331SKyle EvansWARNS?=		2
4*fe815331SKyle Evans
53eee258dSEnji Cooper.include <bsd.own.mk>
63eee258dSEnji Cooper
73eee258dSEnji CooperTESTSDIR=	${TESTSBASE}/lib/libthr/dlopen
83eee258dSEnji Cooper
93eee258dSEnji CooperCFLAGS+=	-DTESTDIR=\"${TESTSDIR:Q}/\"
103eee258dSEnji CooperLDFLAGS+=	-L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
113eee258dSEnji Cooper
123eee258dSEnji Cooper.if !defined(NO_PIC)
133eee258dSEnji CooperSUBDIR+=	dso
143eee258dSEnji Cooper
153eee258dSEnji CooperNETBSD_ATF_TESTS_C=	dlopen_test
163eee258dSEnji CooperNETBSD_ATF_TESTS_C+=	main_pthread_create_test
173eee258dSEnji Cooper# XXX: this blocks running the testcase
183eee258dSEnji Cooper#NETBSD_ATF_TESTS_C+=	dso_pthread_create_test
193eee258dSEnji Cooper
203eee258dSEnji Cooper.for t in dlopen_test main_pthread_create_test
21eacae6dcSBryan DreweryLIBADD.${t}+=	pthread
223eee258dSEnji Cooper.endfor
233eee258dSEnji Cooper.endif
243eee258dSEnji Cooper
253eee258dSEnji Cooper.include <netbsd-tests.test.mk>
263eee258dSEnji Cooper
273eee258dSEnji Cooper.include <bsd.test.mk>
28