1 AUTOMAKE_OPTIONS = 1.8 foreign
3 SUFFIXES = .c .rs .def .o .lo .a
5 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
7 AM_CFLAGS = -I $(srcdir)/../libgcc -I $(MULTIBUILDTOP)../../gcc/include
9 TOP_GCCDIR := $(shell cd $(top_srcdir) && cd .. && pwd)
11 GCC_DIR = $(TOP_GCCDIR)/gcc
12 RUST_SRC = $(GCC_DIR)/rust
14 toolexeclibdir=@toolexeclibdir@
15 toolexecdir=@toolexecdir@
17 SUBDIRS = libproc_macro
19 RUST_BUILDDIR := $(shell pwd)
21 # Work around what appears to be a GNU make bug handling MAKEFLAGS
22 # values defined in terms of make variables, as is the case for CC and
23 # friends when we are called from the top level Makefile.
25 "GCC_DIR=$(GCC_DIR)" \
26 "RUST_SRC=$(RUST_SRC)" \
27 "AR_FLAGS=$(AR_FLAGS)" \
28 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
29 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
30 "RUST_FOR_TARGET=$(RUST_FOR_TARGET)" \
32 "CXXFLAGS=$(CXXFLAGS)" \
33 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
34 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
35 "INSTALL=$(INSTALL)" \
36 "INSTALL_DATA=$(INSTALL_DATA)" \
37 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
38 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
39 "LDFLAGS=$(LDFLAGS)" \
40 "LIBCFLAGS=$(LIBCFLAGS)" \
41 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
43 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
44 "PICFLAG=$(PICFLAG)" \
45 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
47 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
48 "exec_prefix=$(exec_prefix)" \
49 "infodir=$(infodir)" \
51 "includedir=$(includedir)" \
53 "tooldir=$(tooldir)" \
54 "gxx_include_dir=$(gxx_include_dir)" \
60 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
61 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
62 "DESTDIR=$(DESTDIR)" \
64 "TARGET_LIB_PATH=$(TARGET_LIB_PATH)" \
65 "TARGET_LIB_PATH_libgrust=$(TARGET_LIB_PATH_libgrust)" \
66 "LIBTOOL=$(RUST_BUILDDIR)/libtool"
68 include $(top_srcdir)/../multilib.am