* configure.ac: Change target-libasan to target-libsanitizer.
[official-gcc.git] / libsanitizer / asan / Makefile.am
blobc76c15835933b301c6ef1113360567aa6cb270ea
1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
2  
3 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
4 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 
5 ACLOCAL_AMFLAGS = -I m4
7 toolexeclib_LTLIBRARIES = libasan.la
9 asan_files = \
10         asan_allocator.cc \
11         asan_interceptors.cc \
12         asan_mac.cc \
13         asan_malloc_mac.cc \
14         asan_new_delete.cc \
15         asan_posix.cc \
16         asan_rtl.cc \
17         asan_stats.cc \
18         asan_thread_registry.cc \
19         asan_globals.cc \
20         asan_linux.cc \
21         asan_malloc_linux.cc \
22         asan_malloc_win.cc \
23         asan_poisoning.cc \
24         asan_report.cc \
25         asan_stack.cc \
26         asan_thread.cc \
27         asan_win.cc
29 libasan_la_SOURCES = $(asan_files) 
30 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(top_builddir)/../libstdc++-v3/src/libstdc++.la
31 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl
33 # Work around what appears to be a GNU make bug handling MAKEFLAGS
34 # values defined in terms of make variables, as is the case for CC and
35 # friends when we are called from the top level Makefile.
36 AM_MAKEFLAGS = \
37         "AR_FLAGS=$(AR_FLAGS)" \
38         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
39         "CFLAGS=$(CFLAGS)" \
40         "CXXFLAGS=$(CXXFLAGS)" \
41         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
42         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
43         "INSTALL=$(INSTALL)" \
44         "INSTALL_DATA=$(INSTALL_DATA)" \
45         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
46         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
47         "JC1FLAGS=$(JC1FLAGS)" \
48         "LDFLAGS=$(LDFLAGS)" \
49         "LIBCFLAGS=$(LIBCFLAGS)" \
50         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
51         "MAKE=$(MAKE)" \
52         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
53         "PICFLAG=$(PICFLAG)" \
54         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
55         "SHELL=$(SHELL)" \
56         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
57         "exec_prefix=$(exec_prefix)" \
58         "infodir=$(infodir)" \
59         "libdir=$(libdir)" \
60         "prefix=$(prefix)" \
61         "includedir=$(includedir)" \
62         "AR=$(AR)" \
63         "AS=$(AS)" \
64         "CC=$(CC)" \
65         "CXX=$(CXX)" \
66         "LD=$(LD)" \
67         "LIBCFLAGS=$(LIBCFLAGS)" \
68         "NM=$(NM)" \
69         "PICFLAG=$(PICFLAG)" \
70         "RANLIB=$(RANLIB)" \
71         "DESTDIR=$(DESTDIR)"
73 MAKEOVERRIDES=
75 ## ################################################################