Makefile.am 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
  2. # May be used by toolexeclibdir.
  3. gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
  4. DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
  5. 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
  6. AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
  7. AM_CXXFLAGS += -std=gnu++11
  8. ACLOCAL_AMFLAGS = -I m4
  9. noinst_LTLIBRARIES = libsanitizer_lsan.la
  10. if LSAN_SUPPORTED
  11. toolexeclib_LTLIBRARIES = liblsan.la
  12. endif
  13. sanitizer_lsan_files = \
  14. lsan_common.cc \
  15. lsan_common_linux.cc
  16. lsan_files = \
  17. $(sanitizer_lsan_files) \
  18. lsan.cc \
  19. lsan_allocator.cc \
  20. lsan_interceptors.cc \
  21. lsan_preinit.cc \
  22. lsan_thread.cc
  23. libsanitizer_lsan_la_SOURCES = $(sanitizer_lsan_files)
  24. liblsan_la_SOURCES = $(lsan_files)
  25. liblsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la
  26. if LIBBACKTRACE_SUPPORTED
  27. liblsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
  28. endif
  29. liblsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
  30. liblsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_liblsan)
  31. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  32. # values defined in terms of make variables, as is the case for CC and
  33. # friends when we are called from the top level Makefile.
  34. AM_MAKEFLAGS = \
  35. "AR_FLAGS=$(AR_FLAGS)" \
  36. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  37. "CFLAGS=$(CFLAGS)" \
  38. "CXXFLAGS=$(CXXFLAGS)" \
  39. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  40. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  41. "INSTALL=$(INSTALL)" \
  42. "INSTALL_DATA=$(INSTALL_DATA)" \
  43. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  44. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  45. "JC1FLAGS=$(JC1FLAGS)" \
  46. "LDFLAGS=$(LDFLAGS)" \
  47. "LIBCFLAGS=$(LIBCFLAGS)" \
  48. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  49. "MAKE=$(MAKE)" \
  50. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  51. "PICFLAG=$(PICFLAG)" \
  52. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  53. "SHELL=$(SHELL)" \
  54. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  55. "exec_prefix=$(exec_prefix)" \
  56. "infodir=$(infodir)" \
  57. "libdir=$(libdir)" \
  58. "prefix=$(prefix)" \
  59. "includedir=$(includedir)" \
  60. "AR=$(AR)" \
  61. "AS=$(AS)" \
  62. "LD=$(LD)" \
  63. "LIBCFLAGS=$(LIBCFLAGS)" \
  64. "NM=$(NM)" \
  65. "PICFLAG=$(PICFLAG)" \
  66. "RANLIB=$(RANLIB)" \
  67. "DESTDIR=$(DESTDIR)"
  68. MAKEOVERRIDES=
  69. ## ################################################################