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