Daily bump.
[official-gcc.git] / libsanitizer / sanitizer_common / Makefile.am
blob8e9038dc8cff657b2c02bcb7163ab76d21c3de07
1 AM_CPPFLAGS = -I $(top_srcdir)/include -isystem $(top_srcdir)/include/system
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 
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 if LIBBACKTRACE_SUPPORTED
10 AM_CXXFLAGS += -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE \
11                -I $(top_srcdir)/../libbacktrace \
12                -I $(top_builddir)/libbacktrace \
13                -I $(top_srcdir)/../include \
14                -include $(top_srcdir)/libbacktrace/backtrace-rename.h
15 endif
16 ACLOCAL_AMFLAGS = -I m4
18 noinst_LTLIBRARIES = libsanitizer_common.la
20 sanitizer_common_files = \
21         sanitizer_allocator.cc \
22         sanitizer_common.cc \
23         sanitizer_common_libcdep.cc \
24         sanitizer_coverage.cc \
25         sanitizer_flags.cc \
26         sanitizer_libc.cc \
27         sanitizer_libignore.cc \
28         sanitizer_linux.cc \
29         sanitizer_linux_libcdep.cc \
30         sanitizer_mac.cc \
31         sanitizer_platform_limits_linux.cc \
32         sanitizer_platform_limits_posix.cc \
33         sanitizer_posix_libcdep.cc \
34         sanitizer_posix.cc \
35         sanitizer_printf.cc \
36         sanitizer_stackdepot.cc \
37         sanitizer_stacktrace.cc \
38         sanitizer_stacktrace_libcdep.cc \
39         sanitizer_stoptheworld_linux_libcdep.cc \
40         sanitizer_suppressions.cc \
41         sanitizer_symbolizer_posix_libcdep.cc \
42         sanitizer_symbolizer_win.cc \
43         sanitizer_symbolizer.cc \
44         sanitizer_symbolizer_libbacktrace.cc \
45         sanitizer_symbolizer_libcdep.cc \
46         sanitizer_thread_registry.cc \
47         sanitizer_win.cc
49 libsanitizer_common_la_SOURCES = $(sanitizer_common_files) 
51 # Work around what appears to be a GNU make bug handling MAKEFLAGS
52 # values defined in terms of make variables, as is the case for CC and
53 # friends when we are called from the top level Makefile.
54 AM_MAKEFLAGS = \
55         "AR_FLAGS=$(AR_FLAGS)" \
56         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
57         "CFLAGS=$(CFLAGS)" \
58         "CXXFLAGS=$(CXXFLAGS)" \
59         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
60         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
61         "INSTALL=$(INSTALL)" \
62         "INSTALL_DATA=$(INSTALL_DATA)" \
63         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
64         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
65         "JC1FLAGS=$(JC1FLAGS)" \
66         "LDFLAGS=$(LDFLAGS)" \
67         "LIBCFLAGS=$(LIBCFLAGS)" \
68         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
69         "MAKE=$(MAKE)" \
70         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
71         "PICFLAG=$(PICFLAG)" \
72         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
73         "SHELL=$(SHELL)" \
74         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
75         "exec_prefix=$(exec_prefix)" \
76         "infodir=$(infodir)" \
77         "libdir=$(libdir)" \
78         "prefix=$(prefix)" \
79         "includedir=$(includedir)" \
80         "AR=$(AR)" \
81         "AS=$(AS)" \
82         "LD=$(LD)" \
83         "LIBCFLAGS=$(LIBCFLAGS)" \
84         "NM=$(NM)" \
85         "PICFLAG=$(PICFLAG)" \
86         "RANLIB=$(RANLIB)" \
87         "DESTDIR=$(DESTDIR)"
89 MAKEOVERRIDES=
91 ## ################################################################