1 AM_CPPFLAGS = -I $(top_srcdir) -I $(top_srcdir)/include
3 # May be used by toolexeclibdir.
4 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
6 DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCAN_SANITIZE_UB=0
7 AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros
8 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9 AM_CXXFLAGS += -std=gnu++11
10 ACLOCAL_AMFLAGS = -I m4
12 toolexeclib_LTLIBRARIES = libtsan.la
13 nodist_toolexeclib_HEADERS = libtsan_preinit.o
21 tsan_interceptors.cc \
22 tsan_interceptors_mac.cc \
23 tsan_interface_ann.cc \
24 tsan_interface_atomic.cc \
26 tsan_interface_java.cc \
27 tsan_libdispatch_mac.cc \
34 tsan_platform_linux.cc \
35 tsan_platform_mac.cc \
36 tsan_platform_posix.cc \
37 tsan_platform_windows.cc \
46 tsan_suppressions.cc \
50 libtsan_la_SOURCES = $(tsan_files)
51 EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S
52 libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
53 libtsan_la_DEPENDENCIES = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
54 if LIBBACKTRACE_SUPPORTED
55 libtsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
56 libtsan_la_DEPENDENCIES +=$(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
58 libtsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
59 libtsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libtsan)
61 libtsan_preinit.o: tsan_preinit.o
64 # Work around what appears to be a GNU make bug handling MAKEFLAGS
65 # values defined in terms of make variables, as is the case for CC and
66 # friends when we are called from the top level Makefile.
68 "AR_FLAGS=$(AR_FLAGS)" \
69 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
71 "CXXFLAGS=$(CXXFLAGS)" \
72 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
73 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
74 "INSTALL=$(INSTALL)" \
75 "INSTALL_DATA=$(INSTALL_DATA)" \
76 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
77 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
78 "JC1FLAGS=$(JC1FLAGS)" \
79 "LDFLAGS=$(LDFLAGS)" \
80 "LIBCFLAGS=$(LIBCFLAGS)" \
81 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
83 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
84 "PICFLAG=$(PICFLAG)" \
85 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
87 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
88 "exec_prefix=$(exec_prefix)" \
89 "infodir=$(infodir)" \
92 "includedir=$(includedir)" \
96 "LIBCFLAGS=$(LIBCFLAGS)" \
98 "PICFLAG=$(PICFLAG)" \
104 ## ################################################################