1 # $NetBSD: Makefile,v 1.13 2017/07/11 15:21:36 joerg 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_swapcontext 41 TESTS_SH+= t_thread_local_dtor 42 TESTS_C+= t_timedmutex 43 44 LDADD.t_sem+= -lrt 45 46 BINDIR= ${TESTSDIR} 47 PROGS= h_atexit 48 PROGS+= h_cancel 49 PROGS+= h_exit 50 PROGS+= h_resolv 51 PROGS_CXX+= h_thread_local_dtor 52 53 COPTS.h_thread_local_dtor.cpp+= -std=c++11 54 # Deal with questionable warning and header quality in libstdc++. 55 COPTS.h_thread_local_dtor.cpp+= ${${ACTIVE_CC} == "gcc" :? -Wno-ctor-dtor-privacy -Wno-sign-compare -Wno-shadow :} 56 57 FILESDIR= ${TESTSDIR} 58 FILES= d_mach 59 60 SUBDIR= dlopen 61 62 .include <bsd.test.mk> 63