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 -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 \
20 sanitizer_platform_limits_posix.cc \
23 sanitizer_stackdepot.cc \
24 sanitizer_stacktrace.cc \
25 sanitizer_symbolizer.cc \
26 sanitizer_symbolizer_itanium.cc \
27 sanitizer_symbolizer_linux.cc \
28 sanitizer_symbolizer_mac.cc \
29 sanitizer_symbolizer_win.cc \
32 libsanitizer_common_la_SOURCES = $(sanitizer_common_files)
34 # Work around what appears to be a GNU make bug handling MAKEFLAGS
35 # values defined in terms of make variables, as is the case for CC and
36 # friends when we are called from the top level Makefile.
38 "AR_FLAGS=$(AR_FLAGS)" \
39 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
41 "CXXFLAGS=$(CXXFLAGS)" \
42 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
43 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
44 "INSTALL=$(INSTALL)" \
45 "INSTALL_DATA=$(INSTALL_DATA)" \
46 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
47 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
48 "JC1FLAGS=$(JC1FLAGS)" \
49 "LDFLAGS=$(LDFLAGS)" \
50 "LIBCFLAGS=$(LIBCFLAGS)" \
51 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
53 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
54 "PICFLAG=$(PICFLAG)" \
55 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
57 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
58 "exec_prefix=$(exec_prefix)" \
59 "infodir=$(infodir)" \
62 "includedir=$(includedir)" \
66 "LIBCFLAGS=$(LIBCFLAGS)" \
68 "PICFLAG=$(PICFLAG)" \
74 ## ################################################################