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
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_lsan.la
13 toolexeclib_LTLIBRARIES = liblsan.la
16 sanitizer_lsan_files = \
21 $(sanitizer_lsan_files) \
24 lsan_interceptors.cc \
28 libsanitizer_lsan_la_SOURCES = $(sanitizer_lsan_files)
30 liblsan_la_SOURCES = $(lsan_files)
31 liblsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la
32 if LIBBACKTRACE_SUPPORTED
33 liblsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
35 liblsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
36 liblsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_liblsan)
38 # Work around what appears to be a GNU make bug handling MAKEFLAGS
39 # values defined in terms of make variables, as is the case for CC and
40 # friends when we are called from the top level Makefile.
42 "AR_FLAGS=$(AR_FLAGS)" \
43 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
45 "CXXFLAGS=$(CXXFLAGS)" \
46 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
47 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
48 "INSTALL=$(INSTALL)" \
49 "INSTALL_DATA=$(INSTALL_DATA)" \
50 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
51 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
52 "JC1FLAGS=$(JC1FLAGS)" \
53 "LDFLAGS=$(LDFLAGS)" \
54 "LIBCFLAGS=$(LIBCFLAGS)" \
55 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
57 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
58 "PICFLAG=$(PICFLAG)" \
59 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
61 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
62 "exec_prefix=$(exec_prefix)" \
63 "infodir=$(infodir)" \
66 "includedir=$(includedir)" \
70 "LIBCFLAGS=$(LIBCFLAGS)" \
72 "PICFLAG=$(PICFLAG)" \
78 ## ################################################################