xref: /netbsd-src/external/gpl3/gcc/dist/libsanitizer/interception/Makefile.am (revision 2718af68c3efc72c9769069b5c7f9ed36f6b9def)
1AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
2
3# May be used by toolexeclibdir.
4gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
5
6DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
7AM_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
8AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9AM_CXXFLAGS += -std=gnu++11
10AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11ACLOCAL_AMFLAGS = -I m4
12
13noinst_LTLIBRARIES = libinterception.la
14
15interception_files = \
16        interception_linux.cc \
17        interception_mac.cc \
18        interception_win.cc \
19	interception_type_test.cc
20
21libinterception_la_SOURCES = $(interception_files)
22
23# Work around what appears to be a GNU make bug handling MAKEFLAGS
24# values defined in terms of make variables, as is the case for CC and
25# friends when we are called from the top level Makefile.
26AM_MAKEFLAGS = \
27	"AR_FLAGS=$(AR_FLAGS)" \
28	"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
29	"CFLAGS=$(CFLAGS)" \
30	"CXXFLAGS=$(CXXFLAGS)" \
31	"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
32	"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
33	"INSTALL=$(INSTALL)" \
34	"INSTALL_DATA=$(INSTALL_DATA)" \
35	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
36	"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
37	"JC1FLAGS=$(JC1FLAGS)" \
38	"LDFLAGS=$(LDFLAGS)" \
39	"LIBCFLAGS=$(LIBCFLAGS)" \
40	"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
41	"MAKE=$(MAKE)" \
42	"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
43	"PICFLAG=$(PICFLAG)" \
44	"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
45	"SHELL=$(SHELL)" \
46	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
47	"exec_prefix=$(exec_prefix)" \
48	"infodir=$(infodir)" \
49	"libdir=$(libdir)" \
50	"prefix=$(prefix)" \
51	"includedir=$(includedir)" \
52	"AR=$(AR)" \
53	"AS=$(AS)" \
54	"LD=$(LD)" \
55	"LIBCFLAGS=$(LIBCFLAGS)" \
56	"NM=$(NM)" \
57	"PICFLAG=$(PICFLAG)" \
58	"RANLIB=$(RANLIB)" \
59	"DESTDIR=$(DESTDIR)"
60
61MAKEOVERRIDES=
62
63## ################################################################
64
65