Makefile.am 2.9 KB

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