1 # $NetBSD: Makefile,v 1.8 2014/08/25 20:40:53 joerg Exp $
10 SUBDIR
+= helper_dso1 .WAIT helper_dso2 .WAIT \
12 helper_symver_dso0 .WAIT helper_symver_dso1 .WAIT \
13 helper_symver_dso2 .WAIT \
16 TESTSDIR
= ${TESTSBASE}/libexec
/ld.elf_so
18 TESTS_C
+= t_dlerror-cleared t_dlerror-false t_dlinfo t_dlvsym t_ifunc
20 LDADD.t_dlerror-false
= -Wl
,-rpath
,/var
/nonexistent
/lib
21 LDADD.t_dlvsym
= -Wl
,-rpath
,${TESTSDIR}/h_helper_symver_dso2
22 LDADD.t_ifunc
= -Wl
,-rpath
,${TESTSDIR} -lutil
23 DPADD.t_ifunc
= ${LIBUTIL}
25 TESTS_SH
+= t_df_1_noopen t_dl_symver
28 PROGS
+= h_df_1_noopen1
29 SRCS.h_df_1_noopen1
= h_df_1_noopen.c
31 PROGS
+= h_df_1_noopen2
32 SRCS.h_df_1_noopen2
= h_df_1_noopen.c
33 LDADD.h_df_1_noopen2
= -lpthread
36 SRCS.h_ifunc
= h_ifunc.c
37 IFUNCDIR
!= cd
${.CURDIR
}/helper_ifunc_dso
&& ${PRINTOBJDIR}
38 LDADD.h_ifunc
= -Wl
,-rpath
,${TESTSDIR} -L
${IFUNCDIR} -lh_helper_ifunc_dso
41 SRCS.h_locking
= h_locking.c
42 LDADD.h_locking
= -lpthread
-Wl
,--export-dynamic
-Wl
,-rpath
,${TESTSDIR}
44 PROGS
+= h_dl_symver_v0
45 SRCS.h_dl_symver_v0
= h_dl_symver.c
46 V0ODIR
!= cd
${.CURDIR
}/helper_symver_dso0
&& ${PRINTOBJDIR}
47 LDADD.h_dl_symver_v0
= -L
${V0ODIR} -lh_helper_symver_dso
49 PROGS
+= h_dl_symver_v1
50 SRCS.h_dl_symver_v1
= h_dl_symver.c
51 V1ODIR
!= cd
${.CURDIR
}/helper_symver_dso1
&& ${PRINTOBJDIR}
52 LDADD.h_dl_symver_v1
= -L
${V1ODIR} -lh_helper_symver_dso
54 PROGS
+= h_dl_symver_v2
55 SRCS.h_dl_symver_v2
= h_dl_symver.c
56 V2ODIR
!= cd
${.CURDIR
}/helper_symver_dso2
&& ${PRINTOBJDIR}
57 LDADD.h_dl_symver_v2
= -L
${V2ODIR} -lh_helper_symver_dso
59 .
include <bsd.
test.mk
>
64 .
include <bsd.prog.mk
>