(decimal_)float_mode_for_size in real.h
[official-gcc.git] / libsanitizer / tsan / Makefile.am
blob53a8d1cb0cd06c07c4dfd03e005d2fa4ea295a16
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
15 tsan_files = \
16         tsan_clock.cc \
17         tsan_debugging.cc \
18         tsan_fd.cc \
19         tsan_flags.cc \
20         tsan_ignoreset.cc \
21         tsan_interceptors.cc \
22         tsan_interceptors_mac.cc \
23         tsan_interface_ann.cc \
24         tsan_interface_atomic.cc \
25         tsan_interface.cc \
26         tsan_interface_java.cc \
27         tsan_libdispatch_mac.cc \
28         tsan_malloc_mac.cc \
29         tsan_md5.cc \
30         tsan_mman.cc \
31         tsan_mutex.cc \
32         tsan_mutexset.cc \
33         tsan_new_delete.cc \
34         tsan_platform_linux.cc \
35         tsan_platform_mac.cc \
36         tsan_platform_posix.cc \
37         tsan_platform_windows.cc \
38         tsan_report.cc \
39         tsan_rtl.cc \
40         tsan_rtl_mutex.cc \
41         tsan_rtl_proc.cc \
42         tsan_rtl_report.cc \
43         tsan_rtl_thread.cc \
44         tsan_stack_trace.cc \
45         tsan_stat.cc \
46         tsan_suppressions.cc \
47         tsan_symbolize.cc \
48         tsan_sync.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
57 endif
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
62         cp $< $@
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.
67 AM_MAKEFLAGS = \
68         "AR_FLAGS=$(AR_FLAGS)" \
69         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
70         "CFLAGS=$(CFLAGS)" \
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)" \
82         "MAKE=$(MAKE)" \
83         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
84         "PICFLAG=$(PICFLAG)" \
85         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
86         "SHELL=$(SHELL)" \
87         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
88         "exec_prefix=$(exec_prefix)" \
89         "infodir=$(infodir)" \
90         "libdir=$(libdir)" \
91         "prefix=$(prefix)" \
92         "includedir=$(includedir)" \
93         "AR=$(AR)" \
94         "AS=$(AS)" \
95         "LD=$(LD)" \
96         "LIBCFLAGS=$(LIBCFLAGS)" \
97         "NM=$(NM)" \
98         "PICFLAG=$(PICFLAG)" \
99         "RANLIB=$(RANLIB)" \
100         "DESTDIR=$(DESTDIR)"
102 MAKEOVERRIDES=
104 ## ################################################################