1 1.9 mrg # $NetBSD: Makefile,v 1.9 2019/02/08 22:06:12 mrg Exp $ 2 1.1 christos 3 1.1 christos .include <bsd.own.mk> 4 1.1 christos 5 1.1 christos .include "../Makefile.inc" 6 1.4 christos .include "../Makefile.sanitizer" 7 1.1 christos 8 1.4 christos .PATH: ${SANITIZER}/tsan 9 1.1 christos 10 1.1 christos TSAN_SRCS= \ 11 1.8 mrg tsan_clock.cc \ 12 1.8 mrg tsan_debugging.cc \ 13 1.8 mrg tsan_fd.cc \ 14 1.8 mrg tsan_flags.cc \ 15 1.8 mrg tsan_ignoreset.cc \ 16 1.8 mrg tsan_interceptors.cc \ 17 1.8 mrg tsan_interceptors_mac.cc \ 18 1.8 mrg tsan_interface_ann.cc \ 19 1.8 mrg tsan_interface_atomic.cc \ 20 1.8 mrg tsan_interface.cc \ 21 1.8 mrg tsan_interface_java.cc \ 22 1.8 mrg tsan_libdispatch_mac.cc \ 23 1.8 mrg tsan_malloc_mac.cc \ 24 1.8 mrg tsan_md5.cc \ 25 1.8 mrg tsan_mman.cc \ 26 1.8 mrg tsan_mutex.cc \ 27 1.8 mrg tsan_mutexset.cc \ 28 1.8 mrg tsan_new_delete.cc \ 29 1.8 mrg tsan_platform_linux.cc \ 30 1.8 mrg tsan_platform_mac.cc \ 31 1.8 mrg tsan_platform_posix.cc \ 32 1.8 mrg tsan_platform_windows.cc \ 33 1.8 mrg tsan_report.cc \ 34 1.8 mrg tsan_rtl.cc \ 35 1.8 mrg tsan_rtl_mutex.cc \ 36 1.8 mrg tsan_rtl_proc.cc \ 37 1.8 mrg tsan_rtl_report.cc \ 38 1.8 mrg tsan_rtl_thread.cc \ 39 1.8 mrg tsan_stack_trace.cc \ 40 1.8 mrg tsan_stat.cc \ 41 1.8 mrg tsan_suppressions.cc \ 42 1.8 mrg tsan_symbolize.cc \ 43 1.8 mrg tsan_sync.cc 44 1.7 mrg 45 1.8 mrg # XXX ${MACHINE} won't match mips64 or ppc64 46 1.5 christos .if exists(${SANITIZER}/tsan/tsan_rtl_${MACHINE}.S) 47 1.5 christos TSAN_SRCS+= tsan_rtl_${MACHINE}.S 48 1.5 christos .else 49 1.5 christos TSAN_SRCS+= tsan_rtl_unimpl.cc 50 1.5 christos .endif 51 1.5 christos 52 1.2 christos LIB= tsan 53 1.4 christos SRCS+= ${TSAN_SRCS} 54 1.9 mrg CPPFLAGS+=-DCAN_SANITIZE_UB=0 55 1.1 christos 56 1.1 christos .include <bsd.lib.mk> 57