[NDS32] Refine functions that deal with lwm and smw operations.
[official-gcc.git] / libsanitizer / sanitizer_common / Makefile.am
blob246985b9933845bc998b0422c658665a2cf04393
1 AM_CPPFLAGS = -I $(top_srcdir)/include -isystem $(top_srcdir)/include/system
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 @RPC_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 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11 if LIBBACKTRACE_SUPPORTED
12 AM_CXXFLAGS += -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE \
13                -I $(top_srcdir)/../libbacktrace \
14                -I $(top_builddir)/libbacktrace \
15                -I $(top_srcdir)/../include \
16                -include $(top_srcdir)/libbacktrace/backtrace-rename.h
17 endif
18 AM_CCASFLAGS = $(EXTRA_ASFLAGS)
19 ACLOCAL_AMFLAGS = -I m4
21 noinst_LTLIBRARIES = libsanitizer_common.la
23 sanitizer_common_files = \
24         sancov_flags.cc \
25         sanitizer_allocator.cc \
26         sanitizer_allocator_checks.cc \
27         sanitizer_common.cc \
28         sanitizer_common_libcdep.cc \
29         sanitizer_coverage_libcdep_new.cc \
30         sanitizer_deadlock_detector1.cc \
31         sanitizer_deadlock_detector2.cc \
32         sanitizer_errno.cc \
33         sanitizer_file.cc \
34         sanitizer_flags.cc \
35         sanitizer_flag_parser.cc \
36         sanitizer_libc.cc \
37         sanitizer_libignore.cc \
38         sanitizer_linux.cc \
39         sanitizer_linux_libcdep.cc \
40         sanitizer_linux_s390.cc \
41         sanitizer_mac.cc \
42         sanitizer_mac_libcdep.cc \
43         sanitizer_persistent_allocator.cc \
44         sanitizer_platform_limits_linux.cc \
45         sanitizer_platform_limits_posix.cc \
46         sanitizer_posix.cc \
47         sanitizer_posix_libcdep.cc \
48         sanitizer_printf.cc \
49         sanitizer_procmaps_common.cc \
50         sanitizer_procmaps_freebsd.cc \
51         sanitizer_procmaps_linux.cc \
52         sanitizer_procmaps_mac.cc \
53         sanitizer_stackdepot.cc \
54         sanitizer_stacktrace.cc \
55         sanitizer_stacktrace_libcdep.cc \
56         sanitizer_symbolizer_mac.cc \
57         sanitizer_stacktrace_printer.cc \
58         sanitizer_stoptheworld_linux_libcdep.cc \
59         sanitizer_stoptheworld_mac.cc \
60         sanitizer_suppressions.cc \
61         sanitizer_symbolizer.cc \
62         sanitizer_symbolizer_libbacktrace.cc \
63         sanitizer_symbolizer_libcdep.cc \
64         sanitizer_symbolizer_posix_libcdep.cc \
65         sanitizer_symbolizer_win.cc \
66         sanitizer_termination.cc \
67         sanitizer_thread_registry.cc \
68         sanitizer_tls_get_addr.cc \
69         sanitizer_unwind_linux_libcdep.cc \
70         sanitizer_win.cc
73 libsanitizer_common_la_SOURCES = $(sanitizer_common_files) 
74 EXTRA_libsanitizer_common_la_SOURCES = sanitizer_linux_mips64.S sanitizer_linux_x86_64.S
75 libsanitizer_common_la_LIBADD = $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
76 libsanitizer_common_la_DEPENDENCIES =  $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
78 # Work around what appears to be a GNU make bug handling MAKEFLAGS
79 # values defined in terms of make variables, as is the case for CC and
80 # friends when we are called from the top level Makefile.
81 AM_MAKEFLAGS = \
82         "AR_FLAGS=$(AR_FLAGS)" \
83         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
84         "CFLAGS=$(CFLAGS)" \
85         "CXXFLAGS=$(CXXFLAGS)" \
86         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
87         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
88         "INSTALL=$(INSTALL)" \
89         "INSTALL_DATA=$(INSTALL_DATA)" \
90         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
91         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
92         "JC1FLAGS=$(JC1FLAGS)" \
93         "LDFLAGS=$(LDFLAGS)" \
94         "LIBCFLAGS=$(LIBCFLAGS)" \
95         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
96         "MAKE=$(MAKE)" \
97         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
98         "PICFLAG=$(PICFLAG)" \
99         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
100         "SHELL=$(SHELL)" \
101         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
102         "exec_prefix=$(exec_prefix)" \
103         "infodir=$(infodir)" \
104         "libdir=$(libdir)" \
105         "prefix=$(prefix)" \
106         "includedir=$(includedir)" \
107         "AR=$(AR)" \
108         "AS=$(AS)" \
109         "LD=$(LD)" \
110         "LIBCFLAGS=$(LIBCFLAGS)" \
111         "NM=$(NM)" \
112         "PICFLAG=$(PICFLAG)" \
113         "RANLIB=$(RANLIB)" \
114         "DESTDIR=$(DESTDIR)"
116 MAKEOVERRIDES=
118 ## ################################################################