Makefile.am 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ACLOCAL_AMFLAGS = -I .. -I ../config
  2. sanincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include/sanitizer
  3. nodist_saninclude_HEADERS =
  4. if SANITIZER_SUPPORTED
  5. SUBDIRS = sanitizer_common
  6. nodist_saninclude_HEADERS += \
  7. include/sanitizer/common_interface_defs.h
  8. if !USING_MAC_INTERPOSE
  9. SUBDIRS += interception
  10. endif
  11. if LIBBACKTRACE_SUPPORTED
  12. SUBDIRS += libbacktrace
  13. endif
  14. SUBDIRS += lsan asan ubsan
  15. nodist_saninclude_HEADERS += \
  16. include/sanitizer/lsan_interface.h \
  17. include/sanitizer/asan_interface.h \
  18. include/sanitizer/tsan_interface.h \
  19. include/sanitizer/hwasan_interface.h
  20. if TSAN_SUPPORTED
  21. SUBDIRS += tsan
  22. endif
  23. if HWASAN_SUPPORTED
  24. SUBDIRS += hwasan
  25. endif
  26. endif
  27. ## Force DIST_SUBDIRS so that make distclean works
  28. DIST_SUBDIRS = $(SUBDIRS)
  29. ## May be used by toolexeclibdir.
  30. gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
  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. nodist_toolexeclib_HEADERS = libsanitizer.spec
  70. ## ################################################################
  71. include $(top_srcdir)/../multilib.am