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