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