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