1 AM_CPPFLAGS = -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
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 ACLOCAL_AMFLAGS = -I m4
11 noinst_LTLIBRARIES = libsanitizer_common.la
13 sanitizer_common_files = \
14 sanitizer_allocator.cc \
16 sanitizer_common_libcdep.cc \
17 sanitizer_coverage.cc \
20 sanitizer_libignore.cc \
22 sanitizer_linux_libcdep.cc \
24 sanitizer_platform_limits_linux.cc \
25 sanitizer_platform_limits_posix.cc \
26 sanitizer_posix_libcdep.cc \
29 sanitizer_stackdepot.cc \
30 sanitizer_stacktrace.cc \
31 sanitizer_stacktrace_libcdep.cc \
32 sanitizer_stoptheworld_linux_libcdep.cc \
33 sanitizer_suppressions.cc \
34 sanitizer_symbolizer_posix_libcdep.cc \
35 sanitizer_symbolizer_win.cc \
36 sanitizer_symbolizer.cc \
37 sanitizer_symbolizer_libbacktrace.cc \
38 sanitizer_symbolizer_libcdep.cc \
39 sanitizer_thread_registry.cc \
42 libsanitizer_common_la_SOURCES = $(sanitizer_common_files)
44 # Work around what appears to be a GNU make bug handling MAKEFLAGS
45 # values defined in terms of make variables, as is the case for CC and
46 # friends when we are called from the top level Makefile.
48 "AR_FLAGS=$(AR_FLAGS)" \
49 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
51 "CXXFLAGS=$(CXXFLAGS)" \
52 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
53 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
54 "INSTALL=$(INSTALL)" \
55 "INSTALL_DATA=$(INSTALL_DATA)" \
56 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
57 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
58 "JC1FLAGS=$(JC1FLAGS)" \
59 "LDFLAGS=$(LDFLAGS)" \
60 "LIBCFLAGS=$(LIBCFLAGS)" \
61 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
63 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
64 "PICFLAG=$(PICFLAG)" \
65 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
67 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
68 "exec_prefix=$(exec_prefix)" \
69 "infodir=$(infodir)" \
72 "includedir=$(includedir)" \
76 "LIBCFLAGS=$(LIBCFLAGS)" \
78 "PICFLAG=$(PICFLAG)" \
84 ## ################################################################