]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - lib/libthr/tests/dlopen/Makefile
MFC r289172,r290254:
[FreeBSD/stable/10.git] / lib / libthr / tests / dlopen / Makefile
1 # $FreeBSD$
2
3 TESTSRC=        ${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
4
5 .include <bsd.own.mk>
6
7 TESTSDIR=       ${TESTSBASE}/lib/libthr/dlopen
8
9 CFLAGS+=        -DTESTDIR=\"${TESTSDIR:Q}/\"
10 LDFLAGS+=       -L${.OBJDIR}/dso -Wl,-rpath=${TESTDIR}
11
12 .if !defined(NO_PIC)
13 SUBDIR+=        dso
14
15 NETBSD_ATF_TESTS_C=     dlopen_test
16 NETBSD_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
21 DPADD.$t+=      ${LIBPTHREAD}
22 LDADD.$t+=      -lpthread
23 .endfor
24 .endif
25
26 .include <netbsd-tests.test.mk>
27
28 .include <bsd.test.mk>