1 # $NetBSD: Makefile,v 1.2 2015/01/07 03:49:13 christos Exp $
5 .
include "../Makefile.inc"
7 TSAN
=${GCCDIST}/libsanitizer
8 .PATH
: ${TSAN}/tsan
${TSAN}/interception
${TSAN}/sanitizer_common
14 tsan_interceptors.
cc \
16 tsan_interface_ann.
cc \
17 tsan_interface_atomic.
cc \
18 tsan_interface_java.
cc \
23 tsan_platform_linux.
cc \
24 tsan_platform_mac.
cc \
32 tsan_suppressions.
cc \
34 tsan_symbolize_addr2line_linux.
cc \
38 interception_linux.
cc \
39 interception_type_test.
cc
42 sanitizer_allocator.
cc \
49 sanitizer_platform_limits_posix.
cc \
51 sanitizer_stackdepot.
cc \
52 sanitizer_stacktrace.
cc \
53 sanitizer_symbolizer.
cc \
54 sanitizer_symbolizer_linux.
cc \
57 # The linux build does this to avoid preinit sections on shared libraries
61 SRCS
= ${TSAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
62 CPPFLAGS
+=-I
${TSAN}/include -I
${TSAN}
64 LDADD
+= -lstdc
++ -lpthread
65 DPADD
+= ${LIBSTDCXX} ${LIBPTHREAD}