| 1 |
ACLOCAL_AMFLAGS = -I .. -I ../config |
| 2 |
|
| 3 |
sanincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include/sanitizer |
| 4 |
|
| 5 |
nodist_saninclude_HEADERS = |
| 6 |
|
| 7 |
if SANITIZER_SUPPORTED |
| 8 |
SUBDIRS = sanitizer_common |
| 9 |
nodist_saninclude_HEADERS += \ |
| 10 |
include/sanitizer/common_interface_defs.h |
| 11 |
if !USING_MAC_INTERPOSE |
| 12 |
SUBDIRS += interception |
| 13 |
endif |
| 14 |
if LIBBACKTRACE_SUPPORTED |
| 15 |
SUBDIRS += libbacktrace |
| 16 |
endif |
| 17 |
SUBDIRS += lsan asan ubsan |
| 18 |
nodist_saninclude_HEADERS += \ |
| 19 |
include/sanitizer/lsan_interface.h \ |
| 20 |
include/sanitizer/asan_interface.h \ |
| 21 |
include/sanitizer/tsan_interface.h \ |
| 22 |
include/sanitizer/hwasan_interface.h |
| 23 |
if TSAN_SUPPORTED |
| 24 |
SUBDIRS += tsan |
| 25 |
endif |
| 26 |
if HWASAN_SUPPORTED |
| 27 |
SUBDIRS += hwasan |
| 28 |
endif |
| 29 |
endif |
| 30 |
|
| 31 |
## Force DIST_SUBDIRS so that make distclean works |
| 32 |
DIST_SUBDIRS = $(SUBDIRS) |
| 33 |
|
| 34 |
## May be used by toolexeclibdir. |
| 35 |
gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER) |
| 36 |
|
| 37 |
# Work around what appears to be a GNU make bug handling MAKEFLAGS |
| 38 |
# values defined in terms of make variables, as is the case for CC and |
| 39 |
# friends when we are called from the top level Makefile. |
| 40 |
AM_MAKEFLAGS = \ |
| 41 |
"AR_FLAGS=$(AR_FLAGS)" \ |
| 42 |
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
| 43 |
"CFLAGS=$(CFLAGS)" \ |
| 44 |
"CXXFLAGS=$(CXXFLAGS)" \ |
| 45 |
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
| 46 |
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ |
| 47 |
"INSTALL=$(INSTALL)" \ |
| 48 |
"INSTALL_DATA=$(INSTALL_DATA)" \ |
| 49 |
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
| 50 |
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ |
| 51 |
"JC1FLAGS=$(JC1FLAGS)" \ |
| 52 |
"LDFLAGS=$(LDFLAGS)" \ |
| 53 |
"LIBCFLAGS=$(LIBCFLAGS)" \ |
| 54 |
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ |
| 55 |
"MAKE=$(MAKE)" \ |
| 56 |
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ |
| 57 |
"PICFLAG=$(PICFLAG)" \ |
| 58 |
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ |
| 59 |
"SHELL=$(SHELL)" \ |
| 60 |
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
| 61 |
"exec_prefix=$(exec_prefix)" \ |
| 62 |
"infodir=$(infodir)" \ |
| 63 |
"libdir=$(libdir)" \ |
| 64 |
"prefix=$(prefix)" \ |
| 65 |
"includedir=$(includedir)" \ |
| 66 |
"AR=$(AR)" \ |
| 67 |
"AS=$(AS)" \ |
| 68 |
"LD=$(LD)" \ |
| 69 |
"LIBCFLAGS=$(LIBCFLAGS)" \ |
| 70 |
"NM=$(NM)" \ |
| 71 |
"PICFLAG=$(PICFLAG)" \ |
| 72 |
"RANLIB=$(RANLIB)" \ |
| 73 |
"DESTDIR=$(DESTDIR)" |
| 74 |
|
| 75 |
MAKEOVERRIDES= |
| 76 |
|
| 77 |
nodist_toolexeclib_HEADERS = libsanitizer.spec |
| 78 |
|
| 79 |
## ################################################################ |
| 80 |
|
| 81 |
include $(top_srcdir)/../multilib.am |