[ARM/AArch64][testsuite] Add vsubhn, vraddhn and vrsubhn tests. Split vaddhn.c into...
[official-gcc.git] / libsanitizer / asan / Makefile.am
blob54c74ce3e42cd0a7fd1c67b7c485a58ef98d5269
1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
2  
3 # May be used by toolexeclibdir.
4 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
6 DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 -DASAN_NEEDS_SEGV=1
7 if USING_MAC_INTERPOSE
8 DEFS += -DMAC_INTERPOSE_FUNCTIONS -DMISSING_BLOCKS_SUPPORT
9 endif
10 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 -fno-ipa-icf
11 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
12 AM_CXXFLAGS += -std=gnu++11
13 ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
15 toolexeclib_LTLIBRARIES = libasan.la
16 nodist_toolexeclib_HEADERS = libasan_preinit.o
18 asan_files = \
19         asan_activation.cc \
20         asan_allocator2.cc \
21         asan_debugging.cc \
22         asan_fake_stack.cc \
23         asan_globals.cc \
24         asan_interceptors.cc \
25         asan_linux.cc \
26         asan_mac.cc \
27         asan_malloc_linux.cc \
28         asan_malloc_mac.cc \
29         asan_malloc_win.cc \
30         asan_new_delete.cc \
31         asan_poisoning.cc \
32         asan_posix.cc \
33         asan_report.cc \
34         asan_rtl.cc \
35         asan_stack.cc \
36         asan_stats.cc \
37         asan_thread.cc \
38         asan_win.cc \
39         asan_win_dll_thunk.cc \
40         asan_win_dynamic_runtime_thunk.cc
42 libasan_la_SOURCES = $(asan_files)
43 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/lsan/libsanitizer_lsan.la
44 if !USING_MAC_INTERPOSE
45 libasan_la_LIBADD += $(top_builddir)/interception/libinterception.la
46 endif
47 if LIBBACKTRACE_SUPPORTED
48 libasan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
49 endif
50 libasan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
52 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libasan)
54 libasan_preinit.o: asan_preinit.o
55         cp $< $@
57 # Work around what appears to be a GNU make bug handling MAKEFLAGS
58 # values defined in terms of make variables, as is the case for CC and
59 # friends when we are called from the top level Makefile.
60 AM_MAKEFLAGS = \
61         "AR_FLAGS=$(AR_FLAGS)" \
62         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
63         "CFLAGS=$(CFLAGS)" \
64         "CXXFLAGS=$(CXXFLAGS)" \
65         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
66         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
67         "INSTALL=$(INSTALL)" \
68         "INSTALL_DATA=$(INSTALL_DATA)" \
69         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
70         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
71         "JC1FLAGS=$(JC1FLAGS)" \
72         "LDFLAGS=$(LDFLAGS)" \
73         "LIBCFLAGS=$(LIBCFLAGS)" \
74         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
75         "MAKE=$(MAKE)" \
76         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
77         "PICFLAG=$(PICFLAG)" \
78         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
79         "SHELL=$(SHELL)" \
80         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
81         "exec_prefix=$(exec_prefix)" \
82         "infodir=$(infodir)" \
83         "libdir=$(libdir)" \
84         "prefix=$(prefix)" \
85         "includedir=$(includedir)" \
86         "AR=$(AR)" \
87         "AS=$(AS)" \
88         "LD=$(LD)" \
89         "LIBCFLAGS=$(LIBCFLAGS)" \
90         "NM=$(NM)" \
91         "PICFLAG=$(PICFLAG)" \
92         "RANLIB=$(RANLIB)" \
93         "DESTDIR=$(DESTDIR)"
95 MAKEOVERRIDES=
97 ## ################################################################