]> git.ipfire.org Git - thirdparty/gcc.git/blob - libsanitizer/asan/Makefile.am
Don't use -I for libstdc++-v3 header files
[thirdparty/gcc.git] / libsanitizer / asan / Makefile.am
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)
5
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 AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -Wno-c99-extensions
8 ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
9
10 toolexeclib_LTLIBRARIES = libasan.la
11
12 asan_files = \
13 asan_allocator.cc \
14 asan_interceptors.cc \
15 asan_mac.cc \
16 asan_malloc_mac.cc \
17 asan_new_delete.cc \
18 asan_posix.cc \
19 asan_rtl.cc \
20 asan_stats.cc \
21 asan_thread_registry.cc \
22 asan_globals.cc \
23 asan_linux.cc \
24 asan_malloc_linux.cc \
25 asan_malloc_win.cc \
26 asan_poisoning.cc \
27 asan_report.cc \
28 asan_stack.cc \
29 asan_thread.cc \
30 asan_win.cc
31
32 libasan_la_SOURCES = $(asan_files)
33 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(top_builddir)/../libstdc++-v3/src/libstdc++.la
34 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl
35
36 # Work around what appears to be a GNU make bug handling MAKEFLAGS
37 # values defined in terms of make variables, as is the case for CC and
38 # friends when we are called from the top level Makefile.
39 AM_MAKEFLAGS = \
40 "AR_FLAGS=$(AR_FLAGS)" \
41 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
42 "CFLAGS=$(CFLAGS)" \
43 "CXXFLAGS=$(CXXFLAGS)" \
44 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
45 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
46 "INSTALL=$(INSTALL)" \
47 "INSTALL_DATA=$(INSTALL_DATA)" \
48 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
49 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
50 "JC1FLAGS=$(JC1FLAGS)" \
51 "LDFLAGS=$(LDFLAGS)" \
52 "LIBCFLAGS=$(LIBCFLAGS)" \
53 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
54 "MAKE=$(MAKE)" \
55 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
56 "PICFLAG=$(PICFLAG)" \
57 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
58 "SHELL=$(SHELL)" \
59 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
60 "exec_prefix=$(exec_prefix)" \
61 "infodir=$(infodir)" \
62 "libdir=$(libdir)" \
63 "prefix=$(prefix)" \
64 "includedir=$(includedir)" \
65 "AR=$(AR)" \
66 "AS=$(AS)" \
67 "CC=$(CC)" \
68 "CXX=$(CXX)" \
69 "LD=$(LD)" \
70 "LIBCFLAGS=$(LIBCFLAGS)" \
71 "NM=$(NM)" \
72 "PICFLAG=$(PICFLAG)" \
73 "RANLIB=$(RANLIB)" \
74 "DESTDIR=$(DESTDIR)"
75
76 MAKEOVERRIDES=
77
78 ## ################################################################
79