1ALCLOCAL_AMFLAGS = -I .. -I ../config
2AM_CPPFLAGS = -I $(top_srcdir)
3
4# May be used by toolexeclibdir.
5gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
6
7libmpxwrappers_la_CFLAGS = -fcheck-pointer-bounds -mmpx -fno-chkp-check-read \
8			   -fno-chkp-check-write -fno-chkp-use-wrappers -fPIC
9libmpxwrappers_la_DEPENDENCIES = libmpxwrappers.map
10libmpxwrappers_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libmpxwrappers.map \
11               -version-info `grep -v '^\#' $(srcdir)/libtool-version`
12
13toolexeclib_LTLIBRARIES = libmpxwrappers.la
14
15libmpxwrappers_la_SOURCES = mpx_wrappers.c
16
17# Work around what appears to be a GNU make bug handling MAKEFLAGS
18# values defined in terms of make variables, as is the case for CC and
19# friends when we are called from the top level Makefile.
20AM_MAKEFLAGS = \
21       "AR_FLAGS=$(AR_FLAGS)" \
22       "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
23       "CFLAGS=$(CFLAGS)" \
24       "CXXFLAGS=$(CXXFLAGS)" \
25       "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
26       "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
27       "INSTALL=$(INSTALL)" \
28       "INSTALL_DATA=$(INSTALL_DATA)" \
29       "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
30       "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
31       "JC1FLAGS=$(JC1FLAGS)" \
32       "LDFLAGS=$(LDFLAGS)" \
33       "LIBCFLAGS=$(LIBCFLAGS)" \
34       "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
35       "MAKE=$(MAKE)" \
36       "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
37       "PICFLAG=$(PICFLAG)" \
38       "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
39       "SHELL=$(SHELL)" \
40       "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
41       "exec_prefix=$(exec_prefix)" \
42       "infodir=$(infodir)" \
43       "libdir=$(libdir)" \
44       "prefix=$(prefix)" \
45       "includedir=$(includedir)" \
46       "AR=$(AR)" \
47       "AS=$(AS)" \
48       "LD=$(LD)" \
49       "LIBCFLAGS=$(LIBCFLAGS)" \
50       "NM=$(NM)" \
51       "PICFLAG=$(PICFLAG)" \
52       "RANLIB=$(RANLIB)" \
53       "DESTDIR=$(DESTDIR)"
54
55MAKEOVERRIDES =
56
57