]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libthr/tests/dlopen/Makefile
THIS BRANCH IS OBSOLETE, PLEASE READ:
[FreeBSD/FreeBSD.git] / lib / libthr / tests / dlopen / Makefile
1 # $FreeBSD$
2
3 TESTSRC=        ${SRCTOP}/contrib/netbsd-tests/lib/libpthread/dlopen
4
5 WARNS?=         2
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 LIBADD.${t}+=   pthread
24 .endfor
25 .endif
26
27 .include <netbsd-tests.test.mk>
28
29 .include <bsd.test.mk>