1 # Makefile.am -- Backtrace in libsanitizer Makefile.
2 # Copyright (C) 2012-2013 Free Software Foundation, Inc.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
8 # (1) Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
11 # (2) Redistributions in binary form must reproduce the above copyright
12 # notice, this list of conditions and the following disclaimer in
13 # the documentation and/or other materials provided with the
16 # (3) The name of the author may not be used to
17 # endorse or promote products derived from this software without
18 # specific prior written permission.
20 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
24 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29 # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 # POSSIBILITY OF SUCH DAMAGE.
32 ACLOCAL_AMFLAGS = -I ../.. -I ../../config
34 AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \
35 -I ../../libgcc -I .. -I $(top_srcdir) -I $(top_srcdir)/../libbacktrace
37 C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
38 CXX_WARN_FLAGS = $(WARN_FLAGS) -Wno-unused-parameter
39 AM_CFLAGS = $(C_WARN_FLAGS)
40 AM_CFLAGS += $(EXTRA_CFLAGS)
41 AM_CXXFLAGS = $(CXX_WARN_FLAGS) -fno-rtti -fno-exceptions
42 AM_CXXFLAGS += -std=gnu++14
43 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
45 noinst_LTLIBRARIES = libsanitizer_libbacktrace.la
47 libsanitizer_libbacktrace_la_SOURCES = \
48 ../../libbacktrace/backtrace.h \
49 ../../libbacktrace/atomic.c \
50 ../../libbacktrace/dwarf.c \
51 ../../libbacktrace/fileline.c \
52 ../../libbacktrace/internal.h \
53 ../../libbacktrace/posix.c \
54 ../../libbacktrace/sort.c \
55 ../../libbacktrace/state.c \
56 ../../libiberty/cp-demangle.c \
60 ../../libbacktrace/elf.c \
61 ../../libbacktrace/unknown.c
64 ../../libbacktrace/read.c \
65 ../../libbacktrace/mmapio.c
68 ../../libbacktrace/alloc.c \
69 ../../libbacktrace/mmap.c
71 EXTRA_libsanitizer_libbacktrace_la_SOURCES = \
76 libsanitizer_libbacktrace_la_LIBADD = \
81 libsanitizer_libbacktrace_la_DEPENDENCIES = $(libsanitizer_libbacktrace_la_LIBADD)