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 WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \
39 C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
40 CXX_WARN_FLAGS = $(WARN_FLAGS) -Wno-unused-parameter
41 AM_CFLAGS = $(C_WARN_FLAGS)
42 AM_CFLAGS += $(EXTRA_CFLAGS)
43 AM_CXXFLAGS = $(CXX_WARN_FLAGS) -fno-rtti -fno-exceptions
44 AM_CXXFLAGS += -std=gnu++11
45 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
47 noinst_LTLIBRARIES = libsanitizer_libbacktrace.la
49 libsanitizer_libbacktrace_la_SOURCES = \
50 ../../libbacktrace/backtrace.h \
51 ../../libbacktrace/atomic.c \
52 ../../libbacktrace/dwarf.c \
53 ../../libbacktrace/fileline.c \
54 ../../libbacktrace/internal.h \
55 ../../libbacktrace/posix.c \
56 ../../libbacktrace/sort.c \
57 ../../libbacktrace/state.c \
58 ../../libiberty/cp-demangle.c \
62 ../../libbacktrace/elf.c \
63 ../../libbacktrace/unknown.c
66 ../../libbacktrace/read.c \
67 ../../libbacktrace/mmapio.c
70 ../../libbacktrace/alloc.c \
71 ../../libbacktrace/mmap.c
73 EXTRA_libsanitizer_libbacktrace_la_SOURCES = \
78 libsanitizer_libbacktrace_la_LIBADD = \
83 libsanitizer_libbacktrace_la_DEPENDENCIES = $(libsanitizer_libbacktrace_la_LIBADD)