1 # $NetBSD: Makefile,v 1.15.6.1 2023/11/28 13:17:11 martin Exp $ 2 3 NOMAN= # defined 4 5 .include <bsd.own.mk> 6 7 TESTSDIR= ${TESTSBASE}/lib/libpthread 8 LDADD+= -lpthread 9 LDADD.t_fpu+= -lm 10 11 .include "${.PARSEDIR}/../csu/Makefile.check_stack" 12 13 SRCS.t_join= t_join.c ${SRCS_CHECK_STACK} 14 CPPFLAGS.t_join.c+= ${CPPFLAGS_CHECK_STACK} 15 CPPFLAGS.t_condwait.c+= -I${.CURDIR}/../libc/gen 16 17 TESTS_SH+= t_atexit 18 TESTS_C+= t_barrier 19 TESTS_SH+= t_cancel 20 TESTS_C+= t_cond 21 TESTS_C+= t_condwait 22 TESTS_C+= t_detach 23 TESTS_C+= t_equal 24 TESTS_SH+= t_exit 25 TESTS_C+= t_fork 26 TESTS_C+= t_fpu 27 TESTS_C+= t_join 28 TESTS_C+= t_kill 29 TESTS_C+= t_mutex 30 TESTS_C+= t_name 31 TESTS_C+= t_once 32 TESTS_C+= t_preempt 33 TESTS_SH+= t_resolv 34 TESTS_C+= t_rwlock 35 TESTS_C+= t_sem 36 TESTS_C+= t_sigmask 37 TESTS_C+= t_sigsuspend 38 TESTS_C+= t_siglongjmp 39 TESTS_C+= t_sleep 40 TESTS_C+= t_stack 41 TESTS_C+= t_swapcontext 42 TESTS_SH+= t_thread_local_dtor 43 TESTS_C+= t_timedmutex 44 45 LDADD.t_sem+= -lrt 46 47 BINDIR= ${TESTSDIR} 48 PROGS= h_atexit 49 PROGS+= h_cancel 50 PROGS+= h_exit 51 PROGS+= h_resolv 52 PROGS_CXX+= h_thread_local_dtor 53 54 TESTS_C+= t_call_once t_cnd t_mtx t_thrd t_tss # C11 threads(3) 55 56 COPTS.h_thread_local_dtor.cpp+= -std=c++11 57 # Deal with questionable warning and header quality in libstdc++. 58 COPTS.h_thread_local_dtor.cpp+= ${${ACTIVE_CC} == "gcc" :? -Wno-ctor-dtor-privacy -Wno-sign-compare -Wno-shadow :} 59 SRCS.h_thread_local_dtor= h_thread_local_dtor.cpp 60 61 FILESDIR= ${TESTSDIR} 62 FILES= d_mach 63 64 SUBDIR= dlopen 65 66 .include <bsd.test.mk> 67