1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
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 -DASAN_HAS_EXCEPTIONS=1 -DASAN_NEEDS_SEGV=1 -DCAN_SANITIZE_UB=0
8 DEFS += -DMAC_INTERPOSE_FUNCTIONS -DMISSING_BLOCKS_SUPPORT
10 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 -fno-ipa-icf
11 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
12 AM_CXXFLAGS += -std=gnu++11
13 ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
15 toolexeclib_LTLIBRARIES = libasan.la
16 nodist_toolexeclib_HEADERS = libasan_preinit.o
22 asan_descriptions.cc \
27 asan_interceptors.cc \
28 asan_interceptors_memintrinsics.cc \
31 asan_malloc_linux.cc \
34 asan_memory_profile.cc \
40 asan_shadow_setup.cc \
43 asan_suppressions.cc \
46 asan_win_dll_thunk.cc \
47 asan_win_dynamic_runtime_thunk.cc
49 libasan_la_SOURCES = $(asan_files)
50 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/lsan/libsanitizer_lsan.la
51 if !USING_MAC_INTERPOSE
52 libasan_la_LIBADD += $(top_builddir)/interception/libinterception.la
54 if LIBBACKTRACE_SUPPORTED
55 libasan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
57 libasan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
59 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libasan)
61 libasan_preinit.o: asan_preinit.o
64 # Work around what appears to be a GNU make bug handling MAKEFLAGS
65 # values defined in terms of make variables, as is the case for CC and
66 # friends when we are called from the top level Makefile.
68 "AR_FLAGS=$(AR_FLAGS)" \
69 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
71 "CXXFLAGS=$(CXXFLAGS)" \
72 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
73 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
74 "INSTALL=$(INSTALL)" \
75 "INSTALL_DATA=$(INSTALL_DATA)" \
76 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
77 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
78 "JC1FLAGS=$(JC1FLAGS)" \
79 "LDFLAGS=$(LDFLAGS)" \
80 "LIBCFLAGS=$(LIBCFLAGS)" \
81 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
83 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
84 "PICFLAG=$(PICFLAG)" \
85 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
87 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
88 "exec_prefix=$(exec_prefix)" \
89 "infodir=$(infodir)" \
92 "includedir=$(includedir)" \
96 "LIBCFLAGS=$(LIBCFLAGS)" \
98 "PICFLAG=$(PICFLAG)" \
104 ## ################################################################