]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/libbacktrace/Makefile.am
Handle backtrace_qsort
[thirdparty/gcc.git] / libsanitizer / libbacktrace / Makefile.am
CommitLineData
c915a581
JJ
1# Makefile.am -- Backtrace in libsanitizer Makefile.
2# Copyright (C) 2012-2013 Free Software Foundation, Inc.
3
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met:
7
8# (1) Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
10
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
14# distribution.
15
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.
19
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.
31
32ACLOCAL_AMFLAGS = -I ../.. -I ../../config
33
34AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \
35 -I ../../libgcc -I .. -I $(top_srcdir) -I $(top_srcdir)/../libbacktrace
36
37WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \
38 -Wcast-qual -Werror
39C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
40CXX_WARN_FLAGS = $(WARN_FLAGS) -Wno-unused-parameter
41AM_CFLAGS = $(C_WARN_FLAGS)
42AM_CXXFLAGS = $(CXX_WARN_FLAGS) -fno-rtti -fno-exceptions
43
44noinst_LTLIBRARIES = libsanitizer_libbacktrace.la
45
46libsanitizer_libbacktrace_la_SOURCES = \
47 ../../libbacktrace/backtrace.h \
48 ../../libbacktrace/atomic.c \
49 ../../libbacktrace/dwarf.c \
50 ../../libbacktrace/fileline.c \
51 ../../libbacktrace/internal.h \
52 ../../libbacktrace/posix.c \
a6c9ab4e 53 ../../libbacktrace/sort.c \
c915a581 54 ../../libbacktrace/state.c \
b5f58ba3 55 ../../libiberty/cp-demangle.c \
c915a581
JJ
56 bridge.cc
57
58FORMAT_FILES = \
59 ../../libbacktrace/elf.c \
60 ../../libbacktrace/unknown.c
61
62VIEW_FILES = \
63 ../../libbacktrace/read.c \
64 ../../libbacktrace/mmapio.c
65
66ALLOC_FILES = \
67 ../../libbacktrace/alloc.c \
68 ../../libbacktrace/mmap.c
69
70EXTRA_libsanitizer_libbacktrace_la_SOURCES = \
71 $(FORMAT_FILES) \
72 $(VIEW_FILES) \
73 $(ALLOC_FILES)
74
75libsanitizer_libbacktrace_la_LIBADD = \
76 $(FORMAT_FILE) \
77 $(VIEW_FILE) \
78 $(ALLOC_FILE)
79
80libsanitizer_libbacktrace_la_DEPENDENCIES = $(libsanitizer_libbacktrace_la_LIBADD)