Daily bump.
[official-gcc.git] / libsanitizer / sanitizer_common / Makefile.am
blob9ed6ef88775ac438a8840f11ad0255fa50d0f7e3
1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir) -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@ @AS_SYM_ASSIGN_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++14
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
20 sanitizer_platform_limits_freebsd.lo: AM_CXXFLAGS += -DUSE_SYSTEM_MD5
22 noinst_LTLIBRARIES = libsanitizer_common.la
24 sanitizer_common_files = \
25         sancov_flags.cpp \
26         sanitizer_allocator.cpp \
27         sanitizer_allocator_checks.cpp \
28         sanitizer_allocator_report.cpp \
29         sanitizer_common.cpp \
30         sanitizer_common_libcdep.cpp \
31         sanitizer_coverage_libcdep_new.cpp \
32         sanitizer_deadlock_detector1.cpp \
33         sanitizer_deadlock_detector2.cpp \
34         sanitizer_dl.cpp \
35         sanitizer_errno.cpp \
36         sanitizer_file.cpp \
37         sanitizer_flags.cpp \
38         sanitizer_flag_parser.cpp \
39         sanitizer_libc.cpp \
40         sanitizer_libignore.cpp \
41         sanitizer_linux.cpp \
42         sanitizer_linux_libcdep.cpp \
43         sanitizer_linux_s390.cpp \
44         sanitizer_mac.cpp \
45         sanitizer_mac_libcdep.cpp \
46         sanitizer_mutex.cpp \
47         sanitizer_netbsd.cpp \
48         sanitizer_platform_limits_freebsd.cpp \
49         sanitizer_platform_limits_linux.cpp \
50         sanitizer_platform_limits_openbsd.cpp \
51         sanitizer_platform_limits_posix.cpp \
52         sanitizer_platform_limits_solaris.cpp \
53         sanitizer_posix.cpp \
54         sanitizer_posix_libcdep.cpp \
55         sanitizer_printf.cpp \
56         sanitizer_procmaps_bsd.cpp \
57         sanitizer_procmaps_common.cpp \
58         sanitizer_procmaps_linux.cpp \
59         sanitizer_procmaps_mac.cpp \
60         sanitizer_procmaps_solaris.cpp \
61         sanitizer_range.cpp \
62         sanitizer_solaris.cpp \
63         sanitizer_stack_store.cpp \
64         sanitizer_stackdepot.cpp \
65         sanitizer_stacktrace.cpp \
66         sanitizer_stacktrace_libcdep.cpp \
67         sanitizer_stacktrace_sparc.cpp \
68         sanitizer_symbolizer_mac.cpp \
69         sanitizer_symbolizer_report.cpp \
70         sanitizer_stacktrace_printer.cpp \
71         sanitizer_stoptheworld_linux_libcdep.cpp \
72         sanitizer_stoptheworld_mac.cpp \
73         sanitizer_suppressions.cpp \
74         sanitizer_symbolizer.cpp \
75         sanitizer_symbolizer_libbacktrace.cpp \
76         sanitizer_symbolizer_libcdep.cpp \
77         sanitizer_symbolizer_posix_libcdep.cpp \
78         sanitizer_symbolizer_win.cpp \
79         sanitizer_termination.cpp \
80         sanitizer_thread_arg_retval.cpp \
81         sanitizer_thread_registry.cpp \
82         sanitizer_tls_get_addr.cpp \
83         sanitizer_unwind_linux_libcdep.cpp \
84         sanitizer_unwind_win.cpp \
85         sanitizer_win.cpp
88 libsanitizer_common_la_SOURCES = $(sanitizer_common_files) 
89 libsanitizer_common_la_LIBADD = $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
90 libsanitizer_common_la_DEPENDENCIES =  $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
92 # Work around what appears to be a GNU make bug handling MAKEFLAGS
93 # values defined in terms of make variables, as is the case for CC and
94 # friends when we are called from the top level Makefile.
95 AM_MAKEFLAGS = \
96         "AR_FLAGS=$(AR_FLAGS)" \
97         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
98         "CFLAGS=$(CFLAGS)" \
99         "CXXFLAGS=$(CXXFLAGS)" \
100         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
101         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
102         "INSTALL=$(INSTALL)" \
103         "INSTALL_DATA=$(INSTALL_DATA)" \
104         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
105         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
106         "JC1FLAGS=$(JC1FLAGS)" \
107         "LDFLAGS=$(LDFLAGS)" \
108         "LIBCFLAGS=$(LIBCFLAGS)" \
109         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
110         "MAKE=$(MAKE)" \
111         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
112         "PICFLAG=$(PICFLAG)" \
113         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
114         "SHELL=$(SHELL)" \
115         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
116         "exec_prefix=$(exec_prefix)" \
117         "infodir=$(infodir)" \
118         "libdir=$(libdir)" \
119         "prefix=$(prefix)" \
120         "includedir=$(includedir)" \
121         "AR=$(AR)" \
122         "AS=$(AS)" \
123         "LD=$(LD)" \
124         "LIBCFLAGS=$(LIBCFLAGS)" \
125         "NM=$(NM)" \
126         "PICFLAG=$(PICFLAG)" \
127         "RANLIB=$(RANLIB)" \
128         "DESTDIR=$(DESTDIR)"
130 MAKEOVERRIDES=
132 ## ################################################################