Update libsanitizer obstack interceptors
[official-gcc.git] / libsanitizer / tsan / Makefile.am
blobdc22db5d44602ca1475553592b96f5c83b3f2e0f
1 AM_CPPFLAGS = -I $(top_srcdir) -I $(top_srcdir)/include
3 # May be used by toolexeclibdir.
4 gcc_version := $(shell cat $(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 @OBSTACK_DEFS@
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
14 tsan_files = \
15         tsan_clock.cc \
16         tsan_fd.cc \
17         tsan_flags.cc \
18         tsan_ignoreset.cc \
19         tsan_interceptors.cc \
20         tsan_interface_ann.cc \
21         tsan_interface_atomic.cc \
22         tsan_interface.cc \
23         tsan_interface_java.cc \
24         tsan_md5.cc \
25         tsan_mman.cc \
26         tsan_mutex.cc \
27         tsan_mutexset.cc \
28         tsan_new_delete.cc \
29         tsan_platform_linux.cc \
30         tsan_platform_mac.cc \
31         tsan_platform_windows.cc \
32         tsan_report.cc \
33         tsan_rtl.cc \
34         tsan_rtl_mutex.cc \
35         tsan_rtl_report.cc \
36         tsan_rtl_thread.cc \
37         tsan_stack_trace.cc \
38         tsan_stat.cc \
39         tsan_suppressions.cc \
40         tsan_symbolize.cc \
41         tsan_sync.cc 
43 libtsan_la_SOURCES = $(tsan_files)
44 EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S
45 libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
46 libtsan_la_DEPENDENCIES = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
47 if LIBBACKTRACE_SUPPORTED
48 libtsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
49 libtsan_la_DEPENDENCIES +=$(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
50 endif
51 libtsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
52 libtsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libtsan)
54 # Work around what appears to be a GNU make bug handling MAKEFLAGS
55 # values defined in terms of make variables, as is the case for CC and
56 # friends when we are called from the top level Makefile.
57 AM_MAKEFLAGS = \
58         "AR_FLAGS=$(AR_FLAGS)" \
59         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
60         "CFLAGS=$(CFLAGS)" \
61         "CXXFLAGS=$(CXXFLAGS)" \
62         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
63         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
64         "INSTALL=$(INSTALL)" \
65         "INSTALL_DATA=$(INSTALL_DATA)" \
66         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
67         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
68         "JC1FLAGS=$(JC1FLAGS)" \
69         "LDFLAGS=$(LDFLAGS)" \
70         "LIBCFLAGS=$(LIBCFLAGS)" \
71         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
72         "MAKE=$(MAKE)" \
73         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
74         "PICFLAG=$(PICFLAG)" \
75         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
76         "SHELL=$(SHELL)" \
77         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
78         "exec_prefix=$(exec_prefix)" \
79         "infodir=$(infodir)" \
80         "libdir=$(libdir)" \
81         "prefix=$(prefix)" \
82         "includedir=$(includedir)" \
83         "AR=$(AR)" \
84         "AS=$(AS)" \
85         "LD=$(LD)" \
86         "LIBCFLAGS=$(LIBCFLAGS)" \
87         "NM=$(NM)" \
88         "PICFLAG=$(PICFLAG)" \
89         "RANLIB=$(RANLIB)" \
90         "DESTDIR=$(DESTDIR)"
92 MAKEOVERRIDES=
94 ## ################################################################