summaryrefslogtreecommitdiff
path: root/libada/Makefile.in
diff options
context:
space:
mode:
authorguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-21 11:45:23 +0000
committerguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-21 11:45:23 +0000
commit3356431d4148139d1274dd19e192b40210dd71f7 (patch)
tree6f1af2bb95b0dba92fa9fef1cff2bfb7e4406de2 /libada/Makefile.in
parentff7441cfbf60e41cb4f43c8b791fe5fba9a699f2 (diff)
downloadgcc-3356431d4148139d1274dd19e192b40210dd71f7.tar.gz
2008-09-21 Laurent Guerby <laurent@guerby.net>
PR ada/5911 * gcc-interface/Makefile.in: Add multilib handling for x86_64 and sparc. * system-linux-sparcv9.ads: New file. 2008-09-21 Laurent Guerby <laurent@guerby.net> Paolo Bonzini <bonzini@gnu.org> PR ada/5911 * Makefile.in (all, install, mostlyclean, clean, distclean): Add multilib handling. * configure.ac: Add multilib handling. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140525 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libada/Makefile.in')
-rw-r--r--libada/Makefile.in26
1 files changed, 21 insertions, 5 deletions
diff --git a/libada/Makefile.in b/libada/Makefile.in
index 05a42335f01..2c568688609 100644
--- a/libada/Makefile.in
+++ b/libada/Makefile.in
@@ -17,6 +17,17 @@
# Default target; must be first.
all: gnatlib
+ $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
+
+.PHONY: all install
+
+## Multilib support variables.
+MULTISRCTOP =
+MULTIBUILDTOP =
+MULTIDIRS =
+MULTISUBDIR =
+MULTIDO = true
+MULTICLEAN = true
# Standard autoconf-set variables.
SHELL = @SHELL@
@@ -48,12 +59,12 @@ GNATLIBCFLAGS= -g -O2
# Get target-specific overrides for TARGET_LIBGCC2_CFLAGS.
host_subdir = @host_subdir@
-GCC_DIR=../../$(host_subdir)/gcc
+GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
include $(GCC_DIR)/libgcc.mvars
target_noncanonical:=@target_noncanonical@
version := $(shell cat $(srcdir)/../gcc/BASE-VER)
-libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)
+libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
# exeext should not be used because it's the *host* exeext. We're building
# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
@@ -64,11 +75,12 @@ LIBADA_FLAGS_TO_PASS = \
"LDFLAGS=$(LDFLAGS)" \
"LN_S=$(LN_S)" \
"SHELL=$(SHELL)" \
- "GNATLIBFLAGS=$(GNATLIBFLAGS)" \
- "GNATLIBCFLAGS=$(GNATLIBCFLAGS)" \
+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
"TARGET_LIBGCC2_CFLAGS=$(TARGET_LIBGCC2_CFLAGS)" \
"THREAD_KIND=$(THREAD_KIND)" \
"TRACE=$(TRACE)" \
+ "MULTISUBDIR=$(MULTISUBDIR)" \
"libsubdir=$(libsubdir)" \
"objext=$(objext)" \
"prefix=$(prefix)" \
@@ -119,7 +131,8 @@ html:
TAGS:
# Installation rules.
-install:
+install: install-gnatlib
+ $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
install-info:
@@ -129,10 +142,13 @@ install-html:
# Cleaning rules.
mostlyclean:
+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
clean:
+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
distclean:
+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
$(RM) Makefile config.status config.log
maintainer-clean: