Makefile.am 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. if TSAN_SUPPORTED
  19. SUBDIRS += tsan
  20. endif
  21. endif
  22. ## May be used by toolexeclibdir.
  23. gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
  24. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  25. # values defined in terms of make variables, as is the case for CC and
  26. # friends when we are called from the top level Makefile.
  27. AM_MAKEFLAGS = \
  28. "AR_FLAGS=$(AR_FLAGS)" \
  29. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  30. "CFLAGS=$(CFLAGS)" \
  31. "CXXFLAGS=$(CXXFLAGS)" \
  32. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  33. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  34. "INSTALL=$(INSTALL)" \
  35. "INSTALL_DATA=$(INSTALL_DATA)" \
  36. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  37. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  38. "JC1FLAGS=$(JC1FLAGS)" \
  39. "LDFLAGS=$(LDFLAGS)" \
  40. "LIBCFLAGS=$(LIBCFLAGS)" \
  41. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  42. "MAKE=$(MAKE)" \
  43. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  44. "PICFLAG=$(PICFLAG)" \
  45. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  46. "SHELL=$(SHELL)" \
  47. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  48. "exec_prefix=$(exec_prefix)" \
  49. "infodir=$(infodir)" \
  50. "libdir=$(libdir)" \
  51. "prefix=$(prefix)" \
  52. "includedir=$(includedir)" \
  53. "AR=$(AR)" \
  54. "AS=$(AS)" \
  55. "LD=$(LD)" \
  56. "LIBCFLAGS=$(LIBCFLAGS)" \
  57. "NM=$(NM)" \
  58. "PICFLAG=$(PICFLAG)" \
  59. "RANLIB=$(RANLIB)" \
  60. "DESTDIR=$(DESTDIR)"
  61. MAKEOVERRIDES=
  62. nodist_toolexeclib_HEADERS = libsanitizer.spec
  63. ## ################################################################