* ipa-inline.c (compute_uninlined_call_time, compute_inlined_call_time):
[official-gcc.git] / libsanitizer / lsan / Makefile.am
blob700d15fce57c3a2fe55cfcf555947010bc7ed0e8
1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
2  
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 
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 AM_CXXFLAGS += -std=gnu++11
10 ACLOCAL_AMFLAGS = -I m4
12 noinst_LTLIBRARIES = libsanitizer_lsan.la
13 if LSAN_SUPPORTED
14 toolexeclib_LTLIBRARIES = liblsan.la
15 nodist_toolexeclib_HEADERS = liblsan_preinit.o
16 endif
18 sanitizer_lsan_files = \
19         lsan_common.cc \
20         lsan_common_linux.cc \
21         lsan_common_mac.cc
23 lsan_files = \
24         $(sanitizer_lsan_files) \
25         lsan.cc \
26         lsan_linux.cc \
27         lsan_mac.cc \
28         lsan_malloc_mac.cc \
29         lsan_allocator.cc \
30         lsan_interceptors.cc \
31         lsan_thread.cc
33 libsanitizer_lsan_la_SOURCES = $(sanitizer_lsan_files)
35 liblsan_la_SOURCES = $(lsan_files)
36 liblsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la
37 if LIBBACKTRACE_SUPPORTED
38 liblsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
39 endif
40 liblsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
41 liblsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_liblsan)
43 liblsan_preinit.o: lsan_preinit.o
44         cp $< $@
46 # Work around what appears to be a GNU make bug handling MAKEFLAGS
47 # values defined in terms of make variables, as is the case for CC and
48 # friends when we are called from the top level Makefile.
49 AM_MAKEFLAGS = \
50         "AR_FLAGS=$(AR_FLAGS)" \
51         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
52         "CFLAGS=$(CFLAGS)" \
53         "CXXFLAGS=$(CXXFLAGS)" \
54         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
55         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
56         "INSTALL=$(INSTALL)" \
57         "INSTALL_DATA=$(INSTALL_DATA)" \
58         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
59         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
60         "JC1FLAGS=$(JC1FLAGS)" \
61         "LDFLAGS=$(LDFLAGS)" \
62         "LIBCFLAGS=$(LIBCFLAGS)" \
63         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
64         "MAKE=$(MAKE)" \
65         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
66         "PICFLAG=$(PICFLAG)" \
67         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
68         "SHELL=$(SHELL)" \
69         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
70         "exec_prefix=$(exec_prefix)" \
71         "infodir=$(infodir)" \
72         "libdir=$(libdir)" \
73         "prefix=$(prefix)" \
74         "includedir=$(includedir)" \
75         "AR=$(AR)" \
76         "AS=$(AS)" \
77         "LD=$(LD)" \
78         "LIBCFLAGS=$(LIBCFLAGS)" \
79         "NM=$(NM)" \
80         "PICFLAG=$(PICFLAG)" \
81         "RANLIB=$(RANLIB)" \
82         "DESTDIR=$(DESTDIR)"
84 MAKEOVERRIDES=
86 ## ################################################################