1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
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 -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 -DASAN_NEEDS_SEGV=1
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 -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros
11 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
12 ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
14 toolexeclib_LTLIBRARIES = libasan.la
19 asan_interceptors.cc \
26 asan_thread_registry.cc \
30 asan_malloc_linux.cc \
38 libasan_la_SOURCES = $(asan_files)
39 if USING_MAC_INTERPOSE
40 libasan_la_SOURCES += dynamic/asan_interceptors_dynamic.cc
41 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la
43 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la
45 libasan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
47 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl
49 # Work around what appears to be a GNU make bug handling MAKEFLAGS
50 # values defined in terms of make variables, as is the case for CC and
51 # friends when we are called from the top level Makefile.
53 "AR_FLAGS=$(AR_FLAGS)" \
54 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
56 "CXXFLAGS=$(CXXFLAGS)" \
57 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
58 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
59 "INSTALL=$(INSTALL)" \
60 "INSTALL_DATA=$(INSTALL_DATA)" \
61 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
62 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
63 "JC1FLAGS=$(JC1FLAGS)" \
64 "LDFLAGS=$(LDFLAGS)" \
65 "LIBCFLAGS=$(LIBCFLAGS)" \
66 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
68 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
69 "PICFLAG=$(PICFLAG)" \
70 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
72 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
73 "exec_prefix=$(exec_prefix)" \
74 "infodir=$(infodir)" \
77 "includedir=$(includedir)" \
81 "LIBCFLAGS=$(LIBCFLAGS)" \
83 "PICFLAG=$(PICFLAG)" \
89 ## ################################################################