Daily bump.
[official-gcc.git] / libgrust / Makefile.am
blobe13686327ec3ecc47e48c5cf0c045c0a602c118d
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.
24 AM_MAKEFLAGS = \
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)" \
31         "CFLAGS=$(CFLAGS)" \
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)" \
42         "MAKE=$(MAKE)" \
43         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
44         "PICFLAG=$(PICFLAG)" \
45         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
46         "SHELL=$(SHELL)" \
47         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
48         "exec_prefix=$(exec_prefix)" \
49         "infodir=$(infodir)" \
50         "libdir=$(libdir)" \
51         "includedir=$(includedir)" \
52         "prefix=$(prefix)" \
53         "tooldir=$(tooldir)" \
54         "gxx_include_dir=$(gxx_include_dir)" \
55         "AR=$(AR)" \
56         "AS=$(AS)" \
57         "LD=$(LD)" \
58         "RANLIB=$(RANLIB)" \
59         "NM=$(NM)" \
60         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
61         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
62         "DESTDIR=$(DESTDIR)" \
63         "WERROR=$(WERROR)" \
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