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 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11 ACLOCAL_AMFLAGS = -I m4
13 toolexeclib_LTLIBRARIES = libtsan.la
14 nodist_toolexeclib_HEADERS = libtsan_preinit.o
23 tsan_interceptors.cc \
24 tsan_interceptors_mac.cc \
25 tsan_interface_ann.cc \
26 tsan_interface_atomic.cc \
28 tsan_interface_java.cc \
29 tsan_libdispatch_mac.cc \
36 tsan_platform_linux.cc \
37 tsan_platform_mac.cc \
38 tsan_platform_posix.cc \
39 tsan_platform_windows.cc \
48 tsan_suppressions.cc \
52 libtsan_la_SOURCES = $(tsan_files)
53 EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S
54 libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
55 libtsan_la_DEPENDENCIES = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
56 if LIBBACKTRACE_SUPPORTED
57 libtsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
58 libtsan_la_DEPENDENCIES +=$(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
60 libtsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
61 libtsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libtsan)
63 libtsan_preinit.o: tsan_preinit.o
66 # Work around what appears to be a GNU make bug handling MAKEFLAGS
67 # values defined in terms of make variables, as is the case for CC and
68 # friends when we are called from the top level Makefile.
70 "AR_FLAGS=$(AR_FLAGS)" \
71 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
73 "CXXFLAGS=$(CXXFLAGS)" \
74 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
75 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
76 "INSTALL=$(INSTALL)" \
77 "INSTALL_DATA=$(INSTALL_DATA)" \
78 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
79 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
80 "JC1FLAGS=$(JC1FLAGS)" \
81 "LDFLAGS=$(LDFLAGS)" \
82 "LIBCFLAGS=$(LIBCFLAGS)" \
83 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
85 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
86 "PICFLAG=$(PICFLAG)" \
87 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
89 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
90 "exec_prefix=$(exec_prefix)" \
91 "infodir=$(infodir)" \
94 "includedir=$(includedir)" \
98 "LIBCFLAGS=$(LIBCFLAGS)" \
100 "PICFLAG=$(PICFLAG)" \
106 ## ################################################################