Makefile.am 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. AM_CPPFLAGS = -I $(top_srcdir) -I $(top_srcdir)/include
  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. toolexeclib_LTLIBRARIES = libtsan.la
  10. tsan_files = \
  11. tsan_clock.cc \
  12. tsan_fd.cc \
  13. tsan_flags.cc \
  14. tsan_ignoreset.cc \
  15. tsan_interceptors.cc \
  16. tsan_interface_ann.cc \
  17. tsan_interface_atomic.cc \
  18. tsan_interface.cc \
  19. tsan_interface_java.cc \
  20. tsan_md5.cc \
  21. tsan_mman.cc \
  22. tsan_mutex.cc \
  23. tsan_mutexset.cc \
  24. tsan_platform_linux.cc \
  25. tsan_platform_mac.cc \
  26. tsan_platform_windows.cc \
  27. tsan_report.cc \
  28. tsan_rtl.cc \
  29. tsan_rtl_mutex.cc \
  30. tsan_rtl_report.cc \
  31. tsan_rtl_thread.cc \
  32. tsan_stack_trace.cc \
  33. tsan_stat.cc \
  34. tsan_suppressions.cc \
  35. tsan_symbolize.cc \
  36. tsan_sync.cc
  37. libtsan_la_SOURCES = $(tsan_files)
  38. EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S
  39. libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
  40. libtsan_la_DEPENDENCIES = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
  41. if LIBBACKTRACE_SUPPORTED
  42. libtsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
  43. libtsan_la_DEPENDENCIES +=$(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
  44. endif
  45. libtsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
  46. libtsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libtsan)
  47. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  48. # values defined in terms of make variables, as is the case for CC and
  49. # friends when we are called from the top level Makefile.
  50. AM_MAKEFLAGS = \
  51. "AR_FLAGS=$(AR_FLAGS)" \
  52. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  53. "CFLAGS=$(CFLAGS)" \
  54. "CXXFLAGS=$(CXXFLAGS)" \
  55. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  56. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  57. "INSTALL=$(INSTALL)" \
  58. "INSTALL_DATA=$(INSTALL_DATA)" \
  59. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  60. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  61. "JC1FLAGS=$(JC1FLAGS)" \
  62. "LDFLAGS=$(LDFLAGS)" \
  63. "LIBCFLAGS=$(LIBCFLAGS)" \
  64. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  65. "MAKE=$(MAKE)" \
  66. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  67. "PICFLAG=$(PICFLAG)" \
  68. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  69. "SHELL=$(SHELL)" \
  70. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  71. "exec_prefix=$(exec_prefix)" \
  72. "infodir=$(infodir)" \
  73. "libdir=$(libdir)" \
  74. "prefix=$(prefix)" \
  75. "includedir=$(includedir)" \
  76. "AR=$(AR)" \
  77. "AS=$(AS)" \
  78. "LD=$(LD)" \
  79. "LIBCFLAGS=$(LIBCFLAGS)" \
  80. "NM=$(NM)" \
  81. "PICFLAG=$(PICFLAG)" \
  82. "RANLIB=$(RANLIB)" \
  83. "DESTDIR=$(DESTDIR)"
  84. MAKEOVERRIDES=
  85. ## ################################################################