]> git.ipfire.org Git - thirdparty/gcc.git/blame - Makefile.in
Centralize PICFLAG configuration
[thirdparty/gcc.git] / Makefile.in
CommitLineData
95ddd785
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6599da04
JM
3#
4# Makefile for directory with subdirs to build.
6e2a4843 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
d652f226 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
309c24a9 7# Free Software Foundation
6599da04
JM
8#
9# This file is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
309c24a9 11# the Free Software Foundation; either version 3 of the License, or
6599da04 12# (at your option) any later version.
05750653 13#
6599da04
JM
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
05750653 18#
6599da04 19# You should have received a copy of the GNU General Public License
309c24a9
JJ
20# along with this program; see the file COPYING3. If not see
21# <http://www.gnu.org/licenses/>.
6599da04
JM
22#
23
295e261a
HPN
24# First, test for a proper version of make, but only where one is required.
25
26@if gcc
27ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
28$(error GNU make version 3.80 or newer is required.)
29endif
30@endif gcc
31
df0f0674
NN
32# -------------------------------
33# Standard Autoconf-set variables
34# -------------------------------
4977bab6 35VPATH=@srcdir@
4977bab6 36
1c710c3c 37build_alias=@build_noncanonical@
e69bf64b
PB
38build_vendor=@build_vendor@
39build_os=@build_os@
e89fbdfe 40build=@build@
1c710c3c 41host_alias=@host_noncanonical@
e69bf64b
PB
42host_vendor=@host_vendor@
43host_os=@host_os@
e89fbdfe 44host=@host@
1c710c3c 45target_alias=@target_noncanonical@
e69bf64b
PB
46target_vendor=@target_vendor@
47target_os=@target_os@
e89fbdfe 48target=@target@
4977bab6 49
df0f0674 50program_transform_name = @program_transform_name@
0dffceed
NN
51
52prefix = @prefix@
53exec_prefix = @exec_prefix@
54
df0f0674
NN
55srcdir = @srcdir@
56
0dffceed
NN
57bindir = @bindir@
58sbindir = @sbindir@
59libexecdir = @libexecdir@
60datadir = @datadir@
61sysconfdir = @sysconfdir@
62sharedstatedir = @sharedstatedir@
63localstatedir = @localstatedir@
64libdir = @libdir@
65includedir = @includedir@
66oldincludedir = @oldincludedir@
67infodir = @infodir@
65d6e994
CD
68datarootdir = @datarootdir@
69docdir = @docdir@
9c4d2493 70pdfdir = @pdfdir@
65d6e994 71htmldir = @htmldir@
0dffceed 72mandir = @mandir@
6599da04
JM
73man1dir = $(mandir)/man1
74man2dir = $(mandir)/man2
75man3dir = $(mandir)/man3
76man4dir = $(mandir)/man4
77man5dir = $(mandir)/man5
78man6dir = $(mandir)/man6
79man7dir = $(mandir)/man7
80man8dir = $(mandir)/man8
81man9dir = $(mandir)/man9
1e6347d8 82
775956d0
NN
83INSTALL = @INSTALL@
84INSTALL_PROGRAM = @INSTALL_PROGRAM@
85INSTALL_SCRIPT = @INSTALL_SCRIPT@
86INSTALL_DATA = @INSTALL_DATA@
ad6717df
PB
87LN = @LN@
88LN_S = @LN_S@
58e24147
AM
89MAINT = @MAINT@
90MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
91MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
6599da04 92
df0f0674
NN
93# -------------------------------------------------
94# Miscellaneous non-standard autoconf-set variables
95# -------------------------------------------------
6599da04 96
df0f0674
NN
97# The gcc driver likes to know the arguments it was configured with.
98TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
6599da04 99
df0f0674
NN
100tooldir = @tooldir@
101build_tooldir = @build_tooldir@
6599da04 102
df0f0674
NN
103# This is the name of the environment variable used for the path to
104# the libraries.
105RPATH_ENVVAR = @RPATH_ENVVAR@
6599da04 106
d89f0ad6
AL
107# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
108# is used instead of the directory itself to avoid including built
109# executables in PATH.
110GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
111
df0f0674
NN
112# Build programs are put under this directory.
113BUILD_SUBDIR = @build_subdir@
114# This is set by the configure script to the arguments to use when configuring
115# directories built for the build system.
25b42232 116BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
23f6b2f9 117
00020c16
ILT
118# Linker flags to use on the host, for stage1 or when not
119# bootstrapping.
120STAGE1_LDFLAGS = @stage1_ldflags@
121
122# Libraries to use on the host, for stage1 or when not bootstrapping.
123STAGE1_LIBS = @stage1_libs@
124
125# Linker flags to use for stage2 and later.
126POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
127
128# Libraries to use for stage2 and later.
129POSTSTAGE1_LIBS = @poststage1_libs@
130
23f6b2f9
PB
131# This is the list of variables to export in the environment when
132# configuring any subdirectory. It must also be exported whenever
133# recursing into a build directory in case that directory's Makefile
134# re-runs configure.
135BASE_EXPORTS = \
136 FLEX="$(FLEX)"; export FLEX; \
137 LEX="$(LEX)"; export LEX; \
138 BISON="$(BISON)"; export BISON; \
139 YACC="$(YACC)"; export YACC; \
140 M4="$(M4)"; export M4; \
87264276 141 SED="$(SED)"; export SED; \
f945e229 142 AWK="$(AWK)"; export AWK; \
23f6b2f9
PB
143 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
144
4fc4dd12 145# This is the list of variables to export in the environment when
23f6b2f9 146# configuring subdirectories for the build system.
4fc4dd12 147BUILD_EXPORTS = \
23f6b2f9 148 $(BASE_EXPORTS) \
4fc4dd12
DJ
149 AR="$(AR_FOR_BUILD)"; export AR; \
150 AS="$(AS_FOR_BUILD)"; export AS; \
151 CC="$(CC_FOR_BUILD)"; export CC; \
152 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
153 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
154 CXX="$(CXX_FOR_BUILD)"; export CXX; \
155 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
156 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
157 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
632e2a07
ILT
158 GOC="$(GOC_FOR_BUILD)"; export GOC; \
159 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
4fc4dd12
DJ
160 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
161 LD="$(LD_FOR_BUILD)"; export LD; \
162 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
163 NM="$(NM_FOR_BUILD)"; export NM; \
164 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0136f2f7 165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
901119ae 166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
df0f0674 167
f8c33439 168# These variables must be set on the make command line for directories
487e299b 169# built for the build system to override those in BASE_FLAGS_TO_PASSS.
f8c33439
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
df0f0674
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
aae29963 176TARGET_CONFIGDIRS = @target_configdirs@
df0f0674
NN
177# This is set by the configure script to the arguments to use when configuring
178# directories built for the host system.
179HOST_CONFIGARGS = @host_configargs@
215c351a
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
4fc4dd12 183# This is the list of variables to export in the environment when
2abefe3d
PB
184# configuring subdirectories for the host system. We need to pass
185# some to the GCC configure because of its hybrid host/target nature.
4fc4dd12 186HOST_EXPORTS = \
23f6b2f9 187 $(BASE_EXPORTS) \
4fc4dd12 188 CC="$(CC)"; export CC; \
00afcaa0 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
4fc4dd12
DJ
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4a4a4e99
AO
194 GCJ="$(GCJ)"; export GCJ; \
195 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
e655d2bf 196 GOC="$(GOC)"; export GOC; \
4fc4dd12
DJ
197 AR="$(AR)"; export AR; \
198 AS="$(AS)"; export AS; \
199 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
200 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
201 LD="$(LD)"; export LD; \
00020c16 202 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
4fc4dd12
DJ
203 NM="$(NM)"; export NM; \
204 RANLIB="$(RANLIB)"; export RANLIB; \
205 WINDRES="$(WINDRES)"; export WINDRES; \
901119ae 206 WINDMC="$(WINDMC)"; export WINDMC; \
4fc4dd12 207 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1c020272 208 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2abefe3d
PB
209 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
210 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
211 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
212 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
213 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
214 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
215 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
4fc4dd12 216 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
00020c16 217 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
4fc4dd12 218 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
4c4a5bbc 219 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
f8bf9252
SP
220 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
221 PPLINC="$(HOST_PPLINC)"; export PPLINC; \
222 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
223 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
d7f09764
DN
224 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \
225 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \
1061f99e
PB
226@if gcc-bootstrap
227 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
228@endif gcc-bootstrap
0bff65e7 229 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12 230
f61428ed
AO
231POSTSTAGE1_CXX_EXPORT = \
232 CXX='$(CXX)'; export CXX; \
233 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
234@if target-libstdc++-v3-bootstrap
235# Override the above if we're bootstrapping C++.
236POSTSTAGE1_CXX_EXPORT = \
237 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
238 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
77198d71 239 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
242f5421 240 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
f61428ed
AO
241 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
242 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
243 -I$$s/libstdc++-v3/libsupc++ \
242f5421
DE
244 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
245 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
246 export CXX; \
f61428ed
AO
247 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
248@endif target-libstdc++-v3-bootstrap
249
4fc4dd12 250# Similar, for later GCC stages.
ce406537 251POSTSTAGE1_HOST_EXPORTS = \
a52a0a7f 252 $(HOST_EXPORTS) \
215c351a 253 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
4a4a4e99
AO
254 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
255 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
256 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
f61428ed 257 $(POSTSTAGE1_CXX_EXPORT) \
00020c16
ILT
258 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
259 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
260 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
df0f0674 261
df0f0674
NN
262# Target libraries are put under this directory:
263TARGET_SUBDIR = @target_subdir@
264# This is set by the configure script to the arguments to use when configuring
265# directories built for the target.
25b42232 266TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
4fc4dd12 267# This is the list of variables to export in the environment when
60a2e213 268# configuring subdirectories for the target system.
4fc4dd12 269BASE_TARGET_EXPORTS = \
23f6b2f9 270 $(BASE_EXPORTS) \
4fc4dd12 271 AR="$(AR_FOR_TARGET)"; export AR; \
2abefe3d 272 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
4a4a4e99
AO
273 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
274 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4fc4dd12 275 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
e7daab31 276 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
4a4a4e99
AO
277 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
278 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
279 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
632e2a07 280 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
4fc4dd12 281 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2abefe3d 282 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
4fc4dd12 283 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
040b1c5a 284 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
2abefe3d 285 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
d739199a 286 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
4fc4dd12 287 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
040b1c5a 288 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
4c4a5bbc 289 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
901119ae 290 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
60a2e213
RW
291@if gcc-bootstrap
292 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
293@endif gcc-bootstrap
aae29963
JR
294 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
295 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
4fc4dd12
DJ
296
297RAW_CXX_TARGET_EXPORTS = \
298 $(BASE_TARGET_EXPORTS) \
299 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
4a4a4e99 300 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
4fc4dd12
DJ
301
302NORMAL_TARGET_EXPORTS = \
303 $(BASE_TARGET_EXPORTS) \
4a4a4e99 304 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
df0f0674 305
6de9cd9a
DN
306# Where to find GMP
307HOST_GMPLIBS = @gmplibs@
308HOST_GMPINC = @gmpinc@
309
f8bf9252
SP
310# Where to find PPL
311HOST_PPLLIBS = @ppllibs@
312HOST_PPLINC = @pplinc@
313
314# Where to find CLOOG
315HOST_CLOOGLIBS = @clooglibs@
316HOST_CLOOGINC = @clooginc@
317
d7f09764
DN
318# Where to find libelf
319HOST_LIBELFLIBS = @libelflibs@
320HOST_LIBELFINC = @libelfinc@
321
a4a2c37d
MK
322EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
323
df0f0674
NN
324# ----------------------------------------------
325# Programs producing files for the BUILD machine
326# ----------------------------------------------
327
72691ba6 328SHELL = @SHELL@
df0f0674
NN
329
330# pwd command to use. Allow user to override default by setting PWDCMD in
331# the environment to account for automounters. The make variable must not
332# be called PWDCMD, otherwise the value set here is passed to make
333# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
334# Don't use PWD since it is a common shell environment variable and we
335# don't want to corrupt it.
336PWD_COMMAND = $${PWDCMD-pwd}
df0f0674
NN
337
338# compilers to use to create programs which must be run in the build
339# environment.
0999159b
PB
340AR_FOR_BUILD = @AR_FOR_BUILD@
341AS_FOR_BUILD = @AS_FOR_BUILD@
df0f0674 342CC_FOR_BUILD = @CC_FOR_BUILD@
6691a79e 343CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
0999159b
PB
344CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
345CXX_FOR_BUILD = @CXX_FOR_BUILD@
346DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
347GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
348GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
e655d2bf 349GOC_FOR_BUILD = @GOC_FOR_BUILD@
0999159b
PB
350LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
351LD_FOR_BUILD = @LD_FOR_BUILD@
352NM_FOR_BUILD = @NM_FOR_BUILD@
353RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
354WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
355WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
df0f0674
NN
356
357# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
358# here so that they can be overridden by Makefile fragments.
df0f0674
NN
359BUILD_PREFIX = @BUILD_PREFIX@
360BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 361
45f366ab
PB
362# Flags to pass to stage2 and later makes. They are defined
363# here so that they can be overridden by Makefile fragments.
364BOOT_CFLAGS= -g -O2
d19bca38 365BOOT_LDFLAGS=
dd609cc1 366BOOT_ADAFLAGS=-gnatpg -gnata
45f366ab 367
87264276
PB
368AWK = @AWK@
369SED = @SED@
2abefe3d
PB
370BISON = @BISON@
371YACC = @YACC@
372FLEX = @FLEX@
373LEX = @LEX@
374M4 = @M4@
375MAKEINFO = @MAKEINFO@
376EXPECT = @EXPECT@
377RUNTEST = @RUNTEST@
6599da04
JM
378
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
2f50999f
GP
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
6599da04 384
df0f0674
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
6599da04 388
df0f0674 389AS = @AS@
df0f0674
NN
390AR = @AR@
391AR_FLAGS = rc
df0f0674 392CC = @CC@
df0f0674 393CXX = @CXX@
df0f0674 394DLLTOOL = @DLLTOOL@
df0f0674 395LD = @LD@
2abefe3d
PB
396LIPO = @LIPO@
397NM = @NM@
2d309510 398OBJDUMP = @OBJDUMP@
df0f0674 399RANLIB = @RANLIB@
2abefe3d 400STRIP = @STRIP@
df0f0674 401WINDRES = @WINDRES@
901119ae 402WINDMC = @WINDMC@
6599da04 403
5305be7e
RG
404GNATBIND = @GNATBIND@
405GNATMAKE = @GNATMAKE@
406
2abefe3d 407CFLAGS = @CFLAGS@
f6671c93 408LDFLAGS = @LDFLAGS@
2abefe3d
PB
409LIBCFLAGS = $(CFLAGS)
410CXXFLAGS = @CXXFLAGS@
411LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
632e2a07 412GOCFLAGS = $(CFLAGS)
df0f0674 413
4a4a4e99
AO
414TFLAGS =
415
416# Defaults for all stages; some are overridden below.
417
418STAGE_CFLAGS = $(BOOT_CFLAGS)
419STAGE_TFLAGS = $(TFLAGS)
420STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
78767fd9 421POSTSTAGE1_CONFIGURE_FLAGS = @POSTSTAGE1_CONFIGURE_FLAGS@
4a4a4e99
AO
422
423
424# Defaults for stage 1; some are overridden below.
425STAGE1_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
426STAGE1_CXXFLAGS = $(CXXFLAGS)
427@if target-libstdc++-v3-bootstrap
428# Override the above if we're bootstrapping C++.
429STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
430@endif target-libstdc++-v3-bootstrap
4a4a4e99 431STAGE1_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
432# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
433# POSTSTAGE1_CONFIGURE_FLAGS here.
434STAGE1_CONFIGURE_FLAGS = \
435 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
436
437# Defaults for stage 2; some are overridden below.
438STAGE2_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
439STAGE2_CXXFLAGS = $(CXXFLAGS)
440@if target-libstdc++-v3-bootstrap
441# Override the above if we're bootstrapping C++.
442STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
443@endif target-libstdc++-v3-bootstrap
4a4a4e99 444STAGE2_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
445# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
446# POSTSTAGE1_CONFIGURE_FLAGS here.
447STAGE2_CONFIGURE_FLAGS = \
448 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
449
450# Defaults for stage 3; some are overridden below.
451STAGE3_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
452STAGE3_CXXFLAGS = $(CXXFLAGS)
453@if target-libstdc++-v3-bootstrap
454# Override the above if we're bootstrapping C++.
455STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
456@endif target-libstdc++-v3-bootstrap
4a4a4e99 457STAGE3_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
458# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
459# POSTSTAGE1_CONFIGURE_FLAGS here.
460STAGE3_CONFIGURE_FLAGS = \
461 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
462
463# Defaults for stage 4; some are overridden below.
464STAGE4_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
465STAGE4_CXXFLAGS = $(CXXFLAGS)
466@if target-libstdc++-v3-bootstrap
467# Override the above if we're bootstrapping C++.
468STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
469@endif target-libstdc++-v3-bootstrap
4a4a4e99 470STAGE4_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
471# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
472# POSTSTAGE1_CONFIGURE_FLAGS here.
473STAGE4_CONFIGURE_FLAGS = \
474 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
475
476# Defaults for stage profile; some are overridden below.
477STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
478STAGEprofile_CXXFLAGS = $(CXXFLAGS)
479@if target-libstdc++-v3-bootstrap
480# Override the above if we're bootstrapping C++.
481STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
482@endif target-libstdc++-v3-bootstrap
4a4a4e99 483STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
484# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
485# POSTSTAGE1_CONFIGURE_FLAGS here.
486STAGEprofile_CONFIGURE_FLAGS = \
487 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
488
489# Defaults for stage feedback; some are overridden below.
490STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
f61428ed
AO
491STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
492@if target-libstdc++-v3-bootstrap
493# Override the above if we're bootstrapping C++.
494STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
495@endif target-libstdc++-v3-bootstrap
4a4a4e99 496STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
78767fd9
ILT
497# STAGE1_CONFIGURE_FLAGS overridden below, so we can use
498# POSTSTAGE1_CONFIGURE_FLAGS here.
499STAGEfeedback_CONFIGURE_FLAGS = \
500 $(STAGE_CONFIGURE_FLAGS) $(POSTSTAGE1_CONFIGURE_FLAGS)
4a4a4e99
AO
501
502
8efea775
PB
503# Only build the C compiler for stage1, because that is the only one that
504# we can guarantee will build with the native compiler, and also it is the
505# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
506# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
507# overrideable (for a bootstrap build stage1 also builds gcc.info).
508
4a4a4e99 509STAGE1_CFLAGS = @stage1_cflags@
f61428ed
AO
510STAGE1_CHECKING = @stage1_checking@
511STAGE1_LANGUAGES = @stage1_languages@
4a4a4e99
AO
512# * We force-disable intermodule optimizations, even if
513# --enable-intermodule was passed, since the installed compiler
514# probably can't handle them. Luckily, autoconf always respects
515# the last argument when conflicting --enable arguments are passed.
516# * Likewise, we force-disable coverage flags, since the installed
517# compiler probably has never heard of them.
78767fd9
ILT
518# * Don't remove this, because above we added
519# POSTSTAGE1_CONFIGURE_FLAGS to STAGE_CONFIGURE_FLAGS, which
520# we don't want for STAGE1_CONFIGURE_FLAGS.
4a4a4e99
AO
521STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
522 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
8efea775 523
4a4a4e99
AO
524STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
525STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
bb286d71 526
4a4a4e99
AO
527STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
528STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
1c8bd6a3 529
bb286d71
AO
530do-compare = @do_compare@
531do-compare3 = $(do-compare)
bb286d71 532
df0f0674
NN
533# -----------------------------------------------
534# Programs producing files for the TARGET machine
535# -----------------------------------------------
ce8e06b1 536
df0f0674 537AR_FOR_TARGET=@AR_FOR_TARGET@
4977bab6 538AS_FOR_TARGET=@AS_FOR_TARGET@
4a4a4e99 539CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
4de997d1 540
df0f0674
NN
541# If GCC_FOR_TARGET is not overriden on the command line, then this
542# variable is passed down to the gcc Makefile, where it is used to
543# build libgcc2.a. We define it here so that it can itself be
544# overridden on the command line.
4a4a4e99
AO
545GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
546CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
547RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
548GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
549GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
632e2a07 550GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
4977bab6 551DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
df0f0674 552LD_FOR_TARGET=@LD_FOR_TARGET@
df0f0674 553
040b1c5a 554LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
df0f0674 555NM_FOR_TARGET=@NM_FOR_TARGET@
d739199a 556OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
4977bab6 557RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
040b1c5a 558STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
df0f0674 559WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
901119ae 560WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
6599da04 561
2abefe3d
PB
562COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
563COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
564COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
565
1c8bd6a3
PB
566CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
567CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
1c8bd6a3 568
2abefe3d
PB
569LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
570LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
6f57bdf6 571LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
632e2a07 572GOCFLAGS_FOR_TARGET = -O2 -g
df0f0674 573
4a4a4e99
AO
574FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
575SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
576DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
577
578XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
579
df0f0674
NN
580# ------------------------------------
581# Miscellaneous targets and flag lists
582# ------------------------------------
583
5d4a5ee6
JL
584# The first rule in the file had better be this one. Don't put any above it.
585# This lives here to allow makefile fragments to contain dependencies.
1061f99e 586all:
5d4a5ee6 587
6599da04 588#### host and target specific makefile fragments come in here.
671aa708
NN
589@target_makefile_frag@
590@alphaieee_frag@
591@ospace_frag@
592@host_makefile_frag@
6599da04
JM
593###
594
0bff65e7 595# This is the list of directories that may be needed in RPATH_ENVVAR
66c92425 596# so that programs built for the target machine work.
c31202cd 597TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
0bff65e7
PB
598
599@if target-libstdc++-v3
66c92425 600TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
0bff65e7
PB
601@endif target-libstdc++-v3
602
603@if target-libmudflap
604TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
605@endif target-libmudflap
606
77008252
JJ
607@if target-libssp
608TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
609@endif target-libssp
610
953ff289
DN
611@if target-libgomp
612TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
613@endif target-libgomp
614
0bff65e7
PB
615
616
617# This is the list of directories that may be needed in RPATH_ENVVAR
618# so that programs built for the host machine work.
f61428ed 619HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf)
0bff65e7
PB
620
621# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
622@if gcc
d89f0ad6 623HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
0bff65e7
PB
624@endif gcc
625
626
627@if bfd
628HOST_LIB_PATH_bfd = \
e9a54b07 629 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
0bff65e7
PB
630@endif bfd
631
632@if opcodes
633HOST_LIB_PATH_opcodes = \
e9a54b07 634 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
0bff65e7
PB
635@endif opcodes
636
e69bf64b
PB
637@if gmp
638HOST_LIB_PATH_gmp = \
639 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
640@endif gmp
641
642@if mpfr
643HOST_LIB_PATH_mpfr = \
644 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
645@endif mpfr
646
acd26225
KG
647@if mpc
648HOST_LIB_PATH_mpc = \
649 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
650@endif mpc
651
f8bf9252
SP
652@if ppl
653HOST_LIB_PATH_ppl = \
f61428ed 654 $$r/$(HOST_SUBDIR)/ppl/src/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/src/.libs:
f8bf9252
SP
655@endif ppl
656
657@if cloog
658HOST_LIB_PATH_cloog = \
659 $$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
660@endif cloog
661
f61428ed
AO
662@if libelf
663HOST_LIB_PATH_libelf = \
664 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
665@endif libelf
666
0bff65e7 667
9aff220f
AO
668CXX_FOR_TARGET_FLAG_TO_PASS = \
669 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
670@if target-libstdc++-v3
671# CXX_FOR_TARGET is tricky to get right for target libs that require a
672# functional C++ compiler. When we recurse, if we expand
673# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
674# libstdc++ include flags from the script. Instead, we get an
675# -funconfigured-* word, so that we'll get errors if this invalid C++
676# command line is used for anything, but also so that we can use the
677# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
678# don't pass it on, sub-make will use the default definition, that
679# re-expands it at the time of use, so we'll get it right when we need
680# it. One potential exception is the expansion of CXX_FOR_TARGET
681# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
682# really work, for C++ host programs can't depend on the current-stage
683# C++ target library.
684CXX_FOR_TARGET_FLAG_TO_PASS = \
685 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
686@endif target-libstdc++-v3
687
6599da04 688# Flags to pass down to all sub-makes.
6599da04 689BASE_FLAGS_TO_PASS = \
3fbe8e4a 690 "DESTDIR=$(DESTDIR)" \
5d4a5ee6 691 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
81241b5e 692 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
632933d5
PB
693 "bindir=$(bindir)" \
694 "datadir=$(datadir)" \
695 "exec_prefix=$(exec_prefix)" \
696 "includedir=$(includedir)" \
65d6e994
CD
697 "datarootdir=$(datarootdir)" \
698 "docdir=$(docdir)" \
632933d5 699 "infodir=$(infodir)" \
9c4d2493 700 "pdfdir=$(pdfdir)" \
65d6e994 701 "htmldir=$(htmldir)" \
632933d5
PB
702 "libdir=$(libdir)" \
703 "libexecdir=$(libexecdir)" \
5bea4a03 704 "lispdir=$(lispdir)" \
632933d5
PB
705 "localstatedir=$(localstatedir)" \
706 "mandir=$(mandir)" \
5d4a5ee6 707 "oldincludedir=$(oldincludedir)" \
632933d5
PB
708 "prefix=$(prefix)" \
709 "sbindir=$(sbindir)" \
710 "sharedstatedir=$(sharedstatedir)" \
711 "sysconfdir=$(sysconfdir)" \
d0a8352c 712 "tooldir=$(tooldir)" \
5cb95c7a 713 "build_tooldir=$(build_tooldir)" \
11405c93 714 "target_alias=$(target_alias)" \
87264276 715 "AWK=$(AWK)" \
11405c93
NN
716 "BISON=$(BISON)" \
717 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
452190fb 718 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
11405c93
NN
719 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
720 "EXPECT=$(EXPECT)" \
23f6b2f9 721 "FLEX=$(FLEX)" \
11405c93
NN
722 "INSTALL=$(INSTALL)" \
723 "INSTALL_DATA=$(INSTALL_DATA)" \
724 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
725 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
f8c33439 726 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
11405c93
NN
727 "LEX=$(LEX)" \
728 "M4=$(M4)" \
729 "MAKE=$(MAKE)" \
730 "RUNTEST=$(RUNTEST)" \
731 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
87264276 732 "SED=$(SED)" \
11405c93
NN
733 "SHELL=$(SHELL)" \
734 "YACC=$(YACC)" \
cc11cc9b 735 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
00afcaa0 736 "ADA_CFLAGS=$(ADA_CFLAGS)" \
11405c93 737 "AR_FLAGS=$(AR_FLAGS)" \
cc11cc9b 738 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
d19bca38
PB
739 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
740 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
11405c93
NN
741 "CFLAGS=$(CFLAGS)" \
742 "CXXFLAGS=$(CXXFLAGS)" \
743 "LDFLAGS=$(LDFLAGS)" \
744 "LIBCFLAGS=$(LIBCFLAGS)" \
745 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8efea775 746 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
2d309510 747 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
5305be7e
RG
748 "GNATBIND=$(GNATBIND)" \
749 "GNATMAKE=$(GNATMAKE)" \
11405c93
NN
750 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
751 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
752 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
753 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
e7daab31 754 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
11405c93
NN
755 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
756 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
4a4a4e99 757 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
11405c93 758 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6de9cd9a 759 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
632e2a07
ILT
760 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
761 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
11405c93 762 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
040b1c5a 763 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
e3791243 764 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
11405c93
NN
765 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
766 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
767 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
d739199a 768 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
11405c93 769 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
040b1c5a 770 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
11405c93 771 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
901119ae 772 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
4a4a4e99 773 "BUILD_CONFIG=$(BUILD_CONFIG)" \
cc11cc9b 774 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
2d309510 775 "LEAN=$(LEAN)" \
4a4a4e99 776 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
f61428ed 777 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
778 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
779 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
f61428ed 780 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
781 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
782 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
f61428ed 783 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
784 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
785 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
f61428ed 786 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
4a4a4e99
AO
787 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
788 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
f61428ed 789 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
790 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
791 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
f61428ed 792 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99 793 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
9aff220f 794 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
4a4a4e99 795 "TFLAGS=$(TFLAGS)" \
e75f9147 796 "CONFIG_SHELL=$(SHELL)" \
05750653 797 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
6599da04 798
4de997d1
PB
799# We leave this in just in case, but it is not needed anymore.
800RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
ad6717df 801
6599da04
JM
802# Flags to pass down to most sub-makes, in which we're building with
803# the host environment.
6599da04
JM
804EXTRA_HOST_FLAGS = \
805 'AR=$(AR)' \
806 'AS=$(AS)' \
807 'CC=$(CC)' \
808 'CXX=$(CXX)' \
809 'DLLTOOL=$(DLLTOOL)' \
4a4a4e99
AO
810 'GCJ=$(GCJ)' \
811 'GFORTRAN=$(GFORTRAN)' \
e655d2bf 812 'GOC=$(GOC)' \
6599da04 813 'LD=$(LD)' \
2abefe3d 814 'LIPO=$(LIPO)' \
6599da04 815 'NM=$(NM)' \
2d309510 816 'OBJDUMP=$(OBJDUMP)' \
c858bf1e 817 'RANLIB=$(RANLIB)' \
2abefe3d 818 'STRIP=$(STRIP)' \
901119ae
KT
819 'WINDRES=$(WINDRES)' \
820 'WINDMC=$(WINDMC)'
6599da04
JM
821
822FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
823
8efea775
PB
824# Flags to pass to stage2 and later makes.
825
826POSTSTAGE1_FLAGS_TO_PASS = \
00020c16
ILT
827 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
828 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
829 GNATBIND="$${GNATBIND}" \
f61428ed
AO
830 LDFLAGS="$${LDFLAGS}" \
831 HOST_LIBS="$${HOST_LIBS}" \
8efea775
PB
832 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
833
6599da04 834# Flags to pass down to makes which are built with the target environment.
f41d6665
DJ
835# The double $ decreases the length of the command line; those variables
836# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
1c8bd6a3
PB
837# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
838# so we expand them here.
6599da04
JM
839EXTRA_TARGET_FLAGS = \
840 'AR=$$(AR_FOR_TARGET)' \
f41d6665 841 'AS=$(COMPILER_AS_FOR_TARGET)' \
4a4a4e99
AO
842 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
843 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
844 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
845 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
6599da04 846 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
4a4a4e99
AO
847 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
848 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e655d2bf 849 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
632e2a07 850 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
f41d6665 851 'LD=$(COMPILER_LD_FOR_TARGET)' \
e3791243 852 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
4a4a4e99
AO
853 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
854 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
f41d6665 855 'NM=$(COMPILER_NM_FOR_TARGET)' \
d739199a 856 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
0c055e34 857 'RANLIB=$$(RANLIB_FOR_TARGET)' \
901119ae 858 'WINDRES=$$(WINDRES_FOR_TARGET)' \
4a4a4e99
AO
859 'WINDMC=$$(WINDMC_FOR_TARGET)' \
860 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
861 "TFLAGS=$$TFLAGS"
6599da04
JM
862
863TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
864
865# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
866# unfortunately needs the native compiler and the target ar and
867# ranlib.
868# If any variables are added here, they must be added to do-*, below.
1358ccea 869# The BUILD_* variables are a special case, which are used for the gcc
6599da04
JM
870# cross-building scheme.
871EXTRA_GCC_FLAGS = \
6599da04 872 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d4cd9d81
NN
873 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
874 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
875 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
876 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
cc11cc9b 877 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
6599da04 878
d29b8ad8 879GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
6599da04 880
4a4a4e99 881@if gcc
e12c4094 882BUILD_CONFIG = @BUILD_CONFIG@
4a4a4e99
AO
883ifneq ($(BUILD_CONFIG),)
884include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
885endif
886@endif gcc
887
8b87bb96 888.PHONY: configure-host
d32ab992 889configure-host: \
8b87bb96
NN
890 maybe-configure-bfd \
891 maybe-configure-opcodes \
892 maybe-configure-binutils \
893 maybe-configure-bison \
8c32c9f0 894 maybe-configure-cgen \
8b87bb96 895 maybe-configure-dejagnu \
8b87bb96
NN
896 maybe-configure-etc \
897 maybe-configure-fastjar \
53c7ffe7 898 maybe-configure-fixincludes \
8b87bb96
NN
899 maybe-configure-flex \
900 maybe-configure-gas \
d32ab992 901 maybe-configure-gcc \
e69bf64b
PB
902 maybe-configure-gmp \
903 maybe-configure-mpfr \
acd26225 904 maybe-configure-mpc \
f8bf9252
SP
905 maybe-configure-ppl \
906 maybe-configure-cloog \
f61428ed 907 maybe-configure-libelf \
5afab7ad 908 maybe-configure-gold \
8b87bb96 909 maybe-configure-gprof \
8b87bb96
NN
910 maybe-configure-intl \
911 maybe-configure-tcl \
912 maybe-configure-itcl \
913 maybe-configure-ld \
4f4e53dd 914 maybe-configure-libcpp \
a4b6c45a 915 maybe-configure-libdecnumber \
8b87bb96
NN
916 maybe-configure-libgui \
917 maybe-configure-libiberty \
cfb1f59f 918 maybe-configure-libiconv \
8b87bb96 919 maybe-configure-m4 \
8b87bb96 920 maybe-configure-readline \
8b87bb96
NN
921 maybe-configure-sid \
922 maybe-configure-sim \
8b87bb96 923 maybe-configure-texinfo \
8b87bb96
NN
924 maybe-configure-zlib \
925 maybe-configure-gdb \
926 maybe-configure-expect \
927 maybe-configure-guile \
928 maybe-configure-tk \
8b87bb96 929 maybe-configure-libtermcap \
5395b47b 930 maybe-configure-utils \
d7f09764
DN
931 maybe-configure-gnattools \
932 maybe-configure-lto-plugin
8b87bb96
NN
933.PHONY: configure-target
934configure-target: \
935 maybe-configure-target-libstdc++-v3 \
6de9cd9a 936 maybe-configure-target-libmudflap \
77008252 937 maybe-configure-target-libssp \
8b87bb96 938 maybe-configure-target-newlib \
fa958513 939 maybe-configure-target-libgcc \
1ec601bf 940 maybe-configure-target-libquadmath \
6de9cd9a 941 maybe-configure-target-libgfortran \
8b87bb96 942 maybe-configure-target-libobjc \
632e2a07 943 maybe-configure-target-libgo \
8b87bb96
NN
944 maybe-configure-target-libtermcap \
945 maybe-configure-target-winsup \
946 maybe-configure-target-libgloss \
8b87bb96
NN
947 maybe-configure-target-libffi \
948 maybe-configure-target-libjava \
949 maybe-configure-target-zlib \
950 maybe-configure-target-boehm-gc \
d9cdb878 951 maybe-configure-target-rda \
953ff289
DN
952 maybe-configure-target-libada \
953 maybe-configure-target-libgomp
6599da04 954
f516a7da
PB
955# The target built for a native non-bootstrap build.
956.PHONY: all
1061f99e
PB
957all:
958@if gcc-bootstrap
2abefe3d 959 [ -f stage_final ] || echo stage3 > stage_final
1061f99e
PB
960 @r=`${PWD_COMMAND}`; export r; \
961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 962 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
1061f99e 963@endif gcc-bootstrap
f41d6665 964 @: $(MAKE); $(unstage)
1061f99e
PB
965 @r=`${PWD_COMMAND}`; export r; \
966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 967@if gcc-bootstrap
31c98f49 968 if [ -f stage_last ]; then \
a1fc946a 969 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
2abefe3d 970 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
1061f99e 971 else \
4a4a4e99 972@endif gcc-bootstrap
31c98f49
AO
973 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
974@if gcc-bootstrap
975 ; \
394e9195 976 fi \
31c98f49 977@endif gcc-bootstrap
394e9195 978 && :
23f6b2f9
PB
979
980.PHONY: all-build
cc11cc9b
PB
981
982all-build: maybe-all-build-libiberty
983all-build: maybe-all-build-bison
cc11cc9b
PB
984all-build: maybe-all-build-flex
985all-build: maybe-all-build-m4
986all-build: maybe-all-build-texinfo
987all-build: maybe-all-build-fixincludes
988
8b87bb96 989.PHONY: all-host
cc11cc9b 990
cc11cc9b
PB
991@if bfd-no-bootstrap
992all-host: maybe-all-bfd
993@endif bfd-no-bootstrap
994@if opcodes-no-bootstrap
995all-host: maybe-all-opcodes
996@endif opcodes-no-bootstrap
997@if binutils-no-bootstrap
998all-host: maybe-all-binutils
999@endif binutils-no-bootstrap
1000all-host: maybe-all-bison
8c32c9f0 1001all-host: maybe-all-cgen
cc11cc9b 1002all-host: maybe-all-dejagnu
cc11cc9b
PB
1003all-host: maybe-all-etc
1004all-host: maybe-all-fastjar
cc11cc9b
PB
1005all-host: maybe-all-fixincludes
1006all-host: maybe-all-flex
1007@if gas-no-bootstrap
1008all-host: maybe-all-gas
1009@endif gas-no-bootstrap
1010@if gcc-no-bootstrap
1011all-host: maybe-all-gcc
1012@endif gcc-no-bootstrap
e69bf64b
PB
1013@if gmp-no-bootstrap
1014all-host: maybe-all-gmp
1015@endif gmp-no-bootstrap
1016@if mpfr-no-bootstrap
1017all-host: maybe-all-mpfr
1018@endif mpfr-no-bootstrap
acd26225
KG
1019@if mpc-no-bootstrap
1020all-host: maybe-all-mpc
1021@endif mpc-no-bootstrap
f8bf9252
SP
1022@if ppl-no-bootstrap
1023all-host: maybe-all-ppl
1024@endif ppl-no-bootstrap
1025@if cloog-no-bootstrap
1026all-host: maybe-all-cloog
1027@endif cloog-no-bootstrap
f61428ed
AO
1028@if libelf-no-bootstrap
1029all-host: maybe-all-libelf
1030@endif libelf-no-bootstrap
5afab7ad
ILT
1031@if gold-no-bootstrap
1032all-host: maybe-all-gold
1033@endif gold-no-bootstrap
cc11cc9b 1034all-host: maybe-all-gprof
cc11cc9b
PB
1035@if intl-no-bootstrap
1036all-host: maybe-all-intl
1037@endif intl-no-bootstrap
1038all-host: maybe-all-tcl
1039all-host: maybe-all-itcl
1040@if ld-no-bootstrap
1041all-host: maybe-all-ld
1042@endif ld-no-bootstrap
1043@if libcpp-no-bootstrap
1044all-host: maybe-all-libcpp
1045@endif libcpp-no-bootstrap
1046@if libdecnumber-no-bootstrap
1047all-host: maybe-all-libdecnumber
1048@endif libdecnumber-no-bootstrap
1049all-host: maybe-all-libgui
1050@if libiberty-no-bootstrap
1051all-host: maybe-all-libiberty
1052@endif libiberty-no-bootstrap
cfb1f59f 1053all-host: maybe-all-libiconv
cc11cc9b 1054all-host: maybe-all-m4
cc11cc9b 1055all-host: maybe-all-readline
cc11cc9b
PB
1056all-host: maybe-all-sid
1057all-host: maybe-all-sim
cc11cc9b 1058all-host: maybe-all-texinfo
cc11cc9b
PB
1059@if zlib-no-bootstrap
1060all-host: maybe-all-zlib
1061@endif zlib-no-bootstrap
1062all-host: maybe-all-gdb
1063all-host: maybe-all-expect
1064all-host: maybe-all-guile
1065all-host: maybe-all-tk
1066all-host: maybe-all-libtermcap
1067all-host: maybe-all-utils
1068all-host: maybe-all-gnattools
d7f09764
DN
1069@if lto-plugin-no-bootstrap
1070all-host: maybe-all-lto-plugin
1071@endif lto-plugin-no-bootstrap
cc11cc9b 1072
8b87bb96 1073.PHONY: all-target
cc11cc9b 1074
00020c16 1075@if target-libstdc++-v3-no-bootstrap
cc11cc9b 1076all-target: maybe-all-target-libstdc++-v3
00020c16 1077@endif target-libstdc++-v3-no-bootstrap
cc11cc9b
PB
1078all-target: maybe-all-target-libmudflap
1079all-target: maybe-all-target-libssp
cc11cc9b 1080all-target: maybe-all-target-newlib
54fdc474 1081@if target-libgcc-no-bootstrap
fa958513 1082all-target: maybe-all-target-libgcc
54fdc474 1083@endif target-libgcc-no-bootstrap
1ec601bf 1084all-target: maybe-all-target-libquadmath
cc11cc9b
PB
1085all-target: maybe-all-target-libgfortran
1086all-target: maybe-all-target-libobjc
632e2a07 1087all-target: maybe-all-target-libgo
cc11cc9b
PB
1088all-target: maybe-all-target-libtermcap
1089all-target: maybe-all-target-winsup
1090all-target: maybe-all-target-libgloss
cc11cc9b
PB
1091all-target: maybe-all-target-libffi
1092all-target: maybe-all-target-libjava
1093all-target: maybe-all-target-zlib
1094all-target: maybe-all-target-boehm-gc
cc11cc9b
PB
1095all-target: maybe-all-target-rda
1096all-target: maybe-all-target-libada
aae29963 1097@if target-libgomp-no-bootstrap
cc11cc9b 1098all-target: maybe-all-target-libgomp
aae29963 1099@endif target-libgomp-no-bootstrap
6599da04
JM
1100
1101# Do a target for all the subdirectories. A ``make do-X'' will do a
1102# ``make X'' in all subdirectories (because, in general, there is a
1103# dependency (below) of X upon do-X, a ``make X'' will also do this,
1104# but it may do additional work as well).
4977bab6 1105
1358ccea 1106.PHONY: do-info
1061f99e 1107do-info:
f41d6665 1108 @: $(MAKE); $(unstage)
e7c84bf8
PB
1109 @r=`${PWD_COMMAND}`; export r; \
1110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1111 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1061f99e 1112 info-target
1061f99e 1113
6599da04 1114
1358ccea 1115.PHONY: info-host
cc11cc9b 1116
cc11cc9b
PB
1117info-host: maybe-info-bfd
1118info-host: maybe-info-opcodes
1119info-host: maybe-info-binutils
1120info-host: maybe-info-bison
8c32c9f0 1121info-host: maybe-info-cgen
cc11cc9b 1122info-host: maybe-info-dejagnu
cc11cc9b
PB
1123info-host: maybe-info-etc
1124info-host: maybe-info-fastjar
cc11cc9b
PB
1125info-host: maybe-info-fixincludes
1126info-host: maybe-info-flex
1127info-host: maybe-info-gas
1128info-host: maybe-info-gcc
e69bf64b
PB
1129info-host: maybe-info-gmp
1130info-host: maybe-info-mpfr
acd26225 1131info-host: maybe-info-mpc
f8bf9252
SP
1132info-host: maybe-info-ppl
1133info-host: maybe-info-cloog
f61428ed 1134info-host: maybe-info-libelf
5afab7ad 1135info-host: maybe-info-gold
cc11cc9b 1136info-host: maybe-info-gprof
cc11cc9b
PB
1137info-host: maybe-info-intl
1138info-host: maybe-info-tcl
1139info-host: maybe-info-itcl
1140info-host: maybe-info-ld
1141info-host: maybe-info-libcpp
1142info-host: maybe-info-libdecnumber
1143info-host: maybe-info-libgui
1144info-host: maybe-info-libiberty
cfb1f59f 1145info-host: maybe-info-libiconv
cc11cc9b 1146info-host: maybe-info-m4
cc11cc9b 1147info-host: maybe-info-readline
cc11cc9b
PB
1148info-host: maybe-info-sid
1149info-host: maybe-info-sim
cc11cc9b 1150info-host: maybe-info-texinfo
cc11cc9b
PB
1151info-host: maybe-info-zlib
1152info-host: maybe-info-gdb
1153info-host: maybe-info-expect
1154info-host: maybe-info-guile
1155info-host: maybe-info-tk
1156info-host: maybe-info-libtermcap
1157info-host: maybe-info-utils
1158info-host: maybe-info-gnattools
d7f09764 1159info-host: maybe-info-lto-plugin
6599da04 1160
1358ccea 1161.PHONY: info-target
cc11cc9b
PB
1162
1163info-target: maybe-info-target-libstdc++-v3
1164info-target: maybe-info-target-libmudflap
1165info-target: maybe-info-target-libssp
cc11cc9b 1166info-target: maybe-info-target-newlib
fa958513 1167info-target: maybe-info-target-libgcc
1ec601bf 1168info-target: maybe-info-target-libquadmath
cc11cc9b
PB
1169info-target: maybe-info-target-libgfortran
1170info-target: maybe-info-target-libobjc
632e2a07 1171info-target: maybe-info-target-libgo
cc11cc9b
PB
1172info-target: maybe-info-target-libtermcap
1173info-target: maybe-info-target-winsup
1174info-target: maybe-info-target-libgloss
cc11cc9b
PB
1175info-target: maybe-info-target-libffi
1176info-target: maybe-info-target-libjava
1177info-target: maybe-info-target-zlib
1178info-target: maybe-info-target-boehm-gc
cc11cc9b
PB
1179info-target: maybe-info-target-rda
1180info-target: maybe-info-target-libada
1181info-target: maybe-info-target-libgomp
6599da04 1182
295f4e42 1183.PHONY: do-dvi
1061f99e 1184do-dvi:
f41d6665 1185 @: $(MAKE); $(unstage)
e7c84bf8
PB
1186 @r=`${PWD_COMMAND}`; export r; \
1187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1188 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1061f99e 1189 dvi-target
1061f99e 1190
4977bab6 1191
295f4e42 1192.PHONY: dvi-host
cc11cc9b 1193
cc11cc9b
PB
1194dvi-host: maybe-dvi-bfd
1195dvi-host: maybe-dvi-opcodes
1196dvi-host: maybe-dvi-binutils
1197dvi-host: maybe-dvi-bison
8c32c9f0 1198dvi-host: maybe-dvi-cgen
cc11cc9b 1199dvi-host: maybe-dvi-dejagnu
cc11cc9b
PB
1200dvi-host: maybe-dvi-etc
1201dvi-host: maybe-dvi-fastjar
cc11cc9b
PB
1202dvi-host: maybe-dvi-fixincludes
1203dvi-host: maybe-dvi-flex
1204dvi-host: maybe-dvi-gas
1205dvi-host: maybe-dvi-gcc
e69bf64b
PB
1206dvi-host: maybe-dvi-gmp
1207dvi-host: maybe-dvi-mpfr
acd26225 1208dvi-host: maybe-dvi-mpc
f8bf9252
SP
1209dvi-host: maybe-dvi-ppl
1210dvi-host: maybe-dvi-cloog
f61428ed 1211dvi-host: maybe-dvi-libelf
5afab7ad 1212dvi-host: maybe-dvi-gold
cc11cc9b 1213dvi-host: maybe-dvi-gprof
cc11cc9b
PB
1214dvi-host: maybe-dvi-intl
1215dvi-host: maybe-dvi-tcl
1216dvi-host: maybe-dvi-itcl
1217dvi-host: maybe-dvi-ld
1218dvi-host: maybe-dvi-libcpp
1219dvi-host: maybe-dvi-libdecnumber
1220dvi-host: maybe-dvi-libgui
1221dvi-host: maybe-dvi-libiberty
cfb1f59f 1222dvi-host: maybe-dvi-libiconv
cc11cc9b 1223dvi-host: maybe-dvi-m4
cc11cc9b 1224dvi-host: maybe-dvi-readline
cc11cc9b
PB
1225dvi-host: maybe-dvi-sid
1226dvi-host: maybe-dvi-sim
cc11cc9b 1227dvi-host: maybe-dvi-texinfo
cc11cc9b
PB
1228dvi-host: maybe-dvi-zlib
1229dvi-host: maybe-dvi-gdb
1230dvi-host: maybe-dvi-expect
1231dvi-host: maybe-dvi-guile
1232dvi-host: maybe-dvi-tk
1233dvi-host: maybe-dvi-libtermcap
1234dvi-host: maybe-dvi-utils
1235dvi-host: maybe-dvi-gnattools
d7f09764 1236dvi-host: maybe-dvi-lto-plugin
4977bab6 1237
295f4e42 1238.PHONY: dvi-target
cc11cc9b
PB
1239
1240dvi-target: maybe-dvi-target-libstdc++-v3
1241dvi-target: maybe-dvi-target-libmudflap
1242dvi-target: maybe-dvi-target-libssp
cc11cc9b 1243dvi-target: maybe-dvi-target-newlib
fa958513 1244dvi-target: maybe-dvi-target-libgcc
1ec601bf 1245dvi-target: maybe-dvi-target-libquadmath
cc11cc9b
PB
1246dvi-target: maybe-dvi-target-libgfortran
1247dvi-target: maybe-dvi-target-libobjc
632e2a07 1248dvi-target: maybe-dvi-target-libgo
cc11cc9b
PB
1249dvi-target: maybe-dvi-target-libtermcap
1250dvi-target: maybe-dvi-target-winsup
1251dvi-target: maybe-dvi-target-libgloss
cc11cc9b
PB
1252dvi-target: maybe-dvi-target-libffi
1253dvi-target: maybe-dvi-target-libjava
1254dvi-target: maybe-dvi-target-zlib
1255dvi-target: maybe-dvi-target-boehm-gc
cc11cc9b
PB
1256dvi-target: maybe-dvi-target-rda
1257dvi-target: maybe-dvi-target-libada
1258dvi-target: maybe-dvi-target-libgomp
4977bab6 1259
b5422ad7
BM
1260.PHONY: do-pdf
1261do-pdf:
1262 @: $(MAKE); $(unstage)
1263 @r=`${PWD_COMMAND}`; export r; \
1264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1265 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1266 pdf-target
1267
1268
1269.PHONY: pdf-host
1270
b5422ad7
BM
1271pdf-host: maybe-pdf-bfd
1272pdf-host: maybe-pdf-opcodes
1273pdf-host: maybe-pdf-binutils
1274pdf-host: maybe-pdf-bison
8c32c9f0 1275pdf-host: maybe-pdf-cgen
b5422ad7 1276pdf-host: maybe-pdf-dejagnu
b5422ad7
BM
1277pdf-host: maybe-pdf-etc
1278pdf-host: maybe-pdf-fastjar
b5422ad7
BM
1279pdf-host: maybe-pdf-fixincludes
1280pdf-host: maybe-pdf-flex
1281pdf-host: maybe-pdf-gas
1282pdf-host: maybe-pdf-gcc
e69bf64b
PB
1283pdf-host: maybe-pdf-gmp
1284pdf-host: maybe-pdf-mpfr
acd26225 1285pdf-host: maybe-pdf-mpc
f8bf9252
SP
1286pdf-host: maybe-pdf-ppl
1287pdf-host: maybe-pdf-cloog
f61428ed 1288pdf-host: maybe-pdf-libelf
5afab7ad 1289pdf-host: maybe-pdf-gold
b5422ad7 1290pdf-host: maybe-pdf-gprof
b5422ad7
BM
1291pdf-host: maybe-pdf-intl
1292pdf-host: maybe-pdf-tcl
1293pdf-host: maybe-pdf-itcl
1294pdf-host: maybe-pdf-ld
1295pdf-host: maybe-pdf-libcpp
1296pdf-host: maybe-pdf-libdecnumber
1297pdf-host: maybe-pdf-libgui
1298pdf-host: maybe-pdf-libiberty
cfb1f59f 1299pdf-host: maybe-pdf-libiconv
b5422ad7 1300pdf-host: maybe-pdf-m4
b5422ad7 1301pdf-host: maybe-pdf-readline
b5422ad7
BM
1302pdf-host: maybe-pdf-sid
1303pdf-host: maybe-pdf-sim
b5422ad7 1304pdf-host: maybe-pdf-texinfo
b5422ad7
BM
1305pdf-host: maybe-pdf-zlib
1306pdf-host: maybe-pdf-gdb
1307pdf-host: maybe-pdf-expect
1308pdf-host: maybe-pdf-guile
1309pdf-host: maybe-pdf-tk
1310pdf-host: maybe-pdf-libtermcap
1311pdf-host: maybe-pdf-utils
1312pdf-host: maybe-pdf-gnattools
d7f09764 1313pdf-host: maybe-pdf-lto-plugin
b5422ad7
BM
1314
1315.PHONY: pdf-target
1316
1317pdf-target: maybe-pdf-target-libstdc++-v3
1318pdf-target: maybe-pdf-target-libmudflap
1319pdf-target: maybe-pdf-target-libssp
1320pdf-target: maybe-pdf-target-newlib
fa958513 1321pdf-target: maybe-pdf-target-libgcc
1ec601bf 1322pdf-target: maybe-pdf-target-libquadmath
b5422ad7
BM
1323pdf-target: maybe-pdf-target-libgfortran
1324pdf-target: maybe-pdf-target-libobjc
632e2a07 1325pdf-target: maybe-pdf-target-libgo
b5422ad7
BM
1326pdf-target: maybe-pdf-target-libtermcap
1327pdf-target: maybe-pdf-target-winsup
1328pdf-target: maybe-pdf-target-libgloss
b5422ad7
BM
1329pdf-target: maybe-pdf-target-libffi
1330pdf-target: maybe-pdf-target-libjava
1331pdf-target: maybe-pdf-target-zlib
1332pdf-target: maybe-pdf-target-boehm-gc
b5422ad7
BM
1333pdf-target: maybe-pdf-target-rda
1334pdf-target: maybe-pdf-target-libada
1335pdf-target: maybe-pdf-target-libgomp
1336
f87a2b2e 1337.PHONY: do-html
1061f99e 1338do-html:
f41d6665 1339 @: $(MAKE); $(unstage)
e7c84bf8
PB
1340 @r=`${PWD_COMMAND}`; export r; \
1341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1342 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1061f99e 1343 html-target
1061f99e 1344
f87a2b2e
MS
1345
1346.PHONY: html-host
cc11cc9b 1347
cc11cc9b
PB
1348html-host: maybe-html-bfd
1349html-host: maybe-html-opcodes
1350html-host: maybe-html-binutils
1351html-host: maybe-html-bison
8c32c9f0 1352html-host: maybe-html-cgen
cc11cc9b 1353html-host: maybe-html-dejagnu
cc11cc9b
PB
1354html-host: maybe-html-etc
1355html-host: maybe-html-fastjar
cc11cc9b
PB
1356html-host: maybe-html-fixincludes
1357html-host: maybe-html-flex
1358html-host: maybe-html-gas
1359html-host: maybe-html-gcc
e69bf64b
PB
1360html-host: maybe-html-gmp
1361html-host: maybe-html-mpfr
acd26225 1362html-host: maybe-html-mpc
f8bf9252
SP
1363html-host: maybe-html-ppl
1364html-host: maybe-html-cloog
f61428ed 1365html-host: maybe-html-libelf
5afab7ad 1366html-host: maybe-html-gold
cc11cc9b 1367html-host: maybe-html-gprof
cc11cc9b
PB
1368html-host: maybe-html-intl
1369html-host: maybe-html-tcl
1370html-host: maybe-html-itcl
1371html-host: maybe-html-ld
1372html-host: maybe-html-libcpp
1373html-host: maybe-html-libdecnumber
1374html-host: maybe-html-libgui
1375html-host: maybe-html-libiberty
cfb1f59f 1376html-host: maybe-html-libiconv
cc11cc9b 1377html-host: maybe-html-m4
cc11cc9b 1378html-host: maybe-html-readline
cc11cc9b
PB
1379html-host: maybe-html-sid
1380html-host: maybe-html-sim
cc11cc9b 1381html-host: maybe-html-texinfo
cc11cc9b
PB
1382html-host: maybe-html-zlib
1383html-host: maybe-html-gdb
1384html-host: maybe-html-expect
1385html-host: maybe-html-guile
1386html-host: maybe-html-tk
1387html-host: maybe-html-libtermcap
1388html-host: maybe-html-utils
1389html-host: maybe-html-gnattools
d7f09764 1390html-host: maybe-html-lto-plugin
f87a2b2e
MS
1391
1392.PHONY: html-target
cc11cc9b
PB
1393
1394html-target: maybe-html-target-libstdc++-v3
1395html-target: maybe-html-target-libmudflap
1396html-target: maybe-html-target-libssp
cc11cc9b 1397html-target: maybe-html-target-newlib
fa958513 1398html-target: maybe-html-target-libgcc
1ec601bf 1399html-target: maybe-html-target-libquadmath
cc11cc9b
PB
1400html-target: maybe-html-target-libgfortran
1401html-target: maybe-html-target-libobjc
632e2a07 1402html-target: maybe-html-target-libgo
cc11cc9b
PB
1403html-target: maybe-html-target-libtermcap
1404html-target: maybe-html-target-winsup
1405html-target: maybe-html-target-libgloss
cc11cc9b
PB
1406html-target: maybe-html-target-libffi
1407html-target: maybe-html-target-libjava
1408html-target: maybe-html-target-zlib
1409html-target: maybe-html-target-boehm-gc
cc11cc9b
PB
1410html-target: maybe-html-target-rda
1411html-target: maybe-html-target-libada
1412html-target: maybe-html-target-libgomp
f87a2b2e 1413
295f4e42 1414.PHONY: do-TAGS
1061f99e 1415do-TAGS:
f41d6665 1416 @: $(MAKE); $(unstage)
e7c84bf8
PB
1417 @r=`${PWD_COMMAND}`; export r; \
1418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1419 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1061f99e 1420 TAGS-target
1061f99e 1421
4977bab6 1422
295f4e42 1423.PHONY: TAGS-host
cc11cc9b 1424
cc11cc9b
PB
1425TAGS-host: maybe-TAGS-bfd
1426TAGS-host: maybe-TAGS-opcodes
1427TAGS-host: maybe-TAGS-binutils
1428TAGS-host: maybe-TAGS-bison
8c32c9f0 1429TAGS-host: maybe-TAGS-cgen
cc11cc9b 1430TAGS-host: maybe-TAGS-dejagnu
cc11cc9b
PB
1431TAGS-host: maybe-TAGS-etc
1432TAGS-host: maybe-TAGS-fastjar
cc11cc9b
PB
1433TAGS-host: maybe-TAGS-fixincludes
1434TAGS-host: maybe-TAGS-flex
1435TAGS-host: maybe-TAGS-gas
1436TAGS-host: maybe-TAGS-gcc
e69bf64b
PB
1437TAGS-host: maybe-TAGS-gmp
1438TAGS-host: maybe-TAGS-mpfr
acd26225 1439TAGS-host: maybe-TAGS-mpc
f8bf9252
SP
1440TAGS-host: maybe-TAGS-ppl
1441TAGS-host: maybe-TAGS-cloog
f61428ed 1442TAGS-host: maybe-TAGS-libelf
5afab7ad 1443TAGS-host: maybe-TAGS-gold
cc11cc9b 1444TAGS-host: maybe-TAGS-gprof
cc11cc9b
PB
1445TAGS-host: maybe-TAGS-intl
1446TAGS-host: maybe-TAGS-tcl
1447TAGS-host: maybe-TAGS-itcl
1448TAGS-host: maybe-TAGS-ld
1449TAGS-host: maybe-TAGS-libcpp
1450TAGS-host: maybe-TAGS-libdecnumber
1451TAGS-host: maybe-TAGS-libgui
1452TAGS-host: maybe-TAGS-libiberty
cfb1f59f 1453TAGS-host: maybe-TAGS-libiconv
cc11cc9b 1454TAGS-host: maybe-TAGS-m4
cc11cc9b 1455TAGS-host: maybe-TAGS-readline
cc11cc9b
PB
1456TAGS-host: maybe-TAGS-sid
1457TAGS-host: maybe-TAGS-sim
cc11cc9b 1458TAGS-host: maybe-TAGS-texinfo
cc11cc9b
PB
1459TAGS-host: maybe-TAGS-zlib
1460TAGS-host: maybe-TAGS-gdb
1461TAGS-host: maybe-TAGS-expect
1462TAGS-host: maybe-TAGS-guile
1463TAGS-host: maybe-TAGS-tk
1464TAGS-host: maybe-TAGS-libtermcap
1465TAGS-host: maybe-TAGS-utils
1466TAGS-host: maybe-TAGS-gnattools
d7f09764 1467TAGS-host: maybe-TAGS-lto-plugin
4977bab6 1468
295f4e42 1469.PHONY: TAGS-target
cc11cc9b
PB
1470
1471TAGS-target: maybe-TAGS-target-libstdc++-v3
1472TAGS-target: maybe-TAGS-target-libmudflap
1473TAGS-target: maybe-TAGS-target-libssp
cc11cc9b 1474TAGS-target: maybe-TAGS-target-newlib
fa958513 1475TAGS-target: maybe-TAGS-target-libgcc
1ec601bf 1476TAGS-target: maybe-TAGS-target-libquadmath
cc11cc9b
PB
1477TAGS-target: maybe-TAGS-target-libgfortran
1478TAGS-target: maybe-TAGS-target-libobjc
632e2a07 1479TAGS-target: maybe-TAGS-target-libgo
cc11cc9b
PB
1480TAGS-target: maybe-TAGS-target-libtermcap
1481TAGS-target: maybe-TAGS-target-winsup
1482TAGS-target: maybe-TAGS-target-libgloss
cc11cc9b
PB
1483TAGS-target: maybe-TAGS-target-libffi
1484TAGS-target: maybe-TAGS-target-libjava
1485TAGS-target: maybe-TAGS-target-zlib
1486TAGS-target: maybe-TAGS-target-boehm-gc
cc11cc9b
PB
1487TAGS-target: maybe-TAGS-target-rda
1488TAGS-target: maybe-TAGS-target-libada
1489TAGS-target: maybe-TAGS-target-libgomp
4977bab6 1490
295f4e42 1491.PHONY: do-install-info
1061f99e 1492do-install-info:
f41d6665 1493 @: $(MAKE); $(unstage)
e7c84bf8
PB
1494 @r=`${PWD_COMMAND}`; export r; \
1495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1496 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1061f99e 1497 install-info-target
1061f99e 1498
4977bab6 1499
295f4e42 1500.PHONY: install-info-host
cc11cc9b 1501
cc11cc9b
PB
1502install-info-host: maybe-install-info-bfd
1503install-info-host: maybe-install-info-opcodes
1504install-info-host: maybe-install-info-binutils
1505install-info-host: maybe-install-info-bison
8c32c9f0 1506install-info-host: maybe-install-info-cgen
cc11cc9b 1507install-info-host: maybe-install-info-dejagnu
cc11cc9b
PB
1508install-info-host: maybe-install-info-etc
1509install-info-host: maybe-install-info-fastjar
cc11cc9b
PB
1510install-info-host: maybe-install-info-fixincludes
1511install-info-host: maybe-install-info-flex
1512install-info-host: maybe-install-info-gas
1513install-info-host: maybe-install-info-gcc
e69bf64b
PB
1514install-info-host: maybe-install-info-gmp
1515install-info-host: maybe-install-info-mpfr
acd26225 1516install-info-host: maybe-install-info-mpc
f8bf9252
SP
1517install-info-host: maybe-install-info-ppl
1518install-info-host: maybe-install-info-cloog
f61428ed 1519install-info-host: maybe-install-info-libelf
5afab7ad 1520install-info-host: maybe-install-info-gold
cc11cc9b 1521install-info-host: maybe-install-info-gprof
cc11cc9b
PB
1522install-info-host: maybe-install-info-intl
1523install-info-host: maybe-install-info-tcl
1524install-info-host: maybe-install-info-itcl
1525install-info-host: maybe-install-info-ld
1526install-info-host: maybe-install-info-libcpp
1527install-info-host: maybe-install-info-libdecnumber
1528install-info-host: maybe-install-info-libgui
1529install-info-host: maybe-install-info-libiberty
cfb1f59f 1530install-info-host: maybe-install-info-libiconv
cc11cc9b 1531install-info-host: maybe-install-info-m4
cc11cc9b 1532install-info-host: maybe-install-info-readline
cc11cc9b
PB
1533install-info-host: maybe-install-info-sid
1534install-info-host: maybe-install-info-sim
cc11cc9b 1535install-info-host: maybe-install-info-texinfo
cc11cc9b
PB
1536install-info-host: maybe-install-info-zlib
1537install-info-host: maybe-install-info-gdb
1538install-info-host: maybe-install-info-expect
1539install-info-host: maybe-install-info-guile
1540install-info-host: maybe-install-info-tk
1541install-info-host: maybe-install-info-libtermcap
1542install-info-host: maybe-install-info-utils
1543install-info-host: maybe-install-info-gnattools
d7f09764 1544install-info-host: maybe-install-info-lto-plugin
1358ccea 1545
295f4e42 1546.PHONY: install-info-target
cc11cc9b
PB
1547
1548install-info-target: maybe-install-info-target-libstdc++-v3
1549install-info-target: maybe-install-info-target-libmudflap
1550install-info-target: maybe-install-info-target-libssp
cc11cc9b 1551install-info-target: maybe-install-info-target-newlib
fa958513 1552install-info-target: maybe-install-info-target-libgcc
1ec601bf 1553install-info-target: maybe-install-info-target-libquadmath
cc11cc9b
PB
1554install-info-target: maybe-install-info-target-libgfortran
1555install-info-target: maybe-install-info-target-libobjc
632e2a07 1556install-info-target: maybe-install-info-target-libgo
cc11cc9b
PB
1557install-info-target: maybe-install-info-target-libtermcap
1558install-info-target: maybe-install-info-target-winsup
1559install-info-target: maybe-install-info-target-libgloss
cc11cc9b
PB
1560install-info-target: maybe-install-info-target-libffi
1561install-info-target: maybe-install-info-target-libjava
1562install-info-target: maybe-install-info-target-zlib
1563install-info-target: maybe-install-info-target-boehm-gc
cc11cc9b
PB
1564install-info-target: maybe-install-info-target-rda
1565install-info-target: maybe-install-info-target-libada
1566install-info-target: maybe-install-info-target-libgomp
1358ccea 1567
9c4d2493
BM
1568.PHONY: do-install-pdf
1569do-install-pdf:
1570 @: $(MAKE); $(unstage)
1571 @r=`${PWD_COMMAND}`; export r; \
1572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1573 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1574 install-pdf-target
1575
1576
1577.PHONY: install-pdf-host
1578
9c4d2493
BM
1579install-pdf-host: maybe-install-pdf-bfd
1580install-pdf-host: maybe-install-pdf-opcodes
1581install-pdf-host: maybe-install-pdf-binutils
1582install-pdf-host: maybe-install-pdf-bison
8c32c9f0 1583install-pdf-host: maybe-install-pdf-cgen
9c4d2493 1584install-pdf-host: maybe-install-pdf-dejagnu
9c4d2493
BM
1585install-pdf-host: maybe-install-pdf-etc
1586install-pdf-host: maybe-install-pdf-fastjar
9c4d2493
BM
1587install-pdf-host: maybe-install-pdf-fixincludes
1588install-pdf-host: maybe-install-pdf-flex
1589install-pdf-host: maybe-install-pdf-gas
1590install-pdf-host: maybe-install-pdf-gcc
9c4d2493
BM
1591install-pdf-host: maybe-install-pdf-gmp
1592install-pdf-host: maybe-install-pdf-mpfr
acd26225 1593install-pdf-host: maybe-install-pdf-mpc
f8bf9252
SP
1594install-pdf-host: maybe-install-pdf-ppl
1595install-pdf-host: maybe-install-pdf-cloog
f61428ed 1596install-pdf-host: maybe-install-pdf-libelf
5afab7ad 1597install-pdf-host: maybe-install-pdf-gold
9c4d2493 1598install-pdf-host: maybe-install-pdf-gprof
9c4d2493
BM
1599install-pdf-host: maybe-install-pdf-intl
1600install-pdf-host: maybe-install-pdf-tcl
1601install-pdf-host: maybe-install-pdf-itcl
1602install-pdf-host: maybe-install-pdf-ld
1603install-pdf-host: maybe-install-pdf-libcpp
1604install-pdf-host: maybe-install-pdf-libdecnumber
1605install-pdf-host: maybe-install-pdf-libgui
1606install-pdf-host: maybe-install-pdf-libiberty
cfb1f59f 1607install-pdf-host: maybe-install-pdf-libiconv
9c4d2493 1608install-pdf-host: maybe-install-pdf-m4
9c4d2493 1609install-pdf-host: maybe-install-pdf-readline
9c4d2493
BM
1610install-pdf-host: maybe-install-pdf-sid
1611install-pdf-host: maybe-install-pdf-sim
9c4d2493 1612install-pdf-host: maybe-install-pdf-texinfo
9c4d2493
BM
1613install-pdf-host: maybe-install-pdf-zlib
1614install-pdf-host: maybe-install-pdf-gdb
1615install-pdf-host: maybe-install-pdf-expect
1616install-pdf-host: maybe-install-pdf-guile
1617install-pdf-host: maybe-install-pdf-tk
1618install-pdf-host: maybe-install-pdf-libtermcap
1619install-pdf-host: maybe-install-pdf-utils
1620install-pdf-host: maybe-install-pdf-gnattools
d7f09764 1621install-pdf-host: maybe-install-pdf-lto-plugin
9c4d2493
BM
1622
1623.PHONY: install-pdf-target
1624
1625install-pdf-target: maybe-install-pdf-target-libstdc++-v3
1626install-pdf-target: maybe-install-pdf-target-libmudflap
1627install-pdf-target: maybe-install-pdf-target-libssp
1628install-pdf-target: maybe-install-pdf-target-newlib
1629install-pdf-target: maybe-install-pdf-target-libgcc
1ec601bf 1630install-pdf-target: maybe-install-pdf-target-libquadmath
9c4d2493
BM
1631install-pdf-target: maybe-install-pdf-target-libgfortran
1632install-pdf-target: maybe-install-pdf-target-libobjc
632e2a07 1633install-pdf-target: maybe-install-pdf-target-libgo
9c4d2493
BM
1634install-pdf-target: maybe-install-pdf-target-libtermcap
1635install-pdf-target: maybe-install-pdf-target-winsup
1636install-pdf-target: maybe-install-pdf-target-libgloss
9c4d2493
BM
1637install-pdf-target: maybe-install-pdf-target-libffi
1638install-pdf-target: maybe-install-pdf-target-libjava
1639install-pdf-target: maybe-install-pdf-target-zlib
1640install-pdf-target: maybe-install-pdf-target-boehm-gc
9c4d2493
BM
1641install-pdf-target: maybe-install-pdf-target-rda
1642install-pdf-target: maybe-install-pdf-target-libada
1643install-pdf-target: maybe-install-pdf-target-libgomp
1644
65d6e994
CD
1645.PHONY: do-install-html
1646do-install-html:
1647 @: $(MAKE); $(unstage)
1648 @r=`${PWD_COMMAND}`; export r; \
1649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1650 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1651 install-html-target
1652
1653
1654.PHONY: install-html-host
1655
65d6e994
CD
1656install-html-host: maybe-install-html-bfd
1657install-html-host: maybe-install-html-opcodes
1658install-html-host: maybe-install-html-binutils
1659install-html-host: maybe-install-html-bison
8c32c9f0 1660install-html-host: maybe-install-html-cgen
65d6e994 1661install-html-host: maybe-install-html-dejagnu
65d6e994
CD
1662install-html-host: maybe-install-html-etc
1663install-html-host: maybe-install-html-fastjar
65d6e994
CD
1664install-html-host: maybe-install-html-fixincludes
1665install-html-host: maybe-install-html-flex
1666install-html-host: maybe-install-html-gas
1667install-html-host: maybe-install-html-gcc
e69bf64b
PB
1668install-html-host: maybe-install-html-gmp
1669install-html-host: maybe-install-html-mpfr
acd26225 1670install-html-host: maybe-install-html-mpc
f8bf9252
SP
1671install-html-host: maybe-install-html-ppl
1672install-html-host: maybe-install-html-cloog
f61428ed 1673install-html-host: maybe-install-html-libelf
5afab7ad 1674install-html-host: maybe-install-html-gold
65d6e994 1675install-html-host: maybe-install-html-gprof
65d6e994
CD
1676install-html-host: maybe-install-html-intl
1677install-html-host: maybe-install-html-tcl
1678install-html-host: maybe-install-html-itcl
1679install-html-host: maybe-install-html-ld
1680install-html-host: maybe-install-html-libcpp
1681install-html-host: maybe-install-html-libdecnumber
1682install-html-host: maybe-install-html-libgui
1683install-html-host: maybe-install-html-libiberty
cfb1f59f 1684install-html-host: maybe-install-html-libiconv
65d6e994 1685install-html-host: maybe-install-html-m4
65d6e994 1686install-html-host: maybe-install-html-readline
65d6e994
CD
1687install-html-host: maybe-install-html-sid
1688install-html-host: maybe-install-html-sim
65d6e994 1689install-html-host: maybe-install-html-texinfo
65d6e994
CD
1690install-html-host: maybe-install-html-zlib
1691install-html-host: maybe-install-html-gdb
1692install-html-host: maybe-install-html-expect
1693install-html-host: maybe-install-html-guile
1694install-html-host: maybe-install-html-tk
1695install-html-host: maybe-install-html-libtermcap
1696install-html-host: maybe-install-html-utils
1697install-html-host: maybe-install-html-gnattools
d7f09764 1698install-html-host: maybe-install-html-lto-plugin
65d6e994
CD
1699
1700.PHONY: install-html-target
1701
1702install-html-target: maybe-install-html-target-libstdc++-v3
1703install-html-target: maybe-install-html-target-libmudflap
1704install-html-target: maybe-install-html-target-libssp
65d6e994 1705install-html-target: maybe-install-html-target-newlib
fa958513 1706install-html-target: maybe-install-html-target-libgcc
1ec601bf 1707install-html-target: maybe-install-html-target-libquadmath
65d6e994
CD
1708install-html-target: maybe-install-html-target-libgfortran
1709install-html-target: maybe-install-html-target-libobjc
632e2a07 1710install-html-target: maybe-install-html-target-libgo
65d6e994
CD
1711install-html-target: maybe-install-html-target-libtermcap
1712install-html-target: maybe-install-html-target-winsup
1713install-html-target: maybe-install-html-target-libgloss
65d6e994
CD
1714install-html-target: maybe-install-html-target-libffi
1715install-html-target: maybe-install-html-target-libjava
1716install-html-target: maybe-install-html-target-zlib
1717install-html-target: maybe-install-html-target-boehm-gc
65d6e994
CD
1718install-html-target: maybe-install-html-target-rda
1719install-html-target: maybe-install-html-target-libada
1720install-html-target: maybe-install-html-target-libgomp
1721
295f4e42 1722.PHONY: do-installcheck
1061f99e 1723do-installcheck:
f41d6665 1724 @: $(MAKE); $(unstage)
e7c84bf8
PB
1725 @r=`${PWD_COMMAND}`; export r; \
1726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1727 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1061f99e 1728 installcheck-target
1061f99e 1729
1358ccea 1730
295f4e42 1731.PHONY: installcheck-host
cc11cc9b 1732
cc11cc9b
PB
1733installcheck-host: maybe-installcheck-bfd
1734installcheck-host: maybe-installcheck-opcodes
1735installcheck-host: maybe-installcheck-binutils
1736installcheck-host: maybe-installcheck-bison
8c32c9f0 1737installcheck-host: maybe-installcheck-cgen
cc11cc9b 1738installcheck-host: maybe-installcheck-dejagnu
cc11cc9b
PB
1739installcheck-host: maybe-installcheck-etc
1740installcheck-host: maybe-installcheck-fastjar
cc11cc9b
PB
1741installcheck-host: maybe-installcheck-fixincludes
1742installcheck-host: maybe-installcheck-flex
1743installcheck-host: maybe-installcheck-gas
1744installcheck-host: maybe-installcheck-gcc
e69bf64b
PB
1745installcheck-host: maybe-installcheck-gmp
1746installcheck-host: maybe-installcheck-mpfr
acd26225 1747installcheck-host: maybe-installcheck-mpc
f8bf9252
SP
1748installcheck-host: maybe-installcheck-ppl
1749installcheck-host: maybe-installcheck-cloog
f61428ed 1750installcheck-host: maybe-installcheck-libelf
5afab7ad 1751installcheck-host: maybe-installcheck-gold
cc11cc9b 1752installcheck-host: maybe-installcheck-gprof
cc11cc9b
PB
1753installcheck-host: maybe-installcheck-intl
1754installcheck-host: maybe-installcheck-tcl
1755installcheck-host: maybe-installcheck-itcl
1756installcheck-host: maybe-installcheck-ld
1757installcheck-host: maybe-installcheck-libcpp
1758installcheck-host: maybe-installcheck-libdecnumber
1759installcheck-host: maybe-installcheck-libgui
1760installcheck-host: maybe-installcheck-libiberty
cfb1f59f 1761installcheck-host: maybe-installcheck-libiconv
cc11cc9b 1762installcheck-host: maybe-installcheck-m4
cc11cc9b 1763installcheck-host: maybe-installcheck-readline
cc11cc9b
PB
1764installcheck-host: maybe-installcheck-sid
1765installcheck-host: maybe-installcheck-sim
cc11cc9b 1766installcheck-host: maybe-installcheck-texinfo
cc11cc9b
PB
1767installcheck-host: maybe-installcheck-zlib
1768installcheck-host: maybe-installcheck-gdb
1769installcheck-host: maybe-installcheck-expect
1770installcheck-host: maybe-installcheck-guile
1771installcheck-host: maybe-installcheck-tk
1772installcheck-host: maybe-installcheck-libtermcap
1773installcheck-host: maybe-installcheck-utils
1774installcheck-host: maybe-installcheck-gnattools
d7f09764 1775installcheck-host: maybe-installcheck-lto-plugin
1358ccea 1776
295f4e42 1777.PHONY: installcheck-target
cc11cc9b
PB
1778
1779installcheck-target: maybe-installcheck-target-libstdc++-v3
1780installcheck-target: maybe-installcheck-target-libmudflap
1781installcheck-target: maybe-installcheck-target-libssp
cc11cc9b 1782installcheck-target: maybe-installcheck-target-newlib
fa958513 1783installcheck-target: maybe-installcheck-target-libgcc
1ec601bf 1784installcheck-target: maybe-installcheck-target-libquadmath
cc11cc9b
PB
1785installcheck-target: maybe-installcheck-target-libgfortran
1786installcheck-target: maybe-installcheck-target-libobjc
632e2a07 1787installcheck-target: maybe-installcheck-target-libgo
cc11cc9b
PB
1788installcheck-target: maybe-installcheck-target-libtermcap
1789installcheck-target: maybe-installcheck-target-winsup
1790installcheck-target: maybe-installcheck-target-libgloss
cc11cc9b
PB
1791installcheck-target: maybe-installcheck-target-libffi
1792installcheck-target: maybe-installcheck-target-libjava
1793installcheck-target: maybe-installcheck-target-zlib
1794installcheck-target: maybe-installcheck-target-boehm-gc
cc11cc9b
PB
1795installcheck-target: maybe-installcheck-target-rda
1796installcheck-target: maybe-installcheck-target-libada
1797installcheck-target: maybe-installcheck-target-libgomp
1358ccea 1798
295f4e42 1799.PHONY: do-mostlyclean
1061f99e 1800do-mostlyclean:
f41d6665 1801 @: $(MAKE); $(unstage)
e7c84bf8
PB
1802 @r=`${PWD_COMMAND}`; export r; \
1803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1804 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1061f99e 1805 mostlyclean-target
1061f99e 1806
1358ccea 1807
295f4e42 1808.PHONY: mostlyclean-host
cc11cc9b 1809
cc11cc9b
PB
1810mostlyclean-host: maybe-mostlyclean-bfd
1811mostlyclean-host: maybe-mostlyclean-opcodes
1812mostlyclean-host: maybe-mostlyclean-binutils
1813mostlyclean-host: maybe-mostlyclean-bison
8c32c9f0 1814mostlyclean-host: maybe-mostlyclean-cgen
cc11cc9b 1815mostlyclean-host: maybe-mostlyclean-dejagnu
cc11cc9b
PB
1816mostlyclean-host: maybe-mostlyclean-etc
1817mostlyclean-host: maybe-mostlyclean-fastjar
cc11cc9b
PB
1818mostlyclean-host: maybe-mostlyclean-fixincludes
1819mostlyclean-host: maybe-mostlyclean-flex
1820mostlyclean-host: maybe-mostlyclean-gas
1821mostlyclean-host: maybe-mostlyclean-gcc
e69bf64b
PB
1822mostlyclean-host: maybe-mostlyclean-gmp
1823mostlyclean-host: maybe-mostlyclean-mpfr
acd26225 1824mostlyclean-host: maybe-mostlyclean-mpc
f8bf9252
SP
1825mostlyclean-host: maybe-mostlyclean-ppl
1826mostlyclean-host: maybe-mostlyclean-cloog
f61428ed 1827mostlyclean-host: maybe-mostlyclean-libelf
5afab7ad 1828mostlyclean-host: maybe-mostlyclean-gold
cc11cc9b 1829mostlyclean-host: maybe-mostlyclean-gprof
cc11cc9b
PB
1830mostlyclean-host: maybe-mostlyclean-intl
1831mostlyclean-host: maybe-mostlyclean-tcl
1832mostlyclean-host: maybe-mostlyclean-itcl
1833mostlyclean-host: maybe-mostlyclean-ld
1834mostlyclean-host: maybe-mostlyclean-libcpp
1835mostlyclean-host: maybe-mostlyclean-libdecnumber
1836mostlyclean-host: maybe-mostlyclean-libgui
1837mostlyclean-host: maybe-mostlyclean-libiberty
cfb1f59f 1838mostlyclean-host: maybe-mostlyclean-libiconv
cc11cc9b 1839mostlyclean-host: maybe-mostlyclean-m4
cc11cc9b 1840mostlyclean-host: maybe-mostlyclean-readline
cc11cc9b
PB
1841mostlyclean-host: maybe-mostlyclean-sid
1842mostlyclean-host: maybe-mostlyclean-sim
cc11cc9b 1843mostlyclean-host: maybe-mostlyclean-texinfo
cc11cc9b
PB
1844mostlyclean-host: maybe-mostlyclean-zlib
1845mostlyclean-host: maybe-mostlyclean-gdb
1846mostlyclean-host: maybe-mostlyclean-expect
1847mostlyclean-host: maybe-mostlyclean-guile
1848mostlyclean-host: maybe-mostlyclean-tk
1849mostlyclean-host: maybe-mostlyclean-libtermcap
1850mostlyclean-host: maybe-mostlyclean-utils
1851mostlyclean-host: maybe-mostlyclean-gnattools
d7f09764 1852mostlyclean-host: maybe-mostlyclean-lto-plugin
1358ccea 1853
295f4e42 1854.PHONY: mostlyclean-target
cc11cc9b
PB
1855
1856mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1857mostlyclean-target: maybe-mostlyclean-target-libmudflap
1858mostlyclean-target: maybe-mostlyclean-target-libssp
cc11cc9b 1859mostlyclean-target: maybe-mostlyclean-target-newlib
fa958513 1860mostlyclean-target: maybe-mostlyclean-target-libgcc
1ec601bf 1861mostlyclean-target: maybe-mostlyclean-target-libquadmath
cc11cc9b
PB
1862mostlyclean-target: maybe-mostlyclean-target-libgfortran
1863mostlyclean-target: maybe-mostlyclean-target-libobjc
632e2a07 1864mostlyclean-target: maybe-mostlyclean-target-libgo
cc11cc9b
PB
1865mostlyclean-target: maybe-mostlyclean-target-libtermcap
1866mostlyclean-target: maybe-mostlyclean-target-winsup
1867mostlyclean-target: maybe-mostlyclean-target-libgloss
cc11cc9b
PB
1868mostlyclean-target: maybe-mostlyclean-target-libffi
1869mostlyclean-target: maybe-mostlyclean-target-libjava
1870mostlyclean-target: maybe-mostlyclean-target-zlib
1871mostlyclean-target: maybe-mostlyclean-target-boehm-gc
cc11cc9b
PB
1872mostlyclean-target: maybe-mostlyclean-target-rda
1873mostlyclean-target: maybe-mostlyclean-target-libada
1874mostlyclean-target: maybe-mostlyclean-target-libgomp
1358ccea 1875
295f4e42 1876.PHONY: do-clean
1061f99e 1877do-clean:
f41d6665 1878 @: $(MAKE); $(unstage)
e7c84bf8
PB
1879 @r=`${PWD_COMMAND}`; export r; \
1880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1881 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1061f99e 1882 clean-target
1061f99e 1883
1358ccea 1884
295f4e42 1885.PHONY: clean-host
cc11cc9b 1886
cc11cc9b
PB
1887clean-host: maybe-clean-bfd
1888clean-host: maybe-clean-opcodes
1889clean-host: maybe-clean-binutils
1890clean-host: maybe-clean-bison
8c32c9f0 1891clean-host: maybe-clean-cgen
cc11cc9b 1892clean-host: maybe-clean-dejagnu
cc11cc9b
PB
1893clean-host: maybe-clean-etc
1894clean-host: maybe-clean-fastjar
cc11cc9b
PB
1895clean-host: maybe-clean-fixincludes
1896clean-host: maybe-clean-flex
1897clean-host: maybe-clean-gas
1898clean-host: maybe-clean-gcc
e69bf64b
PB
1899clean-host: maybe-clean-gmp
1900clean-host: maybe-clean-mpfr
acd26225 1901clean-host: maybe-clean-mpc
f8bf9252
SP
1902clean-host: maybe-clean-ppl
1903clean-host: maybe-clean-cloog
f61428ed 1904clean-host: maybe-clean-libelf
5afab7ad 1905clean-host: maybe-clean-gold
cc11cc9b 1906clean-host: maybe-clean-gprof
cc11cc9b
PB
1907clean-host: maybe-clean-intl
1908clean-host: maybe-clean-tcl
1909clean-host: maybe-clean-itcl
1910clean-host: maybe-clean-ld
1911clean-host: maybe-clean-libcpp
1912clean-host: maybe-clean-libdecnumber
1913clean-host: maybe-clean-libgui
1914clean-host: maybe-clean-libiberty
cfb1f59f 1915clean-host: maybe-clean-libiconv
cc11cc9b 1916clean-host: maybe-clean-m4
cc11cc9b 1917clean-host: maybe-clean-readline
cc11cc9b
PB
1918clean-host: maybe-clean-sid
1919clean-host: maybe-clean-sim
cc11cc9b 1920clean-host: maybe-clean-texinfo
cc11cc9b
PB
1921clean-host: maybe-clean-zlib
1922clean-host: maybe-clean-gdb
1923clean-host: maybe-clean-expect
1924clean-host: maybe-clean-guile
1925clean-host: maybe-clean-tk
1926clean-host: maybe-clean-libtermcap
1927clean-host: maybe-clean-utils
1928clean-host: maybe-clean-gnattools
d7f09764 1929clean-host: maybe-clean-lto-plugin
1358ccea 1930
295f4e42 1931.PHONY: clean-target
cc11cc9b
PB
1932
1933clean-target: maybe-clean-target-libstdc++-v3
1934clean-target: maybe-clean-target-libmudflap
1935clean-target: maybe-clean-target-libssp
cc11cc9b 1936clean-target: maybe-clean-target-newlib
fa958513 1937clean-target: maybe-clean-target-libgcc
1ec601bf 1938clean-target: maybe-clean-target-libquadmath
cc11cc9b
PB
1939clean-target: maybe-clean-target-libgfortran
1940clean-target: maybe-clean-target-libobjc
632e2a07 1941clean-target: maybe-clean-target-libgo
cc11cc9b
PB
1942clean-target: maybe-clean-target-libtermcap
1943clean-target: maybe-clean-target-winsup
1944clean-target: maybe-clean-target-libgloss
cc11cc9b
PB
1945clean-target: maybe-clean-target-libffi
1946clean-target: maybe-clean-target-libjava
1947clean-target: maybe-clean-target-zlib
1948clean-target: maybe-clean-target-boehm-gc
cc11cc9b
PB
1949clean-target: maybe-clean-target-rda
1950clean-target: maybe-clean-target-libada
1951clean-target: maybe-clean-target-libgomp
1358ccea 1952
295f4e42 1953.PHONY: do-distclean
1061f99e 1954do-distclean:
f41d6665 1955 @: $(MAKE); $(unstage)
e7c84bf8
PB
1956 @r=`${PWD_COMMAND}`; export r; \
1957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1958 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1061f99e 1959 distclean-target
1061f99e 1960
1358ccea 1961
295f4e42 1962.PHONY: distclean-host
cc11cc9b 1963
cc11cc9b
PB
1964distclean-host: maybe-distclean-bfd
1965distclean-host: maybe-distclean-opcodes
1966distclean-host: maybe-distclean-binutils
1967distclean-host: maybe-distclean-bison
8c32c9f0 1968distclean-host: maybe-distclean-cgen
cc11cc9b 1969distclean-host: maybe-distclean-dejagnu
cc11cc9b
PB
1970distclean-host: maybe-distclean-etc
1971distclean-host: maybe-distclean-fastjar
cc11cc9b
PB
1972distclean-host: maybe-distclean-fixincludes
1973distclean-host: maybe-distclean-flex
1974distclean-host: maybe-distclean-gas
1975distclean-host: maybe-distclean-gcc
e69bf64b
PB
1976distclean-host: maybe-distclean-gmp
1977distclean-host: maybe-distclean-mpfr
acd26225 1978distclean-host: maybe-distclean-mpc
f8bf9252
SP
1979distclean-host: maybe-distclean-ppl
1980distclean-host: maybe-distclean-cloog
f61428ed 1981distclean-host: maybe-distclean-libelf
5afab7ad 1982distclean-host: maybe-distclean-gold
cc11cc9b 1983distclean-host: maybe-distclean-gprof
cc11cc9b
PB
1984distclean-host: maybe-distclean-intl
1985distclean-host: maybe-distclean-tcl
1986distclean-host: maybe-distclean-itcl
1987distclean-host: maybe-distclean-ld
1988distclean-host: maybe-distclean-libcpp
1989distclean-host: maybe-distclean-libdecnumber
1990distclean-host: maybe-distclean-libgui
1991distclean-host: maybe-distclean-libiberty
cfb1f59f 1992distclean-host: maybe-distclean-libiconv
cc11cc9b 1993distclean-host: maybe-distclean-m4
cc11cc9b 1994distclean-host: maybe-distclean-readline
cc11cc9b
PB
1995distclean-host: maybe-distclean-sid
1996distclean-host: maybe-distclean-sim
cc11cc9b 1997distclean-host: maybe-distclean-texinfo
cc11cc9b
PB
1998distclean-host: maybe-distclean-zlib
1999distclean-host: maybe-distclean-gdb
2000distclean-host: maybe-distclean-expect
2001distclean-host: maybe-distclean-guile
2002distclean-host: maybe-distclean-tk
2003distclean-host: maybe-distclean-libtermcap
2004distclean-host: maybe-distclean-utils
2005distclean-host: maybe-distclean-gnattools
d7f09764 2006distclean-host: maybe-distclean-lto-plugin
1358ccea 2007
295f4e42 2008.PHONY: distclean-target
cc11cc9b
PB
2009
2010distclean-target: maybe-distclean-target-libstdc++-v3
2011distclean-target: maybe-distclean-target-libmudflap
2012distclean-target: maybe-distclean-target-libssp
cc11cc9b 2013distclean-target: maybe-distclean-target-newlib
fa958513 2014distclean-target: maybe-distclean-target-libgcc
1ec601bf 2015distclean-target: maybe-distclean-target-libquadmath
cc11cc9b
PB
2016distclean-target: maybe-distclean-target-libgfortran
2017distclean-target: maybe-distclean-target-libobjc
632e2a07 2018distclean-target: maybe-distclean-target-libgo
cc11cc9b
PB
2019distclean-target: maybe-distclean-target-libtermcap
2020distclean-target: maybe-distclean-target-winsup
2021distclean-target: maybe-distclean-target-libgloss
cc11cc9b
PB
2022distclean-target: maybe-distclean-target-libffi
2023distclean-target: maybe-distclean-target-libjava
2024distclean-target: maybe-distclean-target-zlib
2025distclean-target: maybe-distclean-target-boehm-gc
cc11cc9b
PB
2026distclean-target: maybe-distclean-target-rda
2027distclean-target: maybe-distclean-target-libada
2028distclean-target: maybe-distclean-target-libgomp
1358ccea 2029
295f4e42 2030.PHONY: do-maintainer-clean
1061f99e 2031do-maintainer-clean:
f41d6665 2032 @: $(MAKE); $(unstage)
e7c84bf8
PB
2033 @r=`${PWD_COMMAND}`; export r; \
2034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2035 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
1061f99e 2036 maintainer-clean-target
1061f99e 2037
1358ccea 2038
295f4e42 2039.PHONY: maintainer-clean-host
cc11cc9b 2040
cc11cc9b
PB
2041maintainer-clean-host: maybe-maintainer-clean-bfd
2042maintainer-clean-host: maybe-maintainer-clean-opcodes
2043maintainer-clean-host: maybe-maintainer-clean-binutils
2044maintainer-clean-host: maybe-maintainer-clean-bison
8c32c9f0 2045maintainer-clean-host: maybe-maintainer-clean-cgen
cc11cc9b 2046maintainer-clean-host: maybe-maintainer-clean-dejagnu
cc11cc9b
PB
2047maintainer-clean-host: maybe-maintainer-clean-etc
2048maintainer-clean-host: maybe-maintainer-clean-fastjar
cc11cc9b
PB
2049maintainer-clean-host: maybe-maintainer-clean-fixincludes
2050maintainer-clean-host: maybe-maintainer-clean-flex
2051maintainer-clean-host: maybe-maintainer-clean-gas
2052maintainer-clean-host: maybe-maintainer-clean-gcc
e69bf64b
PB
2053maintainer-clean-host: maybe-maintainer-clean-gmp
2054maintainer-clean-host: maybe-maintainer-clean-mpfr
acd26225 2055maintainer-clean-host: maybe-maintainer-clean-mpc
f8bf9252
SP
2056maintainer-clean-host: maybe-maintainer-clean-ppl
2057maintainer-clean-host: maybe-maintainer-clean-cloog
f61428ed 2058maintainer-clean-host: maybe-maintainer-clean-libelf
5afab7ad 2059maintainer-clean-host: maybe-maintainer-clean-gold
cc11cc9b 2060maintainer-clean-host: maybe-maintainer-clean-gprof
cc11cc9b
PB
2061maintainer-clean-host: maybe-maintainer-clean-intl
2062maintainer-clean-host: maybe-maintainer-clean-tcl
2063maintainer-clean-host: maybe-maintainer-clean-itcl
2064maintainer-clean-host: maybe-maintainer-clean-ld
2065maintainer-clean-host: maybe-maintainer-clean-libcpp
2066maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2067maintainer-clean-host: maybe-maintainer-clean-libgui
2068maintainer-clean-host: maybe-maintainer-clean-libiberty
cfb1f59f 2069maintainer-clean-host: maybe-maintainer-clean-libiconv
cc11cc9b 2070maintainer-clean-host: maybe-maintainer-clean-m4
cc11cc9b 2071maintainer-clean-host: maybe-maintainer-clean-readline
cc11cc9b
PB
2072maintainer-clean-host: maybe-maintainer-clean-sid
2073maintainer-clean-host: maybe-maintainer-clean-sim
cc11cc9b 2074maintainer-clean-host: maybe-maintainer-clean-texinfo
cc11cc9b
PB
2075maintainer-clean-host: maybe-maintainer-clean-zlib
2076maintainer-clean-host: maybe-maintainer-clean-gdb
2077maintainer-clean-host: maybe-maintainer-clean-expect
2078maintainer-clean-host: maybe-maintainer-clean-guile
2079maintainer-clean-host: maybe-maintainer-clean-tk
2080maintainer-clean-host: maybe-maintainer-clean-libtermcap
2081maintainer-clean-host: maybe-maintainer-clean-utils
2082maintainer-clean-host: maybe-maintainer-clean-gnattools
d7f09764 2083maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1358ccea 2084
295f4e42 2085.PHONY: maintainer-clean-target
cc11cc9b
PB
2086
2087maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2088maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2089maintainer-clean-target: maybe-maintainer-clean-target-libssp
cc11cc9b 2090maintainer-clean-target: maybe-maintainer-clean-target-newlib
fa958513 2091maintainer-clean-target: maybe-maintainer-clean-target-libgcc
1ec601bf 2092maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
cc11cc9b
PB
2093maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2094maintainer-clean-target: maybe-maintainer-clean-target-libobjc
632e2a07 2095maintainer-clean-target: maybe-maintainer-clean-target-libgo
cc11cc9b
PB
2096maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2097maintainer-clean-target: maybe-maintainer-clean-target-winsup
2098maintainer-clean-target: maybe-maintainer-clean-target-libgloss
cc11cc9b
PB
2099maintainer-clean-target: maybe-maintainer-clean-target-libffi
2100maintainer-clean-target: maybe-maintainer-clean-target-libjava
2101maintainer-clean-target: maybe-maintainer-clean-target-zlib
2102maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
cc11cc9b
PB
2103maintainer-clean-target: maybe-maintainer-clean-target-rda
2104maintainer-clean-target: maybe-maintainer-clean-target-libada
2105maintainer-clean-target: maybe-maintainer-clean-target-libgomp
1358ccea 2106
1358ccea 2107
295f4e42 2108# Here are the targets which correspond to the do-X targets.
1358ccea 2109
9c4d2493
BM
2110.PHONY: info installcheck dvi pdf html
2111.PHONY: install-info install-pdf install-html
295f4e42
NN
2112.PHONY: clean distclean mostlyclean maintainer-clean realclean
2113.PHONY: local-clean local-distclean local-maintainer-clean
2114info: do-info
2115installcheck: do-installcheck
2116dvi: do-dvi
b5422ad7 2117pdf: do-pdf
f87a2b2e 2118html: do-html
1358ccea 2119
295f4e42
NN
2120# Make sure makeinfo is built before we do a `make info', if we're
2121# in fact building texinfo.
2122do-info: maybe-all-texinfo
1358ccea 2123
295f4e42 2124install-info: do-install-info dir.info
8c90b13a 2125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42
NN
2126 if [ -f dir.info ] ; then \
2127 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2128 else true ; fi
1358ccea 2129
9c4d2493
BM
2130install-pdf: do-install-pdf
2131
65d6e994
CD
2132install-html: do-install-html
2133
295f4e42
NN
2134local-clean:
2135 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1358ccea 2136
295f4e42
NN
2137local-distclean:
2138 -rm -f Makefile config.status config.cache mh-frag mt-frag
f41d6665 2139 -rm -f maybedep.tmp serdep.tmp
295f4e42
NN
2140 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2141 rm -rf $(TARGET_SUBDIR); \
2142 else true; fi
2143 -rm -rf $(BUILD_SUBDIR)
215c351a
PB
2144 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2145 rm -rf $(HOST_SUBDIR); \
2146 else true; fi
295f4e42
NN
2147 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2148 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2149 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2150 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2151 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
e50390fc 2152 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
1358ccea 2153
295f4e42
NN
2154local-maintainer-clean:
2155 @echo "This command is intended for maintainers to use;"
2156 @echo "it deletes files that may require special tools to rebuild."
1358ccea 2157
295f4e42
NN
2158clean: do-clean local-clean
2159mostlyclean: do-mostlyclean local-clean
2160distclean: do-distclean local-clean local-distclean
05750653 2161maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
295f4e42
NN
2162maintainer-clean: local-distclean
2163realclean: maintainer-clean
1358ccea 2164
295f4e42 2165# Check target.
1358ccea 2166
295f4e42
NN
2167.PHONY: check do-check
2168check: do-check
1358ccea 2169
295f4e42 2170# Only include modules actually being configured and built.
1061f99e
PB
2171.PHONY: check-host
2172check-host: \
295f4e42
NN
2173 maybe-check-bfd \
2174 maybe-check-opcodes \
2175 maybe-check-binutils \
2176 maybe-check-bison \
8c32c9f0 2177 maybe-check-cgen \
295f4e42 2178 maybe-check-dejagnu \
295f4e42
NN
2179 maybe-check-etc \
2180 maybe-check-fastjar \
53c7ffe7 2181 maybe-check-fixincludes \
295f4e42
NN
2182 maybe-check-flex \
2183 maybe-check-gas \
d32ab992 2184 maybe-check-gcc \
e69bf64b
PB
2185 maybe-check-gmp \
2186 maybe-check-mpfr \
acd26225 2187 maybe-check-mpc \
f8bf9252
SP
2188 maybe-check-ppl \
2189 maybe-check-cloog \
f61428ed 2190 maybe-check-libelf \
5afab7ad 2191 maybe-check-gold \
295f4e42 2192 maybe-check-gprof \
295f4e42
NN
2193 maybe-check-intl \
2194 maybe-check-tcl \
2195 maybe-check-itcl \
2196 maybe-check-ld \
4f4e53dd 2197 maybe-check-libcpp \
a4b6c45a 2198 maybe-check-libdecnumber \
295f4e42
NN
2199 maybe-check-libgui \
2200 maybe-check-libiberty \
cfb1f59f 2201 maybe-check-libiconv \
295f4e42 2202 maybe-check-m4 \
295f4e42 2203 maybe-check-readline \
295f4e42
NN
2204 maybe-check-sid \
2205 maybe-check-sim \
295f4e42 2206 maybe-check-texinfo \
295f4e42
NN
2207 maybe-check-zlib \
2208 maybe-check-gdb \
2209 maybe-check-expect \
2210 maybe-check-guile \
2211 maybe-check-tk \
295f4e42
NN
2212 maybe-check-libtermcap \
2213 maybe-check-utils \
d7f09764
DN
2214 maybe-check-gnattools \
2215 maybe-check-lto-plugin
1061f99e
PB
2216
2217.PHONY: check-target
2218check-target: \
295f4e42 2219 maybe-check-target-libstdc++-v3 \
6de9cd9a 2220 maybe-check-target-libmudflap \
77008252 2221 maybe-check-target-libssp \
295f4e42 2222 maybe-check-target-newlib \
fa958513 2223 maybe-check-target-libgcc \
1ec601bf 2224 maybe-check-target-libquadmath \
6de9cd9a 2225 maybe-check-target-libgfortran \
295f4e42 2226 maybe-check-target-libobjc \
632e2a07 2227 maybe-check-target-libgo \
295f4e42
NN
2228 maybe-check-target-libtermcap \
2229 maybe-check-target-winsup \
2230 maybe-check-target-libgloss \
295f4e42
NN
2231 maybe-check-target-libffi \
2232 maybe-check-target-libjava \
2233 maybe-check-target-zlib \
2234 maybe-check-target-boehm-gc \
295f4e42 2235 maybe-check-target-rda \
953ff289
DN
2236 maybe-check-target-libada \
2237 maybe-check-target-libgomp
1061f99e
PB
2238
2239do-check:
f41d6665 2240 @: $(MAKE); $(unstage)
e7c84bf8
PB
2241 @r=`${PWD_COMMAND}`; export r; \
2242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2243 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
1358ccea 2244
295f4e42 2245# Automated reporting of test results.
1358ccea 2246
295f4e42
NN
2247warning.log: build.log
2248 $(srcdir)/contrib/warn_summary build.log > $@
d9cdb878 2249
295f4e42
NN
2250mail-report.log:
2251 if test x'$(BOOT_CFLAGS)' != x''; then \
2252 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2253 fi; \
2254 $(srcdir)/contrib/test_summary -t >$@
2255 chmod +x $@
2256 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2257
295f4e42
NN
2258mail-report-with-warnings.log: warning.log
2259 if test x'$(BOOT_CFLAGS)' != x''; then \
2260 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2261 fi; \
2262 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2263 chmod +x $@
2264 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2265
295f4e42 2266# Installation targets.
1358ccea 2267
295f4e42 2268.PHONY: install uninstall
1061f99e 2269install:
f41d6665 2270 @: $(MAKE); $(unstage)
e7c84bf8
PB
2271 @r=`${PWD_COMMAND}`; export r; \
2272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2273 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
1358ccea 2274
295f4e42
NN
2275.PHONY: install-host-nogcc
2276install-host-nogcc: \
295f4e42
NN
2277 maybe-install-bfd \
2278 maybe-install-opcodes \
2279 maybe-install-binutils \
2280 maybe-install-bison \
8c32c9f0 2281 maybe-install-cgen \
295f4e42 2282 maybe-install-dejagnu \
295f4e42
NN
2283 maybe-install-etc \
2284 maybe-install-fastjar \
53c7ffe7 2285 maybe-install-fixincludes \
295f4e42
NN
2286 maybe-install-flex \
2287 maybe-install-gas \
e69bf64b
PB
2288 maybe-install-gmp \
2289 maybe-install-mpfr \
acd26225 2290 maybe-install-mpc \
f8bf9252
SP
2291 maybe-install-ppl \
2292 maybe-install-cloog \
f61428ed 2293 maybe-install-libelf \
5afab7ad 2294 maybe-install-gold \
295f4e42 2295 maybe-install-gprof \
295f4e42
NN
2296 maybe-install-intl \
2297 maybe-install-tcl \
2298 maybe-install-itcl \
2299 maybe-install-ld \
4f4e53dd 2300 maybe-install-libcpp \
a4b6c45a 2301 maybe-install-libdecnumber \
295f4e42
NN
2302 maybe-install-libgui \
2303 maybe-install-libiberty \
cfb1f59f 2304 maybe-install-libiconv \
295f4e42 2305 maybe-install-m4 \
295f4e42 2306 maybe-install-readline \
295f4e42
NN
2307 maybe-install-sid \
2308 maybe-install-sim \
295f4e42 2309 maybe-install-texinfo \
295f4e42
NN
2310 maybe-install-zlib \
2311 maybe-install-gdb \
2312 maybe-install-expect \
2313 maybe-install-guile \
2314 maybe-install-tk \
295f4e42 2315 maybe-install-libtermcap \
5395b47b 2316 maybe-install-utils \
d7f09764
DN
2317 maybe-install-gnattools \
2318 maybe-install-lto-plugin
295f4e42
NN
2319
2320.PHONY: install-host
d32ab992 2321install-host: \
295f4e42
NN
2322 maybe-install-bfd \
2323 maybe-install-opcodes \
2324 maybe-install-binutils \
2325 maybe-install-bison \
8c32c9f0 2326 maybe-install-cgen \
295f4e42 2327 maybe-install-dejagnu \
295f4e42
NN
2328 maybe-install-etc \
2329 maybe-install-fastjar \
53c7ffe7 2330 maybe-install-fixincludes \
295f4e42
NN
2331 maybe-install-flex \
2332 maybe-install-gas \
d32ab992 2333 maybe-install-gcc \
e69bf64b
PB
2334 maybe-install-gmp \
2335 maybe-install-mpfr \
acd26225 2336 maybe-install-mpc \
f8bf9252
SP
2337 maybe-install-ppl \
2338 maybe-install-cloog \
f61428ed 2339 maybe-install-libelf \
5afab7ad 2340 maybe-install-gold \
295f4e42 2341 maybe-install-gprof \
295f4e42
NN
2342 maybe-install-intl \
2343 maybe-install-tcl \
2344 maybe-install-itcl \
2345 maybe-install-ld \
4f4e53dd 2346 maybe-install-libcpp \
a4b6c45a 2347 maybe-install-libdecnumber \
295f4e42
NN
2348 maybe-install-libgui \
2349 maybe-install-libiberty \
cfb1f59f 2350 maybe-install-libiconv \
295f4e42 2351 maybe-install-m4 \
295f4e42 2352 maybe-install-readline \
295f4e42
NN
2353 maybe-install-sid \
2354 maybe-install-sim \
295f4e42 2355 maybe-install-texinfo \
295f4e42
NN
2356 maybe-install-zlib \
2357 maybe-install-gdb \
2358 maybe-install-expect \
2359 maybe-install-guile \
2360 maybe-install-tk \
295f4e42 2361 maybe-install-libtermcap \
5395b47b 2362 maybe-install-utils \
d7f09764
DN
2363 maybe-install-gnattools \
2364 maybe-install-lto-plugin
295f4e42
NN
2365
2366.PHONY: install-target
2367install-target: \
2368 maybe-install-target-libstdc++-v3 \
6de9cd9a 2369 maybe-install-target-libmudflap \
77008252 2370 maybe-install-target-libssp \
295f4e42 2371 maybe-install-target-newlib \
fa958513 2372 maybe-install-target-libgcc \
1ec601bf 2373 maybe-install-target-libquadmath \
6de9cd9a 2374 maybe-install-target-libgfortran \
295f4e42 2375 maybe-install-target-libobjc \
632e2a07 2376 maybe-install-target-libgo \
295f4e42
NN
2377 maybe-install-target-libtermcap \
2378 maybe-install-target-winsup \
2379 maybe-install-target-libgloss \
295f4e42
NN
2380 maybe-install-target-libffi \
2381 maybe-install-target-libjava \
2382 maybe-install-target-zlib \
2383 maybe-install-target-boehm-gc \
295f4e42 2384 maybe-install-target-rda \
953ff289
DN
2385 maybe-install-target-libada \
2386 maybe-install-target-libgomp
1358ccea 2387
295f4e42
NN
2388uninstall:
2389 @echo "the uninstall target is not supported in this tree"
1358ccea 2390
295f4e42
NN
2391.PHONY: install.all
2392install.all: install-no-fixedincludes
2393 @if [ -f ./gcc/Makefile ] ; then \
2394 r=`${PWD_COMMAND}` ; export r ; \
f41d6665 2395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 2396 $(HOST_EXPORTS) \
295f4e42
NN
2397 (cd ./gcc && \
2398 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2399 else \
2400 true ; \
2401 fi
1358ccea 2402
295f4e42
NN
2403# install-no-fixedincludes is used because Cygnus can not distribute
2404# the fixed header files.
2405.PHONY: install-no-fixedincludes
2406install-no-fixedincludes: installdirs install-host-nogcc \
2407 install-target gcc-no-fixedincludes
1358ccea 2408
455c8f48
RW
2409.PHONY: install-strip
2410install-strip:
2411 @: $(MAKE); $(unstage)
2412 @r=`${PWD_COMMAND}`; export r; \
2413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2414 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2415
2416.PHONY: install-strip-host
2417install-strip-host: \
455c8f48
RW
2418 maybe-install-strip-bfd \
2419 maybe-install-strip-opcodes \
2420 maybe-install-strip-binutils \
2421 maybe-install-strip-bison \
455c8f48
RW
2422 maybe-install-strip-cgen \
2423 maybe-install-strip-dejagnu \
455c8f48
RW
2424 maybe-install-strip-etc \
2425 maybe-install-strip-fastjar \
455c8f48
RW
2426 maybe-install-strip-fixincludes \
2427 maybe-install-strip-flex \
2428 maybe-install-strip-gas \
2429 maybe-install-strip-gcc \
455c8f48
RW
2430 maybe-install-strip-gmp \
2431 maybe-install-strip-mpfr \
2432 maybe-install-strip-mpc \
2433 maybe-install-strip-ppl \
2434 maybe-install-strip-cloog \
2435 maybe-install-strip-libelf \
455c8f48
RW
2436 maybe-install-strip-gold \
2437 maybe-install-strip-gprof \
455c8f48
RW
2438 maybe-install-strip-intl \
2439 maybe-install-strip-tcl \
2440 maybe-install-strip-itcl \
2441 maybe-install-strip-ld \
2442 maybe-install-strip-libcpp \
2443 maybe-install-strip-libdecnumber \
2444 maybe-install-strip-libgui \
2445 maybe-install-strip-libiberty \
2446 maybe-install-strip-libiconv \
455c8f48 2447 maybe-install-strip-m4 \
455c8f48 2448 maybe-install-strip-readline \
455c8f48
RW
2449 maybe-install-strip-sid \
2450 maybe-install-strip-sim \
455c8f48 2451 maybe-install-strip-texinfo \
455c8f48
RW
2452 maybe-install-strip-zlib \
2453 maybe-install-strip-gdb \
2454 maybe-install-strip-expect \
2455 maybe-install-strip-guile \
2456 maybe-install-strip-tk \
2457 maybe-install-strip-libtermcap \
2458 maybe-install-strip-utils \
2459 maybe-install-strip-gnattools \
2460 maybe-install-strip-lto-plugin
2461
2462.PHONY: install-strip-target
2463install-strip-target: \
2464 maybe-install-strip-target-libstdc++-v3 \
2465 maybe-install-strip-target-libmudflap \
2466 maybe-install-strip-target-libssp \
2467 maybe-install-strip-target-newlib \
2468 maybe-install-strip-target-libgcc \
2469 maybe-install-strip-target-libquadmath \
2470 maybe-install-strip-target-libgfortran \
2471 maybe-install-strip-target-libobjc \
e655d2bf 2472 maybe-install-strip-target-libgo \
455c8f48
RW
2473 maybe-install-strip-target-libtermcap \
2474 maybe-install-strip-target-winsup \
2475 maybe-install-strip-target-libgloss \
455c8f48
RW
2476 maybe-install-strip-target-libffi \
2477 maybe-install-strip-target-libjava \
2478 maybe-install-strip-target-zlib \
2479 maybe-install-strip-target-boehm-gc \
455c8f48
RW
2480 maybe-install-strip-target-rda \
2481 maybe-install-strip-target-libada \
2482 maybe-install-strip-target-libgomp
2483
2484
295f4e42 2485### other supporting targets
1358ccea 2486
295f4e42
NN
2487MAKEDIRS= \
2488 $(DESTDIR)$(prefix) \
2489 $(DESTDIR)$(exec_prefix)
2490.PHONY: installdirs
2491installdirs: mkinstalldirs
2492 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1358ccea 2493
295f4e42
NN
2494dir.info: do-install-info
2495 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2496 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2497 mv -f dir.info.new dir.info ; \
2498 else true ; \
2499 fi
1358ccea 2500
295f4e42
NN
2501dist:
2502 @echo "Building a full distribution of this tree isn't done"
05750653 2503 @echo "via 'make dist'. Check out the etc/ subdirectory"
1358ccea 2504
295f4e42 2505etags tags: TAGS
1358ccea 2506
295f4e42
NN
2507# Right now this just builds TAGS in each subdirectory. emacs19 has the
2508# ability to use several tags files at once, so there is probably no need
2509# to combine them into one big TAGS file (like CVS 1.3 does). We could
2510# (if we felt like it) have this Makefile write a piece of elisp which
2511# the user could load to tell emacs19 where all the TAGS files we just
2512# built are.
2513TAGS: do-TAGS
1358ccea 2514
25b42232
PB
2515# ------------------------------------
2516# Macros for configure and all targets
2517# ------------------------------------
2518
2519
2520
2521
2522
295f4e42
NN
2523# --------------------------------------
2524# Modules which run on the build machine
2525# --------------------------------------
1358ccea 2526
25b42232 2527
295f4e42
NN
2528.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2529maybe-configure-build-libiberty:
3ff3adad
PB
2530@if gcc-bootstrap
2531configure-build-libiberty: stage_current
2532@endif gcc-bootstrap
60975492
PB
2533@if build-libiberty
2534maybe-configure-build-libiberty: configure-build-libiberty
cc11cc9b 2535configure-build-libiberty:
f41d6665 2536 @: $(MAKE); $(unstage)
cc11cc9b 2537 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2539 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2540 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
f61428ed 2541 $(BUILD_EXPORTS) \
295f4e42
NN
2542 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2543 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2544 case $(srcdir) in \
215c351a
PB
2545 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2546 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2547 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2548 esac; \
215c351a
PB
2549 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2550 libsrcdir="$$s/libiberty"; \
295f4e42
NN
2551 rm -f no-such-file || : ; \
2552 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2553 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2554 --target=${target_alias} $${srcdiroption} \
1358ccea 2555 || exit 1
60975492 2556@endif build-libiberty
1358ccea 2557
25b42232
PB
2558
2559
ce406537
PB
2560
2561
295f4e42
NN
2562.PHONY: all-build-libiberty maybe-all-build-libiberty
2563maybe-all-build-libiberty:
3ff3adad
PB
2564@if gcc-bootstrap
2565all-build-libiberty: stage_current
2566@endif gcc-bootstrap
60975492 2567@if build-libiberty
7c27e184 2568TARGET-build-libiberty=all
60975492 2569maybe-all-build-libiberty: all-build-libiberty
295f4e42 2570all-build-libiberty: configure-build-libiberty
f41d6665 2571 @: $(MAKE); $(unstage)
295f4e42
NN
2572 @r=`${PWD_COMMAND}`; export r; \
2573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2574 $(BUILD_EXPORTS) \
7c27e184 2575 (cd $(BUILD_SUBDIR)/libiberty && \
f8c33439 2576 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2577 $(TARGET-build-libiberty))
60975492 2578@endif build-libiberty
295f4e42 2579
25b42232
PB
2580
2581
ce406537
PB
2582
2583
23f6b2f9
PB
2584.PHONY: configure-build-bison maybe-configure-build-bison
2585maybe-configure-build-bison:
3ff3adad
PB
2586@if gcc-bootstrap
2587configure-build-bison: stage_current
2588@endif gcc-bootstrap
23f6b2f9
PB
2589@if build-bison
2590maybe-configure-build-bison: configure-build-bison
cc11cc9b 2591configure-build-bison:
f41d6665 2592 @: $(MAKE); $(unstage)
cc11cc9b 2593 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2595 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2596 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
f61428ed 2597 $(BUILD_EXPORTS) \
23f6b2f9
PB
2598 echo Configuring in $(BUILD_SUBDIR)/bison; \
2599 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2600 case $(srcdir) in \
215c351a
PB
2601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2602 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2604 esac; \
215c351a
PB
2605 srcdiroption="--srcdir=$${topdir}/bison"; \
2606 libsrcdir="$$s/bison"; \
23f6b2f9
PB
2607 rm -f no-such-file || : ; \
2608 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2609 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2610 --target=${target_alias} $${srcdiroption} \
23f6b2f9
PB
2611 || exit 1
2612@endif build-bison
2613
25b42232
PB
2614
2615
ce406537
PB
2616
2617
23f6b2f9
PB
2618.PHONY: all-build-bison maybe-all-build-bison
2619maybe-all-build-bison:
3ff3adad
PB
2620@if gcc-bootstrap
2621all-build-bison: stage_current
2622@endif gcc-bootstrap
23f6b2f9 2623@if build-bison
7c27e184 2624TARGET-build-bison=all
23f6b2f9
PB
2625maybe-all-build-bison: all-build-bison
2626all-build-bison: configure-build-bison
f41d6665 2627 @: $(MAKE); $(unstage)
23f6b2f9
PB
2628 @r=`${PWD_COMMAND}`; export r; \
2629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2630 $(BUILD_EXPORTS) \
7c27e184 2631 (cd $(BUILD_SUBDIR)/bison && \
f8c33439 2632 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2633 $(TARGET-build-bison))
23f6b2f9
PB
2634@endif build-bison
2635
25b42232
PB
2636
2637
ce406537
PB
2638
2639
23f6b2f9
PB
2640.PHONY: configure-build-flex maybe-configure-build-flex
2641maybe-configure-build-flex:
3ff3adad
PB
2642@if gcc-bootstrap
2643configure-build-flex: stage_current
2644@endif gcc-bootstrap
23f6b2f9
PB
2645@if build-flex
2646maybe-configure-build-flex: configure-build-flex
cc11cc9b 2647configure-build-flex:
f41d6665 2648 @: $(MAKE); $(unstage)
cc11cc9b 2649 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2651 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2652 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
f61428ed 2653 $(BUILD_EXPORTS) \
23f6b2f9
PB
2654 echo Configuring in $(BUILD_SUBDIR)/flex; \
2655 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2656 case $(srcdir) in \
215c351a
PB
2657 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2658 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2659 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2660 esac; \
215c351a
PB
2661 srcdiroption="--srcdir=$${topdir}/flex"; \
2662 libsrcdir="$$s/flex"; \
23f6b2f9
PB
2663 rm -f no-such-file || : ; \
2664 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2665 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2666 --target=${target_alias} $${srcdiroption} \
23f6b2f9
PB
2667 || exit 1
2668@endif build-flex
2669
25b42232
PB
2670
2671
ce406537
PB
2672
2673
23f6b2f9
PB
2674.PHONY: all-build-flex maybe-all-build-flex
2675maybe-all-build-flex:
3ff3adad
PB
2676@if gcc-bootstrap
2677all-build-flex: stage_current
2678@endif gcc-bootstrap
23f6b2f9 2679@if build-flex
7c27e184 2680TARGET-build-flex=all
23f6b2f9
PB
2681maybe-all-build-flex: all-build-flex
2682all-build-flex: configure-build-flex
f41d6665 2683 @: $(MAKE); $(unstage)
23f6b2f9
PB
2684 @r=`${PWD_COMMAND}`; export r; \
2685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2686 $(BUILD_EXPORTS) \
7c27e184 2687 (cd $(BUILD_SUBDIR)/flex && \
f8c33439 2688 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2689 $(TARGET-build-flex))
23f6b2f9
PB
2690@endif build-flex
2691
25b42232
PB
2692
2693
ce406537
PB
2694
2695
23f6b2f9
PB
2696.PHONY: configure-build-m4 maybe-configure-build-m4
2697maybe-configure-build-m4:
3ff3adad
PB
2698@if gcc-bootstrap
2699configure-build-m4: stage_current
2700@endif gcc-bootstrap
23f6b2f9
PB
2701@if build-m4
2702maybe-configure-build-m4: configure-build-m4
cc11cc9b 2703configure-build-m4:
f41d6665 2704 @: $(MAKE); $(unstage)
cc11cc9b 2705 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2707 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2708 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
f61428ed 2709 $(BUILD_EXPORTS) \
23f6b2f9
PB
2710 echo Configuring in $(BUILD_SUBDIR)/m4; \
2711 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2712 case $(srcdir) in \
215c351a
PB
2713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2714 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2716 esac; \
215c351a
PB
2717 srcdiroption="--srcdir=$${topdir}/m4"; \
2718 libsrcdir="$$s/m4"; \
23f6b2f9
PB
2719 rm -f no-such-file || : ; \
2720 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2721 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2722 --target=${target_alias} $${srcdiroption} \
23f6b2f9
PB
2723 || exit 1
2724@endif build-m4
2725
25b42232
PB
2726
2727
ce406537
PB
2728
2729
23f6b2f9
PB
2730.PHONY: all-build-m4 maybe-all-build-m4
2731maybe-all-build-m4:
3ff3adad
PB
2732@if gcc-bootstrap
2733all-build-m4: stage_current
2734@endif gcc-bootstrap
23f6b2f9 2735@if build-m4
7c27e184 2736TARGET-build-m4=all
23f6b2f9
PB
2737maybe-all-build-m4: all-build-m4
2738all-build-m4: configure-build-m4
f41d6665 2739 @: $(MAKE); $(unstage)
23f6b2f9
PB
2740 @r=`${PWD_COMMAND}`; export r; \
2741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2742 $(BUILD_EXPORTS) \
7c27e184 2743 (cd $(BUILD_SUBDIR)/m4 && \
f8c33439 2744 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2745 $(TARGET-build-m4))
23f6b2f9
PB
2746@endif build-m4
2747
25b42232
PB
2748
2749
ce406537
PB
2750
2751
23f6b2f9
PB
2752.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2753maybe-configure-build-texinfo:
3ff3adad
PB
2754@if gcc-bootstrap
2755configure-build-texinfo: stage_current
2756@endif gcc-bootstrap
23f6b2f9
PB
2757@if build-texinfo
2758maybe-configure-build-texinfo: configure-build-texinfo
cc11cc9b 2759configure-build-texinfo:
f41d6665 2760 @: $(MAKE); $(unstage)
cc11cc9b 2761 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2763 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2764 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
f61428ed 2765 $(BUILD_EXPORTS) \
23f6b2f9
PB
2766 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2767 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2768 case $(srcdir) in \
215c351a
PB
2769 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2770 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2771 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2772 esac; \
215c351a
PB
2773 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2774 libsrcdir="$$s/texinfo"; \
23f6b2f9
PB
2775 rm -f no-such-file || : ; \
2776 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2777 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2778 --target=${target_alias} $${srcdiroption} \
23f6b2f9
PB
2779 || exit 1
2780@endif build-texinfo
2781
25b42232
PB
2782
2783
ce406537
PB
2784
2785
23f6b2f9
PB
2786.PHONY: all-build-texinfo maybe-all-build-texinfo
2787maybe-all-build-texinfo:
3ff3adad
PB
2788@if gcc-bootstrap
2789all-build-texinfo: stage_current
2790@endif gcc-bootstrap
23f6b2f9 2791@if build-texinfo
7c27e184 2792TARGET-build-texinfo=all
23f6b2f9
PB
2793maybe-all-build-texinfo: all-build-texinfo
2794all-build-texinfo: configure-build-texinfo
f41d6665 2795 @: $(MAKE); $(unstage)
23f6b2f9
PB
2796 @r=`${PWD_COMMAND}`; export r; \
2797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2798 $(BUILD_EXPORTS) \
7c27e184 2799 (cd $(BUILD_SUBDIR)/texinfo && \
f8c33439 2800 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2801 $(TARGET-build-texinfo))
23f6b2f9
PB
2802@endif build-texinfo
2803
25b42232
PB
2804
2805
ce406537
PB
2806
2807
71b5d516
PB
2808.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2809maybe-configure-build-fixincludes:
3ff3adad
PB
2810@if gcc-bootstrap
2811configure-build-fixincludes: stage_current
2812@endif gcc-bootstrap
71b5d516
PB
2813@if build-fixincludes
2814maybe-configure-build-fixincludes: configure-build-fixincludes
cc11cc9b 2815configure-build-fixincludes:
f41d6665 2816 @: $(MAKE); $(unstage)
cc11cc9b 2817 @r=`${PWD_COMMAND}`; export r; \
71b5d516 2818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2819 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2820 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
f61428ed 2821 $(BUILD_EXPORTS) \
71b5d516
PB
2822 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2823 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2824 case $(srcdir) in \
215c351a
PB
2825 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2826 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2827 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
71b5d516 2828 esac; \
215c351a
PB
2829 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2830 libsrcdir="$$s/fixincludes"; \
71b5d516
PB
2831 rm -f no-such-file || : ; \
2832 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2833 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2834 --target=${target_alias} $${srcdiroption} \
71b5d516
PB
2835 || exit 1
2836@endif build-fixincludes
2837
25b42232
PB
2838
2839
ce406537
PB
2840
2841
71b5d516
PB
2842.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2843maybe-all-build-fixincludes:
3ff3adad
PB
2844@if gcc-bootstrap
2845all-build-fixincludes: stage_current
2846@endif gcc-bootstrap
71b5d516
PB
2847@if build-fixincludes
2848TARGET-build-fixincludes=all
2849maybe-all-build-fixincludes: all-build-fixincludes
2850all-build-fixincludes: configure-build-fixincludes
f41d6665 2851 @: $(MAKE); $(unstage)
71b5d516
PB
2852 @r=`${PWD_COMMAND}`; export r; \
2853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 2854 $(BUILD_EXPORTS) \
71b5d516 2855 (cd $(BUILD_SUBDIR)/fixincludes && \
f8c33439 2856 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
1c8bd6a3 2857 $(TARGET-build-fixincludes))
71b5d516
PB
2858@endif build-fixincludes
2859
1358ccea 2860
25b42232 2861
ce406537
PB
2862
2863
295f4e42
NN
2864# --------------------------------------
2865# Modules which run on the host machine
2866# --------------------------------------
1358ccea 2867
25b42232 2868
85bfb75e
JM
2869.PHONY: configure-bfd maybe-configure-bfd
2870maybe-configure-bfd:
3ff3adad 2871@if gcc-bootstrap
85bfb75e 2872configure-bfd: stage_current
3ff3adad 2873@endif gcc-bootstrap
85bfb75e
JM
2874@if bfd
2875maybe-configure-bfd: configure-bfd
2876configure-bfd:
cc11cc9b 2877 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
2879 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2880 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
f61428ed 2881 $(HOST_EXPORTS) \
85bfb75e
JM
2882 echo Configuring in $(HOST_SUBDIR)/bfd; \
2883 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
295f4e42 2884 case $(srcdir) in \
215c351a 2885 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 2886 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
215c351a 2887 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2888 esac; \
85bfb75e
JM
2889 srcdiroption="--srcdir=$${topdir}/bfd"; \
2890 libsrcdir="$$s/bfd"; \
295f4e42 2891 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
2892 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2893 --target=${target_alias} $${srcdiroption} \
1358ccea 2894 || exit 1
85bfb75e 2895@endif bfd
25b42232 2896
ce406537
PB
2897
2898
85bfb75e
JM
2899.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
2900maybe-configure-stage1-bfd:
2901@if bfd-bootstrap
2902maybe-configure-stage1-bfd: configure-stage1-bfd
2903configure-stage1-bfd:
2904 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
2905 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
295f4e42
NN
2906 @r=`${PWD_COMMAND}`; export r; \
2907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
2908 TFLAGS="$(STAGE1_TFLAGS)"; \
2909 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2910 $(HOST_EXPORTS) \
2911 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
2912 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
2913 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
2914 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
2915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2916 cd $(HOST_SUBDIR)/bfd || exit 1; \
2917 case $(srcdir) in \
2918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2919 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2921 esac; \
2922 srcdiroption="--srcdir=$${topdir}/bfd"; \
2923 libsrcdir="$$s/bfd"; \
2924 $(SHELL) $${libsrcdir}/configure \
2925 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2926 --target=${target_alias} $${srcdiroption} \
2927 $(STAGE1_CONFIGURE_FLAGS)
2928@endif bfd-bootstrap
1358ccea 2929
85bfb75e
JM
2930.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
2931maybe-configure-stage2-bfd:
2932@if bfd-bootstrap
2933maybe-configure-stage2-bfd: configure-stage2-bfd
2934configure-stage2-bfd:
2935 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
2936 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
295f4e42 2937 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
2939 TFLAGS="$(STAGE2_TFLAGS)"; \
2940 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4fc4dd12 2941 $(HOST_EXPORTS) \
85bfb75e
JM
2942 $(POSTSTAGE1_HOST_EXPORTS) \
2943 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
2944 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
2945 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
2946 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
2947 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2948 cd $(HOST_SUBDIR)/bfd || exit 1; \
2949 case $(srcdir) in \
2950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2951 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2953 esac; \
2954 srcdiroption="--srcdir=$${topdir}/bfd"; \
2955 libsrcdir="$$s/bfd"; \
2956 $(SHELL) $${libsrcdir}/configure \
2957 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2958 --target=${target_alias} $${srcdiroption} \
2959 --with-build-libsubdir=$(HOST_SUBDIR) \
2960 $(STAGE2_CONFIGURE_FLAGS)
2961@endif bfd-bootstrap
1358ccea 2962
85bfb75e
JM
2963.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
2964maybe-configure-stage3-bfd:
2965@if bfd-bootstrap
2966maybe-configure-stage3-bfd: configure-stage3-bfd
2967configure-stage3-bfd:
2968 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
2969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
295f4e42 2970 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
2972 TFLAGS="$(STAGE3_TFLAGS)"; \
2973 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4fc4dd12 2974 $(HOST_EXPORTS) \
85bfb75e
JM
2975 $(POSTSTAGE1_HOST_EXPORTS) \
2976 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
2977 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
2978 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
2979 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
2980 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
2981 cd $(HOST_SUBDIR)/bfd || exit 1; \
2982 case $(srcdir) in \
2983 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2984 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
2985 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2986 esac; \
2987 srcdiroption="--srcdir=$${topdir}/bfd"; \
2988 libsrcdir="$$s/bfd"; \
2989 $(SHELL) $${libsrcdir}/configure \
2990 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2991 --target=${target_alias} $${srcdiroption} \
2992 --with-build-libsubdir=$(HOST_SUBDIR) \
2993 $(STAGE3_CONFIGURE_FLAGS)
2994@endif bfd-bootstrap
455c8f48 2995
85bfb75e
JM
2996.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
2997maybe-configure-stage4-bfd:
2998@if bfd-bootstrap
2999maybe-configure-stage4-bfd: configure-stage4-bfd
3000configure-stage4-bfd:
3001 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3002 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
455c8f48
RW
3003 @r=`${PWD_COMMAND}`; export r; \
3004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3005 TFLAGS="$(STAGE4_TFLAGS)"; \
3006 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
455c8f48 3007 $(HOST_EXPORTS) \
85bfb75e
JM
3008 $(POSTSTAGE1_HOST_EXPORTS) \
3009 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3010 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3011 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3012 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3013 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3014 cd $(HOST_SUBDIR)/bfd || exit 1; \
3015 case $(srcdir) in \
3016 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3017 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3018 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3019 esac; \
3020 srcdiroption="--srcdir=$${topdir}/bfd"; \
3021 libsrcdir="$$s/bfd"; \
3022 $(SHELL) $${libsrcdir}/configure \
3023 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3024 --target=${target_alias} $${srcdiroption} \
3025 --with-build-libsubdir=$(HOST_SUBDIR) \
3026 $(STAGE4_CONFIGURE_FLAGS)
3027@endif bfd-bootstrap
295f4e42 3028
85bfb75e
JM
3029.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3030maybe-configure-stageprofile-bfd:
3031@if bfd-bootstrap
3032maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3033configure-stageprofile-bfd:
3034 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3035 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3036 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3038 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3039 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4fc4dd12 3040 $(HOST_EXPORTS) \
85bfb75e
JM
3041 $(POSTSTAGE1_HOST_EXPORTS) \
3042 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3043 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3044 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
3045 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3046 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3047 cd $(HOST_SUBDIR)/bfd || exit 1; \
3048 case $(srcdir) in \
3049 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3050 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3051 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3052 esac; \
3053 srcdiroption="--srcdir=$${topdir}/bfd"; \
3054 libsrcdir="$$s/bfd"; \
3055 $(SHELL) $${libsrcdir}/configure \
3056 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3057 --target=${target_alias} $${srcdiroption} \
3058 --with-build-libsubdir=$(HOST_SUBDIR) \
3059 $(STAGEprofile_CONFIGURE_FLAGS)
3060@endif bfd-bootstrap
1358ccea 3061
85bfb75e
JM
3062.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3063maybe-configure-stagefeedback-bfd:
3064@if bfd-bootstrap
3065maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3066configure-stagefeedback-bfd:
3067 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3069 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3071 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3072 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4fc4dd12 3073 $(HOST_EXPORTS) \
85bfb75e
JM
3074 $(POSTSTAGE1_HOST_EXPORTS) \
3075 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3076 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3077 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
3078 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3080 cd $(HOST_SUBDIR)/bfd || exit 1; \
3081 case $(srcdir) in \
3082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3083 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3085 esac; \
3086 srcdiroption="--srcdir=$${topdir}/bfd"; \
3087 libsrcdir="$$s/bfd"; \
3088 $(SHELL) $${libsrcdir}/configure \
3089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3090 --target=${target_alias} $${srcdiroption} \
3091 --with-build-libsubdir=$(HOST_SUBDIR) \
3092 $(STAGEfeedback_CONFIGURE_FLAGS)
3093@endif bfd-bootstrap
1358ccea 3094
b5422ad7 3095
b5422ad7 3096
b5422ad7 3097
f87a2b2e 3098
85bfb75e
JM
3099.PHONY: all-bfd maybe-all-bfd
3100maybe-all-bfd:
3101@if gcc-bootstrap
3102all-bfd: stage_current
3103@endif gcc-bootstrap
3104@if bfd
3105TARGET-bfd=all
3106maybe-all-bfd: all-bfd
3107all-bfd: configure-bfd
3108 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 3109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3110 $(HOST_EXPORTS) \
3111 (cd $(HOST_SUBDIR)/bfd && \
3112 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3113 $(TARGET-bfd))
3114@endif bfd
f87a2b2e 3115
f87a2b2e 3116
1358ccea 3117
85bfb75e
JM
3118.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3119.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3120maybe-all-stage1-bfd:
3121maybe-clean-stage1-bfd:
3122@if bfd-bootstrap
3123maybe-all-stage1-bfd: all-stage1-bfd
3124all-stage1: all-stage1-bfd
3125TARGET-stage1-bfd = $(TARGET-bfd)
3126all-stage1-bfd: configure-stage1-bfd
3127 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3128 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3130 TFLAGS="$(STAGE1_TFLAGS)"; \
3131 $(HOST_EXPORTS) \
3132 cd $(HOST_SUBDIR)/bfd && \
3133 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3134 CFLAGS="$(STAGE1_CFLAGS)" \
3135 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3136 LIBCFLAGS="$(LIBCFLAGS)" \
3137 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3138 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3139 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3140 $(EXTRA_HOST_FLAGS) \
3141 TFLAGS="$(STAGE1_TFLAGS)" \
3142 $(TARGET-stage1-bfd)
1358ccea 3143
85bfb75e
JM
3144maybe-clean-stage1-bfd: clean-stage1-bfd
3145clean-stage1: clean-stage1-bfd
3146clean-stage1-bfd:
3147 @if [ $(current_stage) = stage1 ]; then \
3148 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3149 else \
3150 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3151 $(MAKE) stage1-start; \
3152 fi; \
3153 cd $(HOST_SUBDIR)/bfd && \
3154 $(MAKE) $(EXTRA_HOST_FLAGS) \
3155 clean
3156@endif bfd-bootstrap
1358ccea 3157
1358ccea 3158
85bfb75e
JM
3159.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3160.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3161maybe-all-stage2-bfd:
3162maybe-clean-stage2-bfd:
3163@if bfd-bootstrap
3164maybe-all-stage2-bfd: all-stage2-bfd
3165all-stage2: all-stage2-bfd
3166TARGET-stage2-bfd = $(TARGET-bfd)
3167all-stage2-bfd: configure-stage2-bfd
3168 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3169 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 3171 TFLAGS="$(STAGE2_TFLAGS)"; \
4fc4dd12 3172 $(HOST_EXPORTS) \
85bfb75e
JM
3173 $(POSTSTAGE1_HOST_EXPORTS) \
3174 cd $(HOST_SUBDIR)/bfd && \
3175 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3176 CFLAGS="$(STAGE2_CFLAGS)" \
3177 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3178 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3179 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3180 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3181 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3182 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3183 TFLAGS="$(STAGE2_TFLAGS)" \
3184 $(TARGET-stage2-bfd)
1358ccea 3185
85bfb75e
JM
3186maybe-clean-stage2-bfd: clean-stage2-bfd
3187clean-stage2: clean-stage2-bfd
3188clean-stage2-bfd:
3189 @if [ $(current_stage) = stage2 ]; then \
3190 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3191 else \
3192 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3193 $(MAKE) stage2-start; \
3194 fi; \
3195 cd $(HOST_SUBDIR)/bfd && \
3196 $(MAKE) $(EXTRA_HOST_FLAGS) \
3197 $(POSTSTAGE1_FLAGS_TO_PASS) \
3198 clean
3199@endif bfd-bootstrap
1358ccea 3200
9c4d2493 3201
85bfb75e
JM
3202.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3203.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3204maybe-all-stage3-bfd:
3205maybe-clean-stage3-bfd:
3206@if bfd-bootstrap
3207maybe-all-stage3-bfd: all-stage3-bfd
3208all-stage3: all-stage3-bfd
3209TARGET-stage3-bfd = $(TARGET-bfd)
3210all-stage3-bfd: configure-stage3-bfd
3211 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3212 @r=`${PWD_COMMAND}`; export r; \
9c4d2493 3213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 3214 TFLAGS="$(STAGE3_TFLAGS)"; \
9c4d2493 3215 $(HOST_EXPORTS) \
85bfb75e
JM
3216 $(POSTSTAGE1_HOST_EXPORTS) \
3217 cd $(HOST_SUBDIR)/bfd && \
3218 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3219 CFLAGS="$(STAGE3_CFLAGS)" \
3220 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3221 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3222 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3223 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3224 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3225 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3226 TFLAGS="$(STAGE3_TFLAGS)" \
3227 $(TARGET-stage3-bfd)
9c4d2493 3228
85bfb75e
JM
3229maybe-clean-stage3-bfd: clean-stage3-bfd
3230clean-stage3: clean-stage3-bfd
3231clean-stage3-bfd:
3232 @if [ $(current_stage) = stage3 ]; then \
3233 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3234 else \
3235 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3236 $(MAKE) stage3-start; \
3237 fi; \
3238 cd $(HOST_SUBDIR)/bfd && \
3239 $(MAKE) $(EXTRA_HOST_FLAGS) \
3240 $(POSTSTAGE1_FLAGS_TO_PASS) \
3241 clean
3242@endif bfd-bootstrap
9c4d2493 3243
65d6e994 3244
85bfb75e
JM
3245.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3246.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3247maybe-all-stage4-bfd:
3248maybe-clean-stage4-bfd:
3249@if bfd-bootstrap
3250maybe-all-stage4-bfd: all-stage4-bfd
3251all-stage4: all-stage4-bfd
3252TARGET-stage4-bfd = $(TARGET-bfd)
3253all-stage4-bfd: configure-stage4-bfd
3254 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3255 @r=`${PWD_COMMAND}`; export r; \
65d6e994 3256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 3257 TFLAGS="$(STAGE4_TFLAGS)"; \
65d6e994 3258 $(HOST_EXPORTS) \
85bfb75e
JM
3259 $(POSTSTAGE1_HOST_EXPORTS) \
3260 cd $(HOST_SUBDIR)/bfd && \
3261 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3262 CFLAGS="$(STAGE4_CFLAGS)" \
3263 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3264 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3265 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3266 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3267 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3268 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3269 TFLAGS="$(STAGE4_TFLAGS)" \
3270 $(TARGET-stage4-bfd)
65d6e994 3271
85bfb75e
JM
3272maybe-clean-stage4-bfd: clean-stage4-bfd
3273clean-stage4: clean-stage4-bfd
3274clean-stage4-bfd:
3275 @if [ $(current_stage) = stage4 ]; then \
3276 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3277 else \
3278 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3279 $(MAKE) stage4-start; \
3280 fi; \
3281 cd $(HOST_SUBDIR)/bfd && \
3282 $(MAKE) $(EXTRA_HOST_FLAGS) \
3283 $(POSTSTAGE1_FLAGS_TO_PASS) \
3284 clean
3285@endif bfd-bootstrap
65d6e994 3286
1358ccea 3287
85bfb75e
JM
3288.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3289.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3290maybe-all-stageprofile-bfd:
3291maybe-clean-stageprofile-bfd:
3292@if bfd-bootstrap
3293maybe-all-stageprofile-bfd: all-stageprofile-bfd
3294all-stageprofile: all-stageprofile-bfd
3295TARGET-stageprofile-bfd = $(TARGET-bfd)
3296all-stageprofile-bfd: configure-stageprofile-bfd
3297 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3298 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 3300 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 3301 $(HOST_EXPORTS) \
85bfb75e
JM
3302 $(POSTSTAGE1_HOST_EXPORTS) \
3303 cd $(HOST_SUBDIR)/bfd && \
3304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3305 CFLAGS="$(STAGEprofile_CFLAGS)" \
3306 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3307 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3308 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3309 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3310 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3311 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3312 TFLAGS="$(STAGEprofile_TFLAGS)" \
3313 $(TARGET-stageprofile-bfd)
1358ccea 3314
85bfb75e
JM
3315maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3316clean-stageprofile: clean-stageprofile-bfd
3317clean-stageprofile-bfd:
3318 @if [ $(current_stage) = stageprofile ]; then \
3319 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3320 else \
3321 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3322 $(MAKE) stageprofile-start; \
3323 fi; \
3324 cd $(HOST_SUBDIR)/bfd && \
3325 $(MAKE) $(EXTRA_HOST_FLAGS) \
3326 $(POSTSTAGE1_FLAGS_TO_PASS) \
3327 clean
3328@endif bfd-bootstrap
1358ccea 3329
25b42232 3330
85bfb75e
JM
3331.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3332.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3333maybe-all-stagefeedback-bfd:
3334maybe-clean-stagefeedback-bfd:
3335@if bfd-bootstrap
3336maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3337all-stagefeedback: all-stagefeedback-bfd
3338TARGET-stagefeedback-bfd = $(TARGET-bfd)
3339all-stagefeedback-bfd: configure-stagefeedback-bfd
3340 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 3341 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3343 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3344 $(HOST_EXPORTS) \
3345 $(POSTSTAGE1_HOST_EXPORTS) \
3346 cd $(HOST_SUBDIR)/bfd && \
3347 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3348 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3349 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3350 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3351 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3352 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3353 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3354 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3355 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3356 $(TARGET-stagefeedback-bfd)
ce406537 3357
85bfb75e
JM
3358maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3359clean-stagefeedback: clean-stagefeedback-bfd
3360clean-stagefeedback-bfd:
3361 @if [ $(current_stage) = stagefeedback ]; then \
3362 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3363 else \
3364 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3365 $(MAKE) stagefeedback-start; \
3366 fi; \
3367 cd $(HOST_SUBDIR)/bfd && \
3368 $(MAKE) $(EXTRA_HOST_FLAGS) \
3369 $(POSTSTAGE1_FLAGS_TO_PASS) \
3370 clean
3371@endif bfd-bootstrap
ce406537 3372
1358ccea 3373
25b42232 3374
ce406537
PB
3375
3376
85bfb75e
JM
3377.PHONY: check-bfd maybe-check-bfd
3378maybe-check-bfd:
3379@if bfd
3380maybe-check-bfd: check-bfd
1358ccea 3381
85bfb75e 3382check-bfd:
f41d6665 3383 @: $(MAKE); $(unstage)
295f4e42 3384 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3386 $(HOST_EXPORTS) \
85bfb75e 3387 (cd $(HOST_SUBDIR)/bfd && \
215c351a 3388 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3389
85bfb75e 3390@endif bfd
1358ccea 3391
85bfb75e
JM
3392.PHONY: install-bfd maybe-install-bfd
3393maybe-install-bfd:
3394@if bfd
3395maybe-install-bfd: install-bfd
1358ccea 3396
85bfb75e 3397install-bfd: installdirs
f41d6665 3398 @: $(MAKE); $(unstage)
295f4e42 3399 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3401 $(HOST_EXPORTS) \
85bfb75e 3402 (cd $(HOST_SUBDIR)/bfd && \
ace9ac7b 3403 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3404
85bfb75e 3405@endif bfd
1358ccea 3406
85bfb75e
JM
3407.PHONY: install-strip-bfd maybe-install-strip-bfd
3408maybe-install-strip-bfd:
3409@if bfd
3410maybe-install-strip-bfd: install-strip-bfd
455c8f48 3411
85bfb75e 3412install-strip-bfd: installdirs
455c8f48
RW
3413 @: $(MAKE); $(unstage)
3414 @r=`${PWD_COMMAND}`; export r; \
3415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3416 $(HOST_EXPORTS) \
85bfb75e 3417 (cd $(HOST_SUBDIR)/bfd && \
455c8f48
RW
3418 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3419
85bfb75e 3420@endif bfd
455c8f48 3421
b5422ad7 3422# Other targets (info, dvi, pdf, etc.)
1358ccea 3423
85bfb75e
JM
3424.PHONY: maybe-info-bfd info-bfd
3425maybe-info-bfd:
3426@if bfd
3427maybe-info-bfd: info-bfd
295f4e42 3428
85bfb75e
JM
3429info-bfd: \
3430 configure-bfd
3431 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3432 r=`${PWD_COMMAND}`; export r; \
3433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3434 $(HOST_EXPORTS) \
d32ab992 3435 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3437 done; \
85bfb75e
JM
3438 echo "Doing info in bfd" ; \
3439 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3442 "RANLIB=$${RANLIB}" \
901119ae 3443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3444 info) \
1358ccea
NN
3445 || exit 1
3446
85bfb75e 3447@endif bfd
1358ccea 3448
85bfb75e
JM
3449.PHONY: maybe-dvi-bfd dvi-bfd
3450maybe-dvi-bfd:
3451@if bfd
3452maybe-dvi-bfd: dvi-bfd
1358ccea 3453
85bfb75e
JM
3454dvi-bfd: \
3455 configure-bfd
3456 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3457 r=`${PWD_COMMAND}`; export r; \
3458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3459 $(HOST_EXPORTS) \
d32ab992 3460 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3462 done; \
85bfb75e
JM
3463 echo "Doing dvi in bfd" ; \
3464 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3467 "RANLIB=$${RANLIB}" \
901119ae 3468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3469 dvi) \
1358ccea
NN
3470 || exit 1
3471
85bfb75e 3472@endif bfd
1358ccea 3473
85bfb75e
JM
3474.PHONY: maybe-pdf-bfd pdf-bfd
3475maybe-pdf-bfd:
3476@if bfd
3477maybe-pdf-bfd: pdf-bfd
b5422ad7 3478
85bfb75e
JM
3479pdf-bfd: \
3480 configure-bfd
3481 @[ -f ./bfd/Makefile ] || exit 0; \
b5422ad7
BM
3482 r=`${PWD_COMMAND}`; export r; \
3483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3484 $(HOST_EXPORTS) \
3485 for flag in $(EXTRA_HOST_FLAGS) ; do \
3486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3487 done; \
85bfb75e
JM
3488 echo "Doing pdf in bfd" ; \
3489 (cd $(HOST_SUBDIR)/bfd && \
b5422ad7
BM
3490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3492 "RANLIB=$${RANLIB}" \
901119ae 3493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
3494 pdf) \
3495 || exit 1
3496
85bfb75e 3497@endif bfd
b5422ad7 3498
85bfb75e
JM
3499.PHONY: maybe-html-bfd html-bfd
3500maybe-html-bfd:
3501@if bfd
3502maybe-html-bfd: html-bfd
f87a2b2e 3503
85bfb75e
JM
3504html-bfd: \
3505 configure-bfd
3506 @[ -f ./bfd/Makefile ] || exit 0; \
f87a2b2e
MS
3507 r=`${PWD_COMMAND}`; export r; \
3508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3509 $(HOST_EXPORTS) \
3510 for flag in $(EXTRA_HOST_FLAGS) ; do \
3511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3512 done; \
85bfb75e
JM
3513 echo "Doing html in bfd" ; \
3514 (cd $(HOST_SUBDIR)/bfd && \
f87a2b2e
MS
3515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3517 "RANLIB=$${RANLIB}" \
901119ae 3518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
3519 html) \
3520 || exit 1
3521
85bfb75e 3522@endif bfd
f87a2b2e 3523
85bfb75e
JM
3524.PHONY: maybe-TAGS-bfd TAGS-bfd
3525maybe-TAGS-bfd:
3526@if bfd
3527maybe-TAGS-bfd: TAGS-bfd
1358ccea 3528
85bfb75e
JM
3529TAGS-bfd: \
3530 configure-bfd
3531 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3532 r=`${PWD_COMMAND}`; export r; \
3533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3534 $(HOST_EXPORTS) \
d32ab992 3535 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3537 done; \
85bfb75e
JM
3538 echo "Doing TAGS in bfd" ; \
3539 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3542 "RANLIB=$${RANLIB}" \
901119ae 3543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3544 TAGS) \
1358ccea
NN
3545 || exit 1
3546
85bfb75e 3547@endif bfd
1358ccea 3548
85bfb75e
JM
3549.PHONY: maybe-install-info-bfd install-info-bfd
3550maybe-install-info-bfd:
3551@if bfd
3552maybe-install-info-bfd: install-info-bfd
1358ccea 3553
85bfb75e
JM
3554install-info-bfd: \
3555 configure-bfd \
3556 info-bfd
3557 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3558 r=`${PWD_COMMAND}`; export r; \
3559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3560 $(HOST_EXPORTS) \
d32ab992 3561 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3563 done; \
85bfb75e
JM
3564 echo "Doing install-info in bfd" ; \
3565 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3568 "RANLIB=$${RANLIB}" \
901119ae 3569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3570 install-info) \
1358ccea
NN
3571 || exit 1
3572
85bfb75e 3573@endif bfd
1358ccea 3574
85bfb75e
JM
3575.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3576maybe-install-pdf-bfd:
3577@if bfd
3578maybe-install-pdf-bfd: install-pdf-bfd
9c4d2493 3579
85bfb75e
JM
3580install-pdf-bfd: \
3581 configure-bfd \
3582 pdf-bfd
3583 @[ -f ./bfd/Makefile ] || exit 0; \
9c4d2493
BM
3584 r=`${PWD_COMMAND}`; export r; \
3585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3586 $(HOST_EXPORTS) \
3587 for flag in $(EXTRA_HOST_FLAGS) ; do \
3588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3589 done; \
85bfb75e
JM
3590 echo "Doing install-pdf in bfd" ; \
3591 (cd $(HOST_SUBDIR)/bfd && \
9c4d2493
BM
3592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3594 "RANLIB=$${RANLIB}" \
901119ae 3595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
3596 install-pdf) \
3597 || exit 1
3598
85bfb75e 3599@endif bfd
9c4d2493 3600
85bfb75e
JM
3601.PHONY: maybe-install-html-bfd install-html-bfd
3602maybe-install-html-bfd:
3603@if bfd
3604maybe-install-html-bfd: install-html-bfd
65d6e994 3605
85bfb75e
JM
3606install-html-bfd: \
3607 configure-bfd \
3608 html-bfd
3609 @[ -f ./bfd/Makefile ] || exit 0; \
65d6e994
CD
3610 r=`${PWD_COMMAND}`; export r; \
3611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3612 $(HOST_EXPORTS) \
3613 for flag in $(EXTRA_HOST_FLAGS) ; do \
3614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3615 done; \
85bfb75e
JM
3616 echo "Doing install-html in bfd" ; \
3617 (cd $(HOST_SUBDIR)/bfd && \
65d6e994
CD
3618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3620 "RANLIB=$${RANLIB}" \
901119ae 3621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
3622 install-html) \
3623 || exit 1
3624
85bfb75e 3625@endif bfd
65d6e994 3626
85bfb75e
JM
3627.PHONY: maybe-installcheck-bfd installcheck-bfd
3628maybe-installcheck-bfd:
3629@if bfd
3630maybe-installcheck-bfd: installcheck-bfd
1358ccea 3631
85bfb75e
JM
3632installcheck-bfd: \
3633 configure-bfd
3634 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3635 r=`${PWD_COMMAND}`; export r; \
3636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3637 $(HOST_EXPORTS) \
d32ab992 3638 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3640 done; \
85bfb75e
JM
3641 echo "Doing installcheck in bfd" ; \
3642 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3645 "RANLIB=$${RANLIB}" \
901119ae 3646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3647 installcheck) \
1358ccea
NN
3648 || exit 1
3649
85bfb75e 3650@endif bfd
1358ccea 3651
85bfb75e
JM
3652.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3653maybe-mostlyclean-bfd:
3654@if bfd
3655maybe-mostlyclean-bfd: mostlyclean-bfd
1358ccea 3656
85bfb75e
JM
3657mostlyclean-bfd:
3658 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3659 r=`${PWD_COMMAND}`; export r; \
3660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3661 $(HOST_EXPORTS) \
d32ab992 3662 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3664 done; \
85bfb75e
JM
3665 echo "Doing mostlyclean in bfd" ; \
3666 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3669 "RANLIB=$${RANLIB}" \
901119ae 3670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3671 mostlyclean) \
1358ccea
NN
3672 || exit 1
3673
85bfb75e 3674@endif bfd
1358ccea 3675
85bfb75e
JM
3676.PHONY: maybe-clean-bfd clean-bfd
3677maybe-clean-bfd:
3678@if bfd
3679maybe-clean-bfd: clean-bfd
1358ccea 3680
85bfb75e
JM
3681clean-bfd:
3682 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3683 r=`${PWD_COMMAND}`; export r; \
3684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3685 $(HOST_EXPORTS) \
d32ab992 3686 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3688 done; \
85bfb75e
JM
3689 echo "Doing clean in bfd" ; \
3690 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3693 "RANLIB=$${RANLIB}" \
901119ae 3694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3695 clean) \
1358ccea
NN
3696 || exit 1
3697
85bfb75e 3698@endif bfd
1358ccea 3699
85bfb75e
JM
3700.PHONY: maybe-distclean-bfd distclean-bfd
3701maybe-distclean-bfd:
3702@if bfd
3703maybe-distclean-bfd: distclean-bfd
1358ccea 3704
85bfb75e
JM
3705distclean-bfd:
3706 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3707 r=`${PWD_COMMAND}`; export r; \
3708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3709 $(HOST_EXPORTS) \
d32ab992 3710 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3712 done; \
85bfb75e
JM
3713 echo "Doing distclean in bfd" ; \
3714 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3717 "RANLIB=$${RANLIB}" \
901119ae 3718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3719 distclean) \
1358ccea
NN
3720 || exit 1
3721
85bfb75e 3722@endif bfd
1358ccea 3723
85bfb75e
JM
3724.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3725maybe-maintainer-clean-bfd:
3726@if bfd
3727maybe-maintainer-clean-bfd: maintainer-clean-bfd
1358ccea 3728
85bfb75e
JM
3729maintainer-clean-bfd:
3730 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
3731 r=`${PWD_COMMAND}`; export r; \
3732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3733 $(HOST_EXPORTS) \
d32ab992 3734 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3736 done; \
85bfb75e
JM
3737 echo "Doing maintainer-clean in bfd" ; \
3738 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
3739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3741 "RANLIB=$${RANLIB}" \
901119ae 3742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 3743 maintainer-clean) \
1358ccea
NN
3744 || exit 1
3745
85bfb75e 3746@endif bfd
1358ccea 3747
1358ccea 3748
25b42232 3749
85bfb75e
JM
3750.PHONY: configure-opcodes maybe-configure-opcodes
3751maybe-configure-opcodes:
3ff3adad 3752@if gcc-bootstrap
85bfb75e 3753configure-opcodes: stage_current
3ff3adad 3754@endif gcc-bootstrap
85bfb75e
JM
3755@if opcodes
3756maybe-configure-opcodes: configure-opcodes
3757configure-opcodes:
cc11cc9b 3758 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3760 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3761 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
f61428ed 3762 $(HOST_EXPORTS) \
85bfb75e
JM
3763 echo Configuring in $(HOST_SUBDIR)/opcodes; \
3764 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
295f4e42 3765 case $(srcdir) in \
215c351a 3766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 3767 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
215c351a 3768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3769 esac; \
85bfb75e
JM
3770 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3771 libsrcdir="$$s/opcodes"; \
295f4e42 3772 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
3773 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3774 --target=${target_alias} $${srcdiroption} \
1358ccea 3775 || exit 1
85bfb75e 3776@endif opcodes
25b42232 3777
ce406537
PB
3778
3779
85bfb75e
JM
3780.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
3781maybe-configure-stage1-opcodes:
3782@if opcodes-bootstrap
3783maybe-configure-stage1-opcodes: configure-stage1-opcodes
3784configure-stage1-opcodes:
3785 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3786 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
295f4e42
NN
3787 @r=`${PWD_COMMAND}`; export r; \
3788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3789 TFLAGS="$(STAGE1_TFLAGS)"; \
3790 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3791 $(HOST_EXPORTS) \
3792 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3793 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3794 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
3795 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
3796 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3797 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3798 case $(srcdir) in \
3799 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3800 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3801 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3802 esac; \
3803 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3804 libsrcdir="$$s/opcodes"; \
3805 $(SHELL) $${libsrcdir}/configure \
3806 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3807 --target=${target_alias} $${srcdiroption} \
3808 $(STAGE1_CONFIGURE_FLAGS)
3809@endif opcodes-bootstrap
1358ccea 3810
85bfb75e
JM
3811.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
3812maybe-configure-stage2-opcodes:
3813@if opcodes-bootstrap
3814maybe-configure-stage2-opcodes: configure-stage2-opcodes
3815configure-stage2-opcodes:
3816 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3817 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
295f4e42 3818 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3820 TFLAGS="$(STAGE2_TFLAGS)"; \
3821 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4fc4dd12 3822 $(HOST_EXPORTS) \
85bfb75e
JM
3823 $(POSTSTAGE1_HOST_EXPORTS) \
3824 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3825 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3826 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
3827 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
3828 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3829 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3830 case $(srcdir) in \
3831 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3832 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3833 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3834 esac; \
3835 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3836 libsrcdir="$$s/opcodes"; \
3837 $(SHELL) $${libsrcdir}/configure \
3838 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3839 --target=${target_alias} $${srcdiroption} \
3840 --with-build-libsubdir=$(HOST_SUBDIR) \
3841 $(STAGE2_CONFIGURE_FLAGS)
3842@endif opcodes-bootstrap
1358ccea 3843
85bfb75e
JM
3844.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
3845maybe-configure-stage3-opcodes:
3846@if opcodes-bootstrap
3847maybe-configure-stage3-opcodes: configure-stage3-opcodes
3848configure-stage3-opcodes:
3849 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3850 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
295f4e42 3851 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3853 TFLAGS="$(STAGE3_TFLAGS)"; \
3854 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4fc4dd12 3855 $(HOST_EXPORTS) \
85bfb75e
JM
3856 $(POSTSTAGE1_HOST_EXPORTS) \
3857 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3858 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3859 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
3860 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
3861 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3862 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3863 case $(srcdir) in \
3864 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3865 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3866 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3867 esac; \
3868 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3869 libsrcdir="$$s/opcodes"; \
3870 $(SHELL) $${libsrcdir}/configure \
3871 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3872 --target=${target_alias} $${srcdiroption} \
3873 --with-build-libsubdir=$(HOST_SUBDIR) \
3874 $(STAGE3_CONFIGURE_FLAGS)
3875@endif opcodes-bootstrap
455c8f48 3876
85bfb75e
JM
3877.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
3878maybe-configure-stage4-opcodes:
3879@if opcodes-bootstrap
3880maybe-configure-stage4-opcodes: configure-stage4-opcodes
3881configure-stage4-opcodes:
3882 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
455c8f48
RW
3884 @r=`${PWD_COMMAND}`; export r; \
3885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3886 TFLAGS="$(STAGE4_TFLAGS)"; \
3887 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
455c8f48 3888 $(HOST_EXPORTS) \
85bfb75e
JM
3889 $(POSTSTAGE1_HOST_EXPORTS) \
3890 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3891 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3892 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3893 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
3894 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3895 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3896 case $(srcdir) in \
3897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3898 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3900 esac; \
3901 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3902 libsrcdir="$$s/opcodes"; \
3903 $(SHELL) $${libsrcdir}/configure \
3904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3905 --target=${target_alias} $${srcdiroption} \
3906 --with-build-libsubdir=$(HOST_SUBDIR) \
3907 $(STAGE4_CONFIGURE_FLAGS)
3908@endif opcodes-bootstrap
295f4e42 3909
85bfb75e
JM
3910.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
3911maybe-configure-stageprofile-opcodes:
3912@if opcodes-bootstrap
3913maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
3914configure-stageprofile-opcodes:
3915 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3916 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3917 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
3919 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3920 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4fc4dd12 3921 $(HOST_EXPORTS) \
85bfb75e
JM
3922 $(POSTSTAGE1_HOST_EXPORTS) \
3923 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3924 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3925 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
3926 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
3927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3928 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3929 case $(srcdir) in \
3930 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3931 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3932 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3933 esac; \
3934 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3935 libsrcdir="$$s/opcodes"; \
3936 $(SHELL) $${libsrcdir}/configure \
3937 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3938 --target=${target_alias} $${srcdiroption} \
3939 --with-build-libsubdir=$(HOST_SUBDIR) \
3940 $(STAGEprofile_CONFIGURE_FLAGS)
3941@endif opcodes-bootstrap
3942
3943.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
3944maybe-configure-stagefeedback-opcodes:
3945@if opcodes-bootstrap
3946maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
3947configure-stagefeedback-opcodes:
3948 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3949 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
3950 @r=`${PWD_COMMAND}`; export r; \
3951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3952 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3953 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3954 $(HOST_EXPORTS) \
3955 $(POSTSTAGE1_HOST_EXPORTS) \
3956 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3957 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3958 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
3959 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
3960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3961 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3962 case $(srcdir) in \
3963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3964 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3966 esac; \
3967 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3968 libsrcdir="$$s/opcodes"; \
3969 $(SHELL) $${libsrcdir}/configure \
3970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3971 --target=${target_alias} $${srcdiroption} \
3972 --with-build-libsubdir=$(HOST_SUBDIR) \
3973 $(STAGEfeedback_CONFIGURE_FLAGS)
3974@endif opcodes-bootstrap
3975
3976
3977
3978
3979
3980.PHONY: all-opcodes maybe-all-opcodes
3981maybe-all-opcodes:
3982@if gcc-bootstrap
3983all-opcodes: stage_current
3984@endif gcc-bootstrap
3985@if opcodes
3986TARGET-opcodes=all
3987maybe-all-opcodes: all-opcodes
3988all-opcodes: configure-opcodes
3989 @r=`${PWD_COMMAND}`; export r; \
3990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3991 $(HOST_EXPORTS) \
3992 (cd $(HOST_SUBDIR)/opcodes && \
3993 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3994 $(TARGET-opcodes))
3995@endif opcodes
3996
3997
3998
3999.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4000.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4001maybe-all-stage1-opcodes:
4002maybe-clean-stage1-opcodes:
4003@if opcodes-bootstrap
4004maybe-all-stage1-opcodes: all-stage1-opcodes
4005all-stage1: all-stage1-opcodes
4006TARGET-stage1-opcodes = $(TARGET-opcodes)
4007all-stage1-opcodes: configure-stage1-opcodes
4008 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4009 @r=`${PWD_COMMAND}`; export r; \
4010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4011 TFLAGS="$(STAGE1_TFLAGS)"; \
4012 $(HOST_EXPORTS) \
4013 cd $(HOST_SUBDIR)/opcodes && \
4014 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4015 CFLAGS="$(STAGE1_CFLAGS)" \
4016 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4017 LIBCFLAGS="$(LIBCFLAGS)" \
4018 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4019 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4020 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4021 $(EXTRA_HOST_FLAGS) \
4022 TFLAGS="$(STAGE1_TFLAGS)" \
4023 $(TARGET-stage1-opcodes)
4024
4025maybe-clean-stage1-opcodes: clean-stage1-opcodes
4026clean-stage1: clean-stage1-opcodes
4027clean-stage1-opcodes:
4028 @if [ $(current_stage) = stage1 ]; then \
4029 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4030 else \
4031 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4032 $(MAKE) stage1-start; \
4033 fi; \
4034 cd $(HOST_SUBDIR)/opcodes && \
4035 $(MAKE) $(EXTRA_HOST_FLAGS) \
4036 clean
4037@endif opcodes-bootstrap
4038
4039
4040.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4041.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4042maybe-all-stage2-opcodes:
4043maybe-clean-stage2-opcodes:
4044@if opcodes-bootstrap
4045maybe-all-stage2-opcodes: all-stage2-opcodes
4046all-stage2: all-stage2-opcodes
4047TARGET-stage2-opcodes = $(TARGET-opcodes)
4048all-stage2-opcodes: configure-stage2-opcodes
4049 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4050 @r=`${PWD_COMMAND}`; export r; \
4051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4052 TFLAGS="$(STAGE2_TFLAGS)"; \
4053 $(HOST_EXPORTS) \
4054 $(POSTSTAGE1_HOST_EXPORTS) \
4055 cd $(HOST_SUBDIR)/opcodes && \
4056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4057 CFLAGS="$(STAGE2_CFLAGS)" \
4058 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4059 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4064 TFLAGS="$(STAGE2_TFLAGS)" \
4065 $(TARGET-stage2-opcodes)
4066
4067maybe-clean-stage2-opcodes: clean-stage2-opcodes
4068clean-stage2: clean-stage2-opcodes
4069clean-stage2-opcodes:
4070 @if [ $(current_stage) = stage2 ]; then \
4071 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4072 else \
4073 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4074 $(MAKE) stage2-start; \
4075 fi; \
4076 cd $(HOST_SUBDIR)/opcodes && \
4077 $(MAKE) $(EXTRA_HOST_FLAGS) \
4078 $(POSTSTAGE1_FLAGS_TO_PASS) \
4079 clean
4080@endif opcodes-bootstrap
4081
4082
4083.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4084.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4085maybe-all-stage3-opcodes:
4086maybe-clean-stage3-opcodes:
4087@if opcodes-bootstrap
4088maybe-all-stage3-opcodes: all-stage3-opcodes
4089all-stage3: all-stage3-opcodes
4090TARGET-stage3-opcodes = $(TARGET-opcodes)
4091all-stage3-opcodes: configure-stage3-opcodes
4092 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4093 @r=`${PWD_COMMAND}`; export r; \
4094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4095 TFLAGS="$(STAGE3_TFLAGS)"; \
4096 $(HOST_EXPORTS) \
4097 $(POSTSTAGE1_HOST_EXPORTS) \
4098 cd $(HOST_SUBDIR)/opcodes && \
4099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4100 CFLAGS="$(STAGE3_CFLAGS)" \
4101 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4102 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4103 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4104 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4105 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4106 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4107 TFLAGS="$(STAGE3_TFLAGS)" \
4108 $(TARGET-stage3-opcodes)
4109
4110maybe-clean-stage3-opcodes: clean-stage3-opcodes
4111clean-stage3: clean-stage3-opcodes
4112clean-stage3-opcodes:
4113 @if [ $(current_stage) = stage3 ]; then \
4114 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4115 else \
4116 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4117 $(MAKE) stage3-start; \
4118 fi; \
4119 cd $(HOST_SUBDIR)/opcodes && \
4120 $(MAKE) $(EXTRA_HOST_FLAGS) \
4121 $(POSTSTAGE1_FLAGS_TO_PASS) \
4122 clean
4123@endif opcodes-bootstrap
4124
4125
4126.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4127.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4128maybe-all-stage4-opcodes:
4129maybe-clean-stage4-opcodes:
4130@if opcodes-bootstrap
4131maybe-all-stage4-opcodes: all-stage4-opcodes
4132all-stage4: all-stage4-opcodes
4133TARGET-stage4-opcodes = $(TARGET-opcodes)
4134all-stage4-opcodes: configure-stage4-opcodes
4135 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4136 @r=`${PWD_COMMAND}`; export r; \
4137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4138 TFLAGS="$(STAGE4_TFLAGS)"; \
4139 $(HOST_EXPORTS) \
4140 $(POSTSTAGE1_HOST_EXPORTS) \
4141 cd $(HOST_SUBDIR)/opcodes && \
4142 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4143 CFLAGS="$(STAGE4_CFLAGS)" \
4144 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4145 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4146 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4147 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4148 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4149 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4150 TFLAGS="$(STAGE4_TFLAGS)" \
4151 $(TARGET-stage4-opcodes)
4152
4153maybe-clean-stage4-opcodes: clean-stage4-opcodes
4154clean-stage4: clean-stage4-opcodes
4155clean-stage4-opcodes:
4156 @if [ $(current_stage) = stage4 ]; then \
4157 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4158 else \
4159 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4160 $(MAKE) stage4-start; \
4161 fi; \
4162 cd $(HOST_SUBDIR)/opcodes && \
4163 $(MAKE) $(EXTRA_HOST_FLAGS) \
4164 $(POSTSTAGE1_FLAGS_TO_PASS) \
4165 clean
4166@endif opcodes-bootstrap
4167
4168
4169.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4170.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4171maybe-all-stageprofile-opcodes:
4172maybe-clean-stageprofile-opcodes:
4173@if opcodes-bootstrap
4174maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4175all-stageprofile: all-stageprofile-opcodes
4176TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4177all-stageprofile-opcodes: configure-stageprofile-opcodes
4178 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4179 @r=`${PWD_COMMAND}`; export r; \
4180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4181 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4182 $(HOST_EXPORTS) \
4183 $(POSTSTAGE1_HOST_EXPORTS) \
4184 cd $(HOST_SUBDIR)/opcodes && \
4185 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4186 CFLAGS="$(STAGEprofile_CFLAGS)" \
4187 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4188 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4189 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4190 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4191 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4192 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4193 TFLAGS="$(STAGEprofile_TFLAGS)" \
4194 $(TARGET-stageprofile-opcodes)
4195
4196maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4197clean-stageprofile: clean-stageprofile-opcodes
4198clean-stageprofile-opcodes:
4199 @if [ $(current_stage) = stageprofile ]; then \
4200 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4201 else \
4202 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4203 $(MAKE) stageprofile-start; \
4204 fi; \
4205 cd $(HOST_SUBDIR)/opcodes && \
4206 $(MAKE) $(EXTRA_HOST_FLAGS) \
4207 $(POSTSTAGE1_FLAGS_TO_PASS) \
4208 clean
4209@endif opcodes-bootstrap
4210
4211
4212.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4213.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4214maybe-all-stagefeedback-opcodes:
4215maybe-clean-stagefeedback-opcodes:
4216@if opcodes-bootstrap
4217maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4218all-stagefeedback: all-stagefeedback-opcodes
4219TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4220all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4221 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4222 @r=`${PWD_COMMAND}`; export r; \
4223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4224 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4225 $(HOST_EXPORTS) \
4226 $(POSTSTAGE1_HOST_EXPORTS) \
4227 cd $(HOST_SUBDIR)/opcodes && \
4228 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4229 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4230 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4231 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4232 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4233 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4234 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4235 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4236 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4237 $(TARGET-stagefeedback-opcodes)
4238
4239maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4240clean-stagefeedback: clean-stagefeedback-opcodes
4241clean-stagefeedback-opcodes:
4242 @if [ $(current_stage) = stagefeedback ]; then \
4243 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4244 else \
4245 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4246 $(MAKE) stagefeedback-start; \
4247 fi; \
4248 cd $(HOST_SUBDIR)/opcodes && \
4249 $(MAKE) $(EXTRA_HOST_FLAGS) \
4250 $(POSTSTAGE1_FLAGS_TO_PASS) \
4251 clean
4252@endif opcodes-bootstrap
4253
4254
4255
4256
4257
4258.PHONY: check-opcodes maybe-check-opcodes
4259maybe-check-opcodes:
4260@if opcodes
4261maybe-check-opcodes: check-opcodes
4262
4263check-opcodes:
f41d6665 4264 @: $(MAKE); $(unstage)
85bfb75e 4265 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4267 $(HOST_EXPORTS) \
85bfb75e
JM
4268 (cd $(HOST_SUBDIR)/opcodes && \
4269 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 4270
85bfb75e 4271@endif opcodes
1358ccea 4272
85bfb75e
JM
4273.PHONY: install-opcodes maybe-install-opcodes
4274maybe-install-opcodes:
4275@if opcodes
4276maybe-install-opcodes: install-opcodes
b5422ad7 4277
85bfb75e 4278install-opcodes: installdirs
b5422ad7 4279 @: $(MAKE); $(unstage)
85bfb75e 4280 @r=`${PWD_COMMAND}`; export r; \
b5422ad7
BM
4281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4282 $(HOST_EXPORTS) \
85bfb75e
JM
4283 (cd $(HOST_SUBDIR)/opcodes && \
4284 $(MAKE) $(FLAGS_TO_PASS) install)
b5422ad7 4285
85bfb75e 4286@endif opcodes
b5422ad7 4287
85bfb75e
JM
4288.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4289maybe-install-strip-opcodes:
4290@if opcodes
4291maybe-install-strip-opcodes: install-strip-opcodes
f87a2b2e 4292
85bfb75e 4293install-strip-opcodes: installdirs
f41d6665 4294 @: $(MAKE); $(unstage)
85bfb75e
JM
4295 @r=`${PWD_COMMAND}`; export r; \
4296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4297 $(HOST_EXPORTS) \
4298 (cd $(HOST_SUBDIR)/opcodes && \
4299 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4300
4301@endif opcodes
4302
4303# Other targets (info, dvi, pdf, etc.)
4304
4305.PHONY: maybe-info-opcodes info-opcodes
4306maybe-info-opcodes:
4307@if opcodes
4308maybe-info-opcodes: info-opcodes
4309
4310info-opcodes: \
4311 configure-opcodes
4312 @[ -f ./opcodes/Makefile ] || exit 0; \
f87a2b2e
MS
4313 r=`${PWD_COMMAND}`; export r; \
4314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
4315 $(HOST_EXPORTS) \
4316 for flag in $(EXTRA_HOST_FLAGS) ; do \
4317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4318 done; \
85bfb75e
JM
4319 echo "Doing info in opcodes" ; \
4320 (cd $(HOST_SUBDIR)/opcodes && \
f87a2b2e
MS
4321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4323 "RANLIB=$${RANLIB}" \
901119ae 4324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4325 info) \
f87a2b2e
MS
4326 || exit 1
4327
85bfb75e 4328@endif opcodes
f87a2b2e 4329
85bfb75e
JM
4330.PHONY: maybe-dvi-opcodes dvi-opcodes
4331maybe-dvi-opcodes:
4332@if opcodes
4333maybe-dvi-opcodes: dvi-opcodes
1358ccea 4334
85bfb75e
JM
4335dvi-opcodes: \
4336 configure-opcodes
4337 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4338 r=`${PWD_COMMAND}`; export r; \
4339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4340 $(HOST_EXPORTS) \
d32ab992 4341 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4343 done; \
85bfb75e
JM
4344 echo "Doing dvi in opcodes" ; \
4345 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4348 "RANLIB=$${RANLIB}" \
901119ae 4349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4350 dvi) \
1358ccea
NN
4351 || exit 1
4352
85bfb75e 4353@endif opcodes
1358ccea 4354
85bfb75e
JM
4355.PHONY: maybe-pdf-opcodes pdf-opcodes
4356maybe-pdf-opcodes:
4357@if opcodes
4358maybe-pdf-opcodes: pdf-opcodes
1358ccea 4359
85bfb75e
JM
4360pdf-opcodes: \
4361 configure-opcodes
4362 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4363 r=`${PWD_COMMAND}`; export r; \
4364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4365 $(HOST_EXPORTS) \
d32ab992 4366 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4368 done; \
85bfb75e
JM
4369 echo "Doing pdf in opcodes" ; \
4370 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4373 "RANLIB=$${RANLIB}" \
901119ae 4374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4375 pdf) \
1358ccea
NN
4376 || exit 1
4377
85bfb75e 4378@endif opcodes
1358ccea 4379
85bfb75e
JM
4380.PHONY: maybe-html-opcodes html-opcodes
4381maybe-html-opcodes:
4382@if opcodes
4383maybe-html-opcodes: html-opcodes
9c4d2493 4384
85bfb75e
JM
4385html-opcodes: \
4386 configure-opcodes
4387 @[ -f ./opcodes/Makefile ] || exit 0; \
9c4d2493
BM
4388 r=`${PWD_COMMAND}`; export r; \
4389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4390 $(HOST_EXPORTS) \
4391 for flag in $(EXTRA_HOST_FLAGS) ; do \
4392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4393 done; \
85bfb75e
JM
4394 echo "Doing html in opcodes" ; \
4395 (cd $(HOST_SUBDIR)/opcodes && \
9c4d2493
BM
4396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4398 "RANLIB=$${RANLIB}" \
901119ae 4399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4400 html) \
9c4d2493
BM
4401 || exit 1
4402
85bfb75e 4403@endif opcodes
9c4d2493 4404
85bfb75e
JM
4405.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4406maybe-TAGS-opcodes:
4407@if opcodes
4408maybe-TAGS-opcodes: TAGS-opcodes
65d6e994 4409
85bfb75e
JM
4410TAGS-opcodes: \
4411 configure-opcodes
4412 @[ -f ./opcodes/Makefile ] || exit 0; \
65d6e994
CD
4413 r=`${PWD_COMMAND}`; export r; \
4414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4415 $(HOST_EXPORTS) \
4416 for flag in $(EXTRA_HOST_FLAGS) ; do \
4417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4418 done; \
85bfb75e
JM
4419 echo "Doing TAGS in opcodes" ; \
4420 (cd $(HOST_SUBDIR)/opcodes && \
65d6e994
CD
4421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4423 "RANLIB=$${RANLIB}" \
901119ae 4424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4425 TAGS) \
65d6e994
CD
4426 || exit 1
4427
85bfb75e 4428@endif opcodes
65d6e994 4429
85bfb75e
JM
4430.PHONY: maybe-install-info-opcodes install-info-opcodes
4431maybe-install-info-opcodes:
4432@if opcodes
4433maybe-install-info-opcodes: install-info-opcodes
1358ccea 4434
85bfb75e
JM
4435install-info-opcodes: \
4436 configure-opcodes \
4437 info-opcodes
4438 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4439 r=`${PWD_COMMAND}`; export r; \
4440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4441 $(HOST_EXPORTS) \
d32ab992 4442 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4444 done; \
85bfb75e
JM
4445 echo "Doing install-info in opcodes" ; \
4446 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4449 "RANLIB=$${RANLIB}" \
901119ae 4450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4451 install-info) \
1358ccea
NN
4452 || exit 1
4453
85bfb75e 4454@endif opcodes
1358ccea 4455
85bfb75e
JM
4456.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4457maybe-install-pdf-opcodes:
4458@if opcodes
4459maybe-install-pdf-opcodes: install-pdf-opcodes
1358ccea 4460
85bfb75e
JM
4461install-pdf-opcodes: \
4462 configure-opcodes \
4463 pdf-opcodes
4464 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4465 r=`${PWD_COMMAND}`; export r; \
4466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4467 $(HOST_EXPORTS) \
d32ab992 4468 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4470 done; \
85bfb75e
JM
4471 echo "Doing install-pdf in opcodes" ; \
4472 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4475 "RANLIB=$${RANLIB}" \
901119ae 4476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4477 install-pdf) \
1358ccea
NN
4478 || exit 1
4479
85bfb75e 4480@endif opcodes
1358ccea 4481
85bfb75e
JM
4482.PHONY: maybe-install-html-opcodes install-html-opcodes
4483maybe-install-html-opcodes:
4484@if opcodes
4485maybe-install-html-opcodes: install-html-opcodes
1358ccea 4486
85bfb75e
JM
4487install-html-opcodes: \
4488 configure-opcodes \
4489 html-opcodes
4490 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4491 r=`${PWD_COMMAND}`; export r; \
4492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4493 $(HOST_EXPORTS) \
d32ab992 4494 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4496 done; \
85bfb75e
JM
4497 echo "Doing install-html in opcodes" ; \
4498 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4501 "RANLIB=$${RANLIB}" \
901119ae 4502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4503 install-html) \
1358ccea
NN
4504 || exit 1
4505
85bfb75e 4506@endif opcodes
1358ccea 4507
85bfb75e
JM
4508.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4509maybe-installcheck-opcodes:
4510@if opcodes
4511maybe-installcheck-opcodes: installcheck-opcodes
1358ccea 4512
85bfb75e
JM
4513installcheck-opcodes: \
4514 configure-opcodes
4515 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4516 r=`${PWD_COMMAND}`; export r; \
4517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4518 $(HOST_EXPORTS) \
d32ab992 4519 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4521 done; \
85bfb75e
JM
4522 echo "Doing installcheck in opcodes" ; \
4523 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4526 "RANLIB=$${RANLIB}" \
901119ae 4527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 4528 installcheck) \
1358ccea
NN
4529 || exit 1
4530
85bfb75e 4531@endif opcodes
1358ccea 4532
85bfb75e
JM
4533.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4534maybe-mostlyclean-opcodes:
4535@if opcodes
4536maybe-mostlyclean-opcodes: mostlyclean-opcodes
1358ccea 4537
85bfb75e
JM
4538mostlyclean-opcodes:
4539 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4540 r=`${PWD_COMMAND}`; export r; \
4541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4542 $(HOST_EXPORTS) \
d32ab992 4543 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4545 done; \
85bfb75e
JM
4546 echo "Doing mostlyclean in opcodes" ; \
4547 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4550 "RANLIB=$${RANLIB}" \
901119ae 4551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 4552 mostlyclean) \
1358ccea
NN
4553 || exit 1
4554
85bfb75e 4555@endif opcodes
1358ccea 4556
85bfb75e
JM
4557.PHONY: maybe-clean-opcodes clean-opcodes
4558maybe-clean-opcodes:
4559@if opcodes
4560maybe-clean-opcodes: clean-opcodes
1358ccea 4561
85bfb75e
JM
4562clean-opcodes:
4563 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4564 r=`${PWD_COMMAND}`; export r; \
4565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4566 $(HOST_EXPORTS) \
d32ab992 4567 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4569 done; \
85bfb75e
JM
4570 echo "Doing clean in opcodes" ; \
4571 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4574 "RANLIB=$${RANLIB}" \
901119ae 4575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 4576 clean) \
1358ccea
NN
4577 || exit 1
4578
85bfb75e 4579@endif opcodes
1358ccea 4580
85bfb75e
JM
4581.PHONY: maybe-distclean-opcodes distclean-opcodes
4582maybe-distclean-opcodes:
4583@if opcodes
4584maybe-distclean-opcodes: distclean-opcodes
1358ccea 4585
85bfb75e
JM
4586distclean-opcodes:
4587 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4588 r=`${PWD_COMMAND}`; export r; \
4589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4590 $(HOST_EXPORTS) \
d32ab992 4591 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4593 done; \
85bfb75e
JM
4594 echo "Doing distclean in opcodes" ; \
4595 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4598 "RANLIB=$${RANLIB}" \
901119ae 4599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 4600 distclean) \
1358ccea
NN
4601 || exit 1
4602
85bfb75e 4603@endif opcodes
1358ccea 4604
85bfb75e
JM
4605.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4606maybe-maintainer-clean-opcodes:
4607@if opcodes
4608maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
1358ccea 4609
85bfb75e
JM
4610maintainer-clean-opcodes:
4611 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
4612 r=`${PWD_COMMAND}`; export r; \
4613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4614 $(HOST_EXPORTS) \
d32ab992 4615 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4617 done; \
85bfb75e
JM
4618 echo "Doing maintainer-clean in opcodes" ; \
4619 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
4620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4622 "RANLIB=$${RANLIB}" \
901119ae 4623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 4624 maintainer-clean) \
1358ccea
NN
4625 || exit 1
4626
85bfb75e 4627@endif opcodes
1358ccea 4628
1358ccea 4629
25b42232 4630
85bfb75e
JM
4631.PHONY: configure-binutils maybe-configure-binutils
4632maybe-configure-binutils:
3ff3adad 4633@if gcc-bootstrap
85bfb75e 4634configure-binutils: stage_current
3ff3adad 4635@endif gcc-bootstrap
85bfb75e
JM
4636@if binutils
4637maybe-configure-binutils: configure-binutils
4638configure-binutils:
cc11cc9b
PB
4639 @r=`${PWD_COMMAND}`; export r; \
4640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
4641 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4642 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
f61428ed 4643 $(HOST_EXPORTS) \
85bfb75e
JM
4644 echo Configuring in $(HOST_SUBDIR)/binutils; \
4645 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
295f4e42 4646 case $(srcdir) in \
215c351a 4647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4648 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
215c351a 4649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4650 esac; \
85bfb75e
JM
4651 srcdiroption="--srcdir=$${topdir}/binutils"; \
4652 libsrcdir="$$s/binutils"; \
295f4e42 4653 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4655 --target=${target_alias} $${srcdiroption} \
1358ccea 4656 || exit 1
85bfb75e 4657@endif binutils
1358ccea 4658
25b42232
PB
4659
4660
85bfb75e
JM
4661.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4662maybe-configure-stage1-binutils:
4663@if binutils-bootstrap
4664maybe-configure-stage1-binutils: configure-stage1-binutils
4665configure-stage1-binutils:
cc11cc9b 4666 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 4667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4668 @r=`${PWD_COMMAND}`; export r; \
4669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4670 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 4671 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4a4a4e99 4672 $(HOST_EXPORTS) \
342b9200 4673 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4674 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4675 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4676 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
4677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4678 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4679 case $(srcdir) in \
4680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4681 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4683 esac; \
85bfb75e
JM
4684 srcdiroption="--srcdir=$${topdir}/binutils"; \
4685 libsrcdir="$$s/binutils"; \
ce406537 4686 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4687 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4688 --target=${target_alias} $${srcdiroption} \
4a4a4e99 4689 $(STAGE1_CONFIGURE_FLAGS)
85bfb75e 4690@endif binutils-bootstrap
ce406537 4691
85bfb75e
JM
4692.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4693maybe-configure-stage2-binutils:
4694@if binutils-bootstrap
4695maybe-configure-stage2-binutils: configure-stage2-binutils
4696configure-stage2-binutils:
cc11cc9b 4697 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 4698 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4699 @r=`${PWD_COMMAND}`; export r; \
4700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4701 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 4702 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537 4703 $(HOST_EXPORTS) \
4a4a4e99 4704 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 4705 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4706 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4707 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4708 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
4709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4710 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4711 case $(srcdir) in \
4712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4713 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4715 esac; \
85bfb75e
JM
4716 srcdiroption="--srcdir=$${topdir}/binutils"; \
4717 libsrcdir="$$s/binutils"; \
ce406537 4718 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4719 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4720 --target=${target_alias} $${srcdiroption} \
57255173 4721 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 4722 $(STAGE2_CONFIGURE_FLAGS)
85bfb75e 4723@endif binutils-bootstrap
bb286d71 4724
85bfb75e
JM
4725.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
4726maybe-configure-stage3-binutils:
4727@if binutils-bootstrap
4728maybe-configure-stage3-binutils: configure-stage3-binutils
4729configure-stage3-binutils:
cc11cc9b 4730 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 4731 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4732 @r=`${PWD_COMMAND}`; export r; \
4733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4734 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 4735 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537 4736 $(HOST_EXPORTS) \
4a4a4e99 4737 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 4738 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4739 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4740 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4741 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
4742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4743 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4744 case $(srcdir) in \
4745 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4746 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4747 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4748 esac; \
85bfb75e
JM
4749 srcdiroption="--srcdir=$${topdir}/binutils"; \
4750 libsrcdir="$$s/binutils"; \
ce406537 4751 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4752 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4753 --target=${target_alias} $${srcdiroption} \
57255173 4754 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 4755 $(STAGE3_CONFIGURE_FLAGS)
85bfb75e 4756@endif binutils-bootstrap
bb286d71 4757
85bfb75e
JM
4758.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
4759maybe-configure-stage4-binutils:
4760@if binutils-bootstrap
4761maybe-configure-stage4-binutils: configure-stage4-binutils
4762configure-stage4-binutils:
cc11cc9b 4763 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 4764 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4765 @r=`${PWD_COMMAND}`; export r; \
4766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4767 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 4768 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537 4769 $(HOST_EXPORTS) \
4a4a4e99 4770 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 4771 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4772 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4773 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4774 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
4775 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4776 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4777 case $(srcdir) in \
4778 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4779 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4780 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4781 esac; \
85bfb75e
JM
4782 srcdiroption="--srcdir=$${topdir}/binutils"; \
4783 libsrcdir="$$s/binutils"; \
ce406537 4784 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4785 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4786 --target=${target_alias} $${srcdiroption} \
57255173 4787 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 4788 $(STAGE4_CONFIGURE_FLAGS)
85bfb75e 4789@endif binutils-bootstrap
ce406537 4790
85bfb75e
JM
4791.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
4792maybe-configure-stageprofile-binutils:
4793@if binutils-bootstrap
4794maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
4795configure-stageprofile-binutils:
cc11cc9b 4796 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 4797 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4798 @r=`${PWD_COMMAND}`; export r; \
4799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4800 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 4801 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537 4802 $(HOST_EXPORTS) \
4a4a4e99
AO
4803 $(POSTSTAGE1_HOST_EXPORTS) \
4804 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4805 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4806 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4807 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
4808 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4809 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4810 case $(srcdir) in \
4811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4812 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4814 esac; \
85bfb75e
JM
4815 srcdiroption="--srcdir=$${topdir}/binutils"; \
4816 libsrcdir="$$s/binutils"; \
ce406537 4817 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4818 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4819 --target=${target_alias} $${srcdiroption} \
57255173 4820 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 4821 $(STAGEprofile_CONFIGURE_FLAGS)
85bfb75e 4822@endif binutils-bootstrap
ce406537 4823
85bfb75e
JM
4824.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
4825maybe-configure-stagefeedback-binutils:
4826@if binutils-bootstrap
4827maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
4828configure-stagefeedback-binutils:
cc11cc9b 4829 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 4830 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
4831 @r=`${PWD_COMMAND}`; export r; \
4832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4833 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 4834 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537 4835 $(HOST_EXPORTS) \
4a4a4e99
AO
4836 $(POSTSTAGE1_HOST_EXPORTS) \
4837 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
4838 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4839 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
4840 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
4841 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4842 cd $(HOST_SUBDIR)/binutils || exit 1; \
ce406537
PB
4843 case $(srcdir) in \
4844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 4845 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
ce406537
PB
4846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4847 esac; \
85bfb75e
JM
4848 srcdiroption="--srcdir=$${topdir}/binutils"; \
4849 libsrcdir="$$s/binutils"; \
ce406537 4850 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
4851 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4852 --target=${target_alias} $${srcdiroption} \
57255173 4853 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 4854 $(STAGEfeedback_CONFIGURE_FLAGS)
85bfb75e 4855@endif binutils-bootstrap
ce406537
PB
4856
4857
4858
4859
4860
85bfb75e
JM
4861.PHONY: all-binutils maybe-all-binutils
4862maybe-all-binutils:
3ff3adad 4863@if gcc-bootstrap
85bfb75e 4864all-binutils: stage_current
3ff3adad 4865@endif gcc-bootstrap
85bfb75e
JM
4866@if binutils
4867TARGET-binutils=all
4868maybe-all-binutils: all-binutils
4869all-binutils: configure-binutils
cc11cc9b 4870 @r=`${PWD_COMMAND}`; export r; \
295f4e42 4871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 4872 $(HOST_EXPORTS) \
85bfb75e 4873 (cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4874 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
4875 $(TARGET-binutils))
4876@endif binutils
1358ccea 4877
25b42232 4878
ce406537 4879
85bfb75e
JM
4880.PHONY: all-stage1-binutils maybe-all-stage1-binutils
4881.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
4882maybe-all-stage1-binutils:
4883maybe-clean-stage1-binutils:
4884@if binutils-bootstrap
4885maybe-all-stage1-binutils: all-stage1-binutils
4886all-stage1: all-stage1-binutils
4887TARGET-stage1-binutils = $(TARGET-binutils)
4888all-stage1-binutils: configure-stage1-binutils
cc11cc9b 4889 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
4890 @r=`${PWD_COMMAND}`; export r; \
4891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4892 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 4893 $(HOST_EXPORTS) \
85bfb75e 4894 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4895 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 4896 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 4897 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
4898 LIBCFLAGS="$(LIBCFLAGS)" \
4899 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4900 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4901 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4902 $(EXTRA_HOST_FLAGS) \
4903 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 4904 $(TARGET-stage1-binutils)
ce406537 4905
85bfb75e
JM
4906maybe-clean-stage1-binutils: clean-stage1-binutils
4907clean-stage1: clean-stage1-binutils
4908clean-stage1-binutils:
995a5697 4909 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 4910 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 4911 else \
85bfb75e 4912 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
995a5697
PB
4913 $(MAKE) stage1-start; \
4914 fi; \
85bfb75e 4915 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4916 $(MAKE) $(EXTRA_HOST_FLAGS) \
342b9200 4917 clean
85bfb75e 4918@endif binutils-bootstrap
ce406537
PB
4919
4920
85bfb75e
JM
4921.PHONY: all-stage2-binutils maybe-all-stage2-binutils
4922.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
4923maybe-all-stage2-binutils:
4924maybe-clean-stage2-binutils:
4925@if binutils-bootstrap
4926maybe-all-stage2-binutils: all-stage2-binutils
4927all-stage2: all-stage2-binutils
4928TARGET-stage2-binutils = $(TARGET-binutils)
4929all-stage2-binutils: configure-stage2-binutils
cc11cc9b 4930 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
4931 @r=`${PWD_COMMAND}`; export r; \
4932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4933 TFLAGS="$(STAGE2_TFLAGS)"; \
ce406537 4934 $(HOST_EXPORTS) \
f61428ed 4935 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 4936 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4937 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 4938 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 4939 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
4940 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4941 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4942 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4943 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4944 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4945 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 4946 $(TARGET-stage2-binutils)
ce406537 4947
85bfb75e
JM
4948maybe-clean-stage2-binutils: clean-stage2-binutils
4949clean-stage2: clean-stage2-binutils
4950clean-stage2-binutils:
995a5697 4951 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 4952 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 4953 else \
85bfb75e 4954 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
995a5697
PB
4955 $(MAKE) stage2-start; \
4956 fi; \
85bfb75e 4957 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4958 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 4959 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 4960 clean
85bfb75e 4961@endif binutils-bootstrap
ce406537
PB
4962
4963
85bfb75e
JM
4964.PHONY: all-stage3-binutils maybe-all-stage3-binutils
4965.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
4966maybe-all-stage3-binutils:
4967maybe-clean-stage3-binutils:
4968@if binutils-bootstrap
4969maybe-all-stage3-binutils: all-stage3-binutils
4970all-stage3: all-stage3-binutils
4971TARGET-stage3-binutils = $(TARGET-binutils)
4972all-stage3-binutils: configure-stage3-binutils
cc11cc9b 4973 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
4974 @r=`${PWD_COMMAND}`; export r; \
4975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 4976 TFLAGS="$(STAGE3_TFLAGS)"; \
ce406537 4977 $(HOST_EXPORTS) \
f61428ed 4978 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 4979 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 4980 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 4981 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 4982 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
4983 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4984 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4985 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4986 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4987 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4988 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 4989 $(TARGET-stage3-binutils)
ce406537 4990
85bfb75e
JM
4991maybe-clean-stage3-binutils: clean-stage3-binutils
4992clean-stage3: clean-stage3-binutils
4993clean-stage3-binutils:
995a5697 4994 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 4995 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 4996 else \
85bfb75e 4997 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
995a5697
PB
4998 $(MAKE) stage3-start; \
4999 fi; \
85bfb75e 5000 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5001 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 5002 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 5003 clean
85bfb75e 5004@endif binutils-bootstrap
ce406537
PB
5005
5006
85bfb75e
JM
5007.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5008.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5009maybe-all-stage4-binutils:
5010maybe-clean-stage4-binutils:
5011@if binutils-bootstrap
5012maybe-all-stage4-binutils: all-stage4-binutils
5013all-stage4: all-stage4-binutils
5014TARGET-stage4-binutils = $(TARGET-binutils)
5015all-stage4-binutils: configure-stage4-binutils
cc11cc9b 5016 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
5017 @r=`${PWD_COMMAND}`; export r; \
5018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 5019 TFLAGS="$(STAGE4_TFLAGS)"; \
ce406537 5020 $(HOST_EXPORTS) \
f61428ed 5021 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 5022 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5023 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 5024 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 5025 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
1c8bd6a3 5026 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
5027 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5028 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5029 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5030 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5031 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 5032 $(TARGET-stage4-binutils)
ce406537 5033
85bfb75e
JM
5034maybe-clean-stage4-binutils: clean-stage4-binutils
5035clean-stage4: clean-stage4-binutils
5036clean-stage4-binutils:
995a5697 5037 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 5038 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 5039 else \
85bfb75e 5040 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
995a5697
PB
5041 $(MAKE) stage4-start; \
5042 fi; \
85bfb75e 5043 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5044 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 5045 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 5046 clean
85bfb75e 5047@endif binutils-bootstrap
ce406537
PB
5048
5049
85bfb75e
JM
5050.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5051.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5052maybe-all-stageprofile-binutils:
5053maybe-clean-stageprofile-binutils:
5054@if binutils-bootstrap
5055maybe-all-stageprofile-binutils: all-stageprofile-binutils
5056all-stageprofile: all-stageprofile-binutils
5057TARGET-stageprofile-binutils = $(TARGET-binutils)
5058all-stageprofile-binutils: configure-stageprofile-binutils
cc11cc9b 5059 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5060 @r=`${PWD_COMMAND}`; export r; \
5061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 5062 TFLAGS="$(STAGEprofile_TFLAGS)"; \
ce406537 5063 $(HOST_EXPORTS) \
f61428ed 5064 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 5065 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5066 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 5067 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 5068 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
5069 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5070 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5071 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5072 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5073 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5074 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 5075 $(TARGET-stageprofile-binutils)
ce406537 5076
85bfb75e
JM
5077maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5078clean-stageprofile: clean-stageprofile-binutils
5079clean-stageprofile-binutils:
995a5697 5080 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 5081 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 5082 else \
85bfb75e 5083 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
995a5697
PB
5084 $(MAKE) stageprofile-start; \
5085 fi; \
85bfb75e 5086 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5087 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 5088 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 5089 clean
85bfb75e 5090@endif binutils-bootstrap
ce406537
PB
5091
5092
85bfb75e
JM
5093.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5094.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5095maybe-all-stagefeedback-binutils:
5096maybe-clean-stagefeedback-binutils:
5097@if binutils-bootstrap
5098maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5099all-stagefeedback: all-stagefeedback-binutils
5100TARGET-stagefeedback-binutils = $(TARGET-binutils)
5101all-stagefeedback-binutils: configure-stagefeedback-binutils
cc11cc9b 5102 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
5103 @r=`${PWD_COMMAND}`; export r; \
5104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 5105 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
ce406537 5106 $(HOST_EXPORTS) \
f61428ed 5107 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 5108 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5109 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 5110 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 5111 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
5112 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5113 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5114 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5115 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5116 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5117 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 5118 $(TARGET-stagefeedback-binutils)
ce406537 5119
85bfb75e
JM
5120maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5121clean-stagefeedback: clean-stagefeedback-binutils
5122clean-stagefeedback-binutils:
995a5697 5123 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 5124 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
995a5697 5125 else \
85bfb75e 5126 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
995a5697
PB
5127 $(MAKE) stagefeedback-start; \
5128 fi; \
85bfb75e 5129 cd $(HOST_SUBDIR)/binutils && \
1c8bd6a3 5130 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 5131 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 5132 clean
85bfb75e 5133@endif binutils-bootstrap
ce406537
PB
5134
5135
5136
5137
5138
85bfb75e
JM
5139.PHONY: check-binutils maybe-check-binutils
5140maybe-check-binutils:
5141@if binutils
5142maybe-check-binutils: check-binutils
1358ccea 5143
85bfb75e 5144check-binutils:
f41d6665 5145 @: $(MAKE); $(unstage)
295f4e42 5146 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5148 $(HOST_EXPORTS) \
85bfb75e 5149 (cd $(HOST_SUBDIR)/binutils && \
215c351a 5150 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 5151
85bfb75e 5152@endif binutils
1358ccea 5153
85bfb75e
JM
5154.PHONY: install-binutils maybe-install-binutils
5155maybe-install-binutils:
5156@if binutils
5157maybe-install-binutils: install-binutils
1358ccea 5158
85bfb75e 5159install-binutils: installdirs
f41d6665 5160 @: $(MAKE); $(unstage)
295f4e42 5161 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5163 $(HOST_EXPORTS) \
85bfb75e 5164 (cd $(HOST_SUBDIR)/binutils && \
ace9ac7b 5165 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5166
85bfb75e 5167@endif binutils
1358ccea 5168
85bfb75e
JM
5169.PHONY: install-strip-binutils maybe-install-strip-binutils
5170maybe-install-strip-binutils:
5171@if binutils
5172maybe-install-strip-binutils: install-strip-binutils
455c8f48 5173
85bfb75e 5174install-strip-binutils: installdirs
455c8f48
RW
5175 @: $(MAKE); $(unstage)
5176 @r=`${PWD_COMMAND}`; export r; \
5177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5178 $(HOST_EXPORTS) \
85bfb75e 5179 (cd $(HOST_SUBDIR)/binutils && \
455c8f48
RW
5180 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5181
85bfb75e 5182@endif binutils
455c8f48 5183
b5422ad7 5184# Other targets (info, dvi, pdf, etc.)
295f4e42 5185
85bfb75e
JM
5186.PHONY: maybe-info-binutils info-binutils
5187maybe-info-binutils:
5188@if binutils
5189maybe-info-binutils: info-binutils
1358ccea 5190
85bfb75e
JM
5191info-binutils: \
5192 configure-binutils
5193 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5194 r=`${PWD_COMMAND}`; export r; \
5195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5196 $(HOST_EXPORTS) \
d32ab992 5197 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5199 done; \
85bfb75e
JM
5200 echo "Doing info in binutils" ; \
5201 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5204 "RANLIB=$${RANLIB}" \
901119ae 5205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5206 info) \
1358ccea
NN
5207 || exit 1
5208
85bfb75e 5209@endif binutils
1358ccea 5210
85bfb75e
JM
5211.PHONY: maybe-dvi-binutils dvi-binutils
5212maybe-dvi-binutils:
5213@if binutils
5214maybe-dvi-binutils: dvi-binutils
1358ccea 5215
85bfb75e
JM
5216dvi-binutils: \
5217 configure-binutils
5218 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5219 r=`${PWD_COMMAND}`; export r; \
5220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5221 $(HOST_EXPORTS) \
d32ab992 5222 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5224 done; \
85bfb75e
JM
5225 echo "Doing dvi in binutils" ; \
5226 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5229 "RANLIB=$${RANLIB}" \
901119ae 5230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5231 dvi) \
1358ccea
NN
5232 || exit 1
5233
85bfb75e 5234@endif binutils
1358ccea 5235
85bfb75e
JM
5236.PHONY: maybe-pdf-binutils pdf-binutils
5237maybe-pdf-binutils:
5238@if binutils
5239maybe-pdf-binutils: pdf-binutils
b5422ad7 5240
85bfb75e
JM
5241pdf-binutils: \
5242 configure-binutils
5243 @[ -f ./binutils/Makefile ] || exit 0; \
b5422ad7
BM
5244 r=`${PWD_COMMAND}`; export r; \
5245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5246 $(HOST_EXPORTS) \
5247 for flag in $(EXTRA_HOST_FLAGS) ; do \
5248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5249 done; \
85bfb75e
JM
5250 echo "Doing pdf in binutils" ; \
5251 (cd $(HOST_SUBDIR)/binutils && \
b5422ad7
BM
5252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5254 "RANLIB=$${RANLIB}" \
901119ae 5255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
5256 pdf) \
5257 || exit 1
5258
85bfb75e 5259@endif binutils
b5422ad7 5260
85bfb75e
JM
5261.PHONY: maybe-html-binutils html-binutils
5262maybe-html-binutils:
5263@if binutils
5264maybe-html-binutils: html-binutils
f87a2b2e 5265
85bfb75e
JM
5266html-binutils: \
5267 configure-binutils
5268 @[ -f ./binutils/Makefile ] || exit 0; \
f87a2b2e
MS
5269 r=`${PWD_COMMAND}`; export r; \
5270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
5271 $(HOST_EXPORTS) \
5272 for flag in $(EXTRA_HOST_FLAGS) ; do \
5273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5274 done; \
85bfb75e
JM
5275 echo "Doing html in binutils" ; \
5276 (cd $(HOST_SUBDIR)/binutils && \
f87a2b2e
MS
5277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5279 "RANLIB=$${RANLIB}" \
901119ae 5280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
5281 html) \
5282 || exit 1
5283
85bfb75e 5284@endif binutils
f87a2b2e 5285
85bfb75e
JM
5286.PHONY: maybe-TAGS-binutils TAGS-binutils
5287maybe-TAGS-binutils:
5288@if binutils
5289maybe-TAGS-binutils: TAGS-binutils
1358ccea 5290
85bfb75e
JM
5291TAGS-binutils: \
5292 configure-binutils
5293 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5294 r=`${PWD_COMMAND}`; export r; \
5295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5296 $(HOST_EXPORTS) \
d32ab992 5297 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5299 done; \
85bfb75e
JM
5300 echo "Doing TAGS in binutils" ; \
5301 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5304 "RANLIB=$${RANLIB}" \
901119ae 5305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5306 TAGS) \
1358ccea
NN
5307 || exit 1
5308
85bfb75e 5309@endif binutils
1358ccea 5310
85bfb75e
JM
5311.PHONY: maybe-install-info-binutils install-info-binutils
5312maybe-install-info-binutils:
5313@if binutils
5314maybe-install-info-binutils: install-info-binutils
1358ccea 5315
85bfb75e
JM
5316install-info-binutils: \
5317 configure-binutils \
5318 info-binutils
5319 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5320 r=`${PWD_COMMAND}`; export r; \
5321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5322 $(HOST_EXPORTS) \
d32ab992 5323 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5325 done; \
85bfb75e
JM
5326 echo "Doing install-info in binutils" ; \
5327 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5330 "RANLIB=$${RANLIB}" \
901119ae 5331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5332 install-info) \
1358ccea
NN
5333 || exit 1
5334
85bfb75e 5335@endif binutils
1358ccea 5336
85bfb75e
JM
5337.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5338maybe-install-pdf-binutils:
5339@if binutils
5340maybe-install-pdf-binutils: install-pdf-binutils
9c4d2493 5341
85bfb75e
JM
5342install-pdf-binutils: \
5343 configure-binutils \
5344 pdf-binutils
5345 @[ -f ./binutils/Makefile ] || exit 0; \
9c4d2493
BM
5346 r=`${PWD_COMMAND}`; export r; \
5347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5348 $(HOST_EXPORTS) \
5349 for flag in $(EXTRA_HOST_FLAGS) ; do \
5350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5351 done; \
85bfb75e
JM
5352 echo "Doing install-pdf in binutils" ; \
5353 (cd $(HOST_SUBDIR)/binutils && \
9c4d2493
BM
5354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5356 "RANLIB=$${RANLIB}" \
901119ae 5357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
5358 install-pdf) \
5359 || exit 1
5360
85bfb75e 5361@endif binutils
9c4d2493 5362
85bfb75e
JM
5363.PHONY: maybe-install-html-binutils install-html-binutils
5364maybe-install-html-binutils:
5365@if binutils
5366maybe-install-html-binutils: install-html-binutils
65d6e994 5367
85bfb75e
JM
5368install-html-binutils: \
5369 configure-binutils \
5370 html-binutils
5371 @[ -f ./binutils/Makefile ] || exit 0; \
65d6e994
CD
5372 r=`${PWD_COMMAND}`; export r; \
5373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5374 $(HOST_EXPORTS) \
5375 for flag in $(EXTRA_HOST_FLAGS) ; do \
5376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5377 done; \
85bfb75e
JM
5378 echo "Doing install-html in binutils" ; \
5379 (cd $(HOST_SUBDIR)/binutils && \
65d6e994
CD
5380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5382 "RANLIB=$${RANLIB}" \
901119ae 5383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
5384 install-html) \
5385 || exit 1
5386
85bfb75e 5387@endif binutils
65d6e994 5388
85bfb75e
JM
5389.PHONY: maybe-installcheck-binutils installcheck-binutils
5390maybe-installcheck-binutils:
5391@if binutils
5392maybe-installcheck-binutils: installcheck-binutils
1358ccea 5393
85bfb75e
JM
5394installcheck-binutils: \
5395 configure-binutils
5396 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5397 r=`${PWD_COMMAND}`; export r; \
5398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5399 $(HOST_EXPORTS) \
d32ab992 5400 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5402 done; \
85bfb75e
JM
5403 echo "Doing installcheck in binutils" ; \
5404 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5407 "RANLIB=$${RANLIB}" \
901119ae 5408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5409 installcheck) \
1358ccea
NN
5410 || exit 1
5411
85bfb75e 5412@endif binutils
1358ccea 5413
85bfb75e
JM
5414.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5415maybe-mostlyclean-binutils:
5416@if binutils
5417maybe-mostlyclean-binutils: mostlyclean-binutils
1358ccea 5418
85bfb75e
JM
5419mostlyclean-binutils:
5420 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5421 r=`${PWD_COMMAND}`; export r; \
5422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5423 $(HOST_EXPORTS) \
d32ab992 5424 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5426 done; \
85bfb75e
JM
5427 echo "Doing mostlyclean in binutils" ; \
5428 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5431 "RANLIB=$${RANLIB}" \
901119ae 5432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5433 mostlyclean) \
1358ccea
NN
5434 || exit 1
5435
85bfb75e 5436@endif binutils
1358ccea 5437
85bfb75e
JM
5438.PHONY: maybe-clean-binutils clean-binutils
5439maybe-clean-binutils:
5440@if binutils
5441maybe-clean-binutils: clean-binutils
1358ccea 5442
85bfb75e
JM
5443clean-binutils:
5444 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5445 r=`${PWD_COMMAND}`; export r; \
5446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5447 $(HOST_EXPORTS) \
d32ab992 5448 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5450 done; \
85bfb75e
JM
5451 echo "Doing clean in binutils" ; \
5452 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5455 "RANLIB=$${RANLIB}" \
901119ae 5456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5457 clean) \
1358ccea
NN
5458 || exit 1
5459
85bfb75e 5460@endif binutils
1358ccea 5461
85bfb75e
JM
5462.PHONY: maybe-distclean-binutils distclean-binutils
5463maybe-distclean-binutils:
5464@if binutils
5465maybe-distclean-binutils: distclean-binutils
1358ccea 5466
85bfb75e
JM
5467distclean-binutils:
5468 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5469 r=`${PWD_COMMAND}`; export r; \
5470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5471 $(HOST_EXPORTS) \
d32ab992 5472 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5474 done; \
85bfb75e
JM
5475 echo "Doing distclean in binutils" ; \
5476 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5479 "RANLIB=$${RANLIB}" \
901119ae 5480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5481 distclean) \
1358ccea
NN
5482 || exit 1
5483
85bfb75e 5484@endif binutils
1358ccea 5485
85bfb75e
JM
5486.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5487maybe-maintainer-clean-binutils:
5488@if binutils
5489maybe-maintainer-clean-binutils: maintainer-clean-binutils
1358ccea 5490
85bfb75e
JM
5491maintainer-clean-binutils:
5492 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
5493 r=`${PWD_COMMAND}`; export r; \
5494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5495 $(HOST_EXPORTS) \
d32ab992 5496 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5498 done; \
85bfb75e
JM
5499 echo "Doing maintainer-clean in binutils" ; \
5500 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
5501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5503 "RANLIB=$${RANLIB}" \
901119ae 5504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 5505 maintainer-clean) \
1358ccea
NN
5506 || exit 1
5507
85bfb75e 5508@endif binutils
1358ccea 5509
1358ccea 5510
25b42232 5511
85bfb75e
JM
5512.PHONY: configure-bison maybe-configure-bison
5513maybe-configure-bison:
3ff3adad 5514@if gcc-bootstrap
85bfb75e 5515configure-bison: stage_current
3ff3adad 5516@endif gcc-bootstrap
85bfb75e
JM
5517@if bison
5518maybe-configure-bison: configure-bison
5519configure-bison:
5520 @: $(MAKE); $(unstage)
cc11cc9b
PB
5521 @r=`${PWD_COMMAND}`; export r; \
5522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
5523 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
5524 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
f61428ed 5525 $(HOST_EXPORTS) \
85bfb75e
JM
5526 echo Configuring in $(HOST_SUBDIR)/bison; \
5527 cd "$(HOST_SUBDIR)/bison" || exit 1; \
295f4e42 5528 case $(srcdir) in \
215c351a 5529 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 5530 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
215c351a 5531 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 5532 esac; \
85bfb75e
JM
5533 srcdiroption="--srcdir=$${topdir}/bison"; \
5534 libsrcdir="$$s/bison"; \
295f4e42 5535 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
5536 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5537 --target=${target_alias} $${srcdiroption} \
1358ccea 5538 || exit 1
85bfb75e 5539@endif bison
1358ccea 5540
25b42232
PB
5541
5542
ce406537 5543
bb286d71 5544
85bfb75e
JM
5545.PHONY: all-bison maybe-all-bison
5546maybe-all-bison:
5547@if gcc-bootstrap
5548all-bison: stage_current
5549@endif gcc-bootstrap
5550@if bison
5551TARGET-bison=all
5552maybe-all-bison: all-bison
5553all-bison: configure-bison
5554 @: $(MAKE); $(unstage)
cc11cc9b
PB
5555 @r=`${PWD_COMMAND}`; export r; \
5556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
5557 $(HOST_EXPORTS) \
5558 (cd $(HOST_SUBDIR)/bison && \
5559 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
5560 $(TARGET-bison))
5561@endif bison
bb286d71 5562
ce406537 5563
ce406537 5564
ce406537 5565
85bfb75e
JM
5566.PHONY: check-bison maybe-check-bison
5567maybe-check-bison:
5568@if bison
5569maybe-check-bison: check-bison
ce406537 5570
85bfb75e
JM
5571# This module is only tested in a native toolchain.
5572check-bison:
5573 @: $(MAKE); $(unstage)
5574 @if [ '$(host)' = '$(target)' ] ; then \
5575 r=`${PWD_COMMAND}`; export r; \
5576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5577 $(HOST_EXPORTS) \
5578 (cd $(HOST_SUBDIR)/bison && \
5579 $(MAKE) $(FLAGS_TO_PASS) check); \
5580 fi
ce406537 5581
85bfb75e 5582@endif bison
ce406537 5583
85bfb75e
JM
5584.PHONY: install-bison maybe-install-bison
5585maybe-install-bison:
5586@if bison
5587maybe-install-bison: install-bison
ce406537 5588
85bfb75e
JM
5589install-bison: installdirs
5590 @: $(MAKE); $(unstage)
cc11cc9b 5591 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
5593 $(HOST_EXPORTS) \
5594 (cd $(HOST_SUBDIR)/bison && \
5595 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5596
85bfb75e 5597@endif bison
25b42232 5598
85bfb75e
JM
5599.PHONY: install-strip-bison maybe-install-strip-bison
5600maybe-install-strip-bison:
5601@if bison
5602maybe-install-strip-bison: install-strip-bison
ce406537 5603
85bfb75e
JM
5604install-strip-bison: installdirs
5605 @: $(MAKE); $(unstage)
ce406537
PB
5606 @r=`${PWD_COMMAND}`; export r; \
5607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
5608 $(HOST_EXPORTS) \
5609 (cd $(HOST_SUBDIR)/bison && \
5610 $(MAKE) $(FLAGS_TO_PASS) install-strip)
ce406537 5611
85bfb75e 5612@endif bison
ce406537 5613
85bfb75e 5614# Other targets (info, dvi, pdf, etc.)
ce406537 5615
85bfb75e
JM
5616.PHONY: maybe-info-bison info-bison
5617maybe-info-bison:
5618@if bison
5619maybe-info-bison: info-bison
5620
5621info-bison: \
5622 configure-bison
5623 @: $(MAKE); $(unstage)
5624 @[ -f ./bison/Makefile ] || exit 0; \
5625 r=`${PWD_COMMAND}`; export r; \
ce406537
PB
5626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5627 $(HOST_EXPORTS) \
85bfb75e
JM
5628 for flag in $(EXTRA_HOST_FLAGS) ; do \
5629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5630 done; \
5631 echo "Doing info in bison" ; \
5632 (cd $(HOST_SUBDIR)/bison && \
5633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5635 "RANLIB=$${RANLIB}" \
5636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5637 info) \
5638 || exit 1
ce406537 5639
85bfb75e 5640@endif bison
ce406537 5641
85bfb75e
JM
5642.PHONY: maybe-dvi-bison dvi-bison
5643maybe-dvi-bison:
5644@if bison
5645maybe-dvi-bison: dvi-bison
ce406537 5646
85bfb75e
JM
5647dvi-bison: \
5648 configure-bison
5649 @: $(MAKE); $(unstage)
5650 @[ -f ./bison/Makefile ] || exit 0; \
5651 r=`${PWD_COMMAND}`; export r; \
ce406537
PB
5652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5653 $(HOST_EXPORTS) \
85bfb75e
JM
5654 for flag in $(EXTRA_HOST_FLAGS) ; do \
5655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5656 done; \
5657 echo "Doing dvi in bison" ; \
5658 (cd $(HOST_SUBDIR)/bison && \
5659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5661 "RANLIB=$${RANLIB}" \
5662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5663 dvi) \
5664 || exit 1
ce406537 5665
85bfb75e 5666@endif bison
ce406537 5667
85bfb75e
JM
5668.PHONY: maybe-pdf-bison pdf-bison
5669maybe-pdf-bison:
5670@if bison
5671maybe-pdf-bison: pdf-bison
ce406537 5672
85bfb75e
JM
5673pdf-bison: \
5674 configure-bison
5675 @: $(MAKE); $(unstage)
5676 @[ -f ./bison/Makefile ] || exit 0; \
5677 r=`${PWD_COMMAND}`; export r; \
ce406537
PB
5678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5679 $(HOST_EXPORTS) \
85bfb75e
JM
5680 for flag in $(EXTRA_HOST_FLAGS) ; do \
5681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5682 done; \
5683 echo "Doing pdf in bison" ; \
5684 (cd $(HOST_SUBDIR)/bison && \
5685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5687 "RANLIB=$${RANLIB}" \
5688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5689 pdf) \
5690 || exit 1
ce406537 5691
85bfb75e 5692@endif bison
ce406537 5693
85bfb75e
JM
5694.PHONY: maybe-html-bison html-bison
5695maybe-html-bison:
5696@if bison
5697maybe-html-bison: html-bison
ce406537 5698
85bfb75e
JM
5699html-bison: \
5700 configure-bison
5701 @: $(MAKE); $(unstage)
5702 @[ -f ./bison/Makefile ] || exit 0; \
5703 r=`${PWD_COMMAND}`; export r; \
ce406537
PB
5704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5705 $(HOST_EXPORTS) \
85bfb75e
JM
5706 for flag in $(EXTRA_HOST_FLAGS) ; do \
5707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5708 done; \
5709 echo "Doing html in bison" ; \
5710 (cd $(HOST_SUBDIR)/bison && \
5711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5713 "RANLIB=$${RANLIB}" \
5714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5715 html) \
5716 || exit 1
ce406537 5717
85bfb75e 5718@endif bison
1358ccea 5719
85bfb75e
JM
5720.PHONY: maybe-TAGS-bison TAGS-bison
5721maybe-TAGS-bison:
5722@if bison
5723maybe-TAGS-bison: TAGS-bison
1358ccea 5724
85bfb75e
JM
5725TAGS-bison: \
5726 configure-bison
f41d6665 5727 @: $(MAKE); $(unstage)
85bfb75e
JM
5728 @[ -f ./bison/Makefile ] || exit 0; \
5729 r=`${PWD_COMMAND}`; export r; \
8c90b13a 5730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5731 $(HOST_EXPORTS) \
85bfb75e
JM
5732 for flag in $(EXTRA_HOST_FLAGS) ; do \
5733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5734 done; \
5735 echo "Doing TAGS in bison" ; \
5736 (cd $(HOST_SUBDIR)/bison && \
5737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5739 "RANLIB=$${RANLIB}" \
5740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5741 TAGS) \
5742 || exit 1
1358ccea 5743
85bfb75e 5744@endif bison
1358ccea 5745
85bfb75e
JM
5746.PHONY: maybe-install-info-bison install-info-bison
5747maybe-install-info-bison:
5748@if bison
5749maybe-install-info-bison: install-info-bison
455c8f48 5750
85bfb75e
JM
5751install-info-bison: \
5752 configure-bison \
5753 info-bison
455c8f48 5754 @: $(MAKE); $(unstage)
85bfb75e 5755 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
5756 r=`${PWD_COMMAND}`; export r; \
5757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5758 $(HOST_EXPORTS) \
d32ab992 5759 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5761 done; \
85bfb75e
JM
5762 echo "Doing install-info in bison" ; \
5763 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
5764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5766 "RANLIB=$${RANLIB}" \
901119ae 5767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5768 install-info) \
1358ccea
NN
5769 || exit 1
5770
85bfb75e 5771@endif bison
1358ccea 5772
85bfb75e
JM
5773.PHONY: maybe-install-pdf-bison install-pdf-bison
5774maybe-install-pdf-bison:
5775@if bison
5776maybe-install-pdf-bison: install-pdf-bison
1358ccea 5777
85bfb75e
JM
5778install-pdf-bison: \
5779 configure-bison \
5780 pdf-bison
5781 @: $(MAKE); $(unstage)
5782 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
5783 r=`${PWD_COMMAND}`; export r; \
5784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5785 $(HOST_EXPORTS) \
d32ab992 5786 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5788 done; \
85bfb75e
JM
5789 echo "Doing install-pdf in bison" ; \
5790 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
5791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5793 "RANLIB=$${RANLIB}" \
901119ae 5794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5795 install-pdf) \
1358ccea
NN
5796 || exit 1
5797
85bfb75e 5798@endif bison
1358ccea 5799
85bfb75e
JM
5800.PHONY: maybe-install-html-bison install-html-bison
5801maybe-install-html-bison:
5802@if bison
5803maybe-install-html-bison: install-html-bison
b5422ad7 5804
85bfb75e
JM
5805install-html-bison: \
5806 configure-bison \
5807 html-bison
5808 @: $(MAKE); $(unstage)
5809 @[ -f ./bison/Makefile ] || exit 0; \
b5422ad7
BM
5810 r=`${PWD_COMMAND}`; export r; \
5811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5812 $(HOST_EXPORTS) \
5813 for flag in $(EXTRA_HOST_FLAGS) ; do \
5814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5815 done; \
85bfb75e
JM
5816 echo "Doing install-html in bison" ; \
5817 (cd $(HOST_SUBDIR)/bison && \
b5422ad7
BM
5818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5820 "RANLIB=$${RANLIB}" \
901119ae 5821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5822 install-html) \
b5422ad7
BM
5823 || exit 1
5824
85bfb75e 5825@endif bison
b5422ad7 5826
85bfb75e
JM
5827.PHONY: maybe-installcheck-bison installcheck-bison
5828maybe-installcheck-bison:
5829@if bison
5830maybe-installcheck-bison: installcheck-bison
f87a2b2e 5831
85bfb75e
JM
5832installcheck-bison: \
5833 configure-bison
5834 @: $(MAKE); $(unstage)
5835 @[ -f ./bison/Makefile ] || exit 0; \
f87a2b2e
MS
5836 r=`${PWD_COMMAND}`; export r; \
5837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
5838 $(HOST_EXPORTS) \
5839 for flag in $(EXTRA_HOST_FLAGS) ; do \
5840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5841 done; \
85bfb75e
JM
5842 echo "Doing installcheck in bison" ; \
5843 (cd $(HOST_SUBDIR)/bison && \
f87a2b2e
MS
5844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5846 "RANLIB=$${RANLIB}" \
901119ae 5847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5848 installcheck) \
f87a2b2e
MS
5849 || exit 1
5850
85bfb75e 5851@endif bison
f87a2b2e 5852
85bfb75e
JM
5853.PHONY: maybe-mostlyclean-bison mostlyclean-bison
5854maybe-mostlyclean-bison:
5855@if bison
5856maybe-mostlyclean-bison: mostlyclean-bison
1358ccea 5857
85bfb75e
JM
5858mostlyclean-bison:
5859 @: $(MAKE); $(unstage)
5860 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
5861 r=`${PWD_COMMAND}`; export r; \
5862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5863 $(HOST_EXPORTS) \
d32ab992 5864 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5866 done; \
85bfb75e
JM
5867 echo "Doing mostlyclean in bison" ; \
5868 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
5869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5871 "RANLIB=$${RANLIB}" \
901119ae 5872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5873 mostlyclean) \
1358ccea
NN
5874 || exit 1
5875
85bfb75e 5876@endif bison
1358ccea 5877
85bfb75e
JM
5878.PHONY: maybe-clean-bison clean-bison
5879maybe-clean-bison:
5880@if bison
5881maybe-clean-bison: clean-bison
1358ccea 5882
85bfb75e
JM
5883clean-bison:
5884 @: $(MAKE); $(unstage)
5885 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
5886 r=`${PWD_COMMAND}`; export r; \
5887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5888 $(HOST_EXPORTS) \
d32ab992 5889 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5891 done; \
85bfb75e
JM
5892 echo "Doing clean in bison" ; \
5893 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
5894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5896 "RANLIB=$${RANLIB}" \
901119ae 5897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5898 clean) \
1358ccea
NN
5899 || exit 1
5900
85bfb75e 5901@endif bison
1358ccea 5902
85bfb75e
JM
5903.PHONY: maybe-distclean-bison distclean-bison
5904maybe-distclean-bison:
5905@if bison
5906maybe-distclean-bison: distclean-bison
9c4d2493 5907
85bfb75e
JM
5908distclean-bison:
5909 @: $(MAKE); $(unstage)
5910 @[ -f ./bison/Makefile ] || exit 0; \
9c4d2493
BM
5911 r=`${PWD_COMMAND}`; export r; \
5912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5913 $(HOST_EXPORTS) \
5914 for flag in $(EXTRA_HOST_FLAGS) ; do \
5915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5916 done; \
85bfb75e
JM
5917 echo "Doing distclean in bison" ; \
5918 (cd $(HOST_SUBDIR)/bison && \
9c4d2493
BM
5919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5921 "RANLIB=$${RANLIB}" \
901119ae 5922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5923 distclean) \
9c4d2493
BM
5924 || exit 1
5925
85bfb75e 5926@endif bison
9c4d2493 5927
85bfb75e
JM
5928.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
5929maybe-maintainer-clean-bison:
5930@if bison
5931maybe-maintainer-clean-bison: maintainer-clean-bison
65d6e994 5932
85bfb75e
JM
5933maintainer-clean-bison:
5934 @: $(MAKE); $(unstage)
5935 @[ -f ./bison/Makefile ] || exit 0; \
65d6e994
CD
5936 r=`${PWD_COMMAND}`; export r; \
5937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5938 $(HOST_EXPORTS) \
5939 for flag in $(EXTRA_HOST_FLAGS) ; do \
5940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5941 done; \
85bfb75e
JM
5942 echo "Doing maintainer-clean in bison" ; \
5943 (cd $(HOST_SUBDIR)/bison && \
65d6e994
CD
5944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5946 "RANLIB=$${RANLIB}" \
901119ae 5947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 5948 maintainer-clean) \
65d6e994
CD
5949 || exit 1
5950
85bfb75e 5951@endif bison
65d6e994 5952
1358ccea 5953
85bfb75e
JM
5954
5955.PHONY: configure-cgen maybe-configure-cgen
5956maybe-configure-cgen:
5957@if gcc-bootstrap
5958configure-cgen: stage_current
5959@endif gcc-bootstrap
5960@if cgen
5961maybe-configure-cgen: configure-cgen
5962configure-cgen:
5963 @: $(MAKE); $(unstage)
5964 @r=`${PWD_COMMAND}`; export r; \
5965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5966 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
5967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen ; \
5968 $(HOST_EXPORTS) \
5969 echo Configuring in $(HOST_SUBDIR)/cgen; \
5970 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
5971 case $(srcdir) in \
5972 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5973 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
5974 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5975 esac; \
5976 srcdiroption="--srcdir=$${topdir}/cgen"; \
5977 libsrcdir="$$s/cgen"; \
5978 $(SHELL) $${libsrcdir}/configure \
5979 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5980 --target=${target_alias} $${srcdiroption} \
5981 || exit 1
5982@endif cgen
5983
5984
5985
5986
5987
5988.PHONY: all-cgen maybe-all-cgen
5989maybe-all-cgen:
5990@if gcc-bootstrap
5991all-cgen: stage_current
5992@endif gcc-bootstrap
5993@if cgen
5994TARGET-cgen=all
5995maybe-all-cgen: all-cgen
5996all-cgen: configure-cgen
5997 @: $(MAKE); $(unstage)
5998 @r=`${PWD_COMMAND}`; export r; \
5999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6000 $(HOST_EXPORTS) \
6001 (cd $(HOST_SUBDIR)/cgen && \
6002 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
6003 $(TARGET-cgen))
6004@endif cgen
6005
6006
6007
6008
6009.PHONY: check-cgen maybe-check-cgen
6010maybe-check-cgen:
6011@if cgen
6012maybe-check-cgen: check-cgen
6013
6014check-cgen:
6015 @: $(MAKE); $(unstage)
6016 @r=`${PWD_COMMAND}`; export r; \
6017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6018 $(HOST_EXPORTS) \
6019 (cd $(HOST_SUBDIR)/cgen && \
6020 $(MAKE) $(FLAGS_TO_PASS) check)
6021
6022@endif cgen
6023
6024.PHONY: install-cgen maybe-install-cgen
6025maybe-install-cgen:
6026@if cgen
6027maybe-install-cgen: install-cgen
6028
6029install-cgen: installdirs
6030 @: $(MAKE); $(unstage)
6031 @r=`${PWD_COMMAND}`; export r; \
6032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6033 $(HOST_EXPORTS) \
6034 (cd $(HOST_SUBDIR)/cgen && \
6035 $(MAKE) $(FLAGS_TO_PASS) install)
6036
6037@endif cgen
6038
6039.PHONY: install-strip-cgen maybe-install-strip-cgen
6040maybe-install-strip-cgen:
6041@if cgen
6042maybe-install-strip-cgen: install-strip-cgen
6043
6044install-strip-cgen: installdirs
6045 @: $(MAKE); $(unstage)
6046 @r=`${PWD_COMMAND}`; export r; \
6047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6048 $(HOST_EXPORTS) \
6049 (cd $(HOST_SUBDIR)/cgen && \
6050 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6051
6052@endif cgen
6053
6054# Other targets (info, dvi, pdf, etc.)
6055
6056.PHONY: maybe-info-cgen info-cgen
6057maybe-info-cgen:
6058@if cgen
6059maybe-info-cgen: info-cgen
6060
6061info-cgen: \
6062 configure-cgen
6063 @: $(MAKE); $(unstage)
6064 @[ -f ./cgen/Makefile ] || exit 0; \
8c90b13a
L
6065 r=`${PWD_COMMAND}`; export r; \
6066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6067 $(HOST_EXPORTS) \
d32ab992 6068 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6070 done; \
85bfb75e
JM
6071 echo "Doing info in cgen" ; \
6072 (cd $(HOST_SUBDIR)/cgen && \
1358ccea
NN
6073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6075 "RANLIB=$${RANLIB}" \
901119ae 6076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 6077 info) \
1358ccea
NN
6078 || exit 1
6079
85bfb75e 6080@endif cgen
1358ccea 6081
85bfb75e
JM
6082.PHONY: maybe-dvi-cgen dvi-cgen
6083maybe-dvi-cgen:
6084@if cgen
6085maybe-dvi-cgen: dvi-cgen
1358ccea 6086
85bfb75e
JM
6087dvi-cgen: \
6088 configure-cgen
6089 @: $(MAKE); $(unstage)
6090 @[ -f ./cgen/Makefile ] || exit 0; \
8c90b13a
L
6091 r=`${PWD_COMMAND}`; export r; \
6092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6093 $(HOST_EXPORTS) \
d32ab992 6094 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6096 done; \
85bfb75e
JM
6097 echo "Doing dvi in cgen" ; \
6098 (cd $(HOST_SUBDIR)/cgen && \
1358ccea
NN
6099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6101 "RANLIB=$${RANLIB}" \
901119ae 6102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 6103 dvi) \
1358ccea
NN
6104 || exit 1
6105
85bfb75e 6106@endif cgen
1358ccea 6107
85bfb75e
JM
6108.PHONY: maybe-pdf-cgen pdf-cgen
6109maybe-pdf-cgen:
6110@if cgen
6111maybe-pdf-cgen: pdf-cgen
1358ccea 6112
85bfb75e
JM
6113pdf-cgen: \
6114 configure-cgen
6115 @: $(MAKE); $(unstage)
6116 @[ -f ./cgen/Makefile ] || exit 0; \
8c90b13a
L
6117 r=`${PWD_COMMAND}`; export r; \
6118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6119 $(HOST_EXPORTS) \
d32ab992 6120 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6122 done; \
85bfb75e
JM
6123 echo "Doing pdf in cgen" ; \
6124 (cd $(HOST_SUBDIR)/cgen && \
1358ccea
NN
6125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6127 "RANLIB=$${RANLIB}" \
901119ae 6128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 6129 pdf) \
1358ccea
NN
6130 || exit 1
6131
85bfb75e 6132@endif cgen
1358ccea 6133
85bfb75e
JM
6134.PHONY: maybe-html-cgen html-cgen
6135maybe-html-cgen:
6136@if cgen
6137maybe-html-cgen: html-cgen
1358ccea 6138
85bfb75e
JM
6139html-cgen: \
6140 configure-cgen
6141 @: $(MAKE); $(unstage)
6142 @[ -f ./cgen/Makefile ] || exit 0; \
8c90b13a
L
6143 r=`${PWD_COMMAND}`; export r; \
6144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6145 $(HOST_EXPORTS) \
d32ab992 6146 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6148 done; \
85bfb75e
JM
6149 echo "Doing html in cgen" ; \
6150 (cd $(HOST_SUBDIR)/cgen && \
1358ccea
NN
6151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6153 "RANLIB=$${RANLIB}" \
901119ae 6154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 6155 html) \
1358ccea
NN
6156 || exit 1
6157
85bfb75e 6158@endif cgen
1358ccea 6159
85bfb75e
JM
6160.PHONY: maybe-TAGS-cgen TAGS-cgen
6161maybe-TAGS-cgen:
6162@if cgen
6163maybe-TAGS-cgen: TAGS-cgen
1358ccea 6164
85bfb75e
JM
6165TAGS-cgen: \
6166 configure-cgen
6167 @: $(MAKE); $(unstage)
6168 @[ -f ./cgen/Makefile ] || exit 0; \
8c90b13a
L
6169 r=`${PWD_COMMAND}`; export r; \
6170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6171 $(HOST_EXPORTS) \
d32ab992 6172 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6174 done; \
85bfb75e
JM
6175 echo "Doing TAGS in cgen" ; \
6176 (cd $(HOST_SUBDIR)/cgen && \
1358ccea
NN
6177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6179 "RANLIB=$${RANLIB}" \
901119ae 6180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 6181 TAGS) \
1358ccea
NN
6182 || exit 1
6183
85bfb75e 6184@endif cgen
1358ccea 6185
85bfb75e
JM
6186.PHONY: maybe-install-info-cgen install-info-cgen
6187maybe-install-info-cgen:
6188@if cgen
6189maybe-install-info-cgen: install-info-cgen
1358ccea 6190
85bfb75e
JM
6191install-info-cgen: \
6192 configure-cgen \
6193 info-cgen
6194 @: $(MAKE); $(unstage)
6195 @[ -f ./cgen/Makefile ] || exit 0; \
6196 r=`${PWD_COMMAND}`; export r; \
6197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6198 $(HOST_EXPORTS) \
6199 for flag in $(EXTRA_HOST_FLAGS) ; do \
6200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6201 done; \
6202 echo "Doing install-info in cgen" ; \
6203 (cd $(HOST_SUBDIR)/cgen && \
6204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6206 "RANLIB=$${RANLIB}" \
6207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6208 install-info) \
6209 || exit 1
25b42232 6210
85bfb75e
JM
6211@endif cgen
6212
6213.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6214maybe-install-pdf-cgen:
6215@if cgen
6216maybe-install-pdf-cgen: install-pdf-cgen
6217
6218install-pdf-cgen: \
6219 configure-cgen \
6220 pdf-cgen
6221 @: $(MAKE); $(unstage)
6222 @[ -f ./cgen/Makefile ] || exit 0; \
6223 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
6225 $(HOST_EXPORTS) \
6226 for flag in $(EXTRA_HOST_FLAGS) ; do \
6227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6228 done; \
6229 echo "Doing install-pdf in cgen" ; \
6230 (cd $(HOST_SUBDIR)/cgen && \
6231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6233 "RANLIB=$${RANLIB}" \
6234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6235 install-pdf) \
295f4e42
NN
6236 || exit 1
6237
85bfb75e 6238@endif cgen
25b42232 6239
85bfb75e
JM
6240.PHONY: maybe-install-html-cgen install-html-cgen
6241maybe-install-html-cgen:
6242@if cgen
6243maybe-install-html-cgen: install-html-cgen
25b42232 6244
85bfb75e
JM
6245install-html-cgen: \
6246 configure-cgen \
6247 html-cgen
6248 @: $(MAKE); $(unstage)
6249 @[ -f ./cgen/Makefile ] || exit 0; \
6250 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 6252 $(HOST_EXPORTS) \
85bfb75e
JM
6253 for flag in $(EXTRA_HOST_FLAGS) ; do \
6254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6255 done; \
6256 echo "Doing install-html in cgen" ; \
6257 (cd $(HOST_SUBDIR)/cgen && \
6258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6260 "RANLIB=$${RANLIB}" \
6261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6262 install-html) \
6263 || exit 1
ce406537 6264
85bfb75e
JM
6265@endif cgen
6266
6267.PHONY: maybe-installcheck-cgen installcheck-cgen
6268maybe-installcheck-cgen:
6269@if cgen
6270maybe-installcheck-cgen: installcheck-cgen
6271
6272installcheck-cgen: \
6273 configure-cgen
6274 @: $(MAKE); $(unstage)
6275 @[ -f ./cgen/Makefile ] || exit 0; \
6276 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 6278 $(HOST_EXPORTS) \
85bfb75e
JM
6279 for flag in $(EXTRA_HOST_FLAGS) ; do \
6280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6281 done; \
6282 echo "Doing installcheck in cgen" ; \
6283 (cd $(HOST_SUBDIR)/cgen && \
6284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6286 "RANLIB=$${RANLIB}" \
6287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6288 installcheck) \
6289 || exit 1
bb286d71 6290
85bfb75e
JM
6291@endif cgen
6292
6293.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6294maybe-mostlyclean-cgen:
6295@if cgen
6296maybe-mostlyclean-cgen: mostlyclean-cgen
6297
6298mostlyclean-cgen:
6299 @: $(MAKE); $(unstage)
6300 @[ -f ./cgen/Makefile ] || exit 0; \
6301 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 6303 $(HOST_EXPORTS) \
85bfb75e
JM
6304 for flag in $(EXTRA_HOST_FLAGS) ; do \
6305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6306 done; \
6307 echo "Doing mostlyclean in cgen" ; \
6308 (cd $(HOST_SUBDIR)/cgen && \
6309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6311 "RANLIB=$${RANLIB}" \
6312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6313 mostlyclean) \
6314 || exit 1
bb286d71 6315
85bfb75e
JM
6316@endif cgen
6317
6318.PHONY: maybe-clean-cgen clean-cgen
6319maybe-clean-cgen:
6320@if cgen
6321maybe-clean-cgen: clean-cgen
6322
6323clean-cgen:
6324 @: $(MAKE); $(unstage)
6325 @[ -f ./cgen/Makefile ] || exit 0; \
6326 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 6328 $(HOST_EXPORTS) \
85bfb75e
JM
6329 for flag in $(EXTRA_HOST_FLAGS) ; do \
6330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6331 done; \
6332 echo "Doing clean in cgen" ; \
6333 (cd $(HOST_SUBDIR)/cgen && \
6334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6336 "RANLIB=$${RANLIB}" \
6337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6338 clean) \
6339 || exit 1
ce406537 6340
85bfb75e
JM
6341@endif cgen
6342
6343.PHONY: maybe-distclean-cgen distclean-cgen
6344maybe-distclean-cgen:
6345@if cgen
6346maybe-distclean-cgen: distclean-cgen
6347
6348distclean-cgen:
6349 @: $(MAKE); $(unstage)
6350 @[ -f ./cgen/Makefile ] || exit 0; \
6351 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 6353 $(HOST_EXPORTS) \
85bfb75e
JM
6354 for flag in $(EXTRA_HOST_FLAGS) ; do \
6355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6356 done; \
6357 echo "Doing distclean in cgen" ; \
6358 (cd $(HOST_SUBDIR)/cgen && \
6359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6361 "RANLIB=$${RANLIB}" \
6362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6363 distclean) \
6364 || exit 1
ce406537 6365
85bfb75e
JM
6366@endif cgen
6367
6368.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6369maybe-maintainer-clean-cgen:
6370@if cgen
6371maybe-maintainer-clean-cgen: maintainer-clean-cgen
6372
6373maintainer-clean-cgen:
6374 @: $(MAKE); $(unstage)
6375 @[ -f ./cgen/Makefile ] || exit 0; \
6376 r=`${PWD_COMMAND}`; export r; \
cc11cc9b 6377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 6378 $(HOST_EXPORTS) \
85bfb75e
JM
6379 for flag in $(EXTRA_HOST_FLAGS) ; do \
6380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6381 done; \
6382 echo "Doing maintainer-clean in cgen" ; \
6383 (cd $(HOST_SUBDIR)/cgen && \
6384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6386 "RANLIB=$${RANLIB}" \
6387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6388 maintainer-clean) \
6389 || exit 1
6390
6391@endif cgen
6392
6393
6394
6395.PHONY: configure-dejagnu maybe-configure-dejagnu
6396maybe-configure-dejagnu:
6397@if gcc-bootstrap
6398configure-dejagnu: stage_current
6399@endif gcc-bootstrap
6400@if dejagnu
6401maybe-configure-dejagnu: configure-dejagnu
6402configure-dejagnu:
6403 @: $(MAKE); $(unstage)
6404 @r=`${PWD_COMMAND}`; export r; \
6405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6406 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
6407 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
6408 $(HOST_EXPORTS) \
6409 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6410 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
ce406537
PB
6411 case $(srcdir) in \
6412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 6413 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
ce406537
PB
6414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6415 esac; \
85bfb75e
JM
6416 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
6417 libsrcdir="$$s/dejagnu"; \
ce406537 6418 $(SHELL) $${libsrcdir}/configure \
e69bf64b 6419 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e
JM
6420 --target=${target_alias} $${srcdiroption} \
6421 || exit 1
6422@endif dejagnu
ce406537
PB
6423
6424
6425
6426
6427
85bfb75e
JM
6428.PHONY: all-dejagnu maybe-all-dejagnu
6429maybe-all-dejagnu:
3ff3adad 6430@if gcc-bootstrap
85bfb75e 6431all-dejagnu: stage_current
3ff3adad 6432@endif gcc-bootstrap
85bfb75e
JM
6433@if dejagnu
6434TARGET-dejagnu=all
6435maybe-all-dejagnu: all-dejagnu
6436all-dejagnu: configure-dejagnu
6437 @: $(MAKE); $(unstage)
cc11cc9b 6438 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 6440 $(HOST_EXPORTS) \
85bfb75e 6441 (cd $(HOST_SUBDIR)/dejagnu && \
1c8bd6a3 6442 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
6443 $(TARGET-dejagnu))
6444@endif dejagnu
295f4e42 6445
25b42232 6446
295f4e42 6447
85bfb75e
JM
6448
6449.PHONY: check-dejagnu maybe-check-dejagnu
6450maybe-check-dejagnu:
6451@if dejagnu
6452maybe-check-dejagnu: check-dejagnu
6453
6454check-dejagnu:
6455 @: $(MAKE); $(unstage)
295f4e42
NN
6456 @r=`${PWD_COMMAND}`; export r; \
6457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
6458 $(HOST_EXPORTS) \
6459 (cd $(HOST_SUBDIR)/dejagnu && \
6460 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 6461
85bfb75e 6462@endif dejagnu
295f4e42 6463
85bfb75e
JM
6464.PHONY: install-dejagnu maybe-install-dejagnu
6465maybe-install-dejagnu:
6466@if dejagnu
6467maybe-install-dejagnu: install-dejagnu
295f4e42 6468
85bfb75e
JM
6469install-dejagnu: installdirs
6470 @: $(MAKE); $(unstage)
295f4e42
NN
6471 @r=`${PWD_COMMAND}`; export r; \
6472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6473 $(HOST_EXPORTS) \
85bfb75e
JM
6474 (cd $(HOST_SUBDIR)/dejagnu && \
6475 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 6476
85bfb75e 6477@endif dejagnu
ce406537 6478
85bfb75e
JM
6479.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6480maybe-install-strip-dejagnu:
6481@if dejagnu
6482maybe-install-strip-dejagnu: install-strip-dejagnu
455c8f48 6483
85bfb75e 6484install-strip-dejagnu: installdirs
455c8f48
RW
6485 @: $(MAKE); $(unstage)
6486 @r=`${PWD_COMMAND}`; export r; \
6487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6488 $(HOST_EXPORTS) \
85bfb75e 6489 (cd $(HOST_SUBDIR)/dejagnu && \
455c8f48
RW
6490 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6491
85bfb75e 6492@endif dejagnu
455c8f48 6493
b5422ad7 6494# Other targets (info, dvi, pdf, etc.)
ce406537 6495
85bfb75e
JM
6496.PHONY: maybe-info-dejagnu info-dejagnu
6497maybe-info-dejagnu:
6498@if dejagnu
6499maybe-info-dejagnu: info-dejagnu
ce406537 6500
85bfb75e
JM
6501info-dejagnu: \
6502 configure-dejagnu
6503 @: $(MAKE); $(unstage)
6504 @[ -f ./dejagnu/Makefile ] || exit 0; \
ce406537
PB
6505 r=`${PWD_COMMAND}`; export r; \
6506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6507 $(HOST_EXPORTS) \
6508 for flag in $(EXTRA_HOST_FLAGS) ; do \
6509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6510 done; \
85bfb75e
JM
6511 echo "Doing info in dejagnu" ; \
6512 (cd $(HOST_SUBDIR)/dejagnu && \
ce406537
PB
6513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6515 "RANLIB=$${RANLIB}" \
901119ae 6516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
ce406537
PB
6517 info) \
6518 || exit 1
6519
85bfb75e 6520@endif dejagnu
ce406537 6521
85bfb75e
JM
6522.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6523maybe-dvi-dejagnu:
6524@if dejagnu
6525maybe-dvi-dejagnu: dvi-dejagnu
ce406537 6526
85bfb75e
JM
6527dvi-dejagnu: \
6528 configure-dejagnu
6529 @: $(MAKE); $(unstage)
6530 @[ -f ./dejagnu/Makefile ] || exit 0; \
ce406537
PB
6531 r=`${PWD_COMMAND}`; export r; \
6532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6533 $(HOST_EXPORTS) \
6534 for flag in $(EXTRA_HOST_FLAGS) ; do \
6535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6536 done; \
85bfb75e
JM
6537 echo "Doing dvi in dejagnu" ; \
6538 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6541 "RANLIB=$${RANLIB}" \
901119ae 6542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6543 dvi) \
1358ccea
NN
6544 || exit 1
6545
85bfb75e 6546@endif dejagnu
1358ccea 6547
85bfb75e
JM
6548.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6549maybe-pdf-dejagnu:
6550@if dejagnu
6551maybe-pdf-dejagnu: pdf-dejagnu
b5422ad7 6552
85bfb75e
JM
6553pdf-dejagnu: \
6554 configure-dejagnu
6555 @: $(MAKE); $(unstage)
6556 @[ -f ./dejagnu/Makefile ] || exit 0; \
b5422ad7
BM
6557 r=`${PWD_COMMAND}`; export r; \
6558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6559 $(HOST_EXPORTS) \
6560 for flag in $(EXTRA_HOST_FLAGS) ; do \
6561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6562 done; \
85bfb75e
JM
6563 echo "Doing pdf in dejagnu" ; \
6564 (cd $(HOST_SUBDIR)/dejagnu && \
b5422ad7
BM
6565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6567 "RANLIB=$${RANLIB}" \
901119ae 6568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
6569 pdf) \
6570 || exit 1
6571
85bfb75e 6572@endif dejagnu
b5422ad7 6573
85bfb75e
JM
6574.PHONY: maybe-html-dejagnu html-dejagnu
6575maybe-html-dejagnu:
6576@if dejagnu
6577maybe-html-dejagnu: html-dejagnu
f87a2b2e 6578
85bfb75e
JM
6579html-dejagnu: \
6580 configure-dejagnu
6581 @: $(MAKE); $(unstage)
6582 @[ -f ./dejagnu/Makefile ] || exit 0; \
f87a2b2e
MS
6583 r=`${PWD_COMMAND}`; export r; \
6584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6585 $(HOST_EXPORTS) \
6586 for flag in $(EXTRA_HOST_FLAGS) ; do \
6587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6588 done; \
85bfb75e
JM
6589 echo "Doing html in dejagnu" ; \
6590 (cd $(HOST_SUBDIR)/dejagnu && \
f87a2b2e
MS
6591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6593 "RANLIB=$${RANLIB}" \
901119ae 6594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
6595 html) \
6596 || exit 1
6597
85bfb75e 6598@endif dejagnu
f87a2b2e 6599
85bfb75e
JM
6600.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6601maybe-TAGS-dejagnu:
6602@if dejagnu
6603maybe-TAGS-dejagnu: TAGS-dejagnu
1358ccea 6604
85bfb75e
JM
6605TAGS-dejagnu: \
6606 configure-dejagnu
6607 @: $(MAKE); $(unstage)
6608 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6609 r=`${PWD_COMMAND}`; export r; \
6610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6611 $(HOST_EXPORTS) \
d32ab992 6612 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6614 done; \
85bfb75e
JM
6615 echo "Doing TAGS in dejagnu" ; \
6616 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6619 "RANLIB=$${RANLIB}" \
901119ae 6620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6621 TAGS) \
1358ccea
NN
6622 || exit 1
6623
85bfb75e 6624@endif dejagnu
1358ccea 6625
85bfb75e
JM
6626.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6627maybe-install-info-dejagnu:
6628@if dejagnu
6629maybe-install-info-dejagnu: install-info-dejagnu
1358ccea 6630
85bfb75e
JM
6631install-info-dejagnu: \
6632 configure-dejagnu \
6633 info-dejagnu
6634 @: $(MAKE); $(unstage)
6635 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6636 r=`${PWD_COMMAND}`; export r; \
6637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6638 $(HOST_EXPORTS) \
d32ab992 6639 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6641 done; \
85bfb75e
JM
6642 echo "Doing install-info in dejagnu" ; \
6643 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6646 "RANLIB=$${RANLIB}" \
901119ae 6647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6648 install-info) \
1358ccea
NN
6649 || exit 1
6650
85bfb75e 6651@endif dejagnu
1358ccea 6652
85bfb75e
JM
6653.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6654maybe-install-pdf-dejagnu:
6655@if dejagnu
6656maybe-install-pdf-dejagnu: install-pdf-dejagnu
9c4d2493 6657
85bfb75e
JM
6658install-pdf-dejagnu: \
6659 configure-dejagnu \
6660 pdf-dejagnu
6661 @: $(MAKE); $(unstage)
6662 @[ -f ./dejagnu/Makefile ] || exit 0; \
9c4d2493
BM
6663 r=`${PWD_COMMAND}`; export r; \
6664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6665 $(HOST_EXPORTS) \
6666 for flag in $(EXTRA_HOST_FLAGS) ; do \
6667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6668 done; \
85bfb75e
JM
6669 echo "Doing install-pdf in dejagnu" ; \
6670 (cd $(HOST_SUBDIR)/dejagnu && \
9c4d2493
BM
6671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6673 "RANLIB=$${RANLIB}" \
901119ae 6674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
6675 install-pdf) \
6676 || exit 1
6677
85bfb75e 6678@endif dejagnu
9c4d2493 6679
85bfb75e
JM
6680.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6681maybe-install-html-dejagnu:
6682@if dejagnu
6683maybe-install-html-dejagnu: install-html-dejagnu
65d6e994 6684
85bfb75e
JM
6685install-html-dejagnu: \
6686 configure-dejagnu \
6687 html-dejagnu
6688 @: $(MAKE); $(unstage)
6689 @[ -f ./dejagnu/Makefile ] || exit 0; \
65d6e994
CD
6690 r=`${PWD_COMMAND}`; export r; \
6691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6692 $(HOST_EXPORTS) \
6693 for flag in $(EXTRA_HOST_FLAGS) ; do \
6694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6695 done; \
85bfb75e
JM
6696 echo "Doing install-html in dejagnu" ; \
6697 (cd $(HOST_SUBDIR)/dejagnu && \
65d6e994
CD
6698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6700 "RANLIB=$${RANLIB}" \
901119ae 6701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
6702 install-html) \
6703 || exit 1
6704
85bfb75e 6705@endif dejagnu
65d6e994 6706
85bfb75e
JM
6707.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6708maybe-installcheck-dejagnu:
6709@if dejagnu
6710maybe-installcheck-dejagnu: installcheck-dejagnu
1358ccea 6711
85bfb75e
JM
6712installcheck-dejagnu: \
6713 configure-dejagnu
6714 @: $(MAKE); $(unstage)
6715 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6716 r=`${PWD_COMMAND}`; export r; \
6717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6718 $(HOST_EXPORTS) \
d32ab992 6719 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6721 done; \
85bfb75e
JM
6722 echo "Doing installcheck in dejagnu" ; \
6723 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6726 "RANLIB=$${RANLIB}" \
901119ae 6727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6728 installcheck) \
1358ccea
NN
6729 || exit 1
6730
85bfb75e 6731@endif dejagnu
1358ccea 6732
85bfb75e
JM
6733.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
6734maybe-mostlyclean-dejagnu:
6735@if dejagnu
6736maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
1358ccea 6737
85bfb75e
JM
6738mostlyclean-dejagnu:
6739 @: $(MAKE); $(unstage)
6740 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6741 r=`${PWD_COMMAND}`; export r; \
6742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6743 $(HOST_EXPORTS) \
d32ab992 6744 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6746 done; \
85bfb75e
JM
6747 echo "Doing mostlyclean in dejagnu" ; \
6748 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6751 "RANLIB=$${RANLIB}" \
901119ae 6752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6753 mostlyclean) \
1358ccea
NN
6754 || exit 1
6755
85bfb75e 6756@endif dejagnu
1358ccea 6757
85bfb75e
JM
6758.PHONY: maybe-clean-dejagnu clean-dejagnu
6759maybe-clean-dejagnu:
6760@if dejagnu
6761maybe-clean-dejagnu: clean-dejagnu
d9cdb878 6762
85bfb75e
JM
6763clean-dejagnu:
6764 @: $(MAKE); $(unstage)
6765 @[ -f ./dejagnu/Makefile ] || exit 0; \
d9cdb878
AC
6766 r=`${PWD_COMMAND}`; export r; \
6767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6768 $(HOST_EXPORTS) \
d32ab992 6769 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
6770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6771 done; \
85bfb75e
JM
6772 echo "Doing clean in dejagnu" ; \
6773 (cd $(HOST_SUBDIR)/dejagnu && \
d9cdb878
AC
6774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6776 "RANLIB=$${RANLIB}" \
901119ae 6777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6778 clean) \
d9cdb878
AC
6779 || exit 1
6780
85bfb75e 6781@endif dejagnu
d9cdb878 6782
85bfb75e
JM
6783.PHONY: maybe-distclean-dejagnu distclean-dejagnu
6784maybe-distclean-dejagnu:
6785@if dejagnu
6786maybe-distclean-dejagnu: distclean-dejagnu
1358ccea 6787
85bfb75e
JM
6788distclean-dejagnu:
6789 @: $(MAKE); $(unstage)
6790 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6791 r=`${PWD_COMMAND}`; export r; \
6792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6793 $(HOST_EXPORTS) \
d32ab992 6794 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6796 done; \
85bfb75e
JM
6797 echo "Doing distclean in dejagnu" ; \
6798 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6801 "RANLIB=$${RANLIB}" \
901119ae 6802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6803 distclean) \
1358ccea
NN
6804 || exit 1
6805
85bfb75e 6806@endif dejagnu
1358ccea 6807
85bfb75e
JM
6808.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
6809maybe-maintainer-clean-dejagnu:
6810@if dejagnu
6811maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
1358ccea 6812
85bfb75e
JM
6813maintainer-clean-dejagnu:
6814 @: $(MAKE); $(unstage)
6815 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
6816 r=`${PWD_COMMAND}`; export r; \
6817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6818 $(HOST_EXPORTS) \
d32ab992 6819 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6821 done; \
85bfb75e
JM
6822 echo "Doing maintainer-clean in dejagnu" ; \
6823 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
6824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6826 "RANLIB=$${RANLIB}" \
901119ae 6827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6828 maintainer-clean) \
295f4e42
NN
6829 || exit 1
6830
85bfb75e 6831@endif dejagnu
295f4e42
NN
6832
6833
25b42232 6834
85bfb75e
JM
6835.PHONY: configure-etc maybe-configure-etc
6836maybe-configure-etc:
3ff3adad 6837@if gcc-bootstrap
85bfb75e 6838configure-etc: stage_current
3ff3adad 6839@endif gcc-bootstrap
85bfb75e
JM
6840@if etc
6841maybe-configure-etc: configure-etc
6842configure-etc:
f41d6665 6843 @: $(MAKE); $(unstage)
cc11cc9b 6844 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
6846 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
6847 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
f61428ed 6848 $(HOST_EXPORTS) \
85bfb75e
JM
6849 echo Configuring in $(HOST_SUBDIR)/etc; \
6850 cd "$(HOST_SUBDIR)/etc" || exit 1; \
295f4e42 6851 case $(srcdir) in \
215c351a 6852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 6853 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
215c351a 6854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6855 esac; \
85bfb75e
JM
6856 srcdiroption="--srcdir=$${topdir}/etc"; \
6857 libsrcdir="$$s/etc"; \
295f4e42 6858 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
6859 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6860 --target=${target_alias} $${srcdiroption} \
1358ccea 6861 || exit 1
85bfb75e 6862@endif etc
1358ccea 6863
25b42232
PB
6864
6865
ce406537
PB
6866
6867
85bfb75e
JM
6868.PHONY: all-etc maybe-all-etc
6869maybe-all-etc:
3ff3adad 6870@if gcc-bootstrap
85bfb75e 6871all-etc: stage_current
3ff3adad 6872@endif gcc-bootstrap
85bfb75e
JM
6873@if etc
6874TARGET-etc=all
6875maybe-all-etc: all-etc
6876all-etc: configure-etc
f41d6665 6877 @: $(MAKE); $(unstage)
295f4e42
NN
6878 @r=`${PWD_COMMAND}`; export r; \
6879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 6880 $(HOST_EXPORTS) \
85bfb75e 6881 (cd $(HOST_SUBDIR)/etc && \
1c8bd6a3 6882 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
6883 $(TARGET-etc))
6884@endif etc
295f4e42 6885
25b42232 6886
ce406537
PB
6887
6888
85bfb75e
JM
6889.PHONY: check-etc maybe-check-etc
6890maybe-check-etc:
6891@if etc
6892maybe-check-etc: check-etc
295f4e42 6893
85bfb75e 6894check-etc:
f41d6665 6895 @: $(MAKE); $(unstage)
85bfb75e
JM
6896 @r=`${PWD_COMMAND}`; export r; \
6897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6898 $(HOST_EXPORTS) \
6899 (cd $(HOST_SUBDIR)/etc && \
6900 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 6901
85bfb75e 6902@endif etc
1358ccea 6903
85bfb75e
JM
6904.PHONY: install-etc maybe-install-etc
6905maybe-install-etc:
6906@if etc
6907maybe-install-etc: install-etc
1358ccea 6908
85bfb75e 6909install-etc: installdirs
f41d6665 6910 @: $(MAKE); $(unstage)
295f4e42 6911 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6913 $(HOST_EXPORTS) \
85bfb75e 6914 (cd $(HOST_SUBDIR)/etc && \
ace9ac7b 6915 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6916
85bfb75e 6917@endif etc
1358ccea 6918
85bfb75e
JM
6919.PHONY: install-strip-etc maybe-install-strip-etc
6920maybe-install-strip-etc:
6921@if etc
6922maybe-install-strip-etc: install-strip-etc
455c8f48 6923
85bfb75e 6924install-strip-etc: installdirs
455c8f48
RW
6925 @: $(MAKE); $(unstage)
6926 @r=`${PWD_COMMAND}`; export r; \
6927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6928 $(HOST_EXPORTS) \
85bfb75e 6929 (cd $(HOST_SUBDIR)/etc && \
455c8f48
RW
6930 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6931
85bfb75e 6932@endif etc
455c8f48 6933
b5422ad7 6934# Other targets (info, dvi, pdf, etc.)
1358ccea 6935
85bfb75e
JM
6936.PHONY: maybe-info-etc info-etc
6937maybe-info-etc:
6938@if etc
6939maybe-info-etc: info-etc
295f4e42 6940
85bfb75e
JM
6941info-etc: \
6942 configure-etc
f41d6665 6943 @: $(MAKE); $(unstage)
85bfb75e 6944 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6945 r=`${PWD_COMMAND}`; export r; \
6946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6947 $(HOST_EXPORTS) \
d32ab992 6948 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6950 done; \
85bfb75e
JM
6951 echo "Doing info in etc" ; \
6952 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
6953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6955 "RANLIB=$${RANLIB}" \
901119ae 6956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6957 info) \
1358ccea
NN
6958 || exit 1
6959
85bfb75e 6960@endif etc
1358ccea 6961
85bfb75e
JM
6962.PHONY: maybe-dvi-etc dvi-etc
6963maybe-dvi-etc:
6964@if etc
6965maybe-dvi-etc: dvi-etc
1358ccea 6966
85bfb75e
JM
6967dvi-etc: \
6968 configure-etc
f41d6665 6969 @: $(MAKE); $(unstage)
85bfb75e 6970 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
6971 r=`${PWD_COMMAND}`; export r; \
6972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6973 $(HOST_EXPORTS) \
d32ab992 6974 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6976 done; \
85bfb75e
JM
6977 echo "Doing dvi in etc" ; \
6978 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
6979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6981 "RANLIB=$${RANLIB}" \
901119ae 6982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 6983 dvi) \
1358ccea
NN
6984 || exit 1
6985
85bfb75e 6986@endif etc
1358ccea 6987
85bfb75e
JM
6988.PHONY: maybe-pdf-etc pdf-etc
6989maybe-pdf-etc:
6990@if etc
6991maybe-pdf-etc: pdf-etc
b5422ad7 6992
85bfb75e
JM
6993pdf-etc: \
6994 configure-etc
b5422ad7 6995 @: $(MAKE); $(unstage)
85bfb75e 6996 @[ -f ./etc/Makefile ] || exit 0; \
b5422ad7
BM
6997 r=`${PWD_COMMAND}`; export r; \
6998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6999 $(HOST_EXPORTS) \
7000 for flag in $(EXTRA_HOST_FLAGS) ; do \
7001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7002 done; \
85bfb75e
JM
7003 echo "Doing pdf in etc" ; \
7004 (cd $(HOST_SUBDIR)/etc && \
b5422ad7
BM
7005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7007 "RANLIB=$${RANLIB}" \
901119ae 7008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
7009 pdf) \
7010 || exit 1
7011
85bfb75e 7012@endif etc
b5422ad7 7013
85bfb75e
JM
7014.PHONY: maybe-html-etc html-etc
7015maybe-html-etc:
7016@if etc
7017maybe-html-etc: html-etc
f87a2b2e 7018
85bfb75e
JM
7019html-etc: \
7020 configure-etc
f41d6665 7021 @: $(MAKE); $(unstage)
85bfb75e 7022 @[ -f ./etc/Makefile ] || exit 0; \
f87a2b2e
MS
7023 r=`${PWD_COMMAND}`; export r; \
7024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7025 $(HOST_EXPORTS) \
7026 for flag in $(EXTRA_HOST_FLAGS) ; do \
7027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7028 done; \
85bfb75e
JM
7029 echo "Doing html in etc" ; \
7030 (cd $(HOST_SUBDIR)/etc && \
f87a2b2e
MS
7031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7033 "RANLIB=$${RANLIB}" \
901119ae 7034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
7035 html) \
7036 || exit 1
7037
85bfb75e 7038@endif etc
f87a2b2e 7039
85bfb75e
JM
7040.PHONY: maybe-TAGS-etc TAGS-etc
7041maybe-TAGS-etc:
7042@if etc
7043maybe-TAGS-etc: TAGS-etc
1358ccea 7044
85bfb75e
JM
7045TAGS-etc: \
7046 configure-etc
f41d6665 7047 @: $(MAKE); $(unstage)
85bfb75e 7048 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7049 r=`${PWD_COMMAND}`; export r; \
7050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7051 $(HOST_EXPORTS) \
d32ab992 7052 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7054 done; \
85bfb75e
JM
7055 echo "Doing TAGS in etc" ; \
7056 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7059 "RANLIB=$${RANLIB}" \
901119ae 7060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7061 TAGS) \
1358ccea
NN
7062 || exit 1
7063
85bfb75e 7064@endif etc
1358ccea 7065
85bfb75e
JM
7066.PHONY: maybe-install-info-etc install-info-etc
7067maybe-install-info-etc:
7068@if etc
7069maybe-install-info-etc: install-info-etc
1358ccea 7070
85bfb75e
JM
7071install-info-etc: \
7072 configure-etc \
7073 info-etc
f41d6665 7074 @: $(MAKE); $(unstage)
85bfb75e 7075 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7076 r=`${PWD_COMMAND}`; export r; \
7077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7078 $(HOST_EXPORTS) \
d32ab992 7079 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7081 done; \
85bfb75e
JM
7082 echo "Doing install-info in etc" ; \
7083 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7086 "RANLIB=$${RANLIB}" \
901119ae 7087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7088 install-info) \
1358ccea
NN
7089 || exit 1
7090
85bfb75e 7091@endif etc
1358ccea 7092
85bfb75e
JM
7093.PHONY: maybe-install-pdf-etc install-pdf-etc
7094maybe-install-pdf-etc:
7095@if etc
7096maybe-install-pdf-etc: install-pdf-etc
9c4d2493 7097
85bfb75e
JM
7098install-pdf-etc: \
7099 configure-etc \
7100 pdf-etc
9c4d2493 7101 @: $(MAKE); $(unstage)
85bfb75e 7102 @[ -f ./etc/Makefile ] || exit 0; \
9c4d2493
BM
7103 r=`${PWD_COMMAND}`; export r; \
7104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7105 $(HOST_EXPORTS) \
7106 for flag in $(EXTRA_HOST_FLAGS) ; do \
7107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7108 done; \
85bfb75e
JM
7109 echo "Doing install-pdf in etc" ; \
7110 (cd $(HOST_SUBDIR)/etc && \
9c4d2493
BM
7111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7113 "RANLIB=$${RANLIB}" \
901119ae 7114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
7115 install-pdf) \
7116 || exit 1
7117
85bfb75e 7118@endif etc
9c4d2493 7119
85bfb75e
JM
7120.PHONY: maybe-install-html-etc install-html-etc
7121maybe-install-html-etc:
7122@if etc
7123maybe-install-html-etc: install-html-etc
65d6e994 7124
85bfb75e
JM
7125install-html-etc: \
7126 configure-etc \
7127 html-etc
65d6e994 7128 @: $(MAKE); $(unstage)
85bfb75e 7129 @[ -f ./etc/Makefile ] || exit 0; \
65d6e994
CD
7130 r=`${PWD_COMMAND}`; export r; \
7131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7132 $(HOST_EXPORTS) \
7133 for flag in $(EXTRA_HOST_FLAGS) ; do \
7134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7135 done; \
85bfb75e
JM
7136 echo "Doing install-html in etc" ; \
7137 (cd $(HOST_SUBDIR)/etc && \
65d6e994
CD
7138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7140 "RANLIB=$${RANLIB}" \
901119ae 7141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
7142 install-html) \
7143 || exit 1
7144
85bfb75e 7145@endif etc
65d6e994 7146
85bfb75e
JM
7147.PHONY: maybe-installcheck-etc installcheck-etc
7148maybe-installcheck-etc:
7149@if etc
7150maybe-installcheck-etc: installcheck-etc
1358ccea 7151
85bfb75e
JM
7152installcheck-etc: \
7153 configure-etc
f41d6665 7154 @: $(MAKE); $(unstage)
85bfb75e 7155 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7156 r=`${PWD_COMMAND}`; export r; \
7157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7158 $(HOST_EXPORTS) \
d32ab992 7159 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7161 done; \
85bfb75e
JM
7162 echo "Doing installcheck in etc" ; \
7163 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7166 "RANLIB=$${RANLIB}" \
901119ae 7167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7168 installcheck) \
1358ccea
NN
7169 || exit 1
7170
85bfb75e 7171@endif etc
1358ccea 7172
85bfb75e
JM
7173.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7174maybe-mostlyclean-etc:
7175@if etc
7176maybe-mostlyclean-etc: mostlyclean-etc
1358ccea 7177
85bfb75e 7178mostlyclean-etc:
f41d6665 7179 @: $(MAKE); $(unstage)
85bfb75e 7180 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7181 r=`${PWD_COMMAND}`; export r; \
7182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7183 $(HOST_EXPORTS) \
d32ab992 7184 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7186 done; \
85bfb75e
JM
7187 echo "Doing mostlyclean in etc" ; \
7188 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7191 "RANLIB=$${RANLIB}" \
901119ae 7192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7193 mostlyclean) \
1358ccea
NN
7194 || exit 1
7195
85bfb75e 7196@endif etc
1358ccea 7197
85bfb75e
JM
7198.PHONY: maybe-clean-etc clean-etc
7199maybe-clean-etc:
7200@if etc
7201maybe-clean-etc: clean-etc
1358ccea 7202
85bfb75e 7203clean-etc:
f41d6665 7204 @: $(MAKE); $(unstage)
85bfb75e 7205 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7206 r=`${PWD_COMMAND}`; export r; \
7207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7208 $(HOST_EXPORTS) \
d32ab992 7209 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7211 done; \
85bfb75e
JM
7212 echo "Doing clean in etc" ; \
7213 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7216 "RANLIB=$${RANLIB}" \
901119ae 7217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7218 clean) \
1358ccea
NN
7219 || exit 1
7220
85bfb75e 7221@endif etc
1358ccea 7222
85bfb75e
JM
7223.PHONY: maybe-distclean-etc distclean-etc
7224maybe-distclean-etc:
7225@if etc
7226maybe-distclean-etc: distclean-etc
1358ccea 7227
85bfb75e 7228distclean-etc:
f41d6665 7229 @: $(MAKE); $(unstage)
85bfb75e 7230 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7231 r=`${PWD_COMMAND}`; export r; \
7232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7233 $(HOST_EXPORTS) \
d32ab992 7234 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7236 done; \
85bfb75e
JM
7237 echo "Doing distclean in etc" ; \
7238 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7241 "RANLIB=$${RANLIB}" \
901119ae 7242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7243 distclean) \
1358ccea
NN
7244 || exit 1
7245
85bfb75e 7246@endif etc
1358ccea 7247
85bfb75e
JM
7248.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7249maybe-maintainer-clean-etc:
7250@if etc
7251maybe-maintainer-clean-etc: maintainer-clean-etc
1358ccea 7252
85bfb75e 7253maintainer-clean-etc:
f41d6665 7254 @: $(MAKE); $(unstage)
85bfb75e 7255 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
7256 r=`${PWD_COMMAND}`; export r; \
7257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7258 $(HOST_EXPORTS) \
d32ab992 7259 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7261 done; \
85bfb75e
JM
7262 echo "Doing maintainer-clean in etc" ; \
7263 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
7264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7266 "RANLIB=$${RANLIB}" \
901119ae 7267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7268 maintainer-clean) \
1358ccea
NN
7269 || exit 1
7270
85bfb75e 7271@endif etc
1358ccea 7272
1358ccea 7273
25b42232 7274
85bfb75e
JM
7275.PHONY: configure-fastjar maybe-configure-fastjar
7276maybe-configure-fastjar:
3ff3adad 7277@if gcc-bootstrap
85bfb75e 7278configure-fastjar: stage_current
3ff3adad 7279@endif gcc-bootstrap
85bfb75e
JM
7280@if fastjar
7281maybe-configure-fastjar: configure-fastjar
7282configure-fastjar:
f41d6665 7283 @: $(MAKE); $(unstage)
cc11cc9b 7284 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
7286 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
7287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
f61428ed 7288 $(HOST_EXPORTS) \
85bfb75e
JM
7289 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7290 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
295f4e42 7291 case $(srcdir) in \
215c351a 7292 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 7293 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
215c351a 7294 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7295 esac; \
85bfb75e
JM
7296 srcdiroption="--srcdir=$${topdir}/fastjar"; \
7297 libsrcdir="$$s/fastjar"; \
295f4e42 7298 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
7299 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7300 --target=${target_alias} $${srcdiroption} \
1358ccea 7301 || exit 1
85bfb75e 7302@endif fastjar
1358ccea 7303
25b42232
PB
7304
7305
ce406537
PB
7306
7307
85bfb75e
JM
7308.PHONY: all-fastjar maybe-all-fastjar
7309maybe-all-fastjar:
3ff3adad 7310@if gcc-bootstrap
85bfb75e 7311all-fastjar: stage_current
3ff3adad 7312@endif gcc-bootstrap
85bfb75e
JM
7313@if fastjar
7314TARGET-fastjar=all
7315maybe-all-fastjar: all-fastjar
7316all-fastjar: configure-fastjar
f41d6665 7317 @: $(MAKE); $(unstage)
295f4e42 7318 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 7320 $(HOST_EXPORTS) \
85bfb75e 7321 (cd $(HOST_SUBDIR)/fastjar && \
1c8bd6a3 7322 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
7323 $(TARGET-fastjar))
7324@endif fastjar
1358ccea 7325
25b42232 7326
ce406537
PB
7327
7328
85bfb75e
JM
7329.PHONY: check-fastjar maybe-check-fastjar
7330maybe-check-fastjar:
7331@if fastjar
7332maybe-check-fastjar: check-fastjar
1358ccea 7333
295f4e42 7334# This module is only tested in a native toolchain.
85bfb75e 7335check-fastjar:
f41d6665 7336 @: $(MAKE); $(unstage)
295f4e42
NN
7337 @if [ '$(host)' = '$(target)' ] ; then \
7338 r=`${PWD_COMMAND}`; export r; \
7339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7340 $(HOST_EXPORTS) \
85bfb75e 7341 (cd $(HOST_SUBDIR)/fastjar && \
ef6e9bc0 7342 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 7343 fi
1358ccea 7344
85bfb75e 7345@endif fastjar
295f4e42 7346
85bfb75e
JM
7347.PHONY: install-fastjar maybe-install-fastjar
7348maybe-install-fastjar:
7349@if fastjar
7350maybe-install-fastjar: install-fastjar
295f4e42 7351
85bfb75e 7352install-fastjar: installdirs
f41d6665 7353 @: $(MAKE); $(unstage)
295f4e42 7354 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7356 $(HOST_EXPORTS) \
85bfb75e 7357 (cd $(HOST_SUBDIR)/fastjar && \
ace9ac7b 7358 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 7359
85bfb75e 7360@endif fastjar
1358ccea 7361
85bfb75e
JM
7362.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7363maybe-install-strip-fastjar:
7364@if fastjar
7365maybe-install-strip-fastjar: install-strip-fastjar
455c8f48 7366
85bfb75e 7367install-strip-fastjar: installdirs
455c8f48
RW
7368 @: $(MAKE); $(unstage)
7369 @r=`${PWD_COMMAND}`; export r; \
7370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7371 $(HOST_EXPORTS) \
85bfb75e 7372 (cd $(HOST_SUBDIR)/fastjar && \
455c8f48
RW
7373 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7374
85bfb75e 7375@endif fastjar
455c8f48 7376
b5422ad7 7377# Other targets (info, dvi, pdf, etc.)
1358ccea 7378
85bfb75e
JM
7379.PHONY: maybe-info-fastjar info-fastjar
7380maybe-info-fastjar:
7381@if fastjar
7382maybe-info-fastjar: info-fastjar
295f4e42 7383
85bfb75e
JM
7384info-fastjar: \
7385 configure-fastjar
f41d6665 7386 @: $(MAKE); $(unstage)
85bfb75e 7387 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7388 r=`${PWD_COMMAND}`; export r; \
7389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7390 $(HOST_EXPORTS) \
d32ab992 7391 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7393 done; \
85bfb75e
JM
7394 echo "Doing info in fastjar" ; \
7395 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7398 "RANLIB=$${RANLIB}" \
901119ae 7399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7400 info) \
1358ccea
NN
7401 || exit 1
7402
85bfb75e 7403@endif fastjar
1358ccea 7404
85bfb75e
JM
7405.PHONY: maybe-dvi-fastjar dvi-fastjar
7406maybe-dvi-fastjar:
7407@if fastjar
7408maybe-dvi-fastjar: dvi-fastjar
1358ccea 7409
85bfb75e
JM
7410dvi-fastjar: \
7411 configure-fastjar
f41d6665 7412 @: $(MAKE); $(unstage)
85bfb75e 7413 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7414 r=`${PWD_COMMAND}`; export r; \
7415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7416 $(HOST_EXPORTS) \
d32ab992 7417 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7419 done; \
85bfb75e
JM
7420 echo "Doing dvi in fastjar" ; \
7421 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7424 "RANLIB=$${RANLIB}" \
901119ae 7425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7426 dvi) \
1358ccea
NN
7427 || exit 1
7428
85bfb75e 7429@endif fastjar
1358ccea 7430
85bfb75e
JM
7431.PHONY: maybe-pdf-fastjar pdf-fastjar
7432maybe-pdf-fastjar:
7433@if fastjar
7434maybe-pdf-fastjar: pdf-fastjar
b5422ad7 7435
85bfb75e
JM
7436pdf-fastjar: \
7437 configure-fastjar
b5422ad7 7438 @: $(MAKE); $(unstage)
85bfb75e 7439 @[ -f ./fastjar/Makefile ] || exit 0; \
b5422ad7
BM
7440 r=`${PWD_COMMAND}`; export r; \
7441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7442 $(HOST_EXPORTS) \
7443 for flag in $(EXTRA_HOST_FLAGS) ; do \
7444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7445 done; \
85bfb75e
JM
7446 echo "Doing pdf in fastjar" ; \
7447 (cd $(HOST_SUBDIR)/fastjar && \
b5422ad7
BM
7448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7450 "RANLIB=$${RANLIB}" \
901119ae 7451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
7452 pdf) \
7453 || exit 1
7454
85bfb75e 7455@endif fastjar
b5422ad7 7456
85bfb75e
JM
7457.PHONY: maybe-html-fastjar html-fastjar
7458maybe-html-fastjar:
7459@if fastjar
7460maybe-html-fastjar: html-fastjar
f87a2b2e 7461
85bfb75e
JM
7462html-fastjar: \
7463 configure-fastjar
f41d6665 7464 @: $(MAKE); $(unstage)
85bfb75e 7465 @[ -f ./fastjar/Makefile ] || exit 0; \
f87a2b2e
MS
7466 r=`${PWD_COMMAND}`; export r; \
7467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7468 $(HOST_EXPORTS) \
7469 for flag in $(EXTRA_HOST_FLAGS) ; do \
7470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7471 done; \
85bfb75e
JM
7472 echo "Doing html in fastjar" ; \
7473 (cd $(HOST_SUBDIR)/fastjar && \
f87a2b2e
MS
7474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7476 "RANLIB=$${RANLIB}" \
901119ae 7477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
7478 html) \
7479 || exit 1
7480
85bfb75e 7481@endif fastjar
f87a2b2e 7482
85bfb75e
JM
7483.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7484maybe-TAGS-fastjar:
7485@if fastjar
7486maybe-TAGS-fastjar: TAGS-fastjar
1358ccea 7487
85bfb75e
JM
7488TAGS-fastjar: \
7489 configure-fastjar
f41d6665 7490 @: $(MAKE); $(unstage)
85bfb75e 7491 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7492 r=`${PWD_COMMAND}`; export r; \
7493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7494 $(HOST_EXPORTS) \
d32ab992 7495 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7497 done; \
85bfb75e
JM
7498 echo "Doing TAGS in fastjar" ; \
7499 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7502 "RANLIB=$${RANLIB}" \
901119ae 7503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7504 TAGS) \
1358ccea
NN
7505 || exit 1
7506
85bfb75e 7507@endif fastjar
1358ccea 7508
85bfb75e
JM
7509.PHONY: maybe-install-info-fastjar install-info-fastjar
7510maybe-install-info-fastjar:
7511@if fastjar
7512maybe-install-info-fastjar: install-info-fastjar
1358ccea 7513
85bfb75e
JM
7514install-info-fastjar: \
7515 configure-fastjar \
7516 info-fastjar
f41d6665 7517 @: $(MAKE); $(unstage)
85bfb75e 7518 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7519 r=`${PWD_COMMAND}`; export r; \
7520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7521 $(HOST_EXPORTS) \
d32ab992 7522 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7524 done; \
85bfb75e
JM
7525 echo "Doing install-info in fastjar" ; \
7526 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7529 "RANLIB=$${RANLIB}" \
901119ae 7530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7531 install-info) \
1358ccea
NN
7532 || exit 1
7533
85bfb75e 7534@endif fastjar
1358ccea 7535
85bfb75e
JM
7536.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7537maybe-install-pdf-fastjar:
7538@if fastjar
7539maybe-install-pdf-fastjar: install-pdf-fastjar
9c4d2493 7540
85bfb75e
JM
7541install-pdf-fastjar: \
7542 configure-fastjar \
7543 pdf-fastjar
9c4d2493 7544 @: $(MAKE); $(unstage)
85bfb75e 7545 @[ -f ./fastjar/Makefile ] || exit 0; \
9c4d2493
BM
7546 r=`${PWD_COMMAND}`; export r; \
7547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7548 $(HOST_EXPORTS) \
7549 for flag in $(EXTRA_HOST_FLAGS) ; do \
7550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7551 done; \
85bfb75e
JM
7552 echo "Doing install-pdf in fastjar" ; \
7553 (cd $(HOST_SUBDIR)/fastjar && \
9c4d2493
BM
7554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7556 "RANLIB=$${RANLIB}" \
901119ae 7557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
7558 install-pdf) \
7559 || exit 1
7560
85bfb75e 7561@endif fastjar
9c4d2493 7562
85bfb75e
JM
7563.PHONY: maybe-install-html-fastjar install-html-fastjar
7564maybe-install-html-fastjar:
7565@if fastjar
7566maybe-install-html-fastjar: install-html-fastjar
65d6e994 7567
85bfb75e
JM
7568install-html-fastjar: \
7569 configure-fastjar \
7570 html-fastjar
65d6e994 7571 @: $(MAKE); $(unstage)
85bfb75e 7572 @[ -f ./fastjar/Makefile ] || exit 0; \
65d6e994
CD
7573 r=`${PWD_COMMAND}`; export r; \
7574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7575 $(HOST_EXPORTS) \
7576 for flag in $(EXTRA_HOST_FLAGS) ; do \
7577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7578 done; \
85bfb75e
JM
7579 echo "Doing install-html in fastjar" ; \
7580 (cd $(HOST_SUBDIR)/fastjar && \
65d6e994
CD
7581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7583 "RANLIB=$${RANLIB}" \
901119ae 7584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
7585 install-html) \
7586 || exit 1
7587
85bfb75e 7588@endif fastjar
65d6e994 7589
85bfb75e
JM
7590.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7591maybe-installcheck-fastjar:
7592@if fastjar
7593maybe-installcheck-fastjar: installcheck-fastjar
1358ccea 7594
85bfb75e
JM
7595installcheck-fastjar: \
7596 configure-fastjar
f41d6665 7597 @: $(MAKE); $(unstage)
85bfb75e 7598 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7599 r=`${PWD_COMMAND}`; export r; \
7600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7601 $(HOST_EXPORTS) \
d32ab992 7602 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7604 done; \
85bfb75e
JM
7605 echo "Doing installcheck in fastjar" ; \
7606 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7609 "RANLIB=$${RANLIB}" \
901119ae 7610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7611 installcheck) \
1358ccea
NN
7612 || exit 1
7613
85bfb75e 7614@endif fastjar
1358ccea 7615
85bfb75e
JM
7616.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7617maybe-mostlyclean-fastjar:
7618@if fastjar
7619maybe-mostlyclean-fastjar: mostlyclean-fastjar
1358ccea 7620
85bfb75e 7621mostlyclean-fastjar:
f41d6665 7622 @: $(MAKE); $(unstage)
85bfb75e 7623 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7624 r=`${PWD_COMMAND}`; export r; \
7625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7626 $(HOST_EXPORTS) \
d32ab992 7627 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7629 done; \
85bfb75e
JM
7630 echo "Doing mostlyclean in fastjar" ; \
7631 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7634 "RANLIB=$${RANLIB}" \
901119ae 7635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7636 mostlyclean) \
1358ccea
NN
7637 || exit 1
7638
85bfb75e 7639@endif fastjar
1358ccea 7640
85bfb75e
JM
7641.PHONY: maybe-clean-fastjar clean-fastjar
7642maybe-clean-fastjar:
7643@if fastjar
7644maybe-clean-fastjar: clean-fastjar
1358ccea 7645
85bfb75e 7646clean-fastjar:
f41d6665 7647 @: $(MAKE); $(unstage)
85bfb75e 7648 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7649 r=`${PWD_COMMAND}`; export r; \
7650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7651 $(HOST_EXPORTS) \
d32ab992 7652 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7654 done; \
85bfb75e
JM
7655 echo "Doing clean in fastjar" ; \
7656 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7659 "RANLIB=$${RANLIB}" \
901119ae 7660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7661 clean) \
1358ccea
NN
7662 || exit 1
7663
85bfb75e 7664@endif fastjar
1358ccea 7665
85bfb75e
JM
7666.PHONY: maybe-distclean-fastjar distclean-fastjar
7667maybe-distclean-fastjar:
7668@if fastjar
7669maybe-distclean-fastjar: distclean-fastjar
1358ccea 7670
85bfb75e 7671distclean-fastjar:
f41d6665 7672 @: $(MAKE); $(unstage)
85bfb75e 7673 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7674 r=`${PWD_COMMAND}`; export r; \
7675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7676 $(HOST_EXPORTS) \
d32ab992 7677 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7679 done; \
85bfb75e
JM
7680 echo "Doing distclean in fastjar" ; \
7681 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7684 "RANLIB=$${RANLIB}" \
901119ae 7685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7686 distclean) \
1358ccea
NN
7687 || exit 1
7688
85bfb75e 7689@endif fastjar
1358ccea 7690
85bfb75e
JM
7691.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7692maybe-maintainer-clean-fastjar:
7693@if fastjar
7694maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7695
7696maintainer-clean-fastjar:
f41d6665 7697 @: $(MAKE); $(unstage)
85bfb75e 7698 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
7699 r=`${PWD_COMMAND}`; export r; \
7700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7701 $(HOST_EXPORTS) \
d32ab992 7702 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7704 done; \
85bfb75e
JM
7705 echo "Doing maintainer-clean in fastjar" ; \
7706 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
7707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7709 "RANLIB=$${RANLIB}" \
901119ae 7710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7711 maintainer-clean) \
1358ccea
NN
7712 || exit 1
7713
85bfb75e 7714@endif fastjar
1358ccea 7715
1358ccea 7716
25b42232 7717
85bfb75e
JM
7718.PHONY: configure-fixincludes maybe-configure-fixincludes
7719maybe-configure-fixincludes:
3ff3adad 7720@if gcc-bootstrap
85bfb75e 7721configure-fixincludes: stage_current
3ff3adad 7722@endif gcc-bootstrap
85bfb75e
JM
7723@if fixincludes
7724maybe-configure-fixincludes: configure-fixincludes
7725configure-fixincludes:
f41d6665 7726 @: $(MAKE); $(unstage)
cc11cc9b 7727 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
7729 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
7730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
f61428ed 7731 $(HOST_EXPORTS) \
85bfb75e
JM
7732 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
7733 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
295f4e42 7734 case $(srcdir) in \
215c351a 7735 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 7736 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
215c351a 7737 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7738 esac; \
85bfb75e
JM
7739 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
7740 libsrcdir="$$s/fixincludes"; \
295f4e42 7741 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
7742 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7743 --target=${target_alias} $${srcdiroption} \
295f4e42 7744 || exit 1
85bfb75e 7745@endif fixincludes
295f4e42 7746
25b42232
PB
7747
7748
ce406537
PB
7749
7750
85bfb75e
JM
7751.PHONY: all-fixincludes maybe-all-fixincludes
7752maybe-all-fixincludes:
3ff3adad 7753@if gcc-bootstrap
85bfb75e 7754all-fixincludes: stage_current
3ff3adad 7755@endif gcc-bootstrap
85bfb75e
JM
7756@if fixincludes
7757TARGET-fixincludes=all
7758maybe-all-fixincludes: all-fixincludes
7759all-fixincludes: configure-fixincludes
f41d6665 7760 @: $(MAKE); $(unstage)
295f4e42
NN
7761 @r=`${PWD_COMMAND}`; export r; \
7762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 7763 $(HOST_EXPORTS) \
85bfb75e 7764 (cd $(HOST_SUBDIR)/fixincludes && \
1c8bd6a3 7765 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
7766 $(TARGET-fixincludes))
7767@endif fixincludes
295f4e42 7768
25b42232 7769
ce406537
PB
7770
7771
85bfb75e
JM
7772.PHONY: check-fixincludes maybe-check-fixincludes
7773maybe-check-fixincludes:
7774@if fixincludes
7775maybe-check-fixincludes: check-fixincludes
295f4e42 7776
85bfb75e 7777check-fixincludes:
f41d6665 7778 @: $(MAKE); $(unstage)
295f4e42
NN
7779 @r=`${PWD_COMMAND}`; export r; \
7780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7781 $(HOST_EXPORTS) \
85bfb75e 7782 (cd $(HOST_SUBDIR)/fixincludes && \
215c351a 7783 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7784
85bfb75e 7785@endif fixincludes
295f4e42 7786
85bfb75e
JM
7787.PHONY: install-fixincludes maybe-install-fixincludes
7788maybe-install-fixincludes:
7789@if fixincludes
7790maybe-install-fixincludes: install-fixincludes
295f4e42 7791
85bfb75e 7792install-fixincludes: installdirs
f41d6665 7793 @: $(MAKE); $(unstage)
295f4e42
NN
7794 @r=`${PWD_COMMAND}`; export r; \
7795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7796 $(HOST_EXPORTS) \
85bfb75e 7797 (cd $(HOST_SUBDIR)/fixincludes && \
ace9ac7b 7798 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7799
85bfb75e 7800@endif fixincludes
295f4e42 7801
85bfb75e
JM
7802.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
7803maybe-install-strip-fixincludes:
7804@if fixincludes
7805maybe-install-strip-fixincludes: install-strip-fixincludes
455c8f48 7806
85bfb75e 7807install-strip-fixincludes: installdirs
455c8f48
RW
7808 @: $(MAKE); $(unstage)
7809 @r=`${PWD_COMMAND}`; export r; \
7810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7811 $(HOST_EXPORTS) \
85bfb75e 7812 (cd $(HOST_SUBDIR)/fixincludes && \
455c8f48
RW
7813 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7814
85bfb75e 7815@endif fixincludes
455c8f48 7816
b5422ad7 7817# Other targets (info, dvi, pdf, etc.)
295f4e42 7818
85bfb75e
JM
7819.PHONY: maybe-info-fixincludes info-fixincludes
7820maybe-info-fixincludes:
7821@if fixincludes
7822maybe-info-fixincludes: info-fixincludes
295f4e42 7823
85bfb75e
JM
7824info-fixincludes: \
7825 configure-fixincludes
f41d6665 7826 @: $(MAKE); $(unstage)
85bfb75e 7827 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
7828 r=`${PWD_COMMAND}`; export r; \
7829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7830 $(HOST_EXPORTS) \
d32ab992 7831 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7833 done; \
85bfb75e
JM
7834 echo "Doing info in fixincludes" ; \
7835 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
7836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7838 "RANLIB=$${RANLIB}" \
901119ae 7839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7840 info) \
1358ccea
NN
7841 || exit 1
7842
85bfb75e 7843@endif fixincludes
1358ccea 7844
85bfb75e
JM
7845.PHONY: maybe-dvi-fixincludes dvi-fixincludes
7846maybe-dvi-fixincludes:
7847@if fixincludes
7848maybe-dvi-fixincludes: dvi-fixincludes
1358ccea 7849
85bfb75e
JM
7850dvi-fixincludes: \
7851 configure-fixincludes
f41d6665 7852 @: $(MAKE); $(unstage)
85bfb75e 7853 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
7854 r=`${PWD_COMMAND}`; export r; \
7855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7856 $(HOST_EXPORTS) \
d32ab992 7857 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7859 done; \
85bfb75e
JM
7860 echo "Doing dvi in fixincludes" ; \
7861 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
7862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7864 "RANLIB=$${RANLIB}" \
901119ae 7865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7866 dvi) \
1358ccea
NN
7867 || exit 1
7868
85bfb75e 7869@endif fixincludes
1358ccea 7870
85bfb75e
JM
7871.PHONY: maybe-pdf-fixincludes pdf-fixincludes
7872maybe-pdf-fixincludes:
7873@if fixincludes
7874maybe-pdf-fixincludes: pdf-fixincludes
b5422ad7 7875
85bfb75e
JM
7876pdf-fixincludes: \
7877 configure-fixincludes
b5422ad7 7878 @: $(MAKE); $(unstage)
85bfb75e 7879 @[ -f ./fixincludes/Makefile ] || exit 0; \
b5422ad7
BM
7880 r=`${PWD_COMMAND}`; export r; \
7881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7882 $(HOST_EXPORTS) \
7883 for flag in $(EXTRA_HOST_FLAGS) ; do \
7884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7885 done; \
85bfb75e
JM
7886 echo "Doing pdf in fixincludes" ; \
7887 (cd $(HOST_SUBDIR)/fixincludes && \
b5422ad7
BM
7888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7890 "RANLIB=$${RANLIB}" \
901119ae 7891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
7892 pdf) \
7893 || exit 1
7894
85bfb75e 7895@endif fixincludes
b5422ad7 7896
85bfb75e
JM
7897.PHONY: maybe-html-fixincludes html-fixincludes
7898maybe-html-fixincludes:
7899@if fixincludes
7900maybe-html-fixincludes: html-fixincludes
f87a2b2e 7901
85bfb75e
JM
7902html-fixincludes: \
7903 configure-fixincludes
f41d6665 7904 @: $(MAKE); $(unstage)
85bfb75e 7905 @[ -f ./fixincludes/Makefile ] || exit 0; \
f87a2b2e
MS
7906 r=`${PWD_COMMAND}`; export r; \
7907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7908 $(HOST_EXPORTS) \
7909 for flag in $(EXTRA_HOST_FLAGS) ; do \
7910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7911 done; \
85bfb75e
JM
7912 echo "Doing html in fixincludes" ; \
7913 (cd $(HOST_SUBDIR)/fixincludes && \
f87a2b2e
MS
7914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7916 "RANLIB=$${RANLIB}" \
901119ae 7917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
7918 html) \
7919 || exit 1
7920
85bfb75e 7921@endif fixincludes
f87a2b2e 7922
85bfb75e
JM
7923.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
7924maybe-TAGS-fixincludes:
7925@if fixincludes
7926maybe-TAGS-fixincludes: TAGS-fixincludes
1358ccea 7927
85bfb75e
JM
7928# fixincludes doesn't support TAGS.
7929TAGS-fixincludes:
1358ccea 7930
85bfb75e 7931@endif fixincludes
1358ccea 7932
85bfb75e
JM
7933.PHONY: maybe-install-info-fixincludes install-info-fixincludes
7934maybe-install-info-fixincludes:
7935@if fixincludes
7936maybe-install-info-fixincludes: install-info-fixincludes
1358ccea 7937
85bfb75e
JM
7938install-info-fixincludes: \
7939 configure-fixincludes \
7940 info-fixincludes
f41d6665 7941 @: $(MAKE); $(unstage)
85bfb75e 7942 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
7943 r=`${PWD_COMMAND}`; export r; \
7944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7945 $(HOST_EXPORTS) \
d32ab992 7946 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7948 done; \
85bfb75e
JM
7949 echo "Doing install-info in fixincludes" ; \
7950 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
7951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7953 "RANLIB=$${RANLIB}" \
901119ae 7954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 7955 install-info) \
1358ccea
NN
7956 || exit 1
7957
85bfb75e 7958@endif fixincludes
1358ccea 7959
85bfb75e
JM
7960.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
7961maybe-install-pdf-fixincludes:
7962@if fixincludes
7963maybe-install-pdf-fixincludes: install-pdf-fixincludes
9c4d2493 7964
85bfb75e
JM
7965install-pdf-fixincludes: \
7966 configure-fixincludes \
7967 pdf-fixincludes
9c4d2493 7968 @: $(MAKE); $(unstage)
85bfb75e 7969 @[ -f ./fixincludes/Makefile ] || exit 0; \
9c4d2493
BM
7970 r=`${PWD_COMMAND}`; export r; \
7971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7972 $(HOST_EXPORTS) \
7973 for flag in $(EXTRA_HOST_FLAGS) ; do \
7974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7975 done; \
85bfb75e
JM
7976 echo "Doing install-pdf in fixincludes" ; \
7977 (cd $(HOST_SUBDIR)/fixincludes && \
9c4d2493
BM
7978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7980 "RANLIB=$${RANLIB}" \
901119ae 7981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
7982 install-pdf) \
7983 || exit 1
7984
85bfb75e 7985@endif fixincludes
9c4d2493 7986
85bfb75e
JM
7987.PHONY: maybe-install-html-fixincludes install-html-fixincludes
7988maybe-install-html-fixincludes:
7989@if fixincludes
7990maybe-install-html-fixincludes: install-html-fixincludes
65d6e994 7991
85bfb75e
JM
7992install-html-fixincludes: \
7993 configure-fixincludes \
7994 html-fixincludes
65d6e994 7995 @: $(MAKE); $(unstage)
85bfb75e 7996 @[ -f ./fixincludes/Makefile ] || exit 0; \
65d6e994
CD
7997 r=`${PWD_COMMAND}`; export r; \
7998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7999 $(HOST_EXPORTS) \
8000 for flag in $(EXTRA_HOST_FLAGS) ; do \
8001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8002 done; \
85bfb75e
JM
8003 echo "Doing install-html in fixincludes" ; \
8004 (cd $(HOST_SUBDIR)/fixincludes && \
65d6e994
CD
8005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8007 "RANLIB=$${RANLIB}" \
901119ae 8008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
8009 install-html) \
8010 || exit 1
8011
85bfb75e 8012@endif fixincludes
65d6e994 8013
85bfb75e
JM
8014.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8015maybe-installcheck-fixincludes:
8016@if fixincludes
8017maybe-installcheck-fixincludes: installcheck-fixincludes
295f4e42 8018
85bfb75e
JM
8019installcheck-fixincludes: \
8020 configure-fixincludes
f41d6665 8021 @: $(MAKE); $(unstage)
85bfb75e 8022 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
8023 r=`${PWD_COMMAND}`; export r; \
8024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8025 $(HOST_EXPORTS) \
d32ab992 8026 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8028 done; \
85bfb75e
JM
8029 echo "Doing installcheck in fixincludes" ; \
8030 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
8031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8033 "RANLIB=$${RANLIB}" \
901119ae 8034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 8035 installcheck) \
1358ccea
NN
8036 || exit 1
8037
85bfb75e 8038@endif fixincludes
1358ccea 8039
85bfb75e
JM
8040.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8041maybe-mostlyclean-fixincludes:
8042@if fixincludes
8043maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
1358ccea 8044
85bfb75e 8045mostlyclean-fixincludes:
f41d6665 8046 @: $(MAKE); $(unstage)
85bfb75e 8047 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
8048 r=`${PWD_COMMAND}`; export r; \
8049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8050 $(HOST_EXPORTS) \
d32ab992 8051 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8053 done; \
85bfb75e
JM
8054 echo "Doing mostlyclean in fixincludes" ; \
8055 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
8056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8058 "RANLIB=$${RANLIB}" \
901119ae 8059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 8060 mostlyclean) \
1358ccea
NN
8061 || exit 1
8062
85bfb75e 8063@endif fixincludes
1358ccea 8064
85bfb75e
JM
8065.PHONY: maybe-clean-fixincludes clean-fixincludes
8066maybe-clean-fixincludes:
8067@if fixincludes
8068maybe-clean-fixincludes: clean-fixincludes
1358ccea 8069
85bfb75e 8070clean-fixincludes:
f41d6665 8071 @: $(MAKE); $(unstage)
85bfb75e 8072 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
8073 r=`${PWD_COMMAND}`; export r; \
8074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8075 $(HOST_EXPORTS) \
d32ab992 8076 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8078 done; \
85bfb75e
JM
8079 echo "Doing clean in fixincludes" ; \
8080 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
8081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8083 "RANLIB=$${RANLIB}" \
901119ae 8084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 8085 clean) \
1358ccea
NN
8086 || exit 1
8087
85bfb75e 8088@endif fixincludes
1358ccea 8089
85bfb75e
JM
8090.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8091maybe-distclean-fixincludes:
8092@if fixincludes
8093maybe-distclean-fixincludes: distclean-fixincludes
1358ccea 8094
85bfb75e 8095distclean-fixincludes:
f41d6665 8096 @: $(MAKE); $(unstage)
85bfb75e 8097 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
8098 r=`${PWD_COMMAND}`; export r; \
8099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8100 $(HOST_EXPORTS) \
d32ab992 8101 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8103 done; \
85bfb75e
JM
8104 echo "Doing distclean in fixincludes" ; \
8105 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
8106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8108 "RANLIB=$${RANLIB}" \
901119ae 8109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 8110 distclean) \
1358ccea
NN
8111 || exit 1
8112
85bfb75e 8113@endif fixincludes
1358ccea 8114
85bfb75e
JM
8115.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8116maybe-maintainer-clean-fixincludes:
8117@if fixincludes
8118maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
1358ccea 8119
85bfb75e 8120maintainer-clean-fixincludes:
f41d6665 8121 @: $(MAKE); $(unstage)
85bfb75e 8122 @[ -f ./fixincludes/Makefile ] || exit 0; \
8c90b13a
L
8123 r=`${PWD_COMMAND}`; export r; \
8124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8125 $(HOST_EXPORTS) \
d32ab992 8126 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8128 done; \
85bfb75e
JM
8129 echo "Doing maintainer-clean in fixincludes" ; \
8130 (cd $(HOST_SUBDIR)/fixincludes && \
1358ccea
NN
8131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8133 "RANLIB=$${RANLIB}" \
901119ae 8134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 8135 maintainer-clean) \
1358ccea
NN
8136 || exit 1
8137
85bfb75e 8138@endif fixincludes
1358ccea 8139
1358ccea 8140
25b42232 8141
85bfb75e
JM
8142.PHONY: configure-flex maybe-configure-flex
8143maybe-configure-flex:
8c32c9f0 8144@if gcc-bootstrap
85bfb75e 8145configure-flex: stage_current
8c32c9f0 8146@endif gcc-bootstrap
85bfb75e
JM
8147@if flex
8148maybe-configure-flex: configure-flex
8149configure-flex:
8c32c9f0
DE
8150 @: $(MAKE); $(unstage)
8151 @r=`${PWD_COMMAND}`; export r; \
8152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8153 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
8154 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
f61428ed 8155 $(HOST_EXPORTS) \
85bfb75e
JM
8156 echo Configuring in $(HOST_SUBDIR)/flex; \
8157 cd "$(HOST_SUBDIR)/flex" || exit 1; \
8c32c9f0
DE
8158 case $(srcdir) in \
8159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 8160 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
8c32c9f0
DE
8161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8162 esac; \
85bfb75e
JM
8163 srcdiroption="--srcdir=$${topdir}/flex"; \
8164 libsrcdir="$$s/flex"; \
8c32c9f0
DE
8165 $(SHELL) $${libsrcdir}/configure \
8166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8167 --target=${target_alias} $${srcdiroption} \
8168 || exit 1
85bfb75e 8169@endif flex
8c32c9f0
DE
8170
8171
8172
8173
8174
85bfb75e
JM
8175.PHONY: all-flex maybe-all-flex
8176maybe-all-flex:
8c32c9f0 8177@if gcc-bootstrap
85bfb75e 8178all-flex: stage_current
8c32c9f0 8179@endif gcc-bootstrap
85bfb75e
JM
8180@if flex
8181TARGET-flex=all
8182maybe-all-flex: all-flex
8183all-flex: configure-flex
8c32c9f0
DE
8184 @: $(MAKE); $(unstage)
8185 @r=`${PWD_COMMAND}`; export r; \
8186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 8187 $(HOST_EXPORTS) \
85bfb75e 8188 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0 8189 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
8190 $(TARGET-flex))
8191@endif flex
8c32c9f0
DE
8192
8193
8194
8195
85bfb75e
JM
8196.PHONY: check-flex maybe-check-flex
8197maybe-check-flex:
8198@if flex
8199maybe-check-flex: check-flex
8c32c9f0 8200
85bfb75e
JM
8201# This module is only tested in a native toolchain.
8202check-flex:
8c32c9f0 8203 @: $(MAKE); $(unstage)
85bfb75e
JM
8204 @if [ '$(host)' = '$(target)' ] ; then \
8205 r=`${PWD_COMMAND}`; export r; \
8206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8207 $(HOST_EXPORTS) \
8208 (cd $(HOST_SUBDIR)/flex && \
8209 $(MAKE) $(FLAGS_TO_PASS) check); \
8210 fi
8c32c9f0 8211
85bfb75e 8212@endif flex
8c32c9f0 8213
85bfb75e
JM
8214.PHONY: install-flex maybe-install-flex
8215maybe-install-flex:
8216@if flex
8217maybe-install-flex: install-flex
8c32c9f0 8218
85bfb75e 8219install-flex: installdirs
8c32c9f0
DE
8220 @: $(MAKE); $(unstage)
8221 @r=`${PWD_COMMAND}`; export r; \
8222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8223 $(HOST_EXPORTS) \
85bfb75e 8224 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8225 $(MAKE) $(FLAGS_TO_PASS) install)
8226
85bfb75e 8227@endif flex
8c32c9f0 8228
85bfb75e
JM
8229.PHONY: install-strip-flex maybe-install-strip-flex
8230maybe-install-strip-flex:
8231@if flex
8232maybe-install-strip-flex: install-strip-flex
455c8f48 8233
85bfb75e 8234install-strip-flex: installdirs
455c8f48
RW
8235 @: $(MAKE); $(unstage)
8236 @r=`${PWD_COMMAND}`; export r; \
8237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8238 $(HOST_EXPORTS) \
85bfb75e 8239 (cd $(HOST_SUBDIR)/flex && \
455c8f48
RW
8240 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8241
85bfb75e 8242@endif flex
455c8f48 8243
8c32c9f0
DE
8244# Other targets (info, dvi, pdf, etc.)
8245
85bfb75e
JM
8246.PHONY: maybe-info-flex info-flex
8247maybe-info-flex:
8248@if flex
8249maybe-info-flex: info-flex
8c32c9f0 8250
85bfb75e
JM
8251info-flex: \
8252 configure-flex
8c32c9f0 8253 @: $(MAKE); $(unstage)
85bfb75e 8254 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8255 r=`${PWD_COMMAND}`; export r; \
8256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8257 $(HOST_EXPORTS) \
8258 for flag in $(EXTRA_HOST_FLAGS) ; do \
8259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8260 done; \
85bfb75e
JM
8261 echo "Doing info in flex" ; \
8262 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8265 "RANLIB=$${RANLIB}" \
8266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8267 info) \
8268 || exit 1
8269
85bfb75e 8270@endif flex
8c32c9f0 8271
85bfb75e
JM
8272.PHONY: maybe-dvi-flex dvi-flex
8273maybe-dvi-flex:
8274@if flex
8275maybe-dvi-flex: dvi-flex
8c32c9f0 8276
85bfb75e
JM
8277dvi-flex: \
8278 configure-flex
8c32c9f0 8279 @: $(MAKE); $(unstage)
85bfb75e 8280 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8281 r=`${PWD_COMMAND}`; export r; \
8282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8283 $(HOST_EXPORTS) \
8284 for flag in $(EXTRA_HOST_FLAGS) ; do \
8285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8286 done; \
85bfb75e
JM
8287 echo "Doing dvi in flex" ; \
8288 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8291 "RANLIB=$${RANLIB}" \
8292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8293 dvi) \
8294 || exit 1
8295
85bfb75e 8296@endif flex
8c32c9f0 8297
85bfb75e
JM
8298.PHONY: maybe-pdf-flex pdf-flex
8299maybe-pdf-flex:
8300@if flex
8301maybe-pdf-flex: pdf-flex
8c32c9f0 8302
85bfb75e
JM
8303pdf-flex: \
8304 configure-flex
8c32c9f0 8305 @: $(MAKE); $(unstage)
85bfb75e 8306 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8307 r=`${PWD_COMMAND}`; export r; \
8308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8309 $(HOST_EXPORTS) \
8310 for flag in $(EXTRA_HOST_FLAGS) ; do \
8311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8312 done; \
85bfb75e
JM
8313 echo "Doing pdf in flex" ; \
8314 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8317 "RANLIB=$${RANLIB}" \
8318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8319 pdf) \
8320 || exit 1
8321
85bfb75e 8322@endif flex
8c32c9f0 8323
85bfb75e
JM
8324.PHONY: maybe-html-flex html-flex
8325maybe-html-flex:
8326@if flex
8327maybe-html-flex: html-flex
8c32c9f0 8328
85bfb75e
JM
8329html-flex: \
8330 configure-flex
8c32c9f0 8331 @: $(MAKE); $(unstage)
85bfb75e 8332 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8333 r=`${PWD_COMMAND}`; export r; \
8334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8335 $(HOST_EXPORTS) \
8336 for flag in $(EXTRA_HOST_FLAGS) ; do \
8337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8338 done; \
85bfb75e
JM
8339 echo "Doing html in flex" ; \
8340 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8343 "RANLIB=$${RANLIB}" \
8344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8345 html) \
8346 || exit 1
8347
85bfb75e 8348@endif flex
8c32c9f0 8349
85bfb75e
JM
8350.PHONY: maybe-TAGS-flex TAGS-flex
8351maybe-TAGS-flex:
8352@if flex
8353maybe-TAGS-flex: TAGS-flex
8c32c9f0 8354
85bfb75e
JM
8355TAGS-flex: \
8356 configure-flex
8c32c9f0 8357 @: $(MAKE); $(unstage)
85bfb75e 8358 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8359 r=`${PWD_COMMAND}`; export r; \
8360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8361 $(HOST_EXPORTS) \
8362 for flag in $(EXTRA_HOST_FLAGS) ; do \
8363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8364 done; \
85bfb75e
JM
8365 echo "Doing TAGS in flex" ; \
8366 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8369 "RANLIB=$${RANLIB}" \
8370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8371 TAGS) \
8372 || exit 1
8373
85bfb75e 8374@endif flex
8c32c9f0 8375
85bfb75e
JM
8376.PHONY: maybe-install-info-flex install-info-flex
8377maybe-install-info-flex:
8378@if flex
8379maybe-install-info-flex: install-info-flex
8c32c9f0 8380
85bfb75e
JM
8381install-info-flex: \
8382 configure-flex \
8383 info-flex
8c32c9f0 8384 @: $(MAKE); $(unstage)
85bfb75e 8385 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8386 r=`${PWD_COMMAND}`; export r; \
8387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8388 $(HOST_EXPORTS) \
8389 for flag in $(EXTRA_HOST_FLAGS) ; do \
8390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8391 done; \
85bfb75e
JM
8392 echo "Doing install-info in flex" ; \
8393 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8396 "RANLIB=$${RANLIB}" \
8397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8398 install-info) \
8399 || exit 1
8400
85bfb75e 8401@endif flex
8c32c9f0 8402
85bfb75e
JM
8403.PHONY: maybe-install-pdf-flex install-pdf-flex
8404maybe-install-pdf-flex:
8405@if flex
8406maybe-install-pdf-flex: install-pdf-flex
8c32c9f0 8407
85bfb75e
JM
8408install-pdf-flex: \
8409 configure-flex \
8410 pdf-flex
8c32c9f0 8411 @: $(MAKE); $(unstage)
85bfb75e 8412 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8413 r=`${PWD_COMMAND}`; export r; \
8414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8415 $(HOST_EXPORTS) \
8416 for flag in $(EXTRA_HOST_FLAGS) ; do \
8417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8418 done; \
85bfb75e
JM
8419 echo "Doing install-pdf in flex" ; \
8420 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8423 "RANLIB=$${RANLIB}" \
8424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8425 install-pdf) \
8426 || exit 1
8427
85bfb75e 8428@endif flex
8c32c9f0 8429
85bfb75e
JM
8430.PHONY: maybe-install-html-flex install-html-flex
8431maybe-install-html-flex:
8432@if flex
8433maybe-install-html-flex: install-html-flex
8c32c9f0 8434
85bfb75e
JM
8435install-html-flex: \
8436 configure-flex \
8437 html-flex
8c32c9f0 8438 @: $(MAKE); $(unstage)
85bfb75e 8439 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8440 r=`${PWD_COMMAND}`; export r; \
8441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8442 $(HOST_EXPORTS) \
8443 for flag in $(EXTRA_HOST_FLAGS) ; do \
8444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8445 done; \
85bfb75e
JM
8446 echo "Doing install-html in flex" ; \
8447 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8450 "RANLIB=$${RANLIB}" \
8451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8452 install-html) \
8453 || exit 1
8454
85bfb75e 8455@endif flex
8c32c9f0 8456
85bfb75e
JM
8457.PHONY: maybe-installcheck-flex installcheck-flex
8458maybe-installcheck-flex:
8459@if flex
8460maybe-installcheck-flex: installcheck-flex
8c32c9f0 8461
85bfb75e
JM
8462installcheck-flex: \
8463 configure-flex
8c32c9f0 8464 @: $(MAKE); $(unstage)
85bfb75e 8465 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8466 r=`${PWD_COMMAND}`; export r; \
8467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8468 $(HOST_EXPORTS) \
8469 for flag in $(EXTRA_HOST_FLAGS) ; do \
8470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8471 done; \
85bfb75e
JM
8472 echo "Doing installcheck in flex" ; \
8473 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8476 "RANLIB=$${RANLIB}" \
8477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8478 installcheck) \
8479 || exit 1
8480
85bfb75e 8481@endif flex
8c32c9f0 8482
85bfb75e
JM
8483.PHONY: maybe-mostlyclean-flex mostlyclean-flex
8484maybe-mostlyclean-flex:
8485@if flex
8486maybe-mostlyclean-flex: mostlyclean-flex
8c32c9f0 8487
85bfb75e 8488mostlyclean-flex:
8c32c9f0 8489 @: $(MAKE); $(unstage)
85bfb75e 8490 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8491 r=`${PWD_COMMAND}`; export r; \
8492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8493 $(HOST_EXPORTS) \
8494 for flag in $(EXTRA_HOST_FLAGS) ; do \
8495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8496 done; \
85bfb75e
JM
8497 echo "Doing mostlyclean in flex" ; \
8498 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8501 "RANLIB=$${RANLIB}" \
8502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8503 mostlyclean) \
8504 || exit 1
8505
85bfb75e 8506@endif flex
8c32c9f0 8507
85bfb75e
JM
8508.PHONY: maybe-clean-flex clean-flex
8509maybe-clean-flex:
8510@if flex
8511maybe-clean-flex: clean-flex
8c32c9f0 8512
85bfb75e 8513clean-flex:
8c32c9f0 8514 @: $(MAKE); $(unstage)
85bfb75e 8515 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8516 r=`${PWD_COMMAND}`; export r; \
8517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8518 $(HOST_EXPORTS) \
8519 for flag in $(EXTRA_HOST_FLAGS) ; do \
8520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8521 done; \
85bfb75e
JM
8522 echo "Doing clean in flex" ; \
8523 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8526 "RANLIB=$${RANLIB}" \
8527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8528 clean) \
8529 || exit 1
8530
85bfb75e 8531@endif flex
8c32c9f0 8532
85bfb75e
JM
8533.PHONY: maybe-distclean-flex distclean-flex
8534maybe-distclean-flex:
8535@if flex
8536maybe-distclean-flex: distclean-flex
8c32c9f0 8537
85bfb75e 8538distclean-flex:
8c32c9f0 8539 @: $(MAKE); $(unstage)
85bfb75e 8540 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8541 r=`${PWD_COMMAND}`; export r; \
8542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8543 $(HOST_EXPORTS) \
8544 for flag in $(EXTRA_HOST_FLAGS) ; do \
8545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8546 done; \
85bfb75e
JM
8547 echo "Doing distclean in flex" ; \
8548 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8551 "RANLIB=$${RANLIB}" \
8552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8553 distclean) \
8554 || exit 1
8555
85bfb75e 8556@endif flex
8c32c9f0 8557
85bfb75e
JM
8558.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
8559maybe-maintainer-clean-flex:
8560@if flex
8561maybe-maintainer-clean-flex: maintainer-clean-flex
8c32c9f0 8562
85bfb75e 8563maintainer-clean-flex:
8c32c9f0 8564 @: $(MAKE); $(unstage)
85bfb75e 8565 @[ -f ./flex/Makefile ] || exit 0; \
8c32c9f0
DE
8566 r=`${PWD_COMMAND}`; export r; \
8567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8568 $(HOST_EXPORTS) \
8569 for flag in $(EXTRA_HOST_FLAGS) ; do \
8570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8571 done; \
85bfb75e
JM
8572 echo "Doing maintainer-clean in flex" ; \
8573 (cd $(HOST_SUBDIR)/flex && \
8c32c9f0
DE
8574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8576 "RANLIB=$${RANLIB}" \
8577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8578 maintainer-clean) \
8579 || exit 1
8580
85bfb75e 8581@endif flex
8c32c9f0
DE
8582
8583
8584
85bfb75e
JM
8585.PHONY: configure-gas maybe-configure-gas
8586maybe-configure-gas:
3ff3adad 8587@if gcc-bootstrap
85bfb75e 8588configure-gas: stage_current
3ff3adad 8589@endif gcc-bootstrap
85bfb75e
JM
8590@if gas
8591maybe-configure-gas: configure-gas
8592configure-gas:
cc11cc9b 8593 @r=`${PWD_COMMAND}`; export r; \
295f4e42 8594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8595 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
8596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
f61428ed 8597 $(HOST_EXPORTS) \
85bfb75e
JM
8598 echo Configuring in $(HOST_SUBDIR)/gas; \
8599 cd "$(HOST_SUBDIR)/gas" || exit 1; \
295f4e42 8600 case $(srcdir) in \
215c351a 8601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 8602 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
215c351a 8603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8604 esac; \
85bfb75e
JM
8605 srcdiroption="--srcdir=$${topdir}/gas"; \
8606 libsrcdir="$$s/gas"; \
295f4e42 8607 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
8608 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8609 --target=${target_alias} $${srcdiroption} \
295f4e42 8610 || exit 1
85bfb75e 8611@endif gas
25b42232 8612
ce406537
PB
8613
8614
85bfb75e
JM
8615.PHONY: configure-stage1-gas maybe-configure-stage1-gas
8616maybe-configure-stage1-gas:
8617@if gas-bootstrap
8618maybe-configure-stage1-gas: configure-stage1-gas
8619configure-stage1-gas:
8620 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8621 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
295f4e42
NN
8622 @r=`${PWD_COMMAND}`; export r; \
8623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8624 TFLAGS="$(STAGE1_TFLAGS)"; \
8625 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
8626 $(HOST_EXPORTS) \
8627 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8628 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8629 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
8630 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
8631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8632 cd $(HOST_SUBDIR)/gas || exit 1; \
8633 case $(srcdir) in \
8634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8635 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8637 esac; \
8638 srcdiroption="--srcdir=$${topdir}/gas"; \
8639 libsrcdir="$$s/gas"; \
8640 $(SHELL) $${libsrcdir}/configure \
8641 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8642 --target=${target_alias} $${srcdiroption} \
8643 $(STAGE1_CONFIGURE_FLAGS)
8644@endif gas-bootstrap
295f4e42 8645
85bfb75e
JM
8646.PHONY: configure-stage2-gas maybe-configure-stage2-gas
8647maybe-configure-stage2-gas:
8648@if gas-bootstrap
8649maybe-configure-stage2-gas: configure-stage2-gas
8650configure-stage2-gas:
8651 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8652 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
295f4e42
NN
8653 @r=`${PWD_COMMAND}`; export r; \
8654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8655 TFLAGS="$(STAGE2_TFLAGS)"; \
8656 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
4fc4dd12 8657 $(HOST_EXPORTS) \
85bfb75e
JM
8658 $(POSTSTAGE1_HOST_EXPORTS) \
8659 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8660 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8661 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
8662 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
8663 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8664 cd $(HOST_SUBDIR)/gas || exit 1; \
8665 case $(srcdir) in \
8666 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8667 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8668 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8669 esac; \
8670 srcdiroption="--srcdir=$${topdir}/gas"; \
8671 libsrcdir="$$s/gas"; \
8672 $(SHELL) $${libsrcdir}/configure \
8673 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8674 --target=${target_alias} $${srcdiroption} \
8675 --with-build-libsubdir=$(HOST_SUBDIR) \
8676 $(STAGE2_CONFIGURE_FLAGS)
8677@endif gas-bootstrap
295f4e42 8678
85bfb75e
JM
8679.PHONY: configure-stage3-gas maybe-configure-stage3-gas
8680maybe-configure-stage3-gas:
8681@if gas-bootstrap
8682maybe-configure-stage3-gas: configure-stage3-gas
8683configure-stage3-gas:
8684 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8685 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
295f4e42
NN
8686 @r=`${PWD_COMMAND}`; export r; \
8687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8688 TFLAGS="$(STAGE3_TFLAGS)"; \
8689 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
4fc4dd12 8690 $(HOST_EXPORTS) \
85bfb75e
JM
8691 $(POSTSTAGE1_HOST_EXPORTS) \
8692 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8693 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8694 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
8695 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
8696 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8697 cd $(HOST_SUBDIR)/gas || exit 1; \
8698 case $(srcdir) in \
8699 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8700 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8701 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8702 esac; \
8703 srcdiroption="--srcdir=$${topdir}/gas"; \
8704 libsrcdir="$$s/gas"; \
8705 $(SHELL) $${libsrcdir}/configure \
8706 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8707 --target=${target_alias} $${srcdiroption} \
8708 --with-build-libsubdir=$(HOST_SUBDIR) \
8709 $(STAGE3_CONFIGURE_FLAGS)
8710@endif gas-bootstrap
455c8f48 8711
85bfb75e
JM
8712.PHONY: configure-stage4-gas maybe-configure-stage4-gas
8713maybe-configure-stage4-gas:
8714@if gas-bootstrap
8715maybe-configure-stage4-gas: configure-stage4-gas
8716configure-stage4-gas:
8717 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8718 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
455c8f48
RW
8719 @r=`${PWD_COMMAND}`; export r; \
8720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8721 TFLAGS="$(STAGE4_TFLAGS)"; \
8722 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
455c8f48 8723 $(HOST_EXPORTS) \
85bfb75e
JM
8724 $(POSTSTAGE1_HOST_EXPORTS) \
8725 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8726 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8727 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
8728 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
8729 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8730 cd $(HOST_SUBDIR)/gas || exit 1; \
8731 case $(srcdir) in \
8732 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8733 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8734 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8735 esac; \
8736 srcdiroption="--srcdir=$${topdir}/gas"; \
8737 libsrcdir="$$s/gas"; \
8738 $(SHELL) $${libsrcdir}/configure \
8739 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8740 --target=${target_alias} $${srcdiroption} \
8741 --with-build-libsubdir=$(HOST_SUBDIR) \
8742 $(STAGE4_CONFIGURE_FLAGS)
8743@endif gas-bootstrap
295f4e42 8744
85bfb75e
JM
8745.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
8746maybe-configure-stageprofile-gas:
8747@if gas-bootstrap
8748maybe-configure-stageprofile-gas: configure-stageprofile-gas
8749configure-stageprofile-gas:
8750 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8751 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
8752 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8754 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8755 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
4fc4dd12 8756 $(HOST_EXPORTS) \
85bfb75e
JM
8757 $(POSTSTAGE1_HOST_EXPORTS) \
8758 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8759 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8760 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
8761 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
8762 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8763 cd $(HOST_SUBDIR)/gas || exit 1; \
8764 case $(srcdir) in \
8765 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8766 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8767 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8768 esac; \
8769 srcdiroption="--srcdir=$${topdir}/gas"; \
8770 libsrcdir="$$s/gas"; \
8771 $(SHELL) $${libsrcdir}/configure \
8772 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8773 --target=${target_alias} $${srcdiroption} \
8774 --with-build-libsubdir=$(HOST_SUBDIR) \
8775 $(STAGEprofile_CONFIGURE_FLAGS)
8776@endif gas-bootstrap
1358ccea 8777
85bfb75e
JM
8778.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
8779maybe-configure-stagefeedback-gas:
8780@if gas-bootstrap
8781maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
8782configure-stagefeedback-gas:
8783 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8784 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
8785 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8787 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8788 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
4fc4dd12 8789 $(HOST_EXPORTS) \
85bfb75e
JM
8790 $(POSTSTAGE1_HOST_EXPORTS) \
8791 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8792 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8793 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
8794 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
8795 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8796 cd $(HOST_SUBDIR)/gas || exit 1; \
8797 case $(srcdir) in \
8798 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8799 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8800 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8801 esac; \
8802 srcdiroption="--srcdir=$${topdir}/gas"; \
8803 libsrcdir="$$s/gas"; \
8804 $(SHELL) $${libsrcdir}/configure \
8805 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8806 --target=${target_alias} $${srcdiroption} \
8807 --with-build-libsubdir=$(HOST_SUBDIR) \
8808 $(STAGEfeedback_CONFIGURE_FLAGS)
8809@endif gas-bootstrap
1358ccea 8810
b5422ad7 8811
b5422ad7 8812
b5422ad7 8813
f87a2b2e 8814
85bfb75e
JM
8815.PHONY: all-gas maybe-all-gas
8816maybe-all-gas:
8817@if gcc-bootstrap
8818all-gas: stage_current
8819@endif gcc-bootstrap
8820@if gas
8821TARGET-gas=all
8822maybe-all-gas: all-gas
8823all-gas: configure-gas
8824 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 8825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8826 $(HOST_EXPORTS) \
8827 (cd $(HOST_SUBDIR)/gas && \
8828 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
8829 $(TARGET-gas))
8830@endif gas
f87a2b2e 8831
f87a2b2e 8832
1358ccea 8833
85bfb75e
JM
8834.PHONY: all-stage1-gas maybe-all-stage1-gas
8835.PHONY: clean-stage1-gas maybe-clean-stage1-gas
8836maybe-all-stage1-gas:
8837maybe-clean-stage1-gas:
8838@if gas-bootstrap
8839maybe-all-stage1-gas: all-stage1-gas
8840all-stage1: all-stage1-gas
8841TARGET-stage1-gas = $(TARGET-gas)
8842all-stage1-gas: configure-stage1-gas
8843 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8844 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
8846 TFLAGS="$(STAGE1_TFLAGS)"; \
8847 $(HOST_EXPORTS) \
8848 cd $(HOST_SUBDIR)/gas && \
8849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8850 CFLAGS="$(STAGE1_CFLAGS)" \
8851 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8852 LIBCFLAGS="$(LIBCFLAGS)" \
8853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8856 $(EXTRA_HOST_FLAGS) \
8857 TFLAGS="$(STAGE1_TFLAGS)" \
8858 $(TARGET-stage1-gas)
1358ccea 8859
85bfb75e
JM
8860maybe-clean-stage1-gas: clean-stage1-gas
8861clean-stage1: clean-stage1-gas
8862clean-stage1-gas:
8863 @if [ $(current_stage) = stage1 ]; then \
8864 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8865 else \
8866 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
8867 $(MAKE) stage1-start; \
8868 fi; \
8869 cd $(HOST_SUBDIR)/gas && \
8870 $(MAKE) $(EXTRA_HOST_FLAGS) \
8871 clean
8872@endif gas-bootstrap
1358ccea 8873
1358ccea 8874
85bfb75e
JM
8875.PHONY: all-stage2-gas maybe-all-stage2-gas
8876.PHONY: clean-stage2-gas maybe-clean-stage2-gas
8877maybe-all-stage2-gas:
8878maybe-clean-stage2-gas:
8879@if gas-bootstrap
8880maybe-all-stage2-gas: all-stage2-gas
8881all-stage2: all-stage2-gas
8882TARGET-stage2-gas = $(TARGET-gas)
8883all-stage2-gas: configure-stage2-gas
8884 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8885 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 8887 TFLAGS="$(STAGE2_TFLAGS)"; \
4fc4dd12 8888 $(HOST_EXPORTS) \
85bfb75e
JM
8889 $(POSTSTAGE1_HOST_EXPORTS) \
8890 cd $(HOST_SUBDIR)/gas && \
8891 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8892 CFLAGS="$(STAGE2_CFLAGS)" \
8893 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8894 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8895 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8896 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8897 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8898 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8899 TFLAGS="$(STAGE2_TFLAGS)" \
8900 $(TARGET-stage2-gas)
1358ccea 8901
85bfb75e
JM
8902maybe-clean-stage2-gas: clean-stage2-gas
8903clean-stage2: clean-stage2-gas
8904clean-stage2-gas:
8905 @if [ $(current_stage) = stage2 ]; then \
8906 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8907 else \
8908 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
8909 $(MAKE) stage2-start; \
8910 fi; \
8911 cd $(HOST_SUBDIR)/gas && \
8912 $(MAKE) $(EXTRA_HOST_FLAGS) \
8913 $(POSTSTAGE1_FLAGS_TO_PASS) \
8914 clean
8915@endif gas-bootstrap
1358ccea 8916
1358ccea 8917
85bfb75e
JM
8918.PHONY: all-stage3-gas maybe-all-stage3-gas
8919.PHONY: clean-stage3-gas maybe-clean-stage3-gas
8920maybe-all-stage3-gas:
8921maybe-clean-stage3-gas:
8922@if gas-bootstrap
8923maybe-all-stage3-gas: all-stage3-gas
8924all-stage3: all-stage3-gas
8925TARGET-stage3-gas = $(TARGET-gas)
8926all-stage3-gas: configure-stage3-gas
8927 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8928 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 8930 TFLAGS="$(STAGE3_TFLAGS)"; \
4fc4dd12 8931 $(HOST_EXPORTS) \
85bfb75e
JM
8932 $(POSTSTAGE1_HOST_EXPORTS) \
8933 cd $(HOST_SUBDIR)/gas && \
8934 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8935 CFLAGS="$(STAGE3_CFLAGS)" \
8936 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8937 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8938 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8939 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8940 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8941 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8942 TFLAGS="$(STAGE3_TFLAGS)" \
8943 $(TARGET-stage3-gas)
1358ccea 8944
85bfb75e
JM
8945maybe-clean-stage3-gas: clean-stage3-gas
8946clean-stage3: clean-stage3-gas
8947clean-stage3-gas:
8948 @if [ $(current_stage) = stage3 ]; then \
8949 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8950 else \
8951 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
8952 $(MAKE) stage3-start; \
8953 fi; \
8954 cd $(HOST_SUBDIR)/gas && \
8955 $(MAKE) $(EXTRA_HOST_FLAGS) \
8956 $(POSTSTAGE1_FLAGS_TO_PASS) \
8957 clean
8958@endif gas-bootstrap
1358ccea 8959
1358ccea 8960
85bfb75e
JM
8961.PHONY: all-stage4-gas maybe-all-stage4-gas
8962.PHONY: clean-stage4-gas maybe-clean-stage4-gas
8963maybe-all-stage4-gas:
8964maybe-clean-stage4-gas:
8965@if gas-bootstrap
8966maybe-all-stage4-gas: all-stage4-gas
8967all-stage4: all-stage4-gas
8968TARGET-stage4-gas = $(TARGET-gas)
8969all-stage4-gas: configure-stage4-gas
8970 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8971 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 8973 TFLAGS="$(STAGE4_TFLAGS)"; \
4fc4dd12 8974 $(HOST_EXPORTS) \
85bfb75e
JM
8975 $(POSTSTAGE1_HOST_EXPORTS) \
8976 cd $(HOST_SUBDIR)/gas && \
8977 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8978 CFLAGS="$(STAGE4_CFLAGS)" \
8979 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8980 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8981 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8982 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8983 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8984 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8985 TFLAGS="$(STAGE4_TFLAGS)" \
8986 $(TARGET-stage4-gas)
1358ccea 8987
85bfb75e
JM
8988maybe-clean-stage4-gas: clean-stage4-gas
8989clean-stage4: clean-stage4-gas
8990clean-stage4-gas:
8991 @if [ $(current_stage) = stage4 ]; then \
8992 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8993 else \
8994 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
8995 $(MAKE) stage4-start; \
8996 fi; \
8997 cd $(HOST_SUBDIR)/gas && \
8998 $(MAKE) $(EXTRA_HOST_FLAGS) \
8999 $(POSTSTAGE1_FLAGS_TO_PASS) \
9000 clean
9001@endif gas-bootstrap
1358ccea 9002
1358ccea 9003
85bfb75e
JM
9004.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9005.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9006maybe-all-stageprofile-gas:
9007maybe-clean-stageprofile-gas:
9008@if gas-bootstrap
9009maybe-all-stageprofile-gas: all-stageprofile-gas
9010all-stageprofile: all-stageprofile-gas
9011TARGET-stageprofile-gas = $(TARGET-gas)
9012all-stageprofile-gas: configure-stageprofile-gas
9013 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9014 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 9016 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 9017 $(HOST_EXPORTS) \
85bfb75e
JM
9018 $(POSTSTAGE1_HOST_EXPORTS) \
9019 cd $(HOST_SUBDIR)/gas && \
9020 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9021 CFLAGS="$(STAGEprofile_CFLAGS)" \
9022 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9023 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9024 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9025 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9026 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9027 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9028 TFLAGS="$(STAGEprofile_TFLAGS)" \
9029 $(TARGET-stageprofile-gas)
1358ccea 9030
85bfb75e
JM
9031maybe-clean-stageprofile-gas: clean-stageprofile-gas
9032clean-stageprofile: clean-stageprofile-gas
9033clean-stageprofile-gas:
9034 @if [ $(current_stage) = stageprofile ]; then \
9035 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9036 else \
9037 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9038 $(MAKE) stageprofile-start; \
9039 fi; \
9040 cd $(HOST_SUBDIR)/gas && \
9041 $(MAKE) $(EXTRA_HOST_FLAGS) \
9042 $(POSTSTAGE1_FLAGS_TO_PASS) \
9043 clean
9044@endif gas-bootstrap
1358ccea 9045
25b42232 9046
85bfb75e
JM
9047.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9048.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9049maybe-all-stagefeedback-gas:
9050maybe-clean-stagefeedback-gas:
9051@if gas-bootstrap
9052maybe-all-stagefeedback-gas: all-stagefeedback-gas
9053all-stagefeedback: all-stagefeedback-gas
9054TARGET-stagefeedback-gas = $(TARGET-gas)
9055all-stagefeedback-gas: configure-stagefeedback-gas
9056 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 9057 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9059 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9060 $(HOST_EXPORTS) \
9061 $(POSTSTAGE1_HOST_EXPORTS) \
9062 cd $(HOST_SUBDIR)/gas && \
9063 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9064 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9065 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9066 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9067 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9068 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9069 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9070 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9071 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9072 $(TARGET-stagefeedback-gas)
ce406537 9073
85bfb75e
JM
9074maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9075clean-stagefeedback: clean-stagefeedback-gas
9076clean-stagefeedback-gas:
9077 @if [ $(current_stage) = stagefeedback ]; then \
9078 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9079 else \
9080 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9081 $(MAKE) stagefeedback-start; \
9082 fi; \
9083 cd $(HOST_SUBDIR)/gas && \
9084 $(MAKE) $(EXTRA_HOST_FLAGS) \
9085 $(POSTSTAGE1_FLAGS_TO_PASS) \
9086 clean
9087@endif gas-bootstrap
ce406537 9088
295f4e42 9089
25b42232 9090
ce406537
PB
9091
9092
85bfb75e
JM
9093.PHONY: check-gas maybe-check-gas
9094maybe-check-gas:
9095@if gas
9096maybe-check-gas: check-gas
295f4e42 9097
85bfb75e 9098check-gas:
f41d6665 9099 @: $(MAKE); $(unstage)
295f4e42
NN
9100 @r=`${PWD_COMMAND}`; export r; \
9101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9102 $(HOST_EXPORTS) \
85bfb75e 9103 (cd $(HOST_SUBDIR)/gas && \
215c351a 9104 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9105
85bfb75e 9106@endif gas
295f4e42 9107
85bfb75e
JM
9108.PHONY: install-gas maybe-install-gas
9109maybe-install-gas:
9110@if gas
9111maybe-install-gas: install-gas
295f4e42 9112
85bfb75e 9113install-gas: installdirs
f41d6665 9114 @: $(MAKE); $(unstage)
295f4e42
NN
9115 @r=`${PWD_COMMAND}`; export r; \
9116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9117 $(HOST_EXPORTS) \
85bfb75e 9118 (cd $(HOST_SUBDIR)/gas && \
ace9ac7b 9119 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9120
85bfb75e 9121@endif gas
295f4e42 9122
85bfb75e
JM
9123.PHONY: install-strip-gas maybe-install-strip-gas
9124maybe-install-strip-gas:
9125@if gas
9126maybe-install-strip-gas: install-strip-gas
455c8f48 9127
85bfb75e 9128install-strip-gas: installdirs
455c8f48
RW
9129 @: $(MAKE); $(unstage)
9130 @r=`${PWD_COMMAND}`; export r; \
9131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9132 $(HOST_EXPORTS) \
85bfb75e 9133 (cd $(HOST_SUBDIR)/gas && \
455c8f48
RW
9134 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9135
85bfb75e 9136@endif gas
455c8f48 9137
b5422ad7 9138# Other targets (info, dvi, pdf, etc.)
295f4e42 9139
85bfb75e
JM
9140.PHONY: maybe-info-gas info-gas
9141maybe-info-gas:
9142@if gas
9143maybe-info-gas: info-gas
295f4e42 9144
85bfb75e
JM
9145info-gas: \
9146 configure-gas
9147 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9148 r=`${PWD_COMMAND}`; export r; \
9149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9150 $(HOST_EXPORTS) \
d32ab992 9151 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9153 done; \
85bfb75e
JM
9154 echo "Doing info in gas" ; \
9155 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9158 "RANLIB=$${RANLIB}" \
901119ae 9159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9160 info) \
1358ccea
NN
9161 || exit 1
9162
85bfb75e 9163@endif gas
1358ccea 9164
85bfb75e
JM
9165.PHONY: maybe-dvi-gas dvi-gas
9166maybe-dvi-gas:
9167@if gas
9168maybe-dvi-gas: dvi-gas
1358ccea 9169
85bfb75e
JM
9170dvi-gas: \
9171 configure-gas
9172 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9173 r=`${PWD_COMMAND}`; export r; \
9174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9175 $(HOST_EXPORTS) \
d32ab992 9176 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9178 done; \
85bfb75e
JM
9179 echo "Doing dvi in gas" ; \
9180 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9183 "RANLIB=$${RANLIB}" \
901119ae 9184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9185 dvi) \
1358ccea
NN
9186 || exit 1
9187
85bfb75e 9188@endif gas
1358ccea 9189
85bfb75e
JM
9190.PHONY: maybe-pdf-gas pdf-gas
9191maybe-pdf-gas:
9192@if gas
9193maybe-pdf-gas: pdf-gas
b5422ad7 9194
85bfb75e
JM
9195pdf-gas: \
9196 configure-gas
9197 @[ -f ./gas/Makefile ] || exit 0; \
b5422ad7
BM
9198 r=`${PWD_COMMAND}`; export r; \
9199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9200 $(HOST_EXPORTS) \
9201 for flag in $(EXTRA_HOST_FLAGS) ; do \
9202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9203 done; \
85bfb75e
JM
9204 echo "Doing pdf in gas" ; \
9205 (cd $(HOST_SUBDIR)/gas && \
b5422ad7
BM
9206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9208 "RANLIB=$${RANLIB}" \
901119ae 9209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
9210 pdf) \
9211 || exit 1
9212
85bfb75e 9213@endif gas
b5422ad7 9214
85bfb75e
JM
9215.PHONY: maybe-html-gas html-gas
9216maybe-html-gas:
9217@if gas
9218maybe-html-gas: html-gas
f87a2b2e 9219
85bfb75e
JM
9220html-gas: \
9221 configure-gas
9222 @[ -f ./gas/Makefile ] || exit 0; \
f87a2b2e
MS
9223 r=`${PWD_COMMAND}`; export r; \
9224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9225 $(HOST_EXPORTS) \
9226 for flag in $(EXTRA_HOST_FLAGS) ; do \
9227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9228 done; \
85bfb75e
JM
9229 echo "Doing html in gas" ; \
9230 (cd $(HOST_SUBDIR)/gas && \
f87a2b2e
MS
9231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9233 "RANLIB=$${RANLIB}" \
901119ae 9234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
9235 html) \
9236 || exit 1
9237
85bfb75e 9238@endif gas
f87a2b2e 9239
85bfb75e
JM
9240.PHONY: maybe-TAGS-gas TAGS-gas
9241maybe-TAGS-gas:
9242@if gas
9243maybe-TAGS-gas: TAGS-gas
1358ccea 9244
85bfb75e
JM
9245TAGS-gas: \
9246 configure-gas
9247 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9248 r=`${PWD_COMMAND}`; export r; \
9249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9250 $(HOST_EXPORTS) \
d32ab992 9251 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9253 done; \
85bfb75e
JM
9254 echo "Doing TAGS in gas" ; \
9255 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9258 "RANLIB=$${RANLIB}" \
901119ae 9259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9260 TAGS) \
1358ccea
NN
9261 || exit 1
9262
85bfb75e 9263@endif gas
1358ccea 9264
85bfb75e
JM
9265.PHONY: maybe-install-info-gas install-info-gas
9266maybe-install-info-gas:
9267@if gas
9268maybe-install-info-gas: install-info-gas
1358ccea 9269
85bfb75e
JM
9270install-info-gas: \
9271 configure-gas \
9272 info-gas
9273 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9274 r=`${PWD_COMMAND}`; export r; \
9275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9276 $(HOST_EXPORTS) \
d32ab992 9277 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9279 done; \
85bfb75e
JM
9280 echo "Doing install-info in gas" ; \
9281 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9284 "RANLIB=$${RANLIB}" \
901119ae 9285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9286 install-info) \
1358ccea
NN
9287 || exit 1
9288
85bfb75e 9289@endif gas
1358ccea 9290
85bfb75e
JM
9291.PHONY: maybe-install-pdf-gas install-pdf-gas
9292maybe-install-pdf-gas:
9293@if gas
9294maybe-install-pdf-gas: install-pdf-gas
9c4d2493 9295
85bfb75e
JM
9296install-pdf-gas: \
9297 configure-gas \
9298 pdf-gas
9299 @[ -f ./gas/Makefile ] || exit 0; \
9c4d2493
BM
9300 r=`${PWD_COMMAND}`; export r; \
9301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9302 $(HOST_EXPORTS) \
9303 for flag in $(EXTRA_HOST_FLAGS) ; do \
9304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9305 done; \
85bfb75e
JM
9306 echo "Doing install-pdf in gas" ; \
9307 (cd $(HOST_SUBDIR)/gas && \
9c4d2493
BM
9308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9310 "RANLIB=$${RANLIB}" \
901119ae 9311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
9312 install-pdf) \
9313 || exit 1
9314
85bfb75e 9315@endif gas
9c4d2493 9316
85bfb75e
JM
9317.PHONY: maybe-install-html-gas install-html-gas
9318maybe-install-html-gas:
9319@if gas
9320maybe-install-html-gas: install-html-gas
65d6e994 9321
85bfb75e
JM
9322install-html-gas: \
9323 configure-gas \
9324 html-gas
9325 @[ -f ./gas/Makefile ] || exit 0; \
65d6e994
CD
9326 r=`${PWD_COMMAND}`; export r; \
9327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9328 $(HOST_EXPORTS) \
9329 for flag in $(EXTRA_HOST_FLAGS) ; do \
9330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9331 done; \
85bfb75e
JM
9332 echo "Doing install-html in gas" ; \
9333 (cd $(HOST_SUBDIR)/gas && \
65d6e994
CD
9334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9336 "RANLIB=$${RANLIB}" \
901119ae 9337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
9338 install-html) \
9339 || exit 1
9340
85bfb75e 9341@endif gas
65d6e994 9342
85bfb75e
JM
9343.PHONY: maybe-installcheck-gas installcheck-gas
9344maybe-installcheck-gas:
9345@if gas
9346maybe-installcheck-gas: installcheck-gas
1358ccea 9347
85bfb75e
JM
9348installcheck-gas: \
9349 configure-gas
9350 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9351 r=`${PWD_COMMAND}`; export r; \
9352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9353 $(HOST_EXPORTS) \
d32ab992 9354 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9356 done; \
85bfb75e
JM
9357 echo "Doing installcheck in gas" ; \
9358 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9361 "RANLIB=$${RANLIB}" \
901119ae 9362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9363 installcheck) \
1358ccea
NN
9364 || exit 1
9365
85bfb75e 9366@endif gas
1358ccea 9367
85bfb75e
JM
9368.PHONY: maybe-mostlyclean-gas mostlyclean-gas
9369maybe-mostlyclean-gas:
9370@if gas
9371maybe-mostlyclean-gas: mostlyclean-gas
1358ccea 9372
85bfb75e
JM
9373mostlyclean-gas:
9374 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9375 r=`${PWD_COMMAND}`; export r; \
9376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9377 $(HOST_EXPORTS) \
d32ab992 9378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9380 done; \
85bfb75e
JM
9381 echo "Doing mostlyclean in gas" ; \
9382 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9385 "RANLIB=$${RANLIB}" \
901119ae 9386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9387 mostlyclean) \
1358ccea
NN
9388 || exit 1
9389
85bfb75e 9390@endif gas
1358ccea 9391
85bfb75e
JM
9392.PHONY: maybe-clean-gas clean-gas
9393maybe-clean-gas:
9394@if gas
9395maybe-clean-gas: clean-gas
1358ccea 9396
85bfb75e
JM
9397clean-gas:
9398 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9399 r=`${PWD_COMMAND}`; export r; \
9400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9401 $(HOST_EXPORTS) \
d32ab992 9402 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9404 done; \
85bfb75e
JM
9405 echo "Doing clean in gas" ; \
9406 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9409 "RANLIB=$${RANLIB}" \
901119ae 9410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9411 clean) \
1358ccea
NN
9412 || exit 1
9413
85bfb75e 9414@endif gas
1358ccea 9415
85bfb75e
JM
9416.PHONY: maybe-distclean-gas distclean-gas
9417maybe-distclean-gas:
9418@if gas
9419maybe-distclean-gas: distclean-gas
1358ccea 9420
85bfb75e
JM
9421distclean-gas:
9422 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
9423 r=`${PWD_COMMAND}`; export r; \
9424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9425 $(HOST_EXPORTS) \
d32ab992 9426 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9428 done; \
85bfb75e
JM
9429 echo "Doing distclean in gas" ; \
9430 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9433 "RANLIB=$${RANLIB}" \
901119ae 9434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9435 distclean) \
1358ccea
NN
9436 || exit 1
9437
85bfb75e 9438@endif gas
1358ccea 9439
85bfb75e
JM
9440.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
9441maybe-maintainer-clean-gas:
9442@if gas
9443maybe-maintainer-clean-gas: maintainer-clean-gas
1358ccea 9444
85bfb75e
JM
9445maintainer-clean-gas:
9446 @[ -f ./gas/Makefile ] || exit 0; \
9447 r=`${PWD_COMMAND}`; export r; \
8c90b13a 9448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9449 $(HOST_EXPORTS) \
d32ab992 9450 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9452 done; \
85bfb75e
JM
9453 echo "Doing maintainer-clean in gas" ; \
9454 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
9455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9457 "RANLIB=$${RANLIB}" \
901119ae 9458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 9459 maintainer-clean) \
295f4e42
NN
9460 || exit 1
9461
85bfb75e 9462@endif gas
295f4e42
NN
9463
9464
25b42232 9465
85bfb75e
JM
9466.PHONY: configure-gcc maybe-configure-gcc
9467maybe-configure-gcc:
3ff3adad 9468@if gcc-bootstrap
85bfb75e 9469configure-gcc: stage_current
3ff3adad 9470@endif gcc-bootstrap
85bfb75e
JM
9471@if gcc
9472maybe-configure-gcc: configure-gcc
9473configure-gcc:
cc11cc9b 9474 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9476 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9477 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
f61428ed 9478 $(HOST_EXPORTS) \
85bfb75e
JM
9479 echo Configuring in $(HOST_SUBDIR)/gcc; \
9480 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
295f4e42 9481 case $(srcdir) in \
215c351a 9482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 9483 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
215c351a 9484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9485 esac; \
85bfb75e
JM
9486 srcdiroption="--srcdir=$${topdir}/gcc"; \
9487 libsrcdir="$$s/gcc"; \
295f4e42 9488 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
9489 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9490 --target=${target_alias} $${srcdiroption} \
1358ccea 9491 || exit 1
85bfb75e 9492@endif gcc
25b42232 9493
ce406537
PB
9494
9495
85bfb75e
JM
9496.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
9497maybe-configure-stage1-gcc:
3ff3adad 9498@if gcc-bootstrap
85bfb75e
JM
9499maybe-configure-stage1-gcc: configure-stage1-gcc
9500configure-stage1-gcc:
9501 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9502 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
295f4e42 9503 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9505 TFLAGS="$(STAGE1_TFLAGS)"; \
9506 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9507 $(HOST_EXPORTS) \
9508 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9509 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9510 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
9511 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
9512 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9513 cd $(HOST_SUBDIR)/gcc || exit 1; \
9514 case $(srcdir) in \
9515 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9516 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9517 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9518 esac; \
9519 srcdiroption="--srcdir=$${topdir}/gcc"; \
9520 libsrcdir="$$s/gcc"; \
9521 $(SHELL) $${libsrcdir}/configure \
9522 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9523 --target=${target_alias} $${srcdiroption} \
9524 $(STAGE1_CONFIGURE_FLAGS)
9525@endif gcc-bootstrap
1358ccea 9526
85bfb75e
JM
9527.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
9528maybe-configure-stage2-gcc:
9529@if gcc-bootstrap
9530maybe-configure-stage2-gcc: configure-stage2-gcc
9531configure-stage2-gcc:
9532 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
295f4e42 9534 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9536 TFLAGS="$(STAGE2_TFLAGS)"; \
9537 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
4fc4dd12 9538 $(HOST_EXPORTS) \
85bfb75e
JM
9539 $(POSTSTAGE1_HOST_EXPORTS) \
9540 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9541 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9542 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
9543 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
9544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9545 cd $(HOST_SUBDIR)/gcc || exit 1; \
9546 case $(srcdir) in \
9547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9548 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9550 esac; \
9551 srcdiroption="--srcdir=$${topdir}/gcc"; \
9552 libsrcdir="$$s/gcc"; \
9553 $(SHELL) $${libsrcdir}/configure \
9554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9555 --target=${target_alias} $${srcdiroption} \
9556 --with-build-libsubdir=$(HOST_SUBDIR) \
9557 $(STAGE2_CONFIGURE_FLAGS)
9558@endif gcc-bootstrap
455c8f48 9559
85bfb75e
JM
9560.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
9561maybe-configure-stage3-gcc:
9562@if gcc-bootstrap
9563maybe-configure-stage3-gcc: configure-stage3-gcc
9564configure-stage3-gcc:
9565 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
455c8f48
RW
9567 @r=`${PWD_COMMAND}`; export r; \
9568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9569 TFLAGS="$(STAGE3_TFLAGS)"; \
9570 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
455c8f48 9571 $(HOST_EXPORTS) \
85bfb75e
JM
9572 $(POSTSTAGE1_HOST_EXPORTS) \
9573 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9574 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9575 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
9576 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
9577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9578 cd $(HOST_SUBDIR)/gcc || exit 1; \
9579 case $(srcdir) in \
9580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9581 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9583 esac; \
9584 srcdiroption="--srcdir=$${topdir}/gcc"; \
9585 libsrcdir="$$s/gcc"; \
9586 $(SHELL) $${libsrcdir}/configure \
9587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9588 --target=${target_alias} $${srcdiroption} \
9589 --with-build-libsubdir=$(HOST_SUBDIR) \
9590 $(STAGE3_CONFIGURE_FLAGS)
9591@endif gcc-bootstrap
295f4e42 9592
85bfb75e
JM
9593.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
9594maybe-configure-stage4-gcc:
9595@if gcc-bootstrap
9596maybe-configure-stage4-gcc: configure-stage4-gcc
9597configure-stage4-gcc:
9598 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9599 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9600 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9602 TFLAGS="$(STAGE4_TFLAGS)"; \
9603 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
4fc4dd12 9604 $(HOST_EXPORTS) \
85bfb75e
JM
9605 $(POSTSTAGE1_HOST_EXPORTS) \
9606 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9607 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9608 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
9609 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
9610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9611 cd $(HOST_SUBDIR)/gcc || exit 1; \
9612 case $(srcdir) in \
9613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9614 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9616 esac; \
9617 srcdiroption="--srcdir=$${topdir}/gcc"; \
9618 libsrcdir="$$s/gcc"; \
9619 $(SHELL) $${libsrcdir}/configure \
9620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9621 --target=${target_alias} $${srcdiroption} \
9622 --with-build-libsubdir=$(HOST_SUBDIR) \
9623 $(STAGE4_CONFIGURE_FLAGS)
9624@endif gcc-bootstrap
1358ccea 9625
85bfb75e
JM
9626.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
9627maybe-configure-stageprofile-gcc:
9628@if gcc-bootstrap
9629maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
9630configure-stageprofile-gcc:
9631 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9632 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9633 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9635 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9636 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
4fc4dd12 9637 $(HOST_EXPORTS) \
85bfb75e
JM
9638 $(POSTSTAGE1_HOST_EXPORTS) \
9639 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9640 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9641 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
9642 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
9643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9644 cd $(HOST_SUBDIR)/gcc || exit 1; \
9645 case $(srcdir) in \
9646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9647 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9649 esac; \
9650 srcdiroption="--srcdir=$${topdir}/gcc"; \
9651 libsrcdir="$$s/gcc"; \
9652 $(SHELL) $${libsrcdir}/configure \
9653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9654 --target=${target_alias} $${srcdiroption} \
9655 --with-build-libsubdir=$(HOST_SUBDIR) \
9656 $(STAGEprofile_CONFIGURE_FLAGS)
9657@endif gcc-bootstrap
b5422ad7 9658
85bfb75e
JM
9659.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
9660maybe-configure-stagefeedback-gcc:
9661@if gcc-bootstrap
9662maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
9663configure-stagefeedback-gcc:
9664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9666 @r=`${PWD_COMMAND}`; export r; \
b5422ad7 9667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9668 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9669 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
b5422ad7 9670 $(HOST_EXPORTS) \
85bfb75e
JM
9671 $(POSTSTAGE1_HOST_EXPORTS) \
9672 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9673 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9674 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
9675 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
9676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9677 cd $(HOST_SUBDIR)/gcc || exit 1; \
9678 case $(srcdir) in \
9679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9680 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9682 esac; \
9683 srcdiroption="--srcdir=$${topdir}/gcc"; \
9684 libsrcdir="$$s/gcc"; \
9685 $(SHELL) $${libsrcdir}/configure \
9686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9687 --target=${target_alias} $${srcdiroption} \
9688 --with-build-libsubdir=$(HOST_SUBDIR) \
9689 $(STAGEfeedback_CONFIGURE_FLAGS)
9690@endif gcc-bootstrap
b5422ad7 9691
1358ccea 9692
1358ccea
NN
9693
9694
1358ccea 9695
85bfb75e
JM
9696.PHONY: all-gcc maybe-all-gcc
9697maybe-all-gcc:
9698@if gcc-bootstrap
9699all-gcc: stage_current
9700@endif gcc-bootstrap
9701@if gcc
9702TARGET-gcc=all
9703maybe-all-gcc: all-gcc
9704all-gcc: configure-gcc
9705 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 9706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9707 $(HOST_EXPORTS) \
9708 (cd $(HOST_SUBDIR)/gcc && \
9709 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
9710 $(TARGET-gcc))
9711@endif gcc
f87a2b2e 9712
f87a2b2e 9713
f87a2b2e 9714
85bfb75e
JM
9715.PHONY: all-stage1-gcc maybe-all-stage1-gcc
9716.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
9717maybe-all-stage1-gcc:
9718maybe-clean-stage1-gcc:
9719@if gcc-bootstrap
9720maybe-all-stage1-gcc: all-stage1-gcc
9721all-stage1: all-stage1-gcc
9722TARGET-stage1-gcc = $(TARGET-gcc)
9723all-stage1-gcc: configure-stage1-gcc
9724 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9725 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9727 TFLAGS="$(STAGE1_TFLAGS)"; \
9728 $(HOST_EXPORTS) \
9729 cd $(HOST_SUBDIR)/gcc && \
9730 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9731 CFLAGS="$(STAGE1_CFLAGS)" \
9732 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9733 LIBCFLAGS="$(LIBCFLAGS)" \
9734 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9735 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9736 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9737 $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
9738 TFLAGS="$(STAGE1_TFLAGS)" \
9739 $(TARGET-stage1-gcc)
1358ccea 9740
85bfb75e
JM
9741maybe-clean-stage1-gcc: clean-stage1-gcc
9742clean-stage1: clean-stage1-gcc
9743clean-stage1-gcc:
9744 @if [ $(current_stage) = stage1 ]; then \
9745 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9746 else \
9747 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
9748 $(MAKE) stage1-start; \
9749 fi; \
9750 cd $(HOST_SUBDIR)/gcc && \
9751 $(MAKE) $(EXTRA_HOST_FLAGS) \
9752 $(EXTRA_GCC_FLAGS) clean
9753@endif gcc-bootstrap
1358ccea 9754
9c4d2493 9755
85bfb75e
JM
9756.PHONY: all-stage2-gcc maybe-all-stage2-gcc
9757.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
9758maybe-all-stage2-gcc:
9759maybe-clean-stage2-gcc:
9760@if gcc-bootstrap
9761maybe-all-stage2-gcc: all-stage2-gcc
9762all-stage2: all-stage2-gcc
9763TARGET-stage2-gcc = $(TARGET-gcc)
9764all-stage2-gcc: configure-stage2-gcc
9765 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9766 @r=`${PWD_COMMAND}`; export r; \
9c4d2493 9767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 9768 TFLAGS="$(STAGE2_TFLAGS)"; \
9c4d2493 9769 $(HOST_EXPORTS) \
85bfb75e
JM
9770 $(POSTSTAGE1_HOST_EXPORTS) \
9771 cd $(HOST_SUBDIR)/gcc && \
9772 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9773 CFLAGS="$(STAGE2_CFLAGS)" \
9774 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9775 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9776 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9777 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9778 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9779 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9780 TFLAGS="$(STAGE2_TFLAGS)" \
9781 $(TARGET-stage2-gcc)
9c4d2493 9782
85bfb75e
JM
9783maybe-clean-stage2-gcc: clean-stage2-gcc
9784clean-stage2: clean-stage2-gcc
9785clean-stage2-gcc:
9786 @if [ $(current_stage) = stage2 ]; then \
9787 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9788 else \
9789 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
9790 $(MAKE) stage2-start; \
9791 fi; \
9792 cd $(HOST_SUBDIR)/gcc && \
9793 $(MAKE) $(EXTRA_HOST_FLAGS) \
9794 $(POSTSTAGE1_FLAGS_TO_PASS) \
9795 $(EXTRA_GCC_FLAGS) clean
9796@endif gcc-bootstrap
9c4d2493 9797
65d6e994 9798
85bfb75e
JM
9799.PHONY: all-stage3-gcc maybe-all-stage3-gcc
9800.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
9801maybe-all-stage3-gcc:
9802maybe-clean-stage3-gcc:
9803@if gcc-bootstrap
9804maybe-all-stage3-gcc: all-stage3-gcc
9805all-stage3: all-stage3-gcc
9806TARGET-stage3-gcc = $(TARGET-gcc)
9807all-stage3-gcc: configure-stage3-gcc
9808 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9809 @r=`${PWD_COMMAND}`; export r; \
65d6e994 9810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 9811 TFLAGS="$(STAGE3_TFLAGS)"; \
65d6e994 9812 $(HOST_EXPORTS) \
85bfb75e
JM
9813 $(POSTSTAGE1_HOST_EXPORTS) \
9814 cd $(HOST_SUBDIR)/gcc && \
9815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9816 CFLAGS="$(STAGE3_CFLAGS)" \
9817 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9818 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9822 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9823 TFLAGS="$(STAGE3_TFLAGS)" \
9824 $(TARGET-stage3-gcc)
65d6e994 9825
85bfb75e
JM
9826maybe-clean-stage3-gcc: clean-stage3-gcc
9827clean-stage3: clean-stage3-gcc
9828clean-stage3-gcc:
9829 @if [ $(current_stage) = stage3 ]; then \
9830 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9831 else \
9832 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
9833 $(MAKE) stage3-start; \
9834 fi; \
9835 cd $(HOST_SUBDIR)/gcc && \
9836 $(MAKE) $(EXTRA_HOST_FLAGS) \
9837 $(POSTSTAGE1_FLAGS_TO_PASS) \
9838 $(EXTRA_GCC_FLAGS) clean
9839@endif gcc-bootstrap
65d6e994 9840
1358ccea 9841
85bfb75e
JM
9842.PHONY: all-stage4-gcc maybe-all-stage4-gcc
9843.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
9844maybe-all-stage4-gcc:
9845maybe-clean-stage4-gcc:
9846@if gcc-bootstrap
9847maybe-all-stage4-gcc: all-stage4-gcc
9848all-stage4: all-stage4-gcc
9849TARGET-stage4-gcc = $(TARGET-gcc)
9850all-stage4-gcc: configure-stage4-gcc
9851 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9852 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 9854 TFLAGS="$(STAGE4_TFLAGS)"; \
4fc4dd12 9855 $(HOST_EXPORTS) \
85bfb75e
JM
9856 $(POSTSTAGE1_HOST_EXPORTS) \
9857 cd $(HOST_SUBDIR)/gcc && \
9858 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9859 CFLAGS="$(STAGE4_CFLAGS)" \
9860 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9861 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9862 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9863 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9864 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9865 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9866 TFLAGS="$(STAGE4_TFLAGS)" \
9867 $(TARGET-stage4-gcc)
1358ccea 9868
85bfb75e
JM
9869maybe-clean-stage4-gcc: clean-stage4-gcc
9870clean-stage4: clean-stage4-gcc
9871clean-stage4-gcc:
9872 @if [ $(current_stage) = stage4 ]; then \
9873 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9874 else \
9875 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
9876 $(MAKE) stage4-start; \
9877 fi; \
9878 cd $(HOST_SUBDIR)/gcc && \
9879 $(MAKE) $(EXTRA_HOST_FLAGS) \
9880 $(POSTSTAGE1_FLAGS_TO_PASS) \
9881 $(EXTRA_GCC_FLAGS) clean
9882@endif gcc-bootstrap
1358ccea 9883
1358ccea 9884
85bfb75e
JM
9885.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
9886.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
9887maybe-all-stageprofile-gcc:
9888maybe-clean-stageprofile-gcc:
9889@if gcc-bootstrap
9890maybe-all-stageprofile-gcc: all-stageprofile-gcc
9891all-stageprofile: all-stageprofile-gcc
9892TARGET-stageprofile-gcc = $(TARGET-gcc)
9893all-stageprofile-gcc: configure-stageprofile-gcc
9894 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9895 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 9897 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 9898 $(HOST_EXPORTS) \
85bfb75e
JM
9899 $(POSTSTAGE1_HOST_EXPORTS) \
9900 cd $(HOST_SUBDIR)/gcc && \
9901 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9902 CFLAGS="$(STAGEprofile_CFLAGS)" \
9903 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9904 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9905 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9906 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9907 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9908 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9909 TFLAGS="$(STAGEprofile_TFLAGS)" \
9910 $(TARGET-stageprofile-gcc)
1358ccea 9911
85bfb75e
JM
9912maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
9913clean-stageprofile: clean-stageprofile-gcc
9914clean-stageprofile-gcc:
9915 @if [ $(current_stage) = stageprofile ]; then \
9916 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9917 else \
9918 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
9919 $(MAKE) stageprofile-start; \
9920 fi; \
9921 cd $(HOST_SUBDIR)/gcc && \
9922 $(MAKE) $(EXTRA_HOST_FLAGS) \
9923 $(POSTSTAGE1_FLAGS_TO_PASS) \
9924 $(EXTRA_GCC_FLAGS) clean
9925@endif gcc-bootstrap
1358ccea 9926
25b42232 9927
85bfb75e
JM
9928.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
9929.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
9930maybe-all-stagefeedback-gcc:
9931maybe-clean-stagefeedback-gcc:
3ff3adad 9932@if gcc-bootstrap
85bfb75e
JM
9933maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
9934all-stagefeedback: all-stagefeedback-gcc
9935TARGET-stagefeedback-gcc = $(TARGET-gcc)
9936all-stagefeedback-gcc: configure-stagefeedback-gcc
9937 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 9938 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
9940 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9941 $(HOST_EXPORTS) \
9942 $(POSTSTAGE1_HOST_EXPORTS) \
9943 cd $(HOST_SUBDIR)/gcc && \
9944 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9945 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9946 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9947 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9948 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9949 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9950 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9951 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9952 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9953 $(TARGET-stagefeedback-gcc)
ce406537 9954
85bfb75e
JM
9955maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
9956clean-stagefeedback: clean-stagefeedback-gcc
9957clean-stagefeedback-gcc:
9958 @if [ $(current_stage) = stagefeedback ]; then \
9959 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9960 else \
9961 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
9962 $(MAKE) stagefeedback-start; \
9963 fi; \
9964 cd $(HOST_SUBDIR)/gcc && \
9965 $(MAKE) $(EXTRA_HOST_FLAGS) \
9966 $(POSTSTAGE1_FLAGS_TO_PASS) \
9967 $(EXTRA_GCC_FLAGS) clean
3ff3adad 9968@endif gcc-bootstrap
1358ccea 9969
25b42232 9970
ce406537
PB
9971
9972
1358ccea 9973
85bfb75e
JM
9974.PHONY: check-gcc maybe-check-gcc
9975maybe-check-gcc:
9976@if gcc
9977maybe-check-gcc: check-gcc
9978
9979check-gcc:
f41d6665 9980 @: $(MAKE); $(unstage)
295f4e42 9981 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9983 $(HOST_EXPORTS) \
85bfb75e
JM
9984 (cd $(HOST_SUBDIR)/gcc && \
9985 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
1358ccea 9986
85bfb75e 9987@endif gcc
1358ccea 9988
85bfb75e
JM
9989.PHONY: install-gcc maybe-install-gcc
9990maybe-install-gcc:
9991@if gcc
9992maybe-install-gcc: install-gcc
1358ccea 9993
85bfb75e 9994install-gcc: installdirs
f41d6665 9995 @: $(MAKE); $(unstage)
295f4e42 9996 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9998 $(HOST_EXPORTS) \
85bfb75e
JM
9999 (cd $(HOST_SUBDIR)/gcc && \
10000 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
1358ccea 10001
85bfb75e 10002@endif gcc
1358ccea 10003
85bfb75e
JM
10004.PHONY: install-strip-gcc maybe-install-strip-gcc
10005maybe-install-strip-gcc:
10006@if gcc
10007maybe-install-strip-gcc: install-strip-gcc
455c8f48 10008
85bfb75e 10009install-strip-gcc: installdirs
455c8f48
RW
10010 @: $(MAKE); $(unstage)
10011 @r=`${PWD_COMMAND}`; export r; \
10012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10013 $(HOST_EXPORTS) \
85bfb75e
JM
10014 (cd $(HOST_SUBDIR)/gcc && \
10015 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
455c8f48 10016
85bfb75e 10017@endif gcc
455c8f48 10018
b5422ad7 10019# Other targets (info, dvi, pdf, etc.)
1358ccea 10020
85bfb75e
JM
10021.PHONY: maybe-info-gcc info-gcc
10022maybe-info-gcc:
10023@if gcc
10024maybe-info-gcc: info-gcc
295f4e42 10025
85bfb75e
JM
10026info-gcc: \
10027 configure-gcc
10028 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10029 r=`${PWD_COMMAND}`; export r; \
10030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10031 $(HOST_EXPORTS) \
85bfb75e 10032 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10034 done; \
85bfb75e
JM
10035 echo "Doing info in gcc" ; \
10036 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10039 "RANLIB=$${RANLIB}" \
901119ae 10040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10041 info) \
1358ccea
NN
10042 || exit 1
10043
85bfb75e 10044@endif gcc
1358ccea 10045
85bfb75e
JM
10046.PHONY: maybe-dvi-gcc dvi-gcc
10047maybe-dvi-gcc:
10048@if gcc
10049maybe-dvi-gcc: dvi-gcc
1358ccea 10050
85bfb75e
JM
10051dvi-gcc: \
10052 configure-gcc
10053 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10054 r=`${PWD_COMMAND}`; export r; \
10055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10056 $(HOST_EXPORTS) \
85bfb75e 10057 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10059 done; \
85bfb75e
JM
10060 echo "Doing dvi in gcc" ; \
10061 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10064 "RANLIB=$${RANLIB}" \
901119ae 10065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10066 dvi) \
1358ccea
NN
10067 || exit 1
10068
85bfb75e 10069@endif gcc
1358ccea 10070
85bfb75e
JM
10071.PHONY: maybe-pdf-gcc pdf-gcc
10072maybe-pdf-gcc:
10073@if gcc
10074maybe-pdf-gcc: pdf-gcc
b5422ad7 10075
85bfb75e
JM
10076pdf-gcc: \
10077 configure-gcc
10078 @[ -f ./gcc/Makefile ] || exit 0; \
b5422ad7
BM
10079 r=`${PWD_COMMAND}`; export r; \
10080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10081 $(HOST_EXPORTS) \
85bfb75e 10082 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
b5422ad7
BM
10083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10084 done; \
85bfb75e
JM
10085 echo "Doing pdf in gcc" ; \
10086 (cd $(HOST_SUBDIR)/gcc && \
b5422ad7
BM
10087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10089 "RANLIB=$${RANLIB}" \
901119ae 10090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
10091 pdf) \
10092 || exit 1
10093
85bfb75e 10094@endif gcc
b5422ad7 10095
85bfb75e
JM
10096.PHONY: maybe-html-gcc html-gcc
10097maybe-html-gcc:
10098@if gcc
10099maybe-html-gcc: html-gcc
f87a2b2e 10100
85bfb75e
JM
10101html-gcc: \
10102 configure-gcc
10103 @[ -f ./gcc/Makefile ] || exit 0; \
f87a2b2e
MS
10104 r=`${PWD_COMMAND}`; export r; \
10105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 10106 $(HOST_EXPORTS) \
85bfb75e 10107 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
f87a2b2e
MS
10108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10109 done; \
85bfb75e
JM
10110 echo "Doing html in gcc" ; \
10111 (cd $(HOST_SUBDIR)/gcc && \
f87a2b2e
MS
10112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10114 "RANLIB=$${RANLIB}" \
901119ae 10115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
10116 html) \
10117 || exit 1
10118
85bfb75e 10119@endif gcc
f87a2b2e 10120
85bfb75e
JM
10121.PHONY: maybe-TAGS-gcc TAGS-gcc
10122maybe-TAGS-gcc:
10123@if gcc
10124maybe-TAGS-gcc: TAGS-gcc
1358ccea 10125
85bfb75e
JM
10126TAGS-gcc: \
10127 configure-gcc
10128 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10129 r=`${PWD_COMMAND}`; export r; \
10130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10131 $(HOST_EXPORTS) \
85bfb75e 10132 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10134 done; \
85bfb75e
JM
10135 echo "Doing TAGS in gcc" ; \
10136 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10139 "RANLIB=$${RANLIB}" \
901119ae 10140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10141 TAGS) \
1358ccea
NN
10142 || exit 1
10143
85bfb75e 10144@endif gcc
1358ccea 10145
85bfb75e
JM
10146.PHONY: maybe-install-info-gcc install-info-gcc
10147maybe-install-info-gcc:
10148@if gcc
10149maybe-install-info-gcc: install-info-gcc
1358ccea 10150
85bfb75e
JM
10151install-info-gcc: \
10152 configure-gcc \
10153 info-gcc
10154 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10155 r=`${PWD_COMMAND}`; export r; \
10156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10157 $(HOST_EXPORTS) \
85bfb75e 10158 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10160 done; \
85bfb75e
JM
10161 echo "Doing install-info in gcc" ; \
10162 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10165 "RANLIB=$${RANLIB}" \
901119ae 10166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10167 install-info) \
1358ccea
NN
10168 || exit 1
10169
85bfb75e 10170@endif gcc
1358ccea 10171
85bfb75e
JM
10172.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10173maybe-install-pdf-gcc:
10174@if gcc
10175maybe-install-pdf-gcc: install-pdf-gcc
9c4d2493 10176
85bfb75e
JM
10177install-pdf-gcc: \
10178 configure-gcc \
10179 pdf-gcc
10180 @[ -f ./gcc/Makefile ] || exit 0; \
9c4d2493
BM
10181 r=`${PWD_COMMAND}`; export r; \
10182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10183 $(HOST_EXPORTS) \
85bfb75e 10184 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
9c4d2493
BM
10185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10186 done; \
85bfb75e
JM
10187 echo "Doing install-pdf in gcc" ; \
10188 (cd $(HOST_SUBDIR)/gcc && \
9c4d2493
BM
10189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10191 "RANLIB=$${RANLIB}" \
901119ae 10192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
10193 install-pdf) \
10194 || exit 1
10195
85bfb75e 10196@endif gcc
9c4d2493 10197
85bfb75e
JM
10198.PHONY: maybe-install-html-gcc install-html-gcc
10199maybe-install-html-gcc:
10200@if gcc
10201maybe-install-html-gcc: install-html-gcc
65d6e994 10202
85bfb75e
JM
10203install-html-gcc: \
10204 configure-gcc \
10205 html-gcc
10206 @[ -f ./gcc/Makefile ] || exit 0; \
65d6e994
CD
10207 r=`${PWD_COMMAND}`; export r; \
10208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10209 $(HOST_EXPORTS) \
85bfb75e 10210 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
65d6e994
CD
10211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10212 done; \
85bfb75e
JM
10213 echo "Doing install-html in gcc" ; \
10214 (cd $(HOST_SUBDIR)/gcc && \
65d6e994
CD
10215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10217 "RANLIB=$${RANLIB}" \
901119ae 10218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
10219 install-html) \
10220 || exit 1
10221
85bfb75e 10222@endif gcc
65d6e994 10223
85bfb75e
JM
10224.PHONY: maybe-installcheck-gcc installcheck-gcc
10225maybe-installcheck-gcc:
10226@if gcc
10227maybe-installcheck-gcc: installcheck-gcc
1358ccea 10228
85bfb75e
JM
10229installcheck-gcc: \
10230 configure-gcc
10231 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10232 r=`${PWD_COMMAND}`; export r; \
10233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10234 $(HOST_EXPORTS) \
85bfb75e 10235 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10237 done; \
85bfb75e
JM
10238 echo "Doing installcheck in gcc" ; \
10239 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10242 "RANLIB=$${RANLIB}" \
901119ae 10243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10244 installcheck) \
1358ccea
NN
10245 || exit 1
10246
85bfb75e 10247@endif gcc
1358ccea 10248
85bfb75e
JM
10249.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10250maybe-mostlyclean-gcc:
10251@if gcc
10252maybe-mostlyclean-gcc: mostlyclean-gcc
1358ccea 10253
85bfb75e
JM
10254mostlyclean-gcc:
10255 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10256 r=`${PWD_COMMAND}`; export r; \
10257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10258 $(HOST_EXPORTS) \
85bfb75e 10259 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10261 done; \
85bfb75e
JM
10262 echo "Doing mostlyclean in gcc" ; \
10263 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10266 "RANLIB=$${RANLIB}" \
901119ae 10267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10268 mostlyclean) \
1358ccea
NN
10269 || exit 1
10270
85bfb75e 10271@endif gcc
1358ccea 10272
85bfb75e
JM
10273.PHONY: maybe-clean-gcc clean-gcc
10274maybe-clean-gcc:
10275@if gcc
10276maybe-clean-gcc: clean-gcc
1358ccea 10277
85bfb75e
JM
10278clean-gcc:
10279 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10280 r=`${PWD_COMMAND}`; export r; \
10281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10282 $(HOST_EXPORTS) \
85bfb75e 10283 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10285 done; \
85bfb75e
JM
10286 echo "Doing clean in gcc" ; \
10287 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10290 "RANLIB=$${RANLIB}" \
901119ae 10291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10292 clean) \
1358ccea
NN
10293 || exit 1
10294
85bfb75e 10295@endif gcc
1358ccea 10296
85bfb75e
JM
10297.PHONY: maybe-distclean-gcc distclean-gcc
10298maybe-distclean-gcc:
10299@if gcc
10300maybe-distclean-gcc: distclean-gcc
1358ccea 10301
85bfb75e
JM
10302distclean-gcc:
10303 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10304 r=`${PWD_COMMAND}`; export r; \
10305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10306 $(HOST_EXPORTS) \
85bfb75e 10307 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10309 done; \
85bfb75e
JM
10310 echo "Doing distclean in gcc" ; \
10311 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10314 "RANLIB=$${RANLIB}" \
901119ae 10315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10316 distclean) \
1358ccea
NN
10317 || exit 1
10318
85bfb75e 10319@endif gcc
1358ccea 10320
85bfb75e
JM
10321.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
10322maybe-maintainer-clean-gcc:
10323@if gcc
10324maybe-maintainer-clean-gcc: maintainer-clean-gcc
1358ccea 10325
85bfb75e
JM
10326maintainer-clean-gcc:
10327 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
10328 r=`${PWD_COMMAND}`; export r; \
10329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10330 $(HOST_EXPORTS) \
85bfb75e 10331 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
10332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10333 done; \
85bfb75e
JM
10334 echo "Doing maintainer-clean in gcc" ; \
10335 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
10336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10338 "RANLIB=$${RANLIB}" \
901119ae 10339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10340 maintainer-clean) \
1358ccea
NN
10341 || exit 1
10342
85bfb75e 10343@endif gcc
1358ccea 10344
1358ccea 10345
25b42232 10346
85bfb75e
JM
10347.PHONY: configure-gmp maybe-configure-gmp
10348maybe-configure-gmp:
3ff3adad 10349@if gcc-bootstrap
85bfb75e 10350configure-gmp: stage_current
3ff3adad 10351@endif gcc-bootstrap
85bfb75e
JM
10352@if gmp
10353maybe-configure-gmp: configure-gmp
10354configure-gmp:
cc11cc9b 10355 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10357 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
f61428ed 10359 $(HOST_EXPORTS) \
85bfb75e
JM
10360 echo Configuring in $(HOST_SUBDIR)/gmp; \
10361 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
295f4e42 10362 case $(srcdir) in \
215c351a 10363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 10364 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
215c351a 10365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10366 esac; \
85bfb75e
JM
10367 srcdiroption="--srcdir=$${topdir}/gmp"; \
10368 libsrcdir="$$s/gmp"; \
295f4e42 10369 $(SHELL) $${libsrcdir}/configure \
85bfb75e
JM
10370 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10371 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared \
1358ccea 10372 || exit 1
85bfb75e 10373@endif gmp
25b42232 10374
ce406537
PB
10375
10376
85bfb75e
JM
10377.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
10378maybe-configure-stage1-gmp:
10379@if gmp-bootstrap
10380maybe-configure-stage1-gmp: configure-stage1-gmp
10381configure-stage1-gmp:
10382 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10383 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
295f4e42 10384 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10386 TFLAGS="$(STAGE1_TFLAGS)"; \
10387 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10388 $(HOST_EXPORTS) \
10389 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10390 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10391 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
10392 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
10393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10394 cd $(HOST_SUBDIR)/gmp || exit 1; \
10395 case $(srcdir) in \
10396 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10397 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10398 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10399 esac; \
10400 srcdiroption="--srcdir=$${topdir}/gmp"; \
10401 libsrcdir="$$s/gmp"; \
10402 $(SHELL) $${libsrcdir}/configure \
10403 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10404 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10405 $(STAGE1_CONFIGURE_FLAGS) \
10406 --disable-shared
10407@endif gmp-bootstrap
295f4e42 10408
85bfb75e
JM
10409.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
10410maybe-configure-stage2-gmp:
10411@if gmp-bootstrap
10412maybe-configure-stage2-gmp: configure-stage2-gmp
10413configure-stage2-gmp:
10414 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10416 @r=`${PWD_COMMAND}`; export r; \
10417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10418 TFLAGS="$(STAGE2_TFLAGS)"; \
10419 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10420 $(HOST_EXPORTS) \
10421 $(POSTSTAGE1_HOST_EXPORTS) \
10422 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10423 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10424 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
10425 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
10426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10427 cd $(HOST_SUBDIR)/gmp || exit 1; \
10428 case $(srcdir) in \
10429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10430 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10432 esac; \
10433 srcdiroption="--srcdir=$${topdir}/gmp"; \
10434 libsrcdir="$$s/gmp"; \
10435 $(SHELL) $${libsrcdir}/configure \
10436 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10437 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10438 --with-build-libsubdir=$(HOST_SUBDIR) \
10439 $(STAGE2_CONFIGURE_FLAGS) \
10440 --disable-shared
10441@endif gmp-bootstrap
295f4e42 10442
85bfb75e
JM
10443.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
10444maybe-configure-stage3-gmp:
10445@if gmp-bootstrap
10446maybe-configure-stage3-gmp: configure-stage3-gmp
10447configure-stage3-gmp:
10448 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
295f4e42 10450 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10452 TFLAGS="$(STAGE3_TFLAGS)"; \
10453 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
4fc4dd12 10454 $(HOST_EXPORTS) \
85bfb75e
JM
10455 $(POSTSTAGE1_HOST_EXPORTS) \
10456 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10457 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10458 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
10459 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
10460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10461 cd $(HOST_SUBDIR)/gmp || exit 1; \
10462 case $(srcdir) in \
10463 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10464 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10465 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10466 esac; \
10467 srcdiroption="--srcdir=$${topdir}/gmp"; \
10468 libsrcdir="$$s/gmp"; \
10469 $(SHELL) $${libsrcdir}/configure \
10470 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10471 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10472 --with-build-libsubdir=$(HOST_SUBDIR) \
10473 $(STAGE3_CONFIGURE_FLAGS) \
10474 --disable-shared
10475@endif gmp-bootstrap
1358ccea 10476
85bfb75e
JM
10477.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
10478maybe-configure-stage4-gmp:
10479@if gmp-bootstrap
10480maybe-configure-stage4-gmp: configure-stage4-gmp
10481configure-stage4-gmp:
10482 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10484 @r=`${PWD_COMMAND}`; export r; \
10485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10486 TFLAGS="$(STAGE4_TFLAGS)"; \
10487 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10488 $(HOST_EXPORTS) \
10489 $(POSTSTAGE1_HOST_EXPORTS) \
10490 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10491 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10492 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
10493 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
10494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10495 cd $(HOST_SUBDIR)/gmp || exit 1; \
10496 case $(srcdir) in \
10497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10498 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10500 esac; \
10501 srcdiroption="--srcdir=$${topdir}/gmp"; \
10502 libsrcdir="$$s/gmp"; \
10503 $(SHELL) $${libsrcdir}/configure \
10504 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10505 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10506 --with-build-libsubdir=$(HOST_SUBDIR) \
10507 $(STAGE4_CONFIGURE_FLAGS) \
10508 --disable-shared
10509@endif gmp-bootstrap
1358ccea 10510
85bfb75e
JM
10511.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
10512maybe-configure-stageprofile-gmp:
10513@if gmp-bootstrap
10514maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
10515configure-stageprofile-gmp:
10516 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10517 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10518 @r=`${PWD_COMMAND}`; export r; \
10519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10520 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10521 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10522 $(HOST_EXPORTS) \
10523 $(POSTSTAGE1_HOST_EXPORTS) \
10524 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10525 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10526 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
10527 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
10528 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10529 cd $(HOST_SUBDIR)/gmp || exit 1; \
10530 case $(srcdir) in \
10531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10532 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10534 esac; \
10535 srcdiroption="--srcdir=$${topdir}/gmp"; \
10536 libsrcdir="$$s/gmp"; \
10537 $(SHELL) $${libsrcdir}/configure \
10538 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10539 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10540 --with-build-libsubdir=$(HOST_SUBDIR) \
10541 $(STAGEprofile_CONFIGURE_FLAGS) \
10542 --disable-shared
10543@endif gmp-bootstrap
455c8f48 10544
85bfb75e
JM
10545.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
10546maybe-configure-stagefeedback-gmp:
10547@if gmp-bootstrap
10548maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
10549configure-stagefeedback-gmp:
10550 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10551 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
455c8f48
RW
10552 @r=`${PWD_COMMAND}`; export r; \
10553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10554 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10555 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
455c8f48 10556 $(HOST_EXPORTS) \
85bfb75e
JM
10557 $(POSTSTAGE1_HOST_EXPORTS) \
10558 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10559 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10560 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
10561 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
10562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10563 cd $(HOST_SUBDIR)/gmp || exit 1; \
10564 case $(srcdir) in \
10565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10566 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10568 esac; \
10569 srcdiroption="--srcdir=$${topdir}/gmp"; \
10570 libsrcdir="$$s/gmp"; \
10571 $(SHELL) $${libsrcdir}/configure \
10572 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10573 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10574 --with-build-libsubdir=$(HOST_SUBDIR) \
10575 $(STAGEfeedback_CONFIGURE_FLAGS) \
10576 --disable-shared
10577@endif gmp-bootstrap
455c8f48 10578
455c8f48 10579
d9cdb878 10580
295f4e42 10581
85bfb75e
JM
10582
10583.PHONY: all-gmp maybe-all-gmp
10584maybe-all-gmp:
10585@if gcc-bootstrap
10586all-gmp: stage_current
10587@endif gcc-bootstrap
10588@if gmp
10589TARGET-gmp=all
10590maybe-all-gmp: all-gmp
10591all-gmp: configure-gmp
10592 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 10593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10594 $(HOST_EXPORTS) \
10595 (cd $(HOST_SUBDIR)/gmp && \
10596 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
10597 $(TARGET-gmp))
10598@endif gmp
d9cdb878
AC
10599
10600
1358ccea 10601
85bfb75e
JM
10602.PHONY: all-stage1-gmp maybe-all-stage1-gmp
10603.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
10604maybe-all-stage1-gmp:
10605maybe-clean-stage1-gmp:
10606@if gmp-bootstrap
10607maybe-all-stage1-gmp: all-stage1-gmp
10608all-stage1: all-stage1-gmp
10609TARGET-stage1-gmp = $(TARGET-gmp)
10610all-stage1-gmp: configure-stage1-gmp
10611 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10612 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10614 TFLAGS="$(STAGE1_TFLAGS)"; \
10615 $(HOST_EXPORTS) \
10616 cd $(HOST_SUBDIR)/gmp && \
10617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10618 CFLAGS="$(STAGE1_CFLAGS)" \
10619 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10620 LIBCFLAGS="$(LIBCFLAGS)" \
10621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10624 $(EXTRA_HOST_FLAGS) \
10625 TFLAGS="$(STAGE1_TFLAGS)" \
10626 $(TARGET-stage1-gmp)
1358ccea 10627
85bfb75e
JM
10628maybe-clean-stage1-gmp: clean-stage1-gmp
10629clean-stage1: clean-stage1-gmp
10630clean-stage1-gmp:
10631 @if [ $(current_stage) = stage1 ]; then \
10632 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10633 else \
10634 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
10635 $(MAKE) stage1-start; \
10636 fi; \
10637 cd $(HOST_SUBDIR)/gmp && \
10638 $(MAKE) $(EXTRA_HOST_FLAGS) \
10639 clean
10640@endif gmp-bootstrap
1358ccea 10641
b5422ad7 10642
85bfb75e
JM
10643.PHONY: all-stage2-gmp maybe-all-stage2-gmp
10644.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
10645maybe-all-stage2-gmp:
10646maybe-clean-stage2-gmp:
10647@if gmp-bootstrap
10648maybe-all-stage2-gmp: all-stage2-gmp
10649all-stage2: all-stage2-gmp
10650TARGET-stage2-gmp = $(TARGET-gmp)
10651all-stage2-gmp: configure-stage2-gmp
10652 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10653 @r=`${PWD_COMMAND}`; export r; \
b5422ad7 10654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 10655 TFLAGS="$(STAGE2_TFLAGS)"; \
b5422ad7 10656 $(HOST_EXPORTS) \
85bfb75e
JM
10657 $(POSTSTAGE1_HOST_EXPORTS) \
10658 cd $(HOST_SUBDIR)/gmp && \
10659 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10660 CFLAGS="$(STAGE2_CFLAGS)" \
10661 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10662 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10663 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10664 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10665 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10666 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10667 TFLAGS="$(STAGE2_TFLAGS)" \
10668 $(TARGET-stage2-gmp)
b5422ad7 10669
85bfb75e
JM
10670maybe-clean-stage2-gmp: clean-stage2-gmp
10671clean-stage2: clean-stage2-gmp
10672clean-stage2-gmp:
10673 @if [ $(current_stage) = stage2 ]; then \
10674 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10675 else \
10676 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
10677 $(MAKE) stage2-start; \
10678 fi; \
10679 cd $(HOST_SUBDIR)/gmp && \
10680 $(MAKE) $(EXTRA_HOST_FLAGS) \
10681 $(POSTSTAGE1_FLAGS_TO_PASS) \
10682 clean
10683@endif gmp-bootstrap
b5422ad7 10684
f87a2b2e 10685
85bfb75e
JM
10686.PHONY: all-stage3-gmp maybe-all-stage3-gmp
10687.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
10688maybe-all-stage3-gmp:
10689maybe-clean-stage3-gmp:
10690@if gmp-bootstrap
10691maybe-all-stage3-gmp: all-stage3-gmp
10692all-stage3: all-stage3-gmp
10693TARGET-stage3-gmp = $(TARGET-gmp)
10694all-stage3-gmp: configure-stage3-gmp
10695 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10696 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 10697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 10698 TFLAGS="$(STAGE3_TFLAGS)"; \
f87a2b2e 10699 $(HOST_EXPORTS) \
85bfb75e
JM
10700 $(POSTSTAGE1_HOST_EXPORTS) \
10701 cd $(HOST_SUBDIR)/gmp && \
10702 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10703 CFLAGS="$(STAGE3_CFLAGS)" \
10704 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10705 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10706 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10707 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10708 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10709 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10710 TFLAGS="$(STAGE3_TFLAGS)" \
10711 $(TARGET-stage3-gmp)
f87a2b2e 10712
85bfb75e
JM
10713maybe-clean-stage3-gmp: clean-stage3-gmp
10714clean-stage3: clean-stage3-gmp
10715clean-stage3-gmp:
10716 @if [ $(current_stage) = stage3 ]; then \
10717 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10718 else \
10719 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
10720 $(MAKE) stage3-start; \
10721 fi; \
10722 cd $(HOST_SUBDIR)/gmp && \
10723 $(MAKE) $(EXTRA_HOST_FLAGS) \
10724 $(POSTSTAGE1_FLAGS_TO_PASS) \
10725 clean
10726@endif gmp-bootstrap
f87a2b2e 10727
1358ccea 10728
85bfb75e
JM
10729.PHONY: all-stage4-gmp maybe-all-stage4-gmp
10730.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
10731maybe-all-stage4-gmp:
10732maybe-clean-stage4-gmp:
10733@if gmp-bootstrap
10734maybe-all-stage4-gmp: all-stage4-gmp
10735all-stage4: all-stage4-gmp
10736TARGET-stage4-gmp = $(TARGET-gmp)
10737all-stage4-gmp: configure-stage4-gmp
10738 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10739 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 10741 TFLAGS="$(STAGE4_TFLAGS)"; \
4fc4dd12 10742 $(HOST_EXPORTS) \
85bfb75e
JM
10743 $(POSTSTAGE1_HOST_EXPORTS) \
10744 cd $(HOST_SUBDIR)/gmp && \
10745 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10746 CFLAGS="$(STAGE4_CFLAGS)" \
10747 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10748 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10749 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10750 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10751 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10752 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10753 TFLAGS="$(STAGE4_TFLAGS)" \
10754 $(TARGET-stage4-gmp)
1358ccea 10755
85bfb75e
JM
10756maybe-clean-stage4-gmp: clean-stage4-gmp
10757clean-stage4: clean-stage4-gmp
10758clean-stage4-gmp:
10759 @if [ $(current_stage) = stage4 ]; then \
10760 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10761 else \
10762 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
10763 $(MAKE) stage4-start; \
10764 fi; \
10765 cd $(HOST_SUBDIR)/gmp && \
10766 $(MAKE) $(EXTRA_HOST_FLAGS) \
10767 $(POSTSTAGE1_FLAGS_TO_PASS) \
10768 clean
10769@endif gmp-bootstrap
1358ccea 10770
1358ccea 10771
85bfb75e
JM
10772.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
10773.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
10774maybe-all-stageprofile-gmp:
10775maybe-clean-stageprofile-gmp:
10776@if gmp-bootstrap
10777maybe-all-stageprofile-gmp: all-stageprofile-gmp
10778all-stageprofile: all-stageprofile-gmp
10779TARGET-stageprofile-gmp = $(TARGET-gmp)
10780all-stageprofile-gmp: configure-stageprofile-gmp
10781 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10782 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 10784 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 10785 $(HOST_EXPORTS) \
85bfb75e
JM
10786 $(POSTSTAGE1_HOST_EXPORTS) \
10787 cd $(HOST_SUBDIR)/gmp && \
10788 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10789 CFLAGS="$(STAGEprofile_CFLAGS)" \
10790 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10791 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10792 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10793 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10794 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10795 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10796 TFLAGS="$(STAGEprofile_TFLAGS)" \
10797 $(TARGET-stageprofile-gmp)
1358ccea 10798
85bfb75e
JM
10799maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
10800clean-stageprofile: clean-stageprofile-gmp
10801clean-stageprofile-gmp:
10802 @if [ $(current_stage) = stageprofile ]; then \
10803 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10804 else \
10805 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
10806 $(MAKE) stageprofile-start; \
10807 fi; \
10808 cd $(HOST_SUBDIR)/gmp && \
10809 $(MAKE) $(EXTRA_HOST_FLAGS) \
10810 $(POSTSTAGE1_FLAGS_TO_PASS) \
10811 clean
10812@endif gmp-bootstrap
1358ccea 10813
25b42232 10814
85bfb75e
JM
10815.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
10816.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
10817maybe-all-stagefeedback-gmp:
10818maybe-clean-stagefeedback-gmp:
10819@if gmp-bootstrap
10820maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
10821all-stagefeedback: all-stagefeedback-gmp
10822TARGET-stagefeedback-gmp = $(TARGET-gmp)
10823all-stagefeedback-gmp: configure-stagefeedback-gmp
10824 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 10825 @r=`${PWD_COMMAND}`; export r; \
295f4e42 10826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
10827 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10828 $(HOST_EXPORTS) \
10829 $(POSTSTAGE1_HOST_EXPORTS) \
10830 cd $(HOST_SUBDIR)/gmp && \
10831 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10832 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10833 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10834 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10835 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10836 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10837 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10838 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10839 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10840 $(TARGET-stagefeedback-gmp)
ce406537 10841
85bfb75e
JM
10842maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
10843clean-stagefeedback: clean-stagefeedback-gmp
10844clean-stagefeedback-gmp:
10845 @if [ $(current_stage) = stagefeedback ]; then \
10846 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10847 else \
10848 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
10849 $(MAKE) stagefeedback-start; \
10850 fi; \
10851 cd $(HOST_SUBDIR)/gmp && \
10852 $(MAKE) $(EXTRA_HOST_FLAGS) \
10853 $(POSTSTAGE1_FLAGS_TO_PASS) \
10854 clean
10855@endif gmp-bootstrap
ce406537 10856
295f4e42 10857
25b42232 10858
ce406537
PB
10859
10860
85bfb75e
JM
10861.PHONY: check-gmp maybe-check-gmp
10862maybe-check-gmp:
10863@if gmp
10864maybe-check-gmp: check-gmp
295f4e42 10865
85bfb75e 10866check-gmp:
f41d6665 10867 @: $(MAKE); $(unstage)
295f4e42
NN
10868 @r=`${PWD_COMMAND}`; export r; \
10869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10870 $(HOST_EXPORTS) \
85bfb75e 10871 (cd $(HOST_SUBDIR)/gmp && \
215c351a 10872 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 10873
85bfb75e 10874@endif gmp
295f4e42 10875
85bfb75e
JM
10876.PHONY: install-gmp maybe-install-gmp
10877maybe-install-gmp:
10878@if gmp
10879maybe-install-gmp: install-gmp
295f4e42 10880
85bfb75e 10881install-gmp:
295f4e42 10882
85bfb75e 10883@endif gmp
295f4e42 10884
85bfb75e
JM
10885.PHONY: install-strip-gmp maybe-install-strip-gmp
10886maybe-install-strip-gmp:
10887@if gmp
10888maybe-install-strip-gmp: install-strip-gmp
455c8f48 10889
85bfb75e 10890install-strip-gmp:
455c8f48 10891
85bfb75e 10892@endif gmp
455c8f48 10893
b5422ad7 10894# Other targets (info, dvi, pdf, etc.)
295f4e42 10895
85bfb75e
JM
10896.PHONY: maybe-info-gmp info-gmp
10897maybe-info-gmp:
10898@if gmp
10899maybe-info-gmp: info-gmp
295f4e42 10900
85bfb75e
JM
10901info-gmp: \
10902 configure-gmp
10903 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
10904 r=`${PWD_COMMAND}`; export r; \
10905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10906 $(HOST_EXPORTS) \
d32ab992 10907 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10909 done; \
85bfb75e
JM
10910 echo "Doing info in gmp" ; \
10911 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
10912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10914 "RANLIB=$${RANLIB}" \
901119ae 10915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10916 info) \
1358ccea
NN
10917 || exit 1
10918
85bfb75e 10919@endif gmp
1358ccea 10920
85bfb75e
JM
10921.PHONY: maybe-dvi-gmp dvi-gmp
10922maybe-dvi-gmp:
10923@if gmp
10924maybe-dvi-gmp: dvi-gmp
1358ccea 10925
85bfb75e
JM
10926dvi-gmp: \
10927 configure-gmp
10928 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
10929 r=`${PWD_COMMAND}`; export r; \
10930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10931 $(HOST_EXPORTS) \
d32ab992 10932 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10934 done; \
85bfb75e
JM
10935 echo "Doing dvi in gmp" ; \
10936 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
10937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10939 "RANLIB=$${RANLIB}" \
901119ae 10940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 10941 dvi) \
1358ccea
NN
10942 || exit 1
10943
85bfb75e 10944@endif gmp
1358ccea 10945
85bfb75e
JM
10946.PHONY: maybe-pdf-gmp pdf-gmp
10947maybe-pdf-gmp:
10948@if gmp
10949maybe-pdf-gmp: pdf-gmp
b5422ad7 10950
85bfb75e
JM
10951pdf-gmp: \
10952 configure-gmp
10953 @[ -f ./gmp/Makefile ] || exit 0; \
b5422ad7
BM
10954 r=`${PWD_COMMAND}`; export r; \
10955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10956 $(HOST_EXPORTS) \
10957 for flag in $(EXTRA_HOST_FLAGS) ; do \
10958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10959 done; \
85bfb75e
JM
10960 echo "Doing pdf in gmp" ; \
10961 (cd $(HOST_SUBDIR)/gmp && \
b5422ad7
BM
10962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10964 "RANLIB=$${RANLIB}" \
901119ae 10965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
10966 pdf) \
10967 || exit 1
10968
85bfb75e 10969@endif gmp
b5422ad7 10970
85bfb75e
JM
10971.PHONY: maybe-html-gmp html-gmp
10972maybe-html-gmp:
10973@if gmp
10974maybe-html-gmp: html-gmp
f87a2b2e 10975
85bfb75e
JM
10976html-gmp: \
10977 configure-gmp
10978 @[ -f ./gmp/Makefile ] || exit 0; \
f87a2b2e
MS
10979 r=`${PWD_COMMAND}`; export r; \
10980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10981 $(HOST_EXPORTS) \
10982 for flag in $(EXTRA_HOST_FLAGS) ; do \
10983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10984 done; \
85bfb75e
JM
10985 echo "Doing html in gmp" ; \
10986 (cd $(HOST_SUBDIR)/gmp && \
f87a2b2e
MS
10987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10989 "RANLIB=$${RANLIB}" \
901119ae 10990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
10991 html) \
10992 || exit 1
10993
85bfb75e 10994@endif gmp
f87a2b2e 10995
85bfb75e
JM
10996.PHONY: maybe-TAGS-gmp TAGS-gmp
10997maybe-TAGS-gmp:
10998@if gmp
10999maybe-TAGS-gmp: TAGS-gmp
1358ccea 11000
85bfb75e
JM
11001TAGS-gmp: \
11002 configure-gmp
11003 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11004 r=`${PWD_COMMAND}`; export r; \
11005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11006 $(HOST_EXPORTS) \
d32ab992 11007 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11009 done; \
85bfb75e
JM
11010 echo "Doing TAGS in gmp" ; \
11011 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11014 "RANLIB=$${RANLIB}" \
901119ae 11015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11016 TAGS) \
1358ccea
NN
11017 || exit 1
11018
85bfb75e 11019@endif gmp
1358ccea 11020
85bfb75e
JM
11021.PHONY: maybe-install-info-gmp install-info-gmp
11022maybe-install-info-gmp:
11023@if gmp
11024maybe-install-info-gmp: install-info-gmp
1358ccea 11025
85bfb75e
JM
11026install-info-gmp: \
11027 configure-gmp \
11028 info-gmp
11029 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11030 r=`${PWD_COMMAND}`; export r; \
11031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11032 $(HOST_EXPORTS) \
d32ab992 11033 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11035 done; \
85bfb75e
JM
11036 echo "Doing install-info in gmp" ; \
11037 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11040 "RANLIB=$${RANLIB}" \
901119ae 11041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11042 install-info) \
1358ccea
NN
11043 || exit 1
11044
85bfb75e 11045@endif gmp
1358ccea 11046
85bfb75e
JM
11047.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11048maybe-install-pdf-gmp:
11049@if gmp
11050maybe-install-pdf-gmp: install-pdf-gmp
9c4d2493 11051
85bfb75e
JM
11052install-pdf-gmp: \
11053 configure-gmp \
11054 pdf-gmp
11055 @[ -f ./gmp/Makefile ] || exit 0; \
9c4d2493
BM
11056 r=`${PWD_COMMAND}`; export r; \
11057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11058 $(HOST_EXPORTS) \
11059 for flag in $(EXTRA_HOST_FLAGS) ; do \
11060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11061 done; \
85bfb75e
JM
11062 echo "Doing install-pdf in gmp" ; \
11063 (cd $(HOST_SUBDIR)/gmp && \
9c4d2493
BM
11064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11066 "RANLIB=$${RANLIB}" \
901119ae 11067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
11068 install-pdf) \
11069 || exit 1
11070
85bfb75e 11071@endif gmp
9c4d2493 11072
85bfb75e
JM
11073.PHONY: maybe-install-html-gmp install-html-gmp
11074maybe-install-html-gmp:
11075@if gmp
11076maybe-install-html-gmp: install-html-gmp
65d6e994 11077
85bfb75e
JM
11078install-html-gmp: \
11079 configure-gmp \
11080 html-gmp
11081 @[ -f ./gmp/Makefile ] || exit 0; \
65d6e994
CD
11082 r=`${PWD_COMMAND}`; export r; \
11083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11084 $(HOST_EXPORTS) \
11085 for flag in $(EXTRA_HOST_FLAGS) ; do \
11086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11087 done; \
85bfb75e
JM
11088 echo "Doing install-html in gmp" ; \
11089 (cd $(HOST_SUBDIR)/gmp && \
65d6e994
CD
11090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11092 "RANLIB=$${RANLIB}" \
901119ae 11093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
11094 install-html) \
11095 || exit 1
11096
85bfb75e 11097@endif gmp
65d6e994 11098
85bfb75e
JM
11099.PHONY: maybe-installcheck-gmp installcheck-gmp
11100maybe-installcheck-gmp:
11101@if gmp
11102maybe-installcheck-gmp: installcheck-gmp
1358ccea 11103
85bfb75e
JM
11104installcheck-gmp: \
11105 configure-gmp
11106 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11107 r=`${PWD_COMMAND}`; export r; \
11108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11109 $(HOST_EXPORTS) \
d32ab992 11110 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11112 done; \
85bfb75e
JM
11113 echo "Doing installcheck in gmp" ; \
11114 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11117 "RANLIB=$${RANLIB}" \
901119ae 11118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11119 installcheck) \
1358ccea
NN
11120 || exit 1
11121
85bfb75e 11122@endif gmp
1358ccea 11123
85bfb75e
JM
11124.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11125maybe-mostlyclean-gmp:
11126@if gmp
11127maybe-mostlyclean-gmp: mostlyclean-gmp
1358ccea 11128
85bfb75e
JM
11129mostlyclean-gmp:
11130 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11131 r=`${PWD_COMMAND}`; export r; \
11132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11133 $(HOST_EXPORTS) \
d32ab992 11134 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11136 done; \
85bfb75e
JM
11137 echo "Doing mostlyclean in gmp" ; \
11138 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11141 "RANLIB=$${RANLIB}" \
901119ae 11142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11143 mostlyclean) \
1358ccea
NN
11144 || exit 1
11145
85bfb75e 11146@endif gmp
1358ccea 11147
85bfb75e
JM
11148.PHONY: maybe-clean-gmp clean-gmp
11149maybe-clean-gmp:
11150@if gmp
11151maybe-clean-gmp: clean-gmp
1358ccea 11152
85bfb75e
JM
11153clean-gmp:
11154 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11155 r=`${PWD_COMMAND}`; export r; \
11156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11157 $(HOST_EXPORTS) \
d32ab992 11158 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11160 done; \
85bfb75e
JM
11161 echo "Doing clean in gmp" ; \
11162 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11165 "RANLIB=$${RANLIB}" \
901119ae 11166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11167 clean) \
1358ccea
NN
11168 || exit 1
11169
85bfb75e 11170@endif gmp
1358ccea 11171
85bfb75e
JM
11172.PHONY: maybe-distclean-gmp distclean-gmp
11173maybe-distclean-gmp:
11174@if gmp
11175maybe-distclean-gmp: distclean-gmp
1358ccea 11176
85bfb75e
JM
11177distclean-gmp:
11178 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11179 r=`${PWD_COMMAND}`; export r; \
11180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11181 $(HOST_EXPORTS) \
d32ab992 11182 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11184 done; \
85bfb75e
JM
11185 echo "Doing distclean in gmp" ; \
11186 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11189 "RANLIB=$${RANLIB}" \
901119ae 11190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11191 distclean) \
1358ccea
NN
11192 || exit 1
11193
85bfb75e 11194@endif gmp
1358ccea 11195
85bfb75e
JM
11196.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11197maybe-maintainer-clean-gmp:
11198@if gmp
11199maybe-maintainer-clean-gmp: maintainer-clean-gmp
1358ccea 11200
85bfb75e
JM
11201maintainer-clean-gmp:
11202 @[ -f ./gmp/Makefile ] || exit 0; \
8c90b13a
L
11203 r=`${PWD_COMMAND}`; export r; \
11204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11205 $(HOST_EXPORTS) \
d32ab992 11206 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11208 done; \
85bfb75e
JM
11209 echo "Doing maintainer-clean in gmp" ; \
11210 (cd $(HOST_SUBDIR)/gmp && \
1358ccea
NN
11211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11213 "RANLIB=$${RANLIB}" \
901119ae 11214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11215 maintainer-clean) \
295f4e42
NN
11216 || exit 1
11217
85bfb75e 11218@endif gmp
295f4e42
NN
11219
11220
25b42232 11221
85bfb75e
JM
11222.PHONY: configure-mpfr maybe-configure-mpfr
11223maybe-configure-mpfr:
3ff3adad 11224@if gcc-bootstrap
85bfb75e 11225configure-mpfr: stage_current
3ff3adad 11226@endif gcc-bootstrap
85bfb75e
JM
11227@if mpfr
11228maybe-configure-mpfr: configure-mpfr
11229configure-mpfr:
11230 @r=`${PWD_COMMAND}`; export r; \
11231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11232 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
11233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
f61428ed 11234 $(HOST_EXPORTS) \
85bfb75e
JM
11235 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11236 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
295f4e42 11237 case $(srcdir) in \
215c351a 11238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 11239 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
215c351a 11240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11241 esac; \
85bfb75e
JM
11242 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11243 libsrcdir="$$s/mpfr"; \
295f4e42 11244 $(SHELL) $${libsrcdir}/configure \
e69bf64b 11245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 11246 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpfr_configure_flags@ \
1358ccea 11247 || exit 1
85bfb75e 11248@endif mpfr
ce406537
PB
11249
11250
1358ccea 11251
85bfb75e
JM
11252.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11253maybe-configure-stage1-mpfr:
11254@if mpfr-bootstrap
11255maybe-configure-stage1-mpfr: configure-stage1-mpfr
11256configure-stage1-mpfr:
11257 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11258 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
295f4e42 11259 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11261 TFLAGS="$(STAGE1_TFLAGS)"; \
11262 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
4fc4dd12 11263 $(HOST_EXPORTS) \
85bfb75e
JM
11264 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11265 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11266 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11267 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
11268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11269 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11270 case $(srcdir) in \
11271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11272 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11274 esac; \
11275 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11276 libsrcdir="$$s/mpfr"; \
11277 $(SHELL) $${libsrcdir}/configure \
11278 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11279 --target=${target_alias} $${srcdiroption} \
11280 $(STAGE1_CONFIGURE_FLAGS) \
11281 --disable-shared @extra_mpfr_configure_flags@
11282@endif mpfr-bootstrap
1358ccea 11283
85bfb75e
JM
11284.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11285maybe-configure-stage2-mpfr:
11286@if mpfr-bootstrap
11287maybe-configure-stage2-mpfr: configure-stage2-mpfr
11288configure-stage2-mpfr:
11289 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
295f4e42 11291 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11293 TFLAGS="$(STAGE2_TFLAGS)"; \
11294 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
4fc4dd12 11295 $(HOST_EXPORTS) \
85bfb75e
JM
11296 $(POSTSTAGE1_HOST_EXPORTS) \
11297 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11298 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11299 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11300 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
11301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11302 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11303 case $(srcdir) in \
11304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11305 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11307 esac; \
11308 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11309 libsrcdir="$$s/mpfr"; \
11310 $(SHELL) $${libsrcdir}/configure \
11311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11312 --target=${target_alias} $${srcdiroption} \
11313 --with-build-libsubdir=$(HOST_SUBDIR) \
11314 $(STAGE2_CONFIGURE_FLAGS) \
11315 --disable-shared @extra_mpfr_configure_flags@
11316@endif mpfr-bootstrap
455c8f48 11317
85bfb75e
JM
11318.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
11319maybe-configure-stage3-mpfr:
11320@if mpfr-bootstrap
11321maybe-configure-stage3-mpfr: configure-stage3-mpfr
11322configure-stage3-mpfr:
11323 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
455c8f48
RW
11325 @r=`${PWD_COMMAND}`; export r; \
11326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11327 TFLAGS="$(STAGE3_TFLAGS)"; \
11328 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
455c8f48 11329 $(HOST_EXPORTS) \
85bfb75e
JM
11330 $(POSTSTAGE1_HOST_EXPORTS) \
11331 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11332 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11333 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
11334 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
11335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11336 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11337 case $(srcdir) in \
11338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11339 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11341 esac; \
11342 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11343 libsrcdir="$$s/mpfr"; \
11344 $(SHELL) $${libsrcdir}/configure \
11345 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11346 --target=${target_alias} $${srcdiroption} \
11347 --with-build-libsubdir=$(HOST_SUBDIR) \
11348 $(STAGE3_CONFIGURE_FLAGS) \
11349 --disable-shared @extra_mpfr_configure_flags@
11350@endif mpfr-bootstrap
295f4e42 11351
85bfb75e
JM
11352.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
11353maybe-configure-stage4-mpfr:
11354@if mpfr-bootstrap
11355maybe-configure-stage4-mpfr: configure-stage4-mpfr
11356configure-stage4-mpfr:
11357 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11359 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11361 TFLAGS="$(STAGE4_TFLAGS)"; \
11362 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
4fc4dd12 11363 $(HOST_EXPORTS) \
85bfb75e
JM
11364 $(POSTSTAGE1_HOST_EXPORTS) \
11365 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11366 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11367 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
11368 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
11369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11370 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11371 case $(srcdir) in \
11372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11373 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11375 esac; \
11376 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11377 libsrcdir="$$s/mpfr"; \
11378 $(SHELL) $${libsrcdir}/configure \
11379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11380 --target=${target_alias} $${srcdiroption} \
11381 --with-build-libsubdir=$(HOST_SUBDIR) \
11382 $(STAGE4_CONFIGURE_FLAGS) \
11383 --disable-shared @extra_mpfr_configure_flags@
11384@endif mpfr-bootstrap
1358ccea 11385
85bfb75e
JM
11386.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
11387maybe-configure-stageprofile-mpfr:
11388@if mpfr-bootstrap
11389maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
11390configure-stageprofile-mpfr:
11391 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11393 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11395 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11396 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
4fc4dd12 11397 $(HOST_EXPORTS) \
85bfb75e
JM
11398 $(POSTSTAGE1_HOST_EXPORTS) \
11399 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11400 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11401 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
11402 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
11403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11404 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11405 case $(srcdir) in \
11406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11407 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11409 esac; \
11410 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11411 libsrcdir="$$s/mpfr"; \
11412 $(SHELL) $${libsrcdir}/configure \
11413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11414 --target=${target_alias} $${srcdiroption} \
11415 --with-build-libsubdir=$(HOST_SUBDIR) \
11416 $(STAGEprofile_CONFIGURE_FLAGS) \
11417 --disable-shared @extra_mpfr_configure_flags@
11418@endif mpfr-bootstrap
b5422ad7 11419
85bfb75e
JM
11420.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
11421maybe-configure-stagefeedback-mpfr:
11422@if mpfr-bootstrap
11423maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
11424configure-stagefeedback-mpfr:
11425 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11426 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11427 @r=`${PWD_COMMAND}`; export r; \
b5422ad7 11428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11429 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11430 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
b5422ad7 11431 $(HOST_EXPORTS) \
85bfb75e
JM
11432 $(POSTSTAGE1_HOST_EXPORTS) \
11433 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11434 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11435 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
11436 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
11437 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11438 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11439 case $(srcdir) in \
11440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11441 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11443 esac; \
11444 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11445 libsrcdir="$$s/mpfr"; \
11446 $(SHELL) $${libsrcdir}/configure \
11447 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11448 --target=${target_alias} $${srcdiroption} \
11449 --with-build-libsubdir=$(HOST_SUBDIR) \
11450 $(STAGEfeedback_CONFIGURE_FLAGS) \
11451 --disable-shared @extra_mpfr_configure_flags@
11452@endif mpfr-bootstrap
b5422ad7 11453
f87a2b2e 11454
f87a2b2e 11455
f87a2b2e 11456
1358ccea 11457
85bfb75e
JM
11458.PHONY: all-mpfr maybe-all-mpfr
11459maybe-all-mpfr:
11460@if gcc-bootstrap
11461all-mpfr: stage_current
11462@endif gcc-bootstrap
11463@if mpfr
11464TARGET-mpfr=all
11465maybe-all-mpfr: all-mpfr
11466all-mpfr: configure-mpfr
11467 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11469 $(HOST_EXPORTS) \
11470 (cd $(HOST_SUBDIR)/mpfr && \
11471 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
11472 $(TARGET-mpfr))
11473@endif mpfr
1358ccea
NN
11474
11475
1358ccea 11476
85bfb75e
JM
11477.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
11478.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
11479maybe-all-stage1-mpfr:
11480maybe-clean-stage1-mpfr:
11481@if mpfr-bootstrap
11482maybe-all-stage1-mpfr: all-stage1-mpfr
11483all-stage1: all-stage1-mpfr
11484TARGET-stage1-mpfr = $(TARGET-mpfr)
11485all-stage1-mpfr: configure-stage1-mpfr
11486 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11487 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11489 TFLAGS="$(STAGE1_TFLAGS)"; \
11490 $(HOST_EXPORTS) \
11491 cd $(HOST_SUBDIR)/mpfr && \
11492 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11493 CFLAGS="$(STAGE1_CFLAGS)" \
11494 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11495 LIBCFLAGS="$(LIBCFLAGS)" \
11496 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11497 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11498 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11499 $(EXTRA_HOST_FLAGS) \
11500 TFLAGS="$(STAGE1_TFLAGS)" \
11501 $(TARGET-stage1-mpfr)
1358ccea 11502
85bfb75e
JM
11503maybe-clean-stage1-mpfr: clean-stage1-mpfr
11504clean-stage1: clean-stage1-mpfr
11505clean-stage1-mpfr:
11506 @if [ $(current_stage) = stage1 ]; then \
11507 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11508 else \
11509 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
11510 $(MAKE) stage1-start; \
11511 fi; \
11512 cd $(HOST_SUBDIR)/mpfr && \
11513 $(MAKE) $(EXTRA_HOST_FLAGS) \
11514 clean
11515@endif mpfr-bootstrap
1358ccea 11516
9c4d2493 11517
85bfb75e
JM
11518.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
11519.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
11520maybe-all-stage2-mpfr:
11521maybe-clean-stage2-mpfr:
11522@if mpfr-bootstrap
11523maybe-all-stage2-mpfr: all-stage2-mpfr
11524all-stage2: all-stage2-mpfr
11525TARGET-stage2-mpfr = $(TARGET-mpfr)
11526all-stage2-mpfr: configure-stage2-mpfr
11527 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11528 @r=`${PWD_COMMAND}`; export r; \
9c4d2493 11529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 11530 TFLAGS="$(STAGE2_TFLAGS)"; \
9c4d2493 11531 $(HOST_EXPORTS) \
85bfb75e
JM
11532 $(POSTSTAGE1_HOST_EXPORTS) \
11533 cd $(HOST_SUBDIR)/mpfr && \
11534 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11535 CFLAGS="$(STAGE2_CFLAGS)" \
11536 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11537 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11538 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11539 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11540 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11541 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11542 TFLAGS="$(STAGE2_TFLAGS)" \
11543 $(TARGET-stage2-mpfr)
9c4d2493 11544
85bfb75e
JM
11545maybe-clean-stage2-mpfr: clean-stage2-mpfr
11546clean-stage2: clean-stage2-mpfr
11547clean-stage2-mpfr:
11548 @if [ $(current_stage) = stage2 ]; then \
11549 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11550 else \
11551 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
11552 $(MAKE) stage2-start; \
11553 fi; \
11554 cd $(HOST_SUBDIR)/mpfr && \
11555 $(MAKE) $(EXTRA_HOST_FLAGS) \
11556 $(POSTSTAGE1_FLAGS_TO_PASS) \
11557 clean
11558@endif mpfr-bootstrap
9c4d2493 11559
65d6e994 11560
85bfb75e
JM
11561.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
11562.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
11563maybe-all-stage3-mpfr:
11564maybe-clean-stage3-mpfr:
11565@if mpfr-bootstrap
11566maybe-all-stage3-mpfr: all-stage3-mpfr
11567all-stage3: all-stage3-mpfr
11568TARGET-stage3-mpfr = $(TARGET-mpfr)
11569all-stage3-mpfr: configure-stage3-mpfr
11570 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11571 @r=`${PWD_COMMAND}`; export r; \
65d6e994 11572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 11573 TFLAGS="$(STAGE3_TFLAGS)"; \
65d6e994 11574 $(HOST_EXPORTS) \
85bfb75e
JM
11575 $(POSTSTAGE1_HOST_EXPORTS) \
11576 cd $(HOST_SUBDIR)/mpfr && \
11577 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11578 CFLAGS="$(STAGE3_CFLAGS)" \
11579 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11580 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11581 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11582 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11583 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11584 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11585 TFLAGS="$(STAGE3_TFLAGS)" \
11586 $(TARGET-stage3-mpfr)
65d6e994 11587
85bfb75e
JM
11588maybe-clean-stage3-mpfr: clean-stage3-mpfr
11589clean-stage3: clean-stage3-mpfr
11590clean-stage3-mpfr:
11591 @if [ $(current_stage) = stage3 ]; then \
11592 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11593 else \
11594 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
11595 $(MAKE) stage3-start; \
11596 fi; \
11597 cd $(HOST_SUBDIR)/mpfr && \
11598 $(MAKE) $(EXTRA_HOST_FLAGS) \
11599 $(POSTSTAGE1_FLAGS_TO_PASS) \
11600 clean
11601@endif mpfr-bootstrap
65d6e994 11602
1358ccea 11603
85bfb75e
JM
11604.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
11605.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
11606maybe-all-stage4-mpfr:
11607maybe-clean-stage4-mpfr:
11608@if mpfr-bootstrap
11609maybe-all-stage4-mpfr: all-stage4-mpfr
11610all-stage4: all-stage4-mpfr
11611TARGET-stage4-mpfr = $(TARGET-mpfr)
11612all-stage4-mpfr: configure-stage4-mpfr
11613 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11614 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 11616 TFLAGS="$(STAGE4_TFLAGS)"; \
4fc4dd12 11617 $(HOST_EXPORTS) \
85bfb75e
JM
11618 $(POSTSTAGE1_HOST_EXPORTS) \
11619 cd $(HOST_SUBDIR)/mpfr && \
11620 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11621 CFLAGS="$(STAGE4_CFLAGS)" \
11622 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11623 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11624 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11625 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11626 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11627 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11628 TFLAGS="$(STAGE4_TFLAGS)" \
11629 $(TARGET-stage4-mpfr)
1358ccea 11630
85bfb75e
JM
11631maybe-clean-stage4-mpfr: clean-stage4-mpfr
11632clean-stage4: clean-stage4-mpfr
11633clean-stage4-mpfr:
11634 @if [ $(current_stage) = stage4 ]; then \
11635 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11636 else \
11637 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
11638 $(MAKE) stage4-start; \
11639 fi; \
11640 cd $(HOST_SUBDIR)/mpfr && \
11641 $(MAKE) $(EXTRA_HOST_FLAGS) \
11642 $(POSTSTAGE1_FLAGS_TO_PASS) \
11643 clean
11644@endif mpfr-bootstrap
1358ccea 11645
1358ccea 11646
85bfb75e
JM
11647.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
11648.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
11649maybe-all-stageprofile-mpfr:
11650maybe-clean-stageprofile-mpfr:
11651@if mpfr-bootstrap
11652maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
11653all-stageprofile: all-stageprofile-mpfr
11654TARGET-stageprofile-mpfr = $(TARGET-mpfr)
11655all-stageprofile-mpfr: configure-stageprofile-mpfr
11656 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11657 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 11659 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 11660 $(HOST_EXPORTS) \
85bfb75e
JM
11661 $(POSTSTAGE1_HOST_EXPORTS) \
11662 cd $(HOST_SUBDIR)/mpfr && \
11663 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11664 CFLAGS="$(STAGEprofile_CFLAGS)" \
11665 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11666 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11667 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11668 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11669 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11670 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11671 TFLAGS="$(STAGEprofile_TFLAGS)" \
11672 $(TARGET-stageprofile-mpfr)
1358ccea 11673
85bfb75e
JM
11674maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
11675clean-stageprofile: clean-stageprofile-mpfr
11676clean-stageprofile-mpfr:
11677 @if [ $(current_stage) = stageprofile ]; then \
11678 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11679 else \
11680 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
11681 $(MAKE) stageprofile-start; \
11682 fi; \
11683 cd $(HOST_SUBDIR)/mpfr && \
11684 $(MAKE) $(EXTRA_HOST_FLAGS) \
11685 $(POSTSTAGE1_FLAGS_TO_PASS) \
11686 clean
11687@endif mpfr-bootstrap
1358ccea 11688
25b42232 11689
85bfb75e
JM
11690.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
11691.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
11692maybe-all-stagefeedback-mpfr:
11693maybe-clean-stagefeedback-mpfr:
11694@if mpfr-bootstrap
11695maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
11696all-stagefeedback: all-stagefeedback-mpfr
11697TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
11698all-stagefeedback-mpfr: configure-stagefeedback-mpfr
11699 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 11700 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
11702 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11703 $(HOST_EXPORTS) \
11704 $(POSTSTAGE1_HOST_EXPORTS) \
11705 cd $(HOST_SUBDIR)/mpfr && \
11706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11707 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11708 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11709 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11713 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11714 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11715 $(TARGET-stagefeedback-mpfr)
ce406537 11716
85bfb75e
JM
11717maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
11718clean-stagefeedback: clean-stagefeedback-mpfr
11719clean-stagefeedback-mpfr:
11720 @if [ $(current_stage) = stagefeedback ]; then \
11721 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11722 else \
11723 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
11724 $(MAKE) stagefeedback-start; \
11725 fi; \
11726 cd $(HOST_SUBDIR)/mpfr && \
11727 $(MAKE) $(EXTRA_HOST_FLAGS) \
11728 $(POSTSTAGE1_FLAGS_TO_PASS) \
11729 clean
11730@endif mpfr-bootstrap
ce406537 11731
1358ccea 11732
25b42232 11733
ce406537
PB
11734
11735
85bfb75e
JM
11736.PHONY: check-mpfr maybe-check-mpfr
11737maybe-check-mpfr:
11738@if mpfr
11739maybe-check-mpfr: check-mpfr
1358ccea 11740
85bfb75e 11741check-mpfr:
f41d6665 11742 @: $(MAKE); $(unstage)
295f4e42 11743 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11745 $(HOST_EXPORTS) \
85bfb75e 11746 (cd $(HOST_SUBDIR)/mpfr && \
215c351a 11747 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 11748
85bfb75e 11749@endif mpfr
1358ccea 11750
85bfb75e
JM
11751.PHONY: install-mpfr maybe-install-mpfr
11752maybe-install-mpfr:
11753@if mpfr
11754maybe-install-mpfr: install-mpfr
1358ccea 11755
85bfb75e 11756install-mpfr:
1358ccea 11757
85bfb75e 11758@endif mpfr
1358ccea 11759
85bfb75e
JM
11760.PHONY: install-strip-mpfr maybe-install-strip-mpfr
11761maybe-install-strip-mpfr:
11762@if mpfr
11763maybe-install-strip-mpfr: install-strip-mpfr
455c8f48 11764
85bfb75e 11765install-strip-mpfr:
455c8f48 11766
85bfb75e 11767@endif mpfr
455c8f48 11768
b5422ad7 11769# Other targets (info, dvi, pdf, etc.)
1358ccea 11770
85bfb75e
JM
11771.PHONY: maybe-info-mpfr info-mpfr
11772maybe-info-mpfr:
11773@if mpfr
11774maybe-info-mpfr: info-mpfr
295f4e42 11775
85bfb75e
JM
11776info-mpfr: \
11777 configure-mpfr
11778 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
11779 r=`${PWD_COMMAND}`; export r; \
11780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11781 $(HOST_EXPORTS) \
d32ab992 11782 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11784 done; \
85bfb75e
JM
11785 echo "Doing info in mpfr" ; \
11786 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
11787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11789 "RANLIB=$${RANLIB}" \
901119ae 11790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11791 info) \
1358ccea
NN
11792 || exit 1
11793
85bfb75e 11794@endif mpfr
1358ccea 11795
85bfb75e
JM
11796.PHONY: maybe-dvi-mpfr dvi-mpfr
11797maybe-dvi-mpfr:
11798@if mpfr
11799maybe-dvi-mpfr: dvi-mpfr
1358ccea 11800
85bfb75e
JM
11801dvi-mpfr: \
11802 configure-mpfr
11803 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
11804 r=`${PWD_COMMAND}`; export r; \
11805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11806 $(HOST_EXPORTS) \
d32ab992 11807 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11809 done; \
85bfb75e
JM
11810 echo "Doing dvi in mpfr" ; \
11811 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
11812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11814 "RANLIB=$${RANLIB}" \
901119ae 11815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11816 dvi) \
1358ccea
NN
11817 || exit 1
11818
85bfb75e 11819@endif mpfr
1358ccea 11820
85bfb75e
JM
11821.PHONY: maybe-pdf-mpfr pdf-mpfr
11822maybe-pdf-mpfr:
11823@if mpfr
11824maybe-pdf-mpfr: pdf-mpfr
b5422ad7 11825
85bfb75e
JM
11826pdf-mpfr: \
11827 configure-mpfr
11828 @[ -f ./mpfr/Makefile ] || exit 0; \
b5422ad7
BM
11829 r=`${PWD_COMMAND}`; export r; \
11830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11831 $(HOST_EXPORTS) \
11832 for flag in $(EXTRA_HOST_FLAGS) ; do \
11833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11834 done; \
85bfb75e
JM
11835 echo "Doing pdf in mpfr" ; \
11836 (cd $(HOST_SUBDIR)/mpfr && \
b5422ad7
BM
11837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11839 "RANLIB=$${RANLIB}" \
901119ae 11840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
11841 pdf) \
11842 || exit 1
11843
85bfb75e 11844@endif mpfr
b5422ad7 11845
85bfb75e
JM
11846.PHONY: maybe-html-mpfr html-mpfr
11847maybe-html-mpfr:
11848@if mpfr
11849maybe-html-mpfr: html-mpfr
f87a2b2e 11850
85bfb75e
JM
11851html-mpfr: \
11852 configure-mpfr
11853 @[ -f ./mpfr/Makefile ] || exit 0; \
f87a2b2e
MS
11854 r=`${PWD_COMMAND}`; export r; \
11855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
11856 $(HOST_EXPORTS) \
11857 for flag in $(EXTRA_HOST_FLAGS) ; do \
11858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11859 done; \
85bfb75e
JM
11860 echo "Doing html in mpfr" ; \
11861 (cd $(HOST_SUBDIR)/mpfr && \
f87a2b2e
MS
11862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11864 "RANLIB=$${RANLIB}" \
901119ae 11865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
11866 html) \
11867 || exit 1
11868
85bfb75e 11869@endif mpfr
f87a2b2e 11870
85bfb75e
JM
11871.PHONY: maybe-TAGS-mpfr TAGS-mpfr
11872maybe-TAGS-mpfr:
11873@if mpfr
11874maybe-TAGS-mpfr: TAGS-mpfr
1358ccea 11875
85bfb75e
JM
11876TAGS-mpfr: \
11877 configure-mpfr
11878 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
11879 r=`${PWD_COMMAND}`; export r; \
11880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11881 $(HOST_EXPORTS) \
d32ab992 11882 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11884 done; \
85bfb75e
JM
11885 echo "Doing TAGS in mpfr" ; \
11886 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
11887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11889 "RANLIB=$${RANLIB}" \
901119ae 11890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11891 TAGS) \
1358ccea
NN
11892 || exit 1
11893
85bfb75e 11894@endif mpfr
1358ccea 11895
85bfb75e
JM
11896.PHONY: maybe-install-info-mpfr install-info-mpfr
11897maybe-install-info-mpfr:
11898@if mpfr
11899maybe-install-info-mpfr: install-info-mpfr
1358ccea 11900
85bfb75e
JM
11901install-info-mpfr: \
11902 configure-mpfr \
11903 info-mpfr
11904 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
11905 r=`${PWD_COMMAND}`; export r; \
11906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11907 $(HOST_EXPORTS) \
d32ab992 11908 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11910 done; \
85bfb75e
JM
11911 echo "Doing install-info in mpfr" ; \
11912 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
11913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11915 "RANLIB=$${RANLIB}" \
901119ae 11916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11917 install-info) \
1358ccea
NN
11918 || exit 1
11919
85bfb75e 11920@endif mpfr
1358ccea 11921
85bfb75e
JM
11922.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
11923maybe-install-pdf-mpfr:
11924@if mpfr
11925maybe-install-pdf-mpfr: install-pdf-mpfr
9c4d2493 11926
85bfb75e
JM
11927install-pdf-mpfr: \
11928 configure-mpfr \
11929 pdf-mpfr
11930 @[ -f ./mpfr/Makefile ] || exit 0; \
9c4d2493
BM
11931 r=`${PWD_COMMAND}`; export r; \
11932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11933 $(HOST_EXPORTS) \
11934 for flag in $(EXTRA_HOST_FLAGS) ; do \
11935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11936 done; \
85bfb75e
JM
11937 echo "Doing install-pdf in mpfr" ; \
11938 (cd $(HOST_SUBDIR)/mpfr && \
9c4d2493
BM
11939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11941 "RANLIB=$${RANLIB}" \
901119ae 11942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
11943 install-pdf) \
11944 || exit 1
11945
85bfb75e 11946@endif mpfr
9c4d2493 11947
85bfb75e
JM
11948.PHONY: maybe-install-html-mpfr install-html-mpfr
11949maybe-install-html-mpfr:
11950@if mpfr
11951maybe-install-html-mpfr: install-html-mpfr
65d6e994 11952
85bfb75e
JM
11953install-html-mpfr: \
11954 configure-mpfr \
11955 html-mpfr
11956 @[ -f ./mpfr/Makefile ] || exit 0; \
65d6e994
CD
11957 r=`${PWD_COMMAND}`; export r; \
11958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11959 $(HOST_EXPORTS) \
11960 for flag in $(EXTRA_HOST_FLAGS) ; do \
11961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11962 done; \
85bfb75e
JM
11963 echo "Doing install-html in mpfr" ; \
11964 (cd $(HOST_SUBDIR)/mpfr && \
65d6e994
CD
11965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11967 "RANLIB=$${RANLIB}" \
901119ae 11968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
11969 install-html) \
11970 || exit 1
11971
85bfb75e 11972@endif mpfr
65d6e994 11973
85bfb75e
JM
11974.PHONY: maybe-installcheck-mpfr installcheck-mpfr
11975maybe-installcheck-mpfr:
11976@if mpfr
11977maybe-installcheck-mpfr: installcheck-mpfr
1358ccea 11978
85bfb75e
JM
11979installcheck-mpfr: \
11980 configure-mpfr
11981 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
11982 r=`${PWD_COMMAND}`; export r; \
11983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11984 $(HOST_EXPORTS) \
d32ab992 11985 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11987 done; \
85bfb75e
JM
11988 echo "Doing installcheck in mpfr" ; \
11989 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
11990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11992 "RANLIB=$${RANLIB}" \
901119ae 11993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 11994 installcheck) \
1358ccea
NN
11995 || exit 1
11996
85bfb75e 11997@endif mpfr
1358ccea 11998
85bfb75e
JM
11999.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12000maybe-mostlyclean-mpfr:
12001@if mpfr
12002maybe-mostlyclean-mpfr: mostlyclean-mpfr
1358ccea 12003
85bfb75e
JM
12004mostlyclean-mpfr:
12005 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
12006 r=`${PWD_COMMAND}`; export r; \
12007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12008 $(HOST_EXPORTS) \
d32ab992 12009 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12011 done; \
85bfb75e
JM
12012 echo "Doing mostlyclean in mpfr" ; \
12013 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
12014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12016 "RANLIB=$${RANLIB}" \
901119ae 12017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 12018 mostlyclean) \
1358ccea
NN
12019 || exit 1
12020
85bfb75e 12021@endif mpfr
1358ccea 12022
85bfb75e
JM
12023.PHONY: maybe-clean-mpfr clean-mpfr
12024maybe-clean-mpfr:
12025@if mpfr
12026maybe-clean-mpfr: clean-mpfr
1358ccea 12027
85bfb75e
JM
12028clean-mpfr:
12029 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
12030 r=`${PWD_COMMAND}`; export r; \
12031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12032 $(HOST_EXPORTS) \
d32ab992 12033 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12035 done; \
85bfb75e
JM
12036 echo "Doing clean in mpfr" ; \
12037 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
12038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12040 "RANLIB=$${RANLIB}" \
901119ae 12041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 12042 clean) \
1358ccea
NN
12043 || exit 1
12044
85bfb75e 12045@endif mpfr
1358ccea 12046
85bfb75e
JM
12047.PHONY: maybe-distclean-mpfr distclean-mpfr
12048maybe-distclean-mpfr:
12049@if mpfr
12050maybe-distclean-mpfr: distclean-mpfr
1358ccea 12051
85bfb75e
JM
12052distclean-mpfr:
12053 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
12054 r=`${PWD_COMMAND}`; export r; \
12055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12056 $(HOST_EXPORTS) \
d32ab992 12057 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12059 done; \
85bfb75e
JM
12060 echo "Doing distclean in mpfr" ; \
12061 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
12062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12064 "RANLIB=$${RANLIB}" \
901119ae 12065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 12066 distclean) \
1358ccea
NN
12067 || exit 1
12068
85bfb75e 12069@endif mpfr
1358ccea 12070
85bfb75e
JM
12071.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12072maybe-maintainer-clean-mpfr:
12073@if mpfr
12074maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
1358ccea 12075
85bfb75e
JM
12076maintainer-clean-mpfr:
12077 @[ -f ./mpfr/Makefile ] || exit 0; \
8c90b13a
L
12078 r=`${PWD_COMMAND}`; export r; \
12079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12080 $(HOST_EXPORTS) \
d32ab992 12081 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12083 done; \
85bfb75e
JM
12084 echo "Doing maintainer-clean in mpfr" ; \
12085 (cd $(HOST_SUBDIR)/mpfr && \
1358ccea
NN
12086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12088 "RANLIB=$${RANLIB}" \
901119ae 12089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 12090 maintainer-clean) \
1358ccea
NN
12091 || exit 1
12092
85bfb75e 12093@endif mpfr
1358ccea 12094
1358ccea 12095
25b42232 12096
85bfb75e
JM
12097.PHONY: configure-mpc maybe-configure-mpc
12098maybe-configure-mpc:
3ff3adad 12099@if gcc-bootstrap
85bfb75e 12100configure-mpc: stage_current
3ff3adad 12101@endif gcc-bootstrap
85bfb75e
JM
12102@if mpc
12103maybe-configure-mpc: configure-mpc
12104configure-mpc:
cc11cc9b 12105 @r=`${PWD_COMMAND}`; export r; \
53c7ffe7 12106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
12107 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12108 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
f61428ed 12109 $(HOST_EXPORTS) \
85bfb75e
JM
12110 echo Configuring in $(HOST_SUBDIR)/mpc; \
12111 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
53c7ffe7 12112 case $(srcdir) in \
215c351a 12113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 12114 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
215c351a 12115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53c7ffe7 12116 esac; \
85bfb75e
JM
12117 srcdiroption="--srcdir=$${topdir}/mpc"; \
12118 libsrcdir="$$s/mpc"; \
53c7ffe7 12119 $(SHELL) $${libsrcdir}/configure \
e69bf64b 12120 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 12121 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
53c7ffe7 12122 || exit 1
85bfb75e 12123@endif mpc
ce406537
PB
12124
12125
53c7ffe7 12126
85bfb75e
JM
12127.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12128maybe-configure-stage1-mpc:
12129@if mpc-bootstrap
12130maybe-configure-stage1-mpc: configure-stage1-mpc
12131configure-stage1-mpc:
12132 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12133 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
53c7ffe7
GK
12134 @r=`${PWD_COMMAND}`; export r; \
12135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
12136 TFLAGS="$(STAGE1_TFLAGS)"; \
12137 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
53c7ffe7 12138 $(HOST_EXPORTS) \
85bfb75e
JM
12139 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12140 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12141 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
12142 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc ; \
12143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12144 cd $(HOST_SUBDIR)/mpc || exit 1; \
12145 case $(srcdir) in \
12146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12147 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12149 esac; \
12150 srcdiroption="--srcdir=$${topdir}/mpc"; \
12151 libsrcdir="$$s/mpc"; \
12152 $(SHELL) $${libsrcdir}/configure \
12153 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12154 --target=${target_alias} $${srcdiroption} \
12155 $(STAGE1_CONFIGURE_FLAGS) \
12156 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12157@endif mpc-bootstrap
53c7ffe7 12158
85bfb75e
JM
12159.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12160maybe-configure-stage2-mpc:
12161@if mpc-bootstrap
12162maybe-configure-stage2-mpc: configure-stage2-mpc
12163configure-stage2-mpc:
12164 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12165 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
53c7ffe7
GK
12166 @r=`${PWD_COMMAND}`; export r; \
12167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
12168 TFLAGS="$(STAGE2_TFLAGS)"; \
12169 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
53c7ffe7 12170 $(HOST_EXPORTS) \
85bfb75e
JM
12171 $(POSTSTAGE1_HOST_EXPORTS) \
12172 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12173 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12174 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
12175 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc ; \
12176 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12177 cd $(HOST_SUBDIR)/mpc || exit 1; \
12178 case $(srcdir) in \
12179 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12180 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12181 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12182 esac; \
12183 srcdiroption="--srcdir=$${topdir}/mpc"; \
12184 libsrcdir="$$s/mpc"; \
12185 $(SHELL) $${libsrcdir}/configure \
12186 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12187 --target=${target_alias} $${srcdiroption} \
12188 --with-build-libsubdir=$(HOST_SUBDIR) \
12189 $(STAGE2_CONFIGURE_FLAGS) \
12190 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12191@endif mpc-bootstrap
455c8f48 12192
85bfb75e
JM
12193.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12194maybe-configure-stage3-mpc:
12195@if mpc-bootstrap
12196maybe-configure-stage3-mpc: configure-stage3-mpc
12197configure-stage3-mpc:
12198 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12199 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
455c8f48
RW
12200 @r=`${PWD_COMMAND}`; export r; \
12201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
12202 TFLAGS="$(STAGE3_TFLAGS)"; \
12203 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
455c8f48 12204 $(HOST_EXPORTS) \
85bfb75e
JM
12205 $(POSTSTAGE1_HOST_EXPORTS) \
12206 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12207 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12208 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12209 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc ; \
12210 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12211 cd $(HOST_SUBDIR)/mpc || exit 1; \
12212 case $(srcdir) in \
12213 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12214 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12215 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12216 esac; \
12217 srcdiroption="--srcdir=$${topdir}/mpc"; \
12218 libsrcdir="$$s/mpc"; \
12219 $(SHELL) $${libsrcdir}/configure \
12220 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12221 --target=${target_alias} $${srcdiroption} \
12222 --with-build-libsubdir=$(HOST_SUBDIR) \
12223 $(STAGE3_CONFIGURE_FLAGS) \
12224 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12225@endif mpc-bootstrap
53c7ffe7 12226
85bfb75e
JM
12227.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12228maybe-configure-stage4-mpc:
12229@if mpc-bootstrap
12230maybe-configure-stage4-mpc: configure-stage4-mpc
12231configure-stage4-mpc:
12232 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12233 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12234 @r=`${PWD_COMMAND}`; export r; \
12235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12236 TFLAGS="$(STAGE4_TFLAGS)"; \
12237 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12238 $(HOST_EXPORTS) \
12239 $(POSTSTAGE1_HOST_EXPORTS) \
12240 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12241 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12242 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12243 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc ; \
12244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12245 cd $(HOST_SUBDIR)/mpc || exit 1; \
12246 case $(srcdir) in \
12247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12248 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12250 esac; \
12251 srcdiroption="--srcdir=$${topdir}/mpc"; \
12252 libsrcdir="$$s/mpc"; \
12253 $(SHELL) $${libsrcdir}/configure \
12254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12255 --target=${target_alias} $${srcdiroption} \
12256 --with-build-libsubdir=$(HOST_SUBDIR) \
12257 $(STAGE4_CONFIGURE_FLAGS) \
12258 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12259@endif mpc-bootstrap
12260
12261.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12262maybe-configure-stageprofile-mpc:
12263@if mpc-bootstrap
12264maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12265configure-stageprofile-mpc:
12266 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12267 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12268 @r=`${PWD_COMMAND}`; export r; \
12269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12270 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12271 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12272 $(HOST_EXPORTS) \
12273 $(POSTSTAGE1_HOST_EXPORTS) \
12274 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12275 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12276 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12277 echo Configuring stage profile in $(HOST_SUBDIR)/mpc ; \
12278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12279 cd $(HOST_SUBDIR)/mpc || exit 1; \
12280 case $(srcdir) in \
12281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12282 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12284 esac; \
12285 srcdiroption="--srcdir=$${topdir}/mpc"; \
12286 libsrcdir="$$s/mpc"; \
12287 $(SHELL) $${libsrcdir}/configure \
12288 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12289 --target=${target_alias} $${srcdiroption} \
12290 --with-build-libsubdir=$(HOST_SUBDIR) \
12291 $(STAGEprofile_CONFIGURE_FLAGS) \
12292 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12293@endif mpc-bootstrap
12294
12295.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12296maybe-configure-stagefeedback-mpc:
12297@if mpc-bootstrap
12298maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12299configure-stagefeedback-mpc:
12300 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12301 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12302 @r=`${PWD_COMMAND}`; export r; \
12303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12304 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12305 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12306 $(HOST_EXPORTS) \
12307 $(POSTSTAGE1_HOST_EXPORTS) \
12308 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12309 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12310 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12311 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc ; \
12312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12313 cd $(HOST_SUBDIR)/mpc || exit 1; \
12314 case $(srcdir) in \
12315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12316 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12318 esac; \
12319 srcdiroption="--srcdir=$${topdir}/mpc"; \
12320 libsrcdir="$$s/mpc"; \
12321 $(SHELL) $${libsrcdir}/configure \
12322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12323 --target=${target_alias} $${srcdiroption} \
12324 --with-build-libsubdir=$(HOST_SUBDIR) \
12325 $(STAGEfeedback_CONFIGURE_FLAGS) \
12326 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12327@endif mpc-bootstrap
12328
12329
12330
12331
12332
12333.PHONY: all-mpc maybe-all-mpc
12334maybe-all-mpc:
12335@if gcc-bootstrap
12336all-mpc: stage_current
12337@endif gcc-bootstrap
12338@if mpc
12339TARGET-mpc=all
12340maybe-all-mpc: all-mpc
12341all-mpc: configure-mpc
12342 @r=`${PWD_COMMAND}`; export r; \
12343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12344 $(HOST_EXPORTS) \
12345 (cd $(HOST_SUBDIR)/mpc && \
12346 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12347 $(TARGET-mpc))
12348@endif mpc
12349
12350
12351
12352.PHONY: all-stage1-mpc maybe-all-stage1-mpc
12353.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
12354maybe-all-stage1-mpc:
12355maybe-clean-stage1-mpc:
12356@if mpc-bootstrap
12357maybe-all-stage1-mpc: all-stage1-mpc
12358all-stage1: all-stage1-mpc
12359TARGET-stage1-mpc = $(TARGET-mpc)
12360all-stage1-mpc: configure-stage1-mpc
12361 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12362 @r=`${PWD_COMMAND}`; export r; \
12363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12364 TFLAGS="$(STAGE1_TFLAGS)"; \
12365 $(HOST_EXPORTS) \
12366 cd $(HOST_SUBDIR)/mpc && \
12367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12368 CFLAGS="$(STAGE1_CFLAGS)" \
12369 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12370 LIBCFLAGS="$(LIBCFLAGS)" \
12371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12374 $(EXTRA_HOST_FLAGS) \
12375 TFLAGS="$(STAGE1_TFLAGS)" \
12376 $(TARGET-stage1-mpc)
12377
12378maybe-clean-stage1-mpc: clean-stage1-mpc
12379clean-stage1: clean-stage1-mpc
12380clean-stage1-mpc:
12381 @if [ $(current_stage) = stage1 ]; then \
12382 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12383 else \
12384 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
12385 $(MAKE) stage1-start; \
12386 fi; \
12387 cd $(HOST_SUBDIR)/mpc && \
12388 $(MAKE) $(EXTRA_HOST_FLAGS) \
12389 clean
12390@endif mpc-bootstrap
12391
12392
12393.PHONY: all-stage2-mpc maybe-all-stage2-mpc
12394.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
12395maybe-all-stage2-mpc:
12396maybe-clean-stage2-mpc:
12397@if mpc-bootstrap
12398maybe-all-stage2-mpc: all-stage2-mpc
12399all-stage2: all-stage2-mpc
12400TARGET-stage2-mpc = $(TARGET-mpc)
12401all-stage2-mpc: configure-stage2-mpc
12402 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12403 @r=`${PWD_COMMAND}`; export r; \
12404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12405 TFLAGS="$(STAGE2_TFLAGS)"; \
12406 $(HOST_EXPORTS) \
12407 $(POSTSTAGE1_HOST_EXPORTS) \
12408 cd $(HOST_SUBDIR)/mpc && \
12409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12410 CFLAGS="$(STAGE2_CFLAGS)" \
12411 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12412 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12413 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12414 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12415 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12416 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12417 TFLAGS="$(STAGE2_TFLAGS)" \
12418 $(TARGET-stage2-mpc)
12419
12420maybe-clean-stage2-mpc: clean-stage2-mpc
12421clean-stage2: clean-stage2-mpc
12422clean-stage2-mpc:
12423 @if [ $(current_stage) = stage2 ]; then \
12424 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12425 else \
12426 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
12427 $(MAKE) stage2-start; \
12428 fi; \
12429 cd $(HOST_SUBDIR)/mpc && \
12430 $(MAKE) $(EXTRA_HOST_FLAGS) \
12431 $(POSTSTAGE1_FLAGS_TO_PASS) \
12432 clean
12433@endif mpc-bootstrap
12434
12435
12436.PHONY: all-stage3-mpc maybe-all-stage3-mpc
12437.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
12438maybe-all-stage3-mpc:
12439maybe-clean-stage3-mpc:
12440@if mpc-bootstrap
12441maybe-all-stage3-mpc: all-stage3-mpc
12442all-stage3: all-stage3-mpc
12443TARGET-stage3-mpc = $(TARGET-mpc)
12444all-stage3-mpc: configure-stage3-mpc
12445 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12446 @r=`${PWD_COMMAND}`; export r; \
12447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12448 TFLAGS="$(STAGE3_TFLAGS)"; \
12449 $(HOST_EXPORTS) \
12450 $(POSTSTAGE1_HOST_EXPORTS) \
12451 cd $(HOST_SUBDIR)/mpc && \
12452 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12453 CFLAGS="$(STAGE3_CFLAGS)" \
12454 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12455 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12456 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12457 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12458 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12459 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12460 TFLAGS="$(STAGE3_TFLAGS)" \
12461 $(TARGET-stage3-mpc)
12462
12463maybe-clean-stage3-mpc: clean-stage3-mpc
12464clean-stage3: clean-stage3-mpc
12465clean-stage3-mpc:
12466 @if [ $(current_stage) = stage3 ]; then \
12467 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12468 else \
12469 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
12470 $(MAKE) stage3-start; \
12471 fi; \
12472 cd $(HOST_SUBDIR)/mpc && \
12473 $(MAKE) $(EXTRA_HOST_FLAGS) \
12474 $(POSTSTAGE1_FLAGS_TO_PASS) \
12475 clean
12476@endif mpc-bootstrap
12477
12478
12479.PHONY: all-stage4-mpc maybe-all-stage4-mpc
12480.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
12481maybe-all-stage4-mpc:
12482maybe-clean-stage4-mpc:
12483@if mpc-bootstrap
12484maybe-all-stage4-mpc: all-stage4-mpc
12485all-stage4: all-stage4-mpc
12486TARGET-stage4-mpc = $(TARGET-mpc)
12487all-stage4-mpc: configure-stage4-mpc
12488 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12489 @r=`${PWD_COMMAND}`; export r; \
12490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12491 TFLAGS="$(STAGE4_TFLAGS)"; \
12492 $(HOST_EXPORTS) \
12493 $(POSTSTAGE1_HOST_EXPORTS) \
12494 cd $(HOST_SUBDIR)/mpc && \
12495 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12496 CFLAGS="$(STAGE4_CFLAGS)" \
12497 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12498 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12499 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12500 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12501 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12502 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12503 TFLAGS="$(STAGE4_TFLAGS)" \
12504 $(TARGET-stage4-mpc)
12505
12506maybe-clean-stage4-mpc: clean-stage4-mpc
12507clean-stage4: clean-stage4-mpc
12508clean-stage4-mpc:
12509 @if [ $(current_stage) = stage4 ]; then \
12510 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12511 else \
12512 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
12513 $(MAKE) stage4-start; \
12514 fi; \
12515 cd $(HOST_SUBDIR)/mpc && \
12516 $(MAKE) $(EXTRA_HOST_FLAGS) \
12517 $(POSTSTAGE1_FLAGS_TO_PASS) \
12518 clean
12519@endif mpc-bootstrap
12520
12521
12522.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
12523.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
12524maybe-all-stageprofile-mpc:
12525maybe-clean-stageprofile-mpc:
12526@if mpc-bootstrap
12527maybe-all-stageprofile-mpc: all-stageprofile-mpc
12528all-stageprofile: all-stageprofile-mpc
12529TARGET-stageprofile-mpc = $(TARGET-mpc)
12530all-stageprofile-mpc: configure-stageprofile-mpc
12531 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12532 @r=`${PWD_COMMAND}`; export r; \
12533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12534 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12535 $(HOST_EXPORTS) \
12536 $(POSTSTAGE1_HOST_EXPORTS) \
12537 cd $(HOST_SUBDIR)/mpc && \
12538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12539 CFLAGS="$(STAGEprofile_CFLAGS)" \
12540 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12541 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12545 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12546 TFLAGS="$(STAGEprofile_TFLAGS)" \
12547 $(TARGET-stageprofile-mpc)
12548
12549maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
12550clean-stageprofile: clean-stageprofile-mpc
12551clean-stageprofile-mpc:
12552 @if [ $(current_stage) = stageprofile ]; then \
12553 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12554 else \
12555 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
12556 $(MAKE) stageprofile-start; \
12557 fi; \
12558 cd $(HOST_SUBDIR)/mpc && \
12559 $(MAKE) $(EXTRA_HOST_FLAGS) \
12560 $(POSTSTAGE1_FLAGS_TO_PASS) \
12561 clean
12562@endif mpc-bootstrap
12563
12564
12565.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
12566.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
12567maybe-all-stagefeedback-mpc:
12568maybe-clean-stagefeedback-mpc:
12569@if mpc-bootstrap
12570maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
12571all-stagefeedback: all-stagefeedback-mpc
12572TARGET-stagefeedback-mpc = $(TARGET-mpc)
12573all-stagefeedback-mpc: configure-stagefeedback-mpc
12574 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12575 @r=`${PWD_COMMAND}`; export r; \
12576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12577 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12578 $(HOST_EXPORTS) \
12579 $(POSTSTAGE1_HOST_EXPORTS) \
12580 cd $(HOST_SUBDIR)/mpc && \
12581 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12582 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12583 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12584 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12585 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12586 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12587 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12588 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12589 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12590 $(TARGET-stagefeedback-mpc)
12591
12592maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
12593clean-stagefeedback: clean-stagefeedback-mpc
12594clean-stagefeedback-mpc:
12595 @if [ $(current_stage) = stagefeedback ]; then \
12596 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12597 else \
12598 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
12599 $(MAKE) stagefeedback-start; \
12600 fi; \
12601 cd $(HOST_SUBDIR)/mpc && \
12602 $(MAKE) $(EXTRA_HOST_FLAGS) \
12603 $(POSTSTAGE1_FLAGS_TO_PASS) \
12604 clean
12605@endif mpc-bootstrap
12606
12607
12608
12609
12610
12611.PHONY: check-mpc maybe-check-mpc
12612maybe-check-mpc:
12613@if mpc
12614maybe-check-mpc: check-mpc
12615
12616check-mpc:
12617 @: $(MAKE); $(unstage)
12618 @r=`${PWD_COMMAND}`; export r; \
12619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12620 $(HOST_EXPORTS) \
12621 (cd $(HOST_SUBDIR)/mpc && \
12622 $(MAKE) $(FLAGS_TO_PASS) check)
12623
12624@endif mpc
12625
12626.PHONY: install-mpc maybe-install-mpc
12627maybe-install-mpc:
12628@if mpc
12629maybe-install-mpc: install-mpc
12630
12631install-mpc:
12632
12633@endif mpc
12634
12635.PHONY: install-strip-mpc maybe-install-strip-mpc
12636maybe-install-strip-mpc:
12637@if mpc
12638maybe-install-strip-mpc: install-strip-mpc
12639
12640install-strip-mpc:
12641
12642@endif mpc
12643
12644# Other targets (info, dvi, pdf, etc.)
12645
12646.PHONY: maybe-info-mpc info-mpc
12647maybe-info-mpc:
12648@if mpc
12649maybe-info-mpc: info-mpc
12650
12651info-mpc: \
12652 configure-mpc
12653 @[ -f ./mpc/Makefile ] || exit 0; \
12654 r=`${PWD_COMMAND}`; export r; \
07f1ac6d
BM
12655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12656 $(HOST_EXPORTS) \
12657 for flag in $(EXTRA_HOST_FLAGS) ; do \
12658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12659 done; \
85bfb75e
JM
12660 echo "Doing info in mpc" ; \
12661 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12664 "RANLIB=$${RANLIB}" \
901119ae 12665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12666 info) \
12667 || exit 1
53c7ffe7 12668
85bfb75e 12669@endif mpc
53c7ffe7 12670
85bfb75e
JM
12671.PHONY: maybe-dvi-mpc dvi-mpc
12672maybe-dvi-mpc:
12673@if mpc
12674maybe-dvi-mpc: dvi-mpc
53c7ffe7 12675
85bfb75e
JM
12676dvi-mpc: \
12677 configure-mpc
12678 @[ -f ./mpc/Makefile ] || exit 0; \
07f1ac6d
BM
12679 r=`${PWD_COMMAND}`; export r; \
12680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12681 $(HOST_EXPORTS) \
12682 for flag in $(EXTRA_HOST_FLAGS) ; do \
12683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12684 done; \
85bfb75e
JM
12685 echo "Doing dvi in mpc" ; \
12686 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12689 "RANLIB=$${RANLIB}" \
901119ae 12690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12691 dvi) \
12692 || exit 1
53c7ffe7 12693
85bfb75e 12694@endif mpc
53c7ffe7 12695
85bfb75e
JM
12696.PHONY: maybe-pdf-mpc pdf-mpc
12697maybe-pdf-mpc:
12698@if mpc
12699maybe-pdf-mpc: pdf-mpc
b5422ad7 12700
85bfb75e
JM
12701pdf-mpc: \
12702 configure-mpc
12703 @[ -f ./mpc/Makefile ] || exit 0; \
07f1ac6d
BM
12704 r=`${PWD_COMMAND}`; export r; \
12705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12706 $(HOST_EXPORTS) \
12707 for flag in $(EXTRA_HOST_FLAGS) ; do \
12708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12709 done; \
85bfb75e
JM
12710 echo "Doing pdf in mpc" ; \
12711 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12714 "RANLIB=$${RANLIB}" \
901119ae 12715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12716 pdf) \
12717 || exit 1
b5422ad7 12718
85bfb75e 12719@endif mpc
b5422ad7 12720
85bfb75e
JM
12721.PHONY: maybe-html-mpc html-mpc
12722maybe-html-mpc:
12723@if mpc
12724maybe-html-mpc: html-mpc
f87a2b2e 12725
85bfb75e
JM
12726html-mpc: \
12727 configure-mpc
12728 @[ -f ./mpc/Makefile ] || exit 0; \
f87a2b2e
MS
12729 r=`${PWD_COMMAND}`; export r; \
12730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12731 $(HOST_EXPORTS) \
12732 for flag in $(EXTRA_HOST_FLAGS) ; do \
12733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12734 done; \
85bfb75e
JM
12735 echo "Doing html in mpc" ; \
12736 (cd $(HOST_SUBDIR)/mpc && \
f87a2b2e
MS
12737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12739 "RANLIB=$${RANLIB}" \
901119ae 12740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
12741 html) \
12742 || exit 1
12743
85bfb75e 12744@endif mpc
53c7ffe7 12745
85bfb75e
JM
12746.PHONY: maybe-TAGS-mpc TAGS-mpc
12747maybe-TAGS-mpc:
12748@if mpc
12749maybe-TAGS-mpc: TAGS-mpc
53c7ffe7 12750
85bfb75e
JM
12751TAGS-mpc: \
12752 configure-mpc
12753 @[ -f ./mpc/Makefile ] || exit 0; \
12754 r=`${PWD_COMMAND}`; export r; \
12755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
07f1ac6d
BM
12756 $(HOST_EXPORTS) \
12757 for flag in $(EXTRA_HOST_FLAGS) ; do \
12758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12759 done; \
85bfb75e
JM
12760 echo "Doing TAGS in mpc" ; \
12761 (cd $(HOST_SUBDIR)/mpc && \
12762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12764 "RANLIB=$${RANLIB}" \
12765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
12766 TAGS) \
12767 || exit 1
12768
12769@endif mpc
12770
12771.PHONY: maybe-install-info-mpc install-info-mpc
12772maybe-install-info-mpc:
12773@if mpc
12774maybe-install-info-mpc: install-info-mpc
12775
12776install-info-mpc: \
12777 configure-mpc \
12778 info-mpc
12779 @[ -f ./mpc/Makefile ] || exit 0; \
12780 r=`${PWD_COMMAND}`; export r; \
12781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12782 $(HOST_EXPORTS) \
12783 for flag in $(EXTRA_HOST_FLAGS) ; do \
12784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12785 done; \
12786 echo "Doing install-info in mpc" ; \
12787 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12790 "RANLIB=$${RANLIB}" \
901119ae 12791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12792 install-info) \
12793 || exit 1
53c7ffe7 12794
85bfb75e 12795@endif mpc
53c7ffe7 12796
85bfb75e
JM
12797.PHONY: maybe-install-pdf-mpc install-pdf-mpc
12798maybe-install-pdf-mpc:
12799@if mpc
12800maybe-install-pdf-mpc: install-pdf-mpc
9c4d2493 12801
85bfb75e
JM
12802install-pdf-mpc: \
12803 configure-mpc \
12804 pdf-mpc
12805 @[ -f ./mpc/Makefile ] || exit 0; \
07f1ac6d
BM
12806 r=`${PWD_COMMAND}`; export r; \
12807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12808 $(HOST_EXPORTS) \
12809 for flag in $(EXTRA_HOST_FLAGS) ; do \
12810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12811 done; \
85bfb75e
JM
12812 echo "Doing install-pdf in mpc" ; \
12813 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12816 "RANLIB=$${RANLIB}" \
901119ae 12817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12818 install-pdf) \
12819 || exit 1
9c4d2493 12820
85bfb75e 12821@endif mpc
9c4d2493 12822
85bfb75e
JM
12823.PHONY: maybe-install-html-mpc install-html-mpc
12824maybe-install-html-mpc:
12825@if mpc
12826maybe-install-html-mpc: install-html-mpc
65d6e994 12827
85bfb75e
JM
12828install-html-mpc: \
12829 configure-mpc \
12830 html-mpc
12831 @[ -f ./mpc/Makefile ] || exit 0; \
65d6e994
CD
12832 r=`${PWD_COMMAND}`; export r; \
12833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12834 $(HOST_EXPORTS) \
12835 for flag in $(EXTRA_HOST_FLAGS) ; do \
12836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12837 done; \
85bfb75e
JM
12838 echo "Doing install-html in mpc" ; \
12839 (cd $(HOST_SUBDIR)/mpc && \
65d6e994
CD
12840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12842 "RANLIB=$${RANLIB}" \
901119ae 12843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
12844 install-html) \
12845 || exit 1
12846
85bfb75e 12847@endif mpc
65d6e994 12848
85bfb75e
JM
12849.PHONY: maybe-installcheck-mpc installcheck-mpc
12850maybe-installcheck-mpc:
12851@if mpc
12852maybe-installcheck-mpc: installcheck-mpc
53c7ffe7 12853
85bfb75e
JM
12854installcheck-mpc: \
12855 configure-mpc
12856 @[ -f ./mpc/Makefile ] || exit 0; \
07f1ac6d
BM
12857 r=`${PWD_COMMAND}`; export r; \
12858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12859 $(HOST_EXPORTS) \
12860 for flag in $(EXTRA_HOST_FLAGS) ; do \
12861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12862 done; \
85bfb75e
JM
12863 echo "Doing installcheck in mpc" ; \
12864 (cd $(HOST_SUBDIR)/mpc && \
07f1ac6d
BM
12865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12867 "RANLIB=$${RANLIB}" \
901119ae 12868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
07f1ac6d
BM
12869 installcheck) \
12870 || exit 1
53c7ffe7 12871
85bfb75e 12872@endif mpc
53c7ffe7 12873
85bfb75e
JM
12874.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
12875maybe-mostlyclean-mpc:
12876@if mpc
12877maybe-mostlyclean-mpc: mostlyclean-mpc
53c7ffe7 12878
85bfb75e
JM
12879mostlyclean-mpc:
12880 @[ -f ./mpc/Makefile ] || exit 0; \
53c7ffe7
GK
12881 r=`${PWD_COMMAND}`; export r; \
12882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
12883 $(HOST_EXPORTS) \
12884 for flag in $(EXTRA_HOST_FLAGS) ; do \
12885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12886 done; \
85bfb75e
JM
12887 echo "Doing mostlyclean in mpc" ; \
12888 (cd $(HOST_SUBDIR)/mpc && \
53c7ffe7
GK
12889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12891 "RANLIB=$${RANLIB}" \
901119ae 12892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
53c7ffe7
GK
12893 mostlyclean) \
12894 || exit 1
12895
85bfb75e 12896@endif mpc
53c7ffe7 12897
85bfb75e
JM
12898.PHONY: maybe-clean-mpc clean-mpc
12899maybe-clean-mpc:
12900@if mpc
12901maybe-clean-mpc: clean-mpc
53c7ffe7 12902
85bfb75e
JM
12903clean-mpc:
12904 @[ -f ./mpc/Makefile ] || exit 0; \
53c7ffe7
GK
12905 r=`${PWD_COMMAND}`; export r; \
12906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
12907 $(HOST_EXPORTS) \
12908 for flag in $(EXTRA_HOST_FLAGS) ; do \
12909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12910 done; \
85bfb75e
JM
12911 echo "Doing clean in mpc" ; \
12912 (cd $(HOST_SUBDIR)/mpc && \
53c7ffe7
GK
12913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12915 "RANLIB=$${RANLIB}" \
901119ae 12916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
53c7ffe7
GK
12917 clean) \
12918 || exit 1
12919
85bfb75e 12920@endif mpc
53c7ffe7 12921
85bfb75e
JM
12922.PHONY: maybe-distclean-mpc distclean-mpc
12923maybe-distclean-mpc:
12924@if mpc
12925maybe-distclean-mpc: distclean-mpc
53c7ffe7 12926
85bfb75e
JM
12927distclean-mpc:
12928 @[ -f ./mpc/Makefile ] || exit 0; \
53c7ffe7
GK
12929 r=`${PWD_COMMAND}`; export r; \
12930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
12931 $(HOST_EXPORTS) \
12932 for flag in $(EXTRA_HOST_FLAGS) ; do \
12933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12934 done; \
85bfb75e
JM
12935 echo "Doing distclean in mpc" ; \
12936 (cd $(HOST_SUBDIR)/mpc && \
53c7ffe7
GK
12937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12939 "RANLIB=$${RANLIB}" \
901119ae 12940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
53c7ffe7
GK
12941 distclean) \
12942 || exit 1
12943
85bfb75e 12944@endif mpc
53c7ffe7 12945
85bfb75e
JM
12946.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
12947maybe-maintainer-clean-mpc:
12948@if mpc
12949maybe-maintainer-clean-mpc: maintainer-clean-mpc
53c7ffe7 12950
85bfb75e
JM
12951maintainer-clean-mpc:
12952 @[ -f ./mpc/Makefile ] || exit 0; \
53c7ffe7
GK
12953 r=`${PWD_COMMAND}`; export r; \
12954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
12955 $(HOST_EXPORTS) \
12956 for flag in $(EXTRA_HOST_FLAGS) ; do \
12957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12958 done; \
85bfb75e
JM
12959 echo "Doing maintainer-clean in mpc" ; \
12960 (cd $(HOST_SUBDIR)/mpc && \
53c7ffe7
GK
12961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12963 "RANLIB=$${RANLIB}" \
901119ae 12964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
53c7ffe7
GK
12965 maintainer-clean) \
12966 || exit 1
12967
85bfb75e 12968@endif mpc
53c7ffe7
GK
12969
12970
25b42232 12971
85bfb75e
JM
12972.PHONY: configure-ppl maybe-configure-ppl
12973maybe-configure-ppl:
3ff3adad 12974@if gcc-bootstrap
85bfb75e 12975configure-ppl: stage_current
3ff3adad 12976@endif gcc-bootstrap
85bfb75e
JM
12977@if ppl
12978maybe-configure-ppl: configure-ppl
12979configure-ppl:
cc11cc9b 12980 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
12982 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
12983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
f61428ed 12984 $(HOST_EXPORTS) \
85bfb75e
JM
12985 echo Configuring in $(HOST_SUBDIR)/ppl; \
12986 cd "$(HOST_SUBDIR)/ppl" || exit 1; \
295f4e42 12987 case $(srcdir) in \
215c351a 12988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 12989 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
215c351a 12990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12991 esac; \
85bfb75e
JM
12992 srcdiroption="--srcdir=$${topdir}/ppl"; \
12993 libsrcdir="$$s/ppl"; \
295f4e42 12994 $(SHELL) $${libsrcdir}/configure \
e69bf64b 12995 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 12996 --target=${target_alias} $${srcdiroption} --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/ \
1358ccea 12997 || exit 1
85bfb75e 12998@endif ppl
1358ccea 12999
25b42232
PB
13000
13001
85bfb75e
JM
13002.PHONY: configure-stage1-ppl maybe-configure-stage1-ppl
13003maybe-configure-stage1-ppl:
13004@if ppl-bootstrap
13005maybe-configure-stage1-ppl: configure-stage1-ppl
13006configure-stage1-ppl:
13007 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
13009 @r=`${PWD_COMMAND}`; export r; \
13010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13011 TFLAGS="$(STAGE1_TFLAGS)"; \
13012 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13013 $(HOST_EXPORTS) \
13014 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13015 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13016 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
13017 echo Configuring stage 1 in $(HOST_SUBDIR)/ppl ; \
13018 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13019 cd $(HOST_SUBDIR)/ppl || exit 1; \
13020 case $(srcdir) in \
13021 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13022 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13023 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13024 esac; \
13025 srcdiroption="--srcdir=$${topdir}/ppl"; \
13026 libsrcdir="$$s/ppl"; \
13027 $(SHELL) $${libsrcdir}/configure \
13028 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13029 --target=${target_alias} $${srcdiroption} \
13030 $(STAGE1_CONFIGURE_FLAGS) \
13031 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13032@endif ppl-bootstrap
ce406537 13033
85bfb75e
JM
13034.PHONY: configure-stage2-ppl maybe-configure-stage2-ppl
13035maybe-configure-stage2-ppl:
13036@if ppl-bootstrap
13037maybe-configure-stage2-ppl: configure-stage2-ppl
13038configure-stage2-ppl:
13039 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13040 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
13041 @r=`${PWD_COMMAND}`; export r; \
13042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13043 TFLAGS="$(STAGE2_TFLAGS)"; \
13044 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13045 $(HOST_EXPORTS) \
13046 $(POSTSTAGE1_HOST_EXPORTS) \
13047 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13048 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13049 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
13050 echo Configuring stage 2 in $(HOST_SUBDIR)/ppl ; \
13051 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13052 cd $(HOST_SUBDIR)/ppl || exit 1; \
13053 case $(srcdir) in \
13054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13055 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13057 esac; \
13058 srcdiroption="--srcdir=$${topdir}/ppl"; \
13059 libsrcdir="$$s/ppl"; \
13060 $(SHELL) $${libsrcdir}/configure \
13061 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13062 --target=${target_alias} $${srcdiroption} \
13063 --with-build-libsubdir=$(HOST_SUBDIR) \
13064 $(STAGE2_CONFIGURE_FLAGS) \
13065 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13066@endif ppl-bootstrap
ce406537 13067
85bfb75e
JM
13068.PHONY: configure-stage3-ppl maybe-configure-stage3-ppl
13069maybe-configure-stage3-ppl:
13070@if ppl-bootstrap
13071maybe-configure-stage3-ppl: configure-stage3-ppl
13072configure-stage3-ppl:
13073 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13074 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
295f4e42 13075 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
13077 TFLAGS="$(STAGE3_TFLAGS)"; \
13078 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13079 $(HOST_EXPORTS) \
13080 $(POSTSTAGE1_HOST_EXPORTS) \
13081 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13082 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13083 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
13084 echo Configuring stage 3 in $(HOST_SUBDIR)/ppl ; \
13085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13086 cd $(HOST_SUBDIR)/ppl || exit 1; \
13087 case $(srcdir) in \
13088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13089 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13091 esac; \
13092 srcdiroption="--srcdir=$${topdir}/ppl"; \
13093 libsrcdir="$$s/ppl"; \
13094 $(SHELL) $${libsrcdir}/configure \
13095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13096 --target=${target_alias} $${srcdiroption} \
13097 --with-build-libsubdir=$(HOST_SUBDIR) \
13098 $(STAGE3_CONFIGURE_FLAGS) \
13099 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13100@endif ppl-bootstrap
295f4e42 13101
85bfb75e
JM
13102.PHONY: configure-stage4-ppl maybe-configure-stage4-ppl
13103maybe-configure-stage4-ppl:
13104@if ppl-bootstrap
13105maybe-configure-stage4-ppl: configure-stage4-ppl
13106configure-stage4-ppl:
13107 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13108 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
13109 @r=`${PWD_COMMAND}`; export r; \
13110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13111 TFLAGS="$(STAGE4_TFLAGS)"; \
13112 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13113 $(HOST_EXPORTS) \
13114 $(POSTSTAGE1_HOST_EXPORTS) \
13115 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13116 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13117 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
13118 echo Configuring stage 4 in $(HOST_SUBDIR)/ppl ; \
13119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13120 cd $(HOST_SUBDIR)/ppl || exit 1; \
13121 case $(srcdir) in \
13122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13123 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13125 esac; \
13126 srcdiroption="--srcdir=$${topdir}/ppl"; \
13127 libsrcdir="$$s/ppl"; \
13128 $(SHELL) $${libsrcdir}/configure \
13129 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13130 --target=${target_alias} $${srcdiroption} \
13131 --with-build-libsubdir=$(HOST_SUBDIR) \
13132 $(STAGE4_CONFIGURE_FLAGS) \
13133 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13134@endif ppl-bootstrap
25b42232 13135
85bfb75e
JM
13136.PHONY: configure-stageprofile-ppl maybe-configure-stageprofile-ppl
13137maybe-configure-stageprofile-ppl:
13138@if ppl-bootstrap
13139maybe-configure-stageprofile-ppl: configure-stageprofile-ppl
13140configure-stageprofile-ppl:
13141 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13142 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
13143 @r=`${PWD_COMMAND}`; export r; \
13144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13145 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13146 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13147 $(HOST_EXPORTS) \
13148 $(POSTSTAGE1_HOST_EXPORTS) \
13149 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13150 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13151 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
13152 echo Configuring stage profile in $(HOST_SUBDIR)/ppl ; \
13153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13154 cd $(HOST_SUBDIR)/ppl || exit 1; \
13155 case $(srcdir) in \
13156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13157 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13159 esac; \
13160 srcdiroption="--srcdir=$${topdir}/ppl"; \
13161 libsrcdir="$$s/ppl"; \
13162 $(SHELL) $${libsrcdir}/configure \
13163 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13164 --target=${target_alias} $${srcdiroption} \
13165 --with-build-libsubdir=$(HOST_SUBDIR) \
13166 $(STAGEprofile_CONFIGURE_FLAGS) \
13167 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13168@endif ppl-bootstrap
ce406537 13169
85bfb75e
JM
13170.PHONY: configure-stagefeedback-ppl maybe-configure-stagefeedback-ppl
13171maybe-configure-stagefeedback-ppl:
13172@if ppl-bootstrap
13173maybe-configure-stagefeedback-ppl: configure-stagefeedback-ppl
13174configure-stagefeedback-ppl:
13175 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13176 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
13177 @r=`${PWD_COMMAND}`; export r; \
13178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13179 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13180 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
13181 $(HOST_EXPORTS) \
13182 $(POSTSTAGE1_HOST_EXPORTS) \
13183 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13184 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13185 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
13186 echo Configuring stage feedback in $(HOST_SUBDIR)/ppl ; \
13187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
13188 cd $(HOST_SUBDIR)/ppl || exit 1; \
13189 case $(srcdir) in \
13190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13191 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
13192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13193 esac; \
13194 srcdiroption="--srcdir=$${topdir}/ppl"; \
13195 libsrcdir="$$s/ppl"; \
13196 $(SHELL) $${libsrcdir}/configure \
13197 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13198 --target=${target_alias} $${srcdiroption} \
13199 --with-build-libsubdir=$(HOST_SUBDIR) \
13200 $(STAGEfeedback_CONFIGURE_FLAGS) \
13201 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
13202@endif ppl-bootstrap
ce406537 13203
295f4e42 13204
1358ccea
NN
13205
13206
1358ccea 13207
85bfb75e
JM
13208.PHONY: all-ppl maybe-all-ppl
13209maybe-all-ppl:
13210@if gcc-bootstrap
13211all-ppl: stage_current
13212@endif gcc-bootstrap
13213@if ppl
13214TARGET-ppl=all
13215maybe-all-ppl: all-ppl
13216all-ppl: configure-ppl
295f4e42 13217 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
13219 $(HOST_EXPORTS) \
13220 (cd $(HOST_SUBDIR)/ppl && \
13221 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
13222 $(TARGET-ppl))
13223@endif ppl
1358ccea
NN
13224
13225
455c8f48 13226
85bfb75e
JM
13227.PHONY: all-stage1-ppl maybe-all-stage1-ppl
13228.PHONY: clean-stage1-ppl maybe-clean-stage1-ppl
13229maybe-all-stage1-ppl:
13230maybe-clean-stage1-ppl:
13231@if ppl-bootstrap
13232maybe-all-stage1-ppl: all-stage1-ppl
13233all-stage1: all-stage1-ppl
13234TARGET-stage1-ppl = $(TARGET-ppl)
13235all-stage1-ppl: configure-stage1-ppl
13236 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
455c8f48
RW
13237 @r=`${PWD_COMMAND}`; export r; \
13238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
13239 TFLAGS="$(STAGE1_TFLAGS)"; \
13240 $(HOST_EXPORTS) \
13241 cd $(HOST_SUBDIR)/ppl && \
13242 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13243 CFLAGS="$(STAGE1_CFLAGS)" \
13244 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13245 LIBCFLAGS="$(LIBCFLAGS)" \
13246 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13247 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13248 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13249 $(EXTRA_HOST_FLAGS) \
13250 TFLAGS="$(STAGE1_TFLAGS)" \
13251 $(TARGET-stage1-ppl)
455c8f48 13252
85bfb75e
JM
13253maybe-clean-stage1-ppl: clean-stage1-ppl
13254clean-stage1: clean-stage1-ppl
13255clean-stage1-ppl:
13256 @if [ $(current_stage) = stage1 ]; then \
13257 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13258 else \
13259 [ -f $(HOST_SUBDIR)/stage1-ppl/Makefile ] || exit 0; \
13260 $(MAKE) stage1-start; \
13261 fi; \
13262 cd $(HOST_SUBDIR)/ppl && \
13263 $(MAKE) $(EXTRA_HOST_FLAGS) \
13264 clean
13265@endif ppl-bootstrap
1358ccea 13266
295f4e42 13267
85bfb75e
JM
13268.PHONY: all-stage2-ppl maybe-all-stage2-ppl
13269.PHONY: clean-stage2-ppl maybe-clean-stage2-ppl
13270maybe-all-stage2-ppl:
13271maybe-clean-stage2-ppl:
13272@if ppl-bootstrap
13273maybe-all-stage2-ppl: all-stage2-ppl
13274all-stage2: all-stage2-ppl
13275TARGET-stage2-ppl = $(TARGET-ppl)
13276all-stage2-ppl: configure-stage2-ppl
13277 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13278 @r=`${PWD_COMMAND}`; export r; \
13279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13280 TFLAGS="$(STAGE2_TFLAGS)"; \
13281 $(HOST_EXPORTS) \
13282 $(POSTSTAGE1_HOST_EXPORTS) \
13283 cd $(HOST_SUBDIR)/ppl && \
13284 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13285 CFLAGS="$(STAGE2_CFLAGS)" \
13286 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13287 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13288 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13289 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13290 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13291 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13292 TFLAGS="$(STAGE2_TFLAGS)" \
13293 $(TARGET-stage2-ppl)
13294
13295maybe-clean-stage2-ppl: clean-stage2-ppl
13296clean-stage2: clean-stage2-ppl
13297clean-stage2-ppl:
13298 @if [ $(current_stage) = stage2 ]; then \
13299 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13300 else \
13301 [ -f $(HOST_SUBDIR)/stage2-ppl/Makefile ] || exit 0; \
13302 $(MAKE) stage2-start; \
13303 fi; \
13304 cd $(HOST_SUBDIR)/ppl && \
13305 $(MAKE) $(EXTRA_HOST_FLAGS) \
13306 $(POSTSTAGE1_FLAGS_TO_PASS) \
13307 clean
13308@endif ppl-bootstrap
13309
13310
13311.PHONY: all-stage3-ppl maybe-all-stage3-ppl
13312.PHONY: clean-stage3-ppl maybe-clean-stage3-ppl
13313maybe-all-stage3-ppl:
13314maybe-clean-stage3-ppl:
13315@if ppl-bootstrap
13316maybe-all-stage3-ppl: all-stage3-ppl
13317all-stage3: all-stage3-ppl
13318TARGET-stage3-ppl = $(TARGET-ppl)
13319all-stage3-ppl: configure-stage3-ppl
13320 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13321 @r=`${PWD_COMMAND}`; export r; \
13322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13323 TFLAGS="$(STAGE3_TFLAGS)"; \
13324 $(HOST_EXPORTS) \
13325 $(POSTSTAGE1_HOST_EXPORTS) \
13326 cd $(HOST_SUBDIR)/ppl && \
13327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13328 CFLAGS="$(STAGE3_CFLAGS)" \
13329 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13330 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13335 TFLAGS="$(STAGE3_TFLAGS)" \
13336 $(TARGET-stage3-ppl)
13337
13338maybe-clean-stage3-ppl: clean-stage3-ppl
13339clean-stage3: clean-stage3-ppl
13340clean-stage3-ppl:
13341 @if [ $(current_stage) = stage3 ]; then \
13342 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13343 else \
13344 [ -f $(HOST_SUBDIR)/stage3-ppl/Makefile ] || exit 0; \
13345 $(MAKE) stage3-start; \
13346 fi; \
13347 cd $(HOST_SUBDIR)/ppl && \
13348 $(MAKE) $(EXTRA_HOST_FLAGS) \
13349 $(POSTSTAGE1_FLAGS_TO_PASS) \
13350 clean
13351@endif ppl-bootstrap
13352
13353
13354.PHONY: all-stage4-ppl maybe-all-stage4-ppl
13355.PHONY: clean-stage4-ppl maybe-clean-stage4-ppl
13356maybe-all-stage4-ppl:
13357maybe-clean-stage4-ppl:
13358@if ppl-bootstrap
13359maybe-all-stage4-ppl: all-stage4-ppl
13360all-stage4: all-stage4-ppl
13361TARGET-stage4-ppl = $(TARGET-ppl)
13362all-stage4-ppl: configure-stage4-ppl
13363 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13364 @r=`${PWD_COMMAND}`; export r; \
13365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13366 TFLAGS="$(STAGE4_TFLAGS)"; \
13367 $(HOST_EXPORTS) \
13368 $(POSTSTAGE1_HOST_EXPORTS) \
13369 cd $(HOST_SUBDIR)/ppl && \
13370 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13371 CFLAGS="$(STAGE4_CFLAGS)" \
13372 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13373 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13374 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13375 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13376 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13377 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13378 TFLAGS="$(STAGE4_TFLAGS)" \
13379 $(TARGET-stage4-ppl)
13380
13381maybe-clean-stage4-ppl: clean-stage4-ppl
13382clean-stage4: clean-stage4-ppl
13383clean-stage4-ppl:
13384 @if [ $(current_stage) = stage4 ]; then \
13385 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13386 else \
13387 [ -f $(HOST_SUBDIR)/stage4-ppl/Makefile ] || exit 0; \
13388 $(MAKE) stage4-start; \
13389 fi; \
13390 cd $(HOST_SUBDIR)/ppl && \
13391 $(MAKE) $(EXTRA_HOST_FLAGS) \
13392 $(POSTSTAGE1_FLAGS_TO_PASS) \
13393 clean
13394@endif ppl-bootstrap
13395
13396
13397.PHONY: all-stageprofile-ppl maybe-all-stageprofile-ppl
13398.PHONY: clean-stageprofile-ppl maybe-clean-stageprofile-ppl
13399maybe-all-stageprofile-ppl:
13400maybe-clean-stageprofile-ppl:
13401@if ppl-bootstrap
13402maybe-all-stageprofile-ppl: all-stageprofile-ppl
13403all-stageprofile: all-stageprofile-ppl
13404TARGET-stageprofile-ppl = $(TARGET-ppl)
13405all-stageprofile-ppl: configure-stageprofile-ppl
13406 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13407 @r=`${PWD_COMMAND}`; export r; \
13408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13409 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13410 $(HOST_EXPORTS) \
13411 $(POSTSTAGE1_HOST_EXPORTS) \
13412 cd $(HOST_SUBDIR)/ppl && \
13413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13414 CFLAGS="$(STAGEprofile_CFLAGS)" \
13415 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13416 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13417 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13418 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13419 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13420 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13421 TFLAGS="$(STAGEprofile_TFLAGS)" \
13422 $(TARGET-stageprofile-ppl)
13423
13424maybe-clean-stageprofile-ppl: clean-stageprofile-ppl
13425clean-stageprofile: clean-stageprofile-ppl
13426clean-stageprofile-ppl:
13427 @if [ $(current_stage) = stageprofile ]; then \
13428 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13429 else \
13430 [ -f $(HOST_SUBDIR)/stageprofile-ppl/Makefile ] || exit 0; \
13431 $(MAKE) stageprofile-start; \
13432 fi; \
13433 cd $(HOST_SUBDIR)/ppl && \
13434 $(MAKE) $(EXTRA_HOST_FLAGS) \
13435 $(POSTSTAGE1_FLAGS_TO_PASS) \
13436 clean
13437@endif ppl-bootstrap
13438
13439
13440.PHONY: all-stagefeedback-ppl maybe-all-stagefeedback-ppl
13441.PHONY: clean-stagefeedback-ppl maybe-clean-stagefeedback-ppl
13442maybe-all-stagefeedback-ppl:
13443maybe-clean-stagefeedback-ppl:
13444@if ppl-bootstrap
13445maybe-all-stagefeedback-ppl: all-stagefeedback-ppl
13446all-stagefeedback: all-stagefeedback-ppl
13447TARGET-stagefeedback-ppl = $(TARGET-ppl)
13448all-stagefeedback-ppl: configure-stagefeedback-ppl
13449 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13450 @r=`${PWD_COMMAND}`; export r; \
13451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13452 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13453 $(HOST_EXPORTS) \
13454 $(POSTSTAGE1_HOST_EXPORTS) \
13455 cd $(HOST_SUBDIR)/ppl && \
13456 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13457 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13458 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13459 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13460 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13461 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13462 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13463 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13464 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13465 $(TARGET-stagefeedback-ppl)
13466
13467maybe-clean-stagefeedback-ppl: clean-stagefeedback-ppl
13468clean-stagefeedback: clean-stagefeedback-ppl
13469clean-stagefeedback-ppl:
13470 @if [ $(current_stage) = stagefeedback ]; then \
13471 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
13472 else \
13473 [ -f $(HOST_SUBDIR)/stagefeedback-ppl/Makefile ] || exit 0; \
13474 $(MAKE) stagefeedback-start; \
13475 fi; \
13476 cd $(HOST_SUBDIR)/ppl && \
13477 $(MAKE) $(EXTRA_HOST_FLAGS) \
13478 $(POSTSTAGE1_FLAGS_TO_PASS) \
13479 clean
13480@endif ppl-bootstrap
13481
13482
13483
13484
13485
13486.PHONY: check-ppl maybe-check-ppl
13487maybe-check-ppl:
13488@if ppl
13489maybe-check-ppl: check-ppl
13490
13491check-ppl:
f41d6665 13492 @: $(MAKE); $(unstage)
85bfb75e
JM
13493 @r=`${PWD_COMMAND}`; export r; \
13494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13495 $(HOST_EXPORTS) \
13496 (cd $(HOST_SUBDIR)/ppl && \
13497 $(MAKE) $(FLAGS_TO_PASS) check)
13498
13499@endif ppl
13500
13501.PHONY: install-ppl maybe-install-ppl
13502maybe-install-ppl:
13503@if ppl
13504maybe-install-ppl: install-ppl
13505
13506install-ppl:
13507
13508@endif ppl
13509
13510.PHONY: install-strip-ppl maybe-install-strip-ppl
13511maybe-install-strip-ppl:
13512@if ppl
13513maybe-install-strip-ppl: install-strip-ppl
13514
13515install-strip-ppl:
13516
13517@endif ppl
13518
13519# Other targets (info, dvi, pdf, etc.)
13520
13521.PHONY: maybe-info-ppl info-ppl
13522maybe-info-ppl:
13523@if ppl
13524maybe-info-ppl: info-ppl
13525
13526info-ppl: \
13527 configure-ppl
13528 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13529 r=`${PWD_COMMAND}`; export r; \
13530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13531 $(HOST_EXPORTS) \
d32ab992 13532 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13534 done; \
85bfb75e
JM
13535 echo "Doing info in ppl" ; \
13536 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13539 "RANLIB=$${RANLIB}" \
901119ae 13540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13541 info) \
1358ccea
NN
13542 || exit 1
13543
85bfb75e 13544@endif ppl
1358ccea 13545
85bfb75e
JM
13546.PHONY: maybe-dvi-ppl dvi-ppl
13547maybe-dvi-ppl:
13548@if ppl
13549maybe-dvi-ppl: dvi-ppl
1358ccea 13550
85bfb75e
JM
13551dvi-ppl: \
13552 configure-ppl
13553 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13554 r=`${PWD_COMMAND}`; export r; \
13555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13556 $(HOST_EXPORTS) \
d32ab992 13557 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13559 done; \
85bfb75e
JM
13560 echo "Doing dvi in ppl" ; \
13561 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13564 "RANLIB=$${RANLIB}" \
901119ae 13565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13566 dvi) \
1358ccea
NN
13567 || exit 1
13568
85bfb75e 13569@endif ppl
1358ccea 13570
85bfb75e
JM
13571.PHONY: maybe-pdf-ppl pdf-ppl
13572maybe-pdf-ppl:
13573@if ppl
13574maybe-pdf-ppl: pdf-ppl
b5422ad7 13575
85bfb75e
JM
13576pdf-ppl: \
13577 configure-ppl
13578 @[ -f ./ppl/Makefile ] || exit 0; \
b5422ad7
BM
13579 r=`${PWD_COMMAND}`; export r; \
13580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13581 $(HOST_EXPORTS) \
13582 for flag in $(EXTRA_HOST_FLAGS) ; do \
13583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13584 done; \
85bfb75e
JM
13585 echo "Doing pdf in ppl" ; \
13586 (cd $(HOST_SUBDIR)/ppl && \
b5422ad7
BM
13587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13589 "RANLIB=$${RANLIB}" \
901119ae 13590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
13591 pdf) \
13592 || exit 1
13593
85bfb75e 13594@endif ppl
b5422ad7 13595
85bfb75e
JM
13596.PHONY: maybe-html-ppl html-ppl
13597maybe-html-ppl:
13598@if ppl
13599maybe-html-ppl: html-ppl
f87a2b2e 13600
85bfb75e
JM
13601html-ppl: \
13602 configure-ppl
13603 @[ -f ./ppl/Makefile ] || exit 0; \
f87a2b2e
MS
13604 r=`${PWD_COMMAND}`; export r; \
13605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13606 $(HOST_EXPORTS) \
13607 for flag in $(EXTRA_HOST_FLAGS) ; do \
13608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13609 done; \
85bfb75e
JM
13610 echo "Doing html in ppl" ; \
13611 (cd $(HOST_SUBDIR)/ppl && \
f87a2b2e
MS
13612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13614 "RANLIB=$${RANLIB}" \
901119ae 13615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
13616 html) \
13617 || exit 1
13618
85bfb75e 13619@endif ppl
f87a2b2e 13620
85bfb75e
JM
13621.PHONY: maybe-TAGS-ppl TAGS-ppl
13622maybe-TAGS-ppl:
13623@if ppl
13624maybe-TAGS-ppl: TAGS-ppl
1358ccea 13625
85bfb75e
JM
13626TAGS-ppl: \
13627 configure-ppl
13628 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13629 r=`${PWD_COMMAND}`; export r; \
13630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13631 $(HOST_EXPORTS) \
d32ab992 13632 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13634 done; \
85bfb75e
JM
13635 echo "Doing TAGS in ppl" ; \
13636 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13639 "RANLIB=$${RANLIB}" \
901119ae 13640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13641 TAGS) \
1358ccea
NN
13642 || exit 1
13643
85bfb75e 13644@endif ppl
1358ccea 13645
85bfb75e
JM
13646.PHONY: maybe-install-info-ppl install-info-ppl
13647maybe-install-info-ppl:
13648@if ppl
13649maybe-install-info-ppl: install-info-ppl
1358ccea 13650
85bfb75e
JM
13651install-info-ppl: \
13652 configure-ppl \
13653 info-ppl
13654 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13655 r=`${PWD_COMMAND}`; export r; \
13656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13657 $(HOST_EXPORTS) \
d32ab992 13658 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13660 done; \
85bfb75e
JM
13661 echo "Doing install-info in ppl" ; \
13662 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13665 "RANLIB=$${RANLIB}" \
901119ae 13666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13667 install-info) \
1358ccea
NN
13668 || exit 1
13669
85bfb75e 13670@endif ppl
1358ccea 13671
85bfb75e
JM
13672.PHONY: maybe-install-pdf-ppl install-pdf-ppl
13673maybe-install-pdf-ppl:
13674@if ppl
13675maybe-install-pdf-ppl: install-pdf-ppl
9c4d2493 13676
85bfb75e
JM
13677install-pdf-ppl: \
13678 configure-ppl \
13679 pdf-ppl
13680 @[ -f ./ppl/Makefile ] || exit 0; \
9c4d2493
BM
13681 r=`${PWD_COMMAND}`; export r; \
13682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13683 $(HOST_EXPORTS) \
13684 for flag in $(EXTRA_HOST_FLAGS) ; do \
13685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13686 done; \
85bfb75e
JM
13687 echo "Doing install-pdf in ppl" ; \
13688 (cd $(HOST_SUBDIR)/ppl && \
9c4d2493
BM
13689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13691 "RANLIB=$${RANLIB}" \
901119ae 13692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
13693 install-pdf) \
13694 || exit 1
13695
85bfb75e 13696@endif ppl
9c4d2493 13697
85bfb75e
JM
13698.PHONY: maybe-install-html-ppl install-html-ppl
13699maybe-install-html-ppl:
13700@if ppl
13701maybe-install-html-ppl: install-html-ppl
65d6e994 13702
85bfb75e
JM
13703install-html-ppl: \
13704 configure-ppl \
13705 html-ppl
13706 @[ -f ./ppl/Makefile ] || exit 0; \
65d6e994
CD
13707 r=`${PWD_COMMAND}`; export r; \
13708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13709 $(HOST_EXPORTS) \
13710 for flag in $(EXTRA_HOST_FLAGS) ; do \
13711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13712 done; \
85bfb75e
JM
13713 echo "Doing install-html in ppl" ; \
13714 (cd $(HOST_SUBDIR)/ppl && \
65d6e994
CD
13715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13717 "RANLIB=$${RANLIB}" \
901119ae 13718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
13719 install-html) \
13720 || exit 1
13721
85bfb75e 13722@endif ppl
65d6e994 13723
85bfb75e
JM
13724.PHONY: maybe-installcheck-ppl installcheck-ppl
13725maybe-installcheck-ppl:
13726@if ppl
13727maybe-installcheck-ppl: installcheck-ppl
1358ccea 13728
85bfb75e
JM
13729installcheck-ppl: \
13730 configure-ppl
13731 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13732 r=`${PWD_COMMAND}`; export r; \
13733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13734 $(HOST_EXPORTS) \
d32ab992 13735 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13737 done; \
85bfb75e
JM
13738 echo "Doing installcheck in ppl" ; \
13739 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13742 "RANLIB=$${RANLIB}" \
901119ae 13743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13744 installcheck) \
1358ccea
NN
13745 || exit 1
13746
85bfb75e 13747@endif ppl
1358ccea 13748
85bfb75e
JM
13749.PHONY: maybe-mostlyclean-ppl mostlyclean-ppl
13750maybe-mostlyclean-ppl:
13751@if ppl
13752maybe-mostlyclean-ppl: mostlyclean-ppl
1358ccea 13753
85bfb75e
JM
13754mostlyclean-ppl:
13755 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13756 r=`${PWD_COMMAND}`; export r; \
13757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13758 $(HOST_EXPORTS) \
d32ab992 13759 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13761 done; \
85bfb75e
JM
13762 echo "Doing mostlyclean in ppl" ; \
13763 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13766 "RANLIB=$${RANLIB}" \
901119ae 13767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13768 mostlyclean) \
1358ccea
NN
13769 || exit 1
13770
85bfb75e 13771@endif ppl
1358ccea 13772
85bfb75e
JM
13773.PHONY: maybe-clean-ppl clean-ppl
13774maybe-clean-ppl:
13775@if ppl
13776maybe-clean-ppl: clean-ppl
1358ccea 13777
85bfb75e
JM
13778clean-ppl:
13779 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13780 r=`${PWD_COMMAND}`; export r; \
13781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13782 $(HOST_EXPORTS) \
d32ab992 13783 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13785 done; \
85bfb75e
JM
13786 echo "Doing clean in ppl" ; \
13787 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13790 "RANLIB=$${RANLIB}" \
901119ae 13791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13792 clean) \
1358ccea
NN
13793 || exit 1
13794
85bfb75e 13795@endif ppl
1358ccea 13796
85bfb75e
JM
13797.PHONY: maybe-distclean-ppl distclean-ppl
13798maybe-distclean-ppl:
13799@if ppl
13800maybe-distclean-ppl: distclean-ppl
1358ccea 13801
85bfb75e
JM
13802distclean-ppl:
13803 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13804 r=`${PWD_COMMAND}`; export r; \
13805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13806 $(HOST_EXPORTS) \
d32ab992 13807 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13809 done; \
85bfb75e
JM
13810 echo "Doing distclean in ppl" ; \
13811 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13814 "RANLIB=$${RANLIB}" \
901119ae 13815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13816 distclean) \
1358ccea
NN
13817 || exit 1
13818
85bfb75e 13819@endif ppl
1358ccea 13820
85bfb75e
JM
13821.PHONY: maybe-maintainer-clean-ppl maintainer-clean-ppl
13822maybe-maintainer-clean-ppl:
13823@if ppl
13824maybe-maintainer-clean-ppl: maintainer-clean-ppl
1358ccea 13825
85bfb75e
JM
13826maintainer-clean-ppl:
13827 @[ -f ./ppl/Makefile ] || exit 0; \
8c90b13a
L
13828 r=`${PWD_COMMAND}`; export r; \
13829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13830 $(HOST_EXPORTS) \
d32ab992 13831 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13833 done; \
85bfb75e
JM
13834 echo "Doing maintainer-clean in ppl" ; \
13835 (cd $(HOST_SUBDIR)/ppl && \
1358ccea
NN
13836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13838 "RANLIB=$${RANLIB}" \
901119ae 13839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 13840 maintainer-clean) \
1358ccea
NN
13841 || exit 1
13842
85bfb75e 13843@endif ppl
1358ccea 13844
1358ccea 13845
25b42232 13846
85bfb75e
JM
13847.PHONY: configure-cloog maybe-configure-cloog
13848maybe-configure-cloog:
3ff3adad 13849@if gcc-bootstrap
85bfb75e 13850configure-cloog: stage_current
3ff3adad 13851@endif gcc-bootstrap
85bfb75e
JM
13852@if cloog
13853maybe-configure-cloog: configure-cloog
13854configure-cloog:
cc11cc9b
PB
13855 @r=`${PWD_COMMAND}`; export r; \
13856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
13857 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
13858 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13859 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
13860 echo Configuring in $(HOST_SUBDIR)/cloog; \
13861 cd "$(HOST_SUBDIR)/cloog" || exit 1; \
295f4e42 13862 case $(srcdir) in \
215c351a 13863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 13864 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
215c351a 13865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13866 esac; \
85bfb75e
JM
13867 srcdiroption="--srcdir=$${topdir}/cloog"; \
13868 libsrcdir="$$s/cloog"; \
295f4e42 13869 $(SHELL) $${libsrcdir}/configure \
e69bf64b 13870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 13871 --target=${target_alias} $${srcdiroption} --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl \
1358ccea 13872 || exit 1
85bfb75e 13873@endif cloog
1358ccea 13874
25b42232
PB
13875
13876
85bfb75e
JM
13877.PHONY: configure-stage1-cloog maybe-configure-stage1-cloog
13878maybe-configure-stage1-cloog:
13879@if cloog-bootstrap
13880maybe-configure-stage1-cloog: configure-stage1-cloog
13881configure-stage1-cloog:
cc11cc9b 13882 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 13883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
13884 @r=`${PWD_COMMAND}`; export r; \
13885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 13886 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 13887 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
4a4a4e99 13888 $(HOST_EXPORTS) \
342b9200 13889 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed 13890 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
13891 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
13892 echo Configuring stage 1 in $(HOST_SUBDIR)/cloog ; \
13893 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13894 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
13895 case $(srcdir) in \
13896 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 13897 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
13898 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13899 esac; \
85bfb75e
JM
13900 srcdiroption="--srcdir=$${topdir}/cloog"; \
13901 libsrcdir="$$s/cloog"; \
ce406537 13902 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
13903 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13904 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
13905 $(STAGE1_CONFIGURE_FLAGS) \
13906 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
13907@endif cloog-bootstrap
ce406537 13908
85bfb75e
JM
13909.PHONY: configure-stage2-cloog maybe-configure-stage2-cloog
13910maybe-configure-stage2-cloog:
13911@if cloog-bootstrap
13912maybe-configure-stage2-cloog: configure-stage2-cloog
13913configure-stage2-cloog:
cc11cc9b 13914 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 13915 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
13916 @r=`${PWD_COMMAND}`; export r; \
13917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 13918 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 13919 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
ce406537 13920 $(HOST_EXPORTS) \
4a4a4e99 13921 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 13922 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed 13923 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
13924 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
13925 echo Configuring stage 2 in $(HOST_SUBDIR)/cloog ; \
13926 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13927 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
13928 case $(srcdir) in \
13929 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 13930 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
13931 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13932 esac; \
85bfb75e
JM
13933 srcdiroption="--srcdir=$${topdir}/cloog"; \
13934 libsrcdir="$$s/cloog"; \
ce406537 13935 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
13936 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13937 --target=${target_alias} $${srcdiroption} \
57255173 13938 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
13939 $(STAGE2_CONFIGURE_FLAGS) \
13940 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
13941@endif cloog-bootstrap
bb286d71 13942
85bfb75e
JM
13943.PHONY: configure-stage3-cloog maybe-configure-stage3-cloog
13944maybe-configure-stage3-cloog:
13945@if cloog-bootstrap
13946maybe-configure-stage3-cloog: configure-stage3-cloog
13947configure-stage3-cloog:
cc11cc9b 13948 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 13949 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
13950 @r=`${PWD_COMMAND}`; export r; \
13951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 13952 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 13953 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
ce406537 13954 $(HOST_EXPORTS) \
4a4a4e99 13955 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 13956 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed 13957 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
13958 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
13959 echo Configuring stage 3 in $(HOST_SUBDIR)/cloog ; \
13960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13961 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
13962 case $(srcdir) in \
13963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 13964 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
13965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13966 esac; \
85bfb75e
JM
13967 srcdiroption="--srcdir=$${topdir}/cloog"; \
13968 libsrcdir="$$s/cloog"; \
ce406537 13969 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
13970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13971 --target=${target_alias} $${srcdiroption} \
57255173 13972 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
13973 $(STAGE3_CONFIGURE_FLAGS) \
13974 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
13975@endif cloog-bootstrap
bb286d71 13976
85bfb75e
JM
13977.PHONY: configure-stage4-cloog maybe-configure-stage4-cloog
13978maybe-configure-stage4-cloog:
13979@if cloog-bootstrap
13980maybe-configure-stage4-cloog: configure-stage4-cloog
13981configure-stage4-cloog:
cc11cc9b 13982 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 13983 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
13984 @r=`${PWD_COMMAND}`; export r; \
13985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 13986 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 13987 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
ce406537 13988 $(HOST_EXPORTS) \
4a4a4e99 13989 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 13990 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed 13991 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
13992 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
13993 echo Configuring stage 4 in $(HOST_SUBDIR)/cloog ; \
13994 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13995 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
13996 case $(srcdir) in \
13997 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 13998 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
13999 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14000 esac; \
85bfb75e
JM
14001 srcdiroption="--srcdir=$${topdir}/cloog"; \
14002 libsrcdir="$$s/cloog"; \
ce406537 14003 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14004 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14005 --target=${target_alias} $${srcdiroption} \
57255173 14006 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14007 $(STAGE4_CONFIGURE_FLAGS) \
14008 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
14009@endif cloog-bootstrap
ce406537 14010
85bfb75e
JM
14011.PHONY: configure-stageprofile-cloog maybe-configure-stageprofile-cloog
14012maybe-configure-stageprofile-cloog:
14013@if cloog-bootstrap
14014maybe-configure-stageprofile-cloog: configure-stageprofile-cloog
14015configure-stageprofile-cloog:
cc11cc9b 14016 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 14017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
14018 @r=`${PWD_COMMAND}`; export r; \
14019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14020 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 14021 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
ce406537 14022 $(HOST_EXPORTS) \
4a4a4e99
AO
14023 $(POSTSTAGE1_HOST_EXPORTS) \
14024 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed 14025 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
14026 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14027 echo Configuring stage profile in $(HOST_SUBDIR)/cloog ; \
14028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
14029 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
14030 case $(srcdir) in \
14031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14032 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
14033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14034 esac; \
85bfb75e
JM
14035 srcdiroption="--srcdir=$${topdir}/cloog"; \
14036 libsrcdir="$$s/cloog"; \
ce406537 14037 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14039 --target=${target_alias} $${srcdiroption} \
57255173 14040 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14041 $(STAGEprofile_CONFIGURE_FLAGS) \
14042 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
14043@endif cloog-bootstrap
ce406537 14044
85bfb75e
JM
14045.PHONY: configure-stagefeedback-cloog maybe-configure-stagefeedback-cloog
14046maybe-configure-stagefeedback-cloog:
14047@if cloog-bootstrap
14048maybe-configure-stagefeedback-cloog: configure-stagefeedback-cloog
14049configure-stagefeedback-cloog:
cc11cc9b 14050 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 14051 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
cc11cc9b
PB
14052 @r=`${PWD_COMMAND}`; export r; \
14053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14054 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 14055 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
ce406537 14056 $(HOST_EXPORTS) \
4a4a4e99
AO
14057 $(POSTSTAGE1_HOST_EXPORTS) \
14058 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed 14059 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
14060 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14061 echo Configuring stage feedback in $(HOST_SUBDIR)/cloog ; \
14062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
14063 cd $(HOST_SUBDIR)/cloog || exit 1; \
ce406537
PB
14064 case $(srcdir) in \
14065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14066 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
ce406537
PB
14067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14068 esac; \
85bfb75e
JM
14069 srcdiroption="--srcdir=$${topdir}/cloog"; \
14070 libsrcdir="$$s/cloog"; \
ce406537 14071 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14072 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14073 --target=${target_alias} $${srcdiroption} \
57255173 14074 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14075 $(STAGEfeedback_CONFIGURE_FLAGS) \
14076 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
14077@endif cloog-bootstrap
ce406537
PB
14078
14079
14080
14081
14082
85bfb75e
JM
14083.PHONY: all-cloog maybe-all-cloog
14084maybe-all-cloog:
3ff3adad 14085@if gcc-bootstrap
85bfb75e 14086all-cloog: stage_current
3ff3adad 14087@endif gcc-bootstrap
85bfb75e
JM
14088@if cloog
14089TARGET-cloog=all
14090maybe-all-cloog: all-cloog
14091all-cloog: configure-cloog
cc11cc9b 14092 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
14094 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14095 (cd $(HOST_SUBDIR)/cloog && \
14096 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
14097 $(TARGET-cloog))
14098@endif cloog
1358ccea 14099
25b42232 14100
ce406537 14101
85bfb75e
JM
14102.PHONY: all-stage1-cloog maybe-all-stage1-cloog
14103.PHONY: clean-stage1-cloog maybe-clean-stage1-cloog
14104maybe-all-stage1-cloog:
14105maybe-clean-stage1-cloog:
14106@if cloog-bootstrap
14107maybe-all-stage1-cloog: all-stage1-cloog
14108all-stage1: all-stage1-cloog
14109TARGET-stage1-cloog = $(TARGET-cloog)
14110all-stage1-cloog: configure-stage1-cloog
cc11cc9b 14111 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
14112 @r=`${PWD_COMMAND}`; export r; \
14113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14114 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e
JM
14115 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14116 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14117 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14118 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 14119 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
14120 LIBCFLAGS="$(LIBCFLAGS)" \
14121 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14122 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14123 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14124 $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14125 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 14126 $(TARGET-stage1-cloog)
ce406537 14127
85bfb75e
JM
14128maybe-clean-stage1-cloog: clean-stage1-cloog
14129clean-stage1: clean-stage1-cloog
14130clean-stage1-cloog:
995a5697 14131 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 14132 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14133 else \
85bfb75e 14134 [ -f $(HOST_SUBDIR)/stage1-cloog/Makefile ] || exit 0; \
995a5697
PB
14135 $(MAKE) stage1-start; \
14136 fi; \
85bfb75e 14137 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14138 $(MAKE) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
14139 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14140@endif cloog-bootstrap
ce406537
PB
14141
14142
85bfb75e
JM
14143.PHONY: all-stage2-cloog maybe-all-stage2-cloog
14144.PHONY: clean-stage2-cloog maybe-clean-stage2-cloog
14145maybe-all-stage2-cloog:
14146maybe-clean-stage2-cloog:
14147@if cloog-bootstrap
14148maybe-all-stage2-cloog: all-stage2-cloog
14149all-stage2: all-stage2-cloog
14150TARGET-stage2-cloog = $(TARGET-cloog)
14151all-stage2-cloog: configure-stage2-cloog
cc11cc9b 14152 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
14153 @r=`${PWD_COMMAND}`; export r; \
14154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14155 TFLAGS="$(STAGE2_TFLAGS)"; \
ce406537 14156 $(HOST_EXPORTS) \
85bfb75e
JM
14157 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14158 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14160 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 14161 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
14162 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14166 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14167 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 14168 $(TARGET-stage2-cloog)
ce406537 14169
85bfb75e
JM
14170maybe-clean-stage2-cloog: clean-stage2-cloog
14171clean-stage2: clean-stage2-cloog
14172clean-stage2-cloog:
995a5697 14173 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 14174 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14175 else \
85bfb75e 14176 [ -f $(HOST_SUBDIR)/stage2-cloog/Makefile ] || exit 0; \
995a5697
PB
14177 $(MAKE) stage2-start; \
14178 fi; \
85bfb75e 14179 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14180 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 14181 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
14182 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14183@endif cloog-bootstrap
ce406537
PB
14184
14185
85bfb75e
JM
14186.PHONY: all-stage3-cloog maybe-all-stage3-cloog
14187.PHONY: clean-stage3-cloog maybe-clean-stage3-cloog
14188maybe-all-stage3-cloog:
14189maybe-clean-stage3-cloog:
14190@if cloog-bootstrap
14191maybe-all-stage3-cloog: all-stage3-cloog
14192all-stage3: all-stage3-cloog
14193TARGET-stage3-cloog = $(TARGET-cloog)
14194all-stage3-cloog: configure-stage3-cloog
cc11cc9b 14195 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
14196 @r=`${PWD_COMMAND}`; export r; \
14197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14198 TFLAGS="$(STAGE3_TFLAGS)"; \
ce406537 14199 $(HOST_EXPORTS) \
85bfb75e
JM
14200 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14201 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14202 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14203 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 14204 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
14205 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14206 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14207 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14208 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14209 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14210 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 14211 $(TARGET-stage3-cloog)
ce406537 14212
85bfb75e
JM
14213maybe-clean-stage3-cloog: clean-stage3-cloog
14214clean-stage3: clean-stage3-cloog
14215clean-stage3-cloog:
995a5697 14216 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 14217 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14218 else \
85bfb75e 14219 [ -f $(HOST_SUBDIR)/stage3-cloog/Makefile ] || exit 0; \
995a5697
PB
14220 $(MAKE) stage3-start; \
14221 fi; \
85bfb75e 14222 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14223 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 14224 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
14225 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14226@endif cloog-bootstrap
ce406537
PB
14227
14228
85bfb75e
JM
14229.PHONY: all-stage4-cloog maybe-all-stage4-cloog
14230.PHONY: clean-stage4-cloog maybe-clean-stage4-cloog
14231maybe-all-stage4-cloog:
14232maybe-clean-stage4-cloog:
14233@if cloog-bootstrap
14234maybe-all-stage4-cloog: all-stage4-cloog
14235all-stage4: all-stage4-cloog
14236TARGET-stage4-cloog = $(TARGET-cloog)
14237all-stage4-cloog: configure-stage4-cloog
cc11cc9b 14238 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
14239 @r=`${PWD_COMMAND}`; export r; \
14240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14241 TFLAGS="$(STAGE4_TFLAGS)"; \
ce406537 14242 $(HOST_EXPORTS) \
85bfb75e
JM
14243 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14244 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14246 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 14247 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
1c8bd6a3 14248 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
14249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14252 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14253 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 14254 $(TARGET-stage4-cloog)
ce406537 14255
85bfb75e
JM
14256maybe-clean-stage4-cloog: clean-stage4-cloog
14257clean-stage4: clean-stage4-cloog
14258clean-stage4-cloog:
995a5697 14259 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 14260 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14261 else \
85bfb75e 14262 [ -f $(HOST_SUBDIR)/stage4-cloog/Makefile ] || exit 0; \
995a5697
PB
14263 $(MAKE) stage4-start; \
14264 fi; \
85bfb75e 14265 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14266 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 14267 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
14268 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14269@endif cloog-bootstrap
ce406537
PB
14270
14271
85bfb75e
JM
14272.PHONY: all-stageprofile-cloog maybe-all-stageprofile-cloog
14273.PHONY: clean-stageprofile-cloog maybe-clean-stageprofile-cloog
14274maybe-all-stageprofile-cloog:
14275maybe-clean-stageprofile-cloog:
14276@if cloog-bootstrap
14277maybe-all-stageprofile-cloog: all-stageprofile-cloog
14278all-stageprofile: all-stageprofile-cloog
14279TARGET-stageprofile-cloog = $(TARGET-cloog)
14280all-stageprofile-cloog: configure-stageprofile-cloog
cc11cc9b 14281 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
14282 @r=`${PWD_COMMAND}`; export r; \
14283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14284 TFLAGS="$(STAGEprofile_TFLAGS)"; \
ce406537 14285 $(HOST_EXPORTS) \
85bfb75e
JM
14286 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14287 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14288 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14289 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 14290 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
14291 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14292 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14293 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14294 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14295 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14296 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 14297 $(TARGET-stageprofile-cloog)
ce406537 14298
85bfb75e
JM
14299maybe-clean-stageprofile-cloog: clean-stageprofile-cloog
14300clean-stageprofile: clean-stageprofile-cloog
14301clean-stageprofile-cloog:
995a5697 14302 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 14303 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14304 else \
85bfb75e 14305 [ -f $(HOST_SUBDIR)/stageprofile-cloog/Makefile ] || exit 0; \
995a5697
PB
14306 $(MAKE) stageprofile-start; \
14307 fi; \
85bfb75e 14308 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14309 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 14310 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
14311 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14312@endif cloog-bootstrap
ce406537
PB
14313
14314
85bfb75e
JM
14315.PHONY: all-stagefeedback-cloog maybe-all-stagefeedback-cloog
14316.PHONY: clean-stagefeedback-cloog maybe-clean-stagefeedback-cloog
14317maybe-all-stagefeedback-cloog:
14318maybe-clean-stagefeedback-cloog:
14319@if cloog-bootstrap
14320maybe-all-stagefeedback-cloog: all-stagefeedback-cloog
14321all-stagefeedback: all-stagefeedback-cloog
14322TARGET-stagefeedback-cloog = $(TARGET-cloog)
14323all-stagefeedback-cloog: configure-stagefeedback-cloog
cc11cc9b 14324 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
14325 @r=`${PWD_COMMAND}`; export r; \
14326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14327 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
ce406537 14328 $(HOST_EXPORTS) \
85bfb75e
JM
14329 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
14330 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14331 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14332 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 14333 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
14334 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14335 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14336 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14337 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14338 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
4a4a4e99 14339 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 14340 $(TARGET-stagefeedback-cloog)
ce406537 14341
85bfb75e
JM
14342maybe-clean-stagefeedback-cloog: clean-stagefeedback-cloog
14343clean-stagefeedback: clean-stagefeedback-cloog
14344clean-stagefeedback-cloog:
995a5697 14345 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 14346 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
995a5697 14347 else \
85bfb75e 14348 [ -f $(HOST_SUBDIR)/stagefeedback-cloog/Makefile ] || exit 0; \
995a5697
PB
14349 $(MAKE) stagefeedback-start; \
14350 fi; \
85bfb75e 14351 cd $(HOST_SUBDIR)/cloog && \
1c8bd6a3 14352 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 14353 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
14354 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
14355@endif cloog-bootstrap
ce406537
PB
14356
14357
14358
14359
14360
85bfb75e
JM
14361.PHONY: check-cloog maybe-check-cloog
14362maybe-check-cloog:
14363@if cloog
14364maybe-check-cloog: check-cloog
1358ccea 14365
85bfb75e 14366check-cloog:
f41d6665 14367 @: $(MAKE); $(unstage)
295f4e42 14368 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14370 $(HOST_EXPORTS) \
85bfb75e
JM
14371 (cd $(HOST_SUBDIR)/cloog && \
14372 $(MAKE) $(FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" check)
1358ccea 14373
85bfb75e 14374@endif cloog
1358ccea 14375
85bfb75e
JM
14376.PHONY: install-cloog maybe-install-cloog
14377maybe-install-cloog:
14378@if cloog
14379maybe-install-cloog: install-cloog
1358ccea 14380
85bfb75e 14381install-cloog:
1358ccea 14382
85bfb75e 14383@endif cloog
1358ccea 14384
85bfb75e
JM
14385.PHONY: install-strip-cloog maybe-install-strip-cloog
14386maybe-install-strip-cloog:
14387@if cloog
14388maybe-install-strip-cloog: install-strip-cloog
455c8f48 14389
85bfb75e 14390install-strip-cloog:
455c8f48 14391
85bfb75e 14392@endif cloog
455c8f48 14393
b5422ad7 14394# Other targets (info, dvi, pdf, etc.)
1358ccea 14395
85bfb75e
JM
14396.PHONY: maybe-info-cloog info-cloog
14397maybe-info-cloog:
14398@if cloog
14399maybe-info-cloog: info-cloog
295f4e42 14400
85bfb75e
JM
14401info-cloog: \
14402 configure-cloog
14403 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14404 r=`${PWD_COMMAND}`; export r; \
14405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14406 $(HOST_EXPORTS) \
85bfb75e 14407 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14409 done; \
85bfb75e
JM
14410 echo "Doing info in cloog" ; \
14411 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14414 "RANLIB=$${RANLIB}" \
901119ae 14415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14416 info) \
1358ccea
NN
14417 || exit 1
14418
85bfb75e 14419@endif cloog
1358ccea 14420
85bfb75e
JM
14421.PHONY: maybe-dvi-cloog dvi-cloog
14422maybe-dvi-cloog:
14423@if cloog
14424maybe-dvi-cloog: dvi-cloog
1358ccea 14425
85bfb75e
JM
14426dvi-cloog: \
14427 configure-cloog
14428 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14429 r=`${PWD_COMMAND}`; export r; \
14430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14431 $(HOST_EXPORTS) \
85bfb75e 14432 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14434 done; \
85bfb75e
JM
14435 echo "Doing dvi in cloog" ; \
14436 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14439 "RANLIB=$${RANLIB}" \
901119ae 14440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14441 dvi) \
1358ccea
NN
14442 || exit 1
14443
85bfb75e 14444@endif cloog
1358ccea 14445
85bfb75e
JM
14446.PHONY: maybe-pdf-cloog pdf-cloog
14447maybe-pdf-cloog:
14448@if cloog
14449maybe-pdf-cloog: pdf-cloog
b5422ad7 14450
85bfb75e
JM
14451pdf-cloog: \
14452 configure-cloog
14453 @[ -f ./cloog/Makefile ] || exit 0; \
b5422ad7
BM
14454 r=`${PWD_COMMAND}`; export r; \
14455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14456 $(HOST_EXPORTS) \
85bfb75e 14457 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
b5422ad7
BM
14458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14459 done; \
85bfb75e
JM
14460 echo "Doing pdf in cloog" ; \
14461 (cd $(HOST_SUBDIR)/cloog && \
b5422ad7
BM
14462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14464 "RANLIB=$${RANLIB}" \
901119ae 14465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
14466 pdf) \
14467 || exit 1
14468
85bfb75e 14469@endif cloog
b5422ad7 14470
85bfb75e
JM
14471.PHONY: maybe-html-cloog html-cloog
14472maybe-html-cloog:
14473@if cloog
14474maybe-html-cloog: html-cloog
f87a2b2e 14475
85bfb75e
JM
14476html-cloog: \
14477 configure-cloog
14478 @[ -f ./cloog/Makefile ] || exit 0; \
f87a2b2e
MS
14479 r=`${PWD_COMMAND}`; export r; \
14480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 14481 $(HOST_EXPORTS) \
85bfb75e 14482 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
f87a2b2e
MS
14483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14484 done; \
85bfb75e
JM
14485 echo "Doing html in cloog" ; \
14486 (cd $(HOST_SUBDIR)/cloog && \
f87a2b2e
MS
14487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14489 "RANLIB=$${RANLIB}" \
901119ae 14490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
14491 html) \
14492 || exit 1
14493
85bfb75e 14494@endif cloog
f87a2b2e 14495
85bfb75e
JM
14496.PHONY: maybe-TAGS-cloog TAGS-cloog
14497maybe-TAGS-cloog:
14498@if cloog
14499maybe-TAGS-cloog: TAGS-cloog
1358ccea 14500
85bfb75e
JM
14501TAGS-cloog: \
14502 configure-cloog
14503 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14504 r=`${PWD_COMMAND}`; export r; \
14505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14506 $(HOST_EXPORTS) \
85bfb75e 14507 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14509 done; \
85bfb75e
JM
14510 echo "Doing TAGS in cloog" ; \
14511 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14514 "RANLIB=$${RANLIB}" \
901119ae 14515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14516 TAGS) \
1358ccea
NN
14517 || exit 1
14518
85bfb75e 14519@endif cloog
1358ccea 14520
85bfb75e
JM
14521.PHONY: maybe-install-info-cloog install-info-cloog
14522maybe-install-info-cloog:
14523@if cloog
14524maybe-install-info-cloog: install-info-cloog
1358ccea 14525
85bfb75e
JM
14526install-info-cloog: \
14527 configure-cloog \
14528 info-cloog
14529 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14530 r=`${PWD_COMMAND}`; export r; \
14531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14532 $(HOST_EXPORTS) \
85bfb75e 14533 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14535 done; \
85bfb75e
JM
14536 echo "Doing install-info in cloog" ; \
14537 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14540 "RANLIB=$${RANLIB}" \
901119ae 14541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14542 install-info) \
1358ccea
NN
14543 || exit 1
14544
85bfb75e 14545@endif cloog
1358ccea 14546
85bfb75e
JM
14547.PHONY: maybe-install-pdf-cloog install-pdf-cloog
14548maybe-install-pdf-cloog:
14549@if cloog
14550maybe-install-pdf-cloog: install-pdf-cloog
9c4d2493 14551
85bfb75e
JM
14552install-pdf-cloog: \
14553 configure-cloog \
14554 pdf-cloog
14555 @[ -f ./cloog/Makefile ] || exit 0; \
9c4d2493
BM
14556 r=`${PWD_COMMAND}`; export r; \
14557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14558 $(HOST_EXPORTS) \
85bfb75e 14559 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
9c4d2493
BM
14560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14561 done; \
85bfb75e
JM
14562 echo "Doing install-pdf in cloog" ; \
14563 (cd $(HOST_SUBDIR)/cloog && \
9c4d2493
BM
14564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14566 "RANLIB=$${RANLIB}" \
901119ae 14567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
14568 install-pdf) \
14569 || exit 1
14570
85bfb75e 14571@endif cloog
9c4d2493 14572
85bfb75e
JM
14573.PHONY: maybe-install-html-cloog install-html-cloog
14574maybe-install-html-cloog:
14575@if cloog
14576maybe-install-html-cloog: install-html-cloog
65d6e994 14577
85bfb75e
JM
14578install-html-cloog: \
14579 configure-cloog \
14580 html-cloog
14581 @[ -f ./cloog/Makefile ] || exit 0; \
65d6e994
CD
14582 r=`${PWD_COMMAND}`; export r; \
14583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14584 $(HOST_EXPORTS) \
85bfb75e 14585 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
65d6e994
CD
14586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14587 done; \
85bfb75e
JM
14588 echo "Doing install-html in cloog" ; \
14589 (cd $(HOST_SUBDIR)/cloog && \
65d6e994
CD
14590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14592 "RANLIB=$${RANLIB}" \
901119ae 14593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
14594 install-html) \
14595 || exit 1
14596
85bfb75e 14597@endif cloog
65d6e994 14598
85bfb75e
JM
14599.PHONY: maybe-installcheck-cloog installcheck-cloog
14600maybe-installcheck-cloog:
14601@if cloog
14602maybe-installcheck-cloog: installcheck-cloog
1358ccea 14603
85bfb75e
JM
14604installcheck-cloog: \
14605 configure-cloog
14606 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14607 r=`${PWD_COMMAND}`; export r; \
14608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14609 $(HOST_EXPORTS) \
85bfb75e 14610 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14612 done; \
85bfb75e
JM
14613 echo "Doing installcheck in cloog" ; \
14614 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14617 "RANLIB=$${RANLIB}" \
901119ae 14618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14619 installcheck) \
1358ccea
NN
14620 || exit 1
14621
85bfb75e 14622@endif cloog
1358ccea 14623
85bfb75e
JM
14624.PHONY: maybe-mostlyclean-cloog mostlyclean-cloog
14625maybe-mostlyclean-cloog:
14626@if cloog
14627maybe-mostlyclean-cloog: mostlyclean-cloog
1358ccea 14628
85bfb75e
JM
14629mostlyclean-cloog:
14630 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14631 r=`${PWD_COMMAND}`; export r; \
14632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14633 $(HOST_EXPORTS) \
85bfb75e 14634 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14636 done; \
85bfb75e
JM
14637 echo "Doing mostlyclean in cloog" ; \
14638 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14641 "RANLIB=$${RANLIB}" \
901119ae 14642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14643 mostlyclean) \
1358ccea
NN
14644 || exit 1
14645
85bfb75e 14646@endif cloog
1358ccea 14647
85bfb75e
JM
14648.PHONY: maybe-clean-cloog clean-cloog
14649maybe-clean-cloog:
14650@if cloog
14651maybe-clean-cloog: clean-cloog
1358ccea 14652
85bfb75e
JM
14653clean-cloog:
14654 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14655 r=`${PWD_COMMAND}`; export r; \
14656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14657 $(HOST_EXPORTS) \
85bfb75e 14658 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14660 done; \
85bfb75e
JM
14661 echo "Doing clean in cloog" ; \
14662 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14665 "RANLIB=$${RANLIB}" \
901119ae 14666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14667 clean) \
1358ccea
NN
14668 || exit 1
14669
85bfb75e 14670@endif cloog
1358ccea 14671
85bfb75e
JM
14672.PHONY: maybe-distclean-cloog distclean-cloog
14673maybe-distclean-cloog:
14674@if cloog
14675maybe-distclean-cloog: distclean-cloog
1358ccea 14676
85bfb75e
JM
14677distclean-cloog:
14678 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14679 r=`${PWD_COMMAND}`; export r; \
14680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14681 $(HOST_EXPORTS) \
85bfb75e 14682 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14684 done; \
85bfb75e
JM
14685 echo "Doing distclean in cloog" ; \
14686 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14689 "RANLIB=$${RANLIB}" \
901119ae 14690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14691 distclean) \
1358ccea
NN
14692 || exit 1
14693
85bfb75e 14694@endif cloog
1358ccea 14695
85bfb75e
JM
14696.PHONY: maybe-maintainer-clean-cloog maintainer-clean-cloog
14697maybe-maintainer-clean-cloog:
14698@if cloog
14699maybe-maintainer-clean-cloog: maintainer-clean-cloog
1358ccea 14700
85bfb75e
JM
14701maintainer-clean-cloog:
14702 @[ -f ./cloog/Makefile ] || exit 0; \
8c90b13a
L
14703 r=`${PWD_COMMAND}`; export r; \
14704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14705 $(HOST_EXPORTS) \
85bfb75e 14706 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
1358ccea
NN
14707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14708 done; \
85bfb75e
JM
14709 echo "Doing maintainer-clean in cloog" ; \
14710 (cd $(HOST_SUBDIR)/cloog && \
1358ccea
NN
14711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14713 "RANLIB=$${RANLIB}" \
901119ae 14714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 14715 maintainer-clean) \
1358ccea
NN
14716 || exit 1
14717
85bfb75e 14718@endif cloog
1358ccea 14719
1358ccea 14720
25b42232 14721
85bfb75e
JM
14722.PHONY: configure-libelf maybe-configure-libelf
14723maybe-configure-libelf:
cc11cc9b 14724@if gcc-bootstrap
85bfb75e 14725configure-libelf: stage_current
cc11cc9b 14726@endif gcc-bootstrap
85bfb75e
JM
14727@if libelf
14728maybe-configure-libelf: configure-libelf
14729configure-libelf:
cc11cc9b
PB
14730 @r=`${PWD_COMMAND}`; export r; \
14731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
14732 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
14733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
f61428ed 14734 $(HOST_EXPORTS) \
85bfb75e
JM
14735 echo Configuring in $(HOST_SUBDIR)/libelf; \
14736 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
295f4e42 14737 case $(srcdir) in \
215c351a 14738 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14739 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
215c351a 14740 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14741 esac; \
85bfb75e
JM
14742 srcdiroption="--srcdir=$${topdir}/libelf"; \
14743 libsrcdir="$$s/libelf"; \
295f4e42 14744 $(SHELL) $${libsrcdir}/configure \
e69bf64b 14745 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 14746 --target=${target_alias} $${srcdiroption} --disable-shared \
1358ccea 14747 || exit 1
85bfb75e 14748@endif libelf
1358ccea 14749
25b42232
PB
14750
14751
85bfb75e
JM
14752.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14753maybe-configure-stage1-libelf:
14754@if libelf-bootstrap
14755maybe-configure-stage1-libelf: configure-stage1-libelf
14756configure-stage1-libelf:
cc11cc9b 14757 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 14758 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14759 @r=`${PWD_COMMAND}`; export r; \
14760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14761 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 14762 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
4a4a4e99 14763 $(HOST_EXPORTS) \
342b9200 14764 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14765 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14766 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14767 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf ; \
14768 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14769 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14770 case $(srcdir) in \
14771 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14772 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14773 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14774 esac; \
85bfb75e
JM
14775 srcdiroption="--srcdir=$${topdir}/libelf"; \
14776 libsrcdir="$$s/libelf"; \
ce406537 14777 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14778 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14779 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
14780 $(STAGE1_CONFIGURE_FLAGS) \
14781 --disable-shared
14782@endif libelf-bootstrap
ce406537 14783
85bfb75e
JM
14784.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14785maybe-configure-stage2-libelf:
14786@if libelf-bootstrap
14787maybe-configure-stage2-libelf: configure-stage2-libelf
14788configure-stage2-libelf:
cc11cc9b 14789 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 14790 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14791 @r=`${PWD_COMMAND}`; export r; \
14792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14793 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 14794 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
ce406537 14795 $(HOST_EXPORTS) \
4a4a4e99 14796 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 14797 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14798 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14799 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14800 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf ; \
14801 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14802 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14803 case $(srcdir) in \
14804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14805 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14807 esac; \
85bfb75e
JM
14808 srcdiroption="--srcdir=$${topdir}/libelf"; \
14809 libsrcdir="$$s/libelf"; \
ce406537 14810 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14811 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14812 --target=${target_alias} $${srcdiroption} \
57255173 14813 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14814 $(STAGE2_CONFIGURE_FLAGS) \
14815 --disable-shared
14816@endif libelf-bootstrap
bb286d71 14817
85bfb75e
JM
14818.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14819maybe-configure-stage3-libelf:
14820@if libelf-bootstrap
14821maybe-configure-stage3-libelf: configure-stage3-libelf
14822configure-stage3-libelf:
cc11cc9b 14823 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 14824 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14825 @r=`${PWD_COMMAND}`; export r; \
14826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14827 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 14828 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
ce406537 14829 $(HOST_EXPORTS) \
4a4a4e99 14830 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 14831 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14832 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14833 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14834 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf ; \
14835 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14836 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14837 case $(srcdir) in \
14838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14839 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14841 esac; \
85bfb75e
JM
14842 srcdiroption="--srcdir=$${topdir}/libelf"; \
14843 libsrcdir="$$s/libelf"; \
ce406537 14844 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14845 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14846 --target=${target_alias} $${srcdiroption} \
57255173 14847 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14848 $(STAGE3_CONFIGURE_FLAGS) \
14849 --disable-shared
14850@endif libelf-bootstrap
bb286d71 14851
85bfb75e
JM
14852.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14853maybe-configure-stage4-libelf:
14854@if libelf-bootstrap
14855maybe-configure-stage4-libelf: configure-stage4-libelf
14856configure-stage4-libelf:
cc11cc9b 14857 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 14858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14859 @r=`${PWD_COMMAND}`; export r; \
14860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14861 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 14862 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
ce406537 14863 $(HOST_EXPORTS) \
4a4a4e99 14864 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 14865 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14866 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14867 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14868 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf ; \
14869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14870 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14871 case $(srcdir) in \
14872 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14873 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14874 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14875 esac; \
85bfb75e
JM
14876 srcdiroption="--srcdir=$${topdir}/libelf"; \
14877 libsrcdir="$$s/libelf"; \
ce406537 14878 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14879 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14880 --target=${target_alias} $${srcdiroption} \
57255173 14881 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14882 $(STAGE4_CONFIGURE_FLAGS) \
14883 --disable-shared
14884@endif libelf-bootstrap
ce406537 14885
85bfb75e
JM
14886.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14887maybe-configure-stageprofile-libelf:
14888@if libelf-bootstrap
14889maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14890configure-stageprofile-libelf:
cc11cc9b 14891 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 14892 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14893 @r=`${PWD_COMMAND}`; export r; \
14894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14895 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 14896 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
ce406537 14897 $(HOST_EXPORTS) \
4a4a4e99
AO
14898 $(POSTSTAGE1_HOST_EXPORTS) \
14899 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14900 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14901 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14902 echo Configuring stage profile in $(HOST_SUBDIR)/libelf ; \
14903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14904 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14905 case $(srcdir) in \
14906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14907 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14909 esac; \
85bfb75e
JM
14910 srcdiroption="--srcdir=$${topdir}/libelf"; \
14911 libsrcdir="$$s/libelf"; \
ce406537 14912 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14913 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14914 --target=${target_alias} $${srcdiroption} \
57255173 14915 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14916 $(STAGEprofile_CONFIGURE_FLAGS) \
14917 --disable-shared
14918@endif libelf-bootstrap
ce406537 14919
85bfb75e
JM
14920.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14921maybe-configure-stagefeedback-libelf:
14922@if libelf-bootstrap
14923maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14924configure-stagefeedback-libelf:
cc11cc9b 14925 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 14926 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
cc11cc9b
PB
14927 @r=`${PWD_COMMAND}`; export r; \
14928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14929 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 14930 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
ce406537 14931 $(HOST_EXPORTS) \
4a4a4e99
AO
14932 $(POSTSTAGE1_HOST_EXPORTS) \
14933 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
14934 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14935 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
14936 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf ; \
14937 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14938 cd $(HOST_SUBDIR)/libelf || exit 1; \
ce406537
PB
14939 case $(srcdir) in \
14940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 14941 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
ce406537
PB
14942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14943 esac; \
85bfb75e
JM
14944 srcdiroption="--srcdir=$${topdir}/libelf"; \
14945 libsrcdir="$$s/libelf"; \
ce406537 14946 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
14947 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14948 --target=${target_alias} $${srcdiroption} \
57255173 14949 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
14950 $(STAGEfeedback_CONFIGURE_FLAGS) \
14951 --disable-shared
14952@endif libelf-bootstrap
ce406537
PB
14953
14954
14955
14956
14957
85bfb75e
JM
14958.PHONY: all-libelf maybe-all-libelf
14959maybe-all-libelf:
3ff3adad 14960@if gcc-bootstrap
85bfb75e 14961all-libelf: stage_current
3ff3adad 14962@endif gcc-bootstrap
85bfb75e
JM
14963@if libelf
14964TARGET-libelf=all
14965maybe-all-libelf: all-libelf
14966all-libelf: configure-libelf
cc11cc9b 14967 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 14969 $(HOST_EXPORTS) \
85bfb75e
JM
14970 (cd $(HOST_SUBDIR)/libelf && \
14971 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
14972 $(TARGET-libelf))
14973@endif libelf
1358ccea 14974
25b42232 14975
ce406537 14976
85bfb75e
JM
14977.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14978.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14979maybe-all-stage1-libelf:
14980maybe-clean-stage1-libelf:
14981@if libelf-bootstrap
14982maybe-all-stage1-libelf: all-stage1-libelf
14983all-stage1: all-stage1-libelf
14984TARGET-stage1-libelf = $(TARGET-libelf)
14985all-stage1-libelf: configure-stage1-libelf
cc11cc9b 14986 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
14987 @r=`${PWD_COMMAND}`; export r; \
14988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 14989 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 14990 $(HOST_EXPORTS) \
85bfb75e 14991 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 14992 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 14993 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 14994 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
14995 LIBCFLAGS="$(LIBCFLAGS)" \
14996 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14997 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14998 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 14999 $(EXTRA_HOST_FLAGS) \
4a4a4e99 15000 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 15001 $(TARGET-stage1-libelf)
ce406537 15002
85bfb75e
JM
15003maybe-clean-stage1-libelf: clean-stage1-libelf
15004clean-stage1: clean-stage1-libelf
15005clean-stage1-libelf:
995a5697 15006 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 15007 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15008 else \
85bfb75e 15009 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
995a5697
PB
15010 $(MAKE) stage1-start; \
15011 fi; \
85bfb75e 15012 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15013 $(MAKE) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
15014 clean
15015@endif libelf-bootstrap
ce406537
PB
15016
15017
85bfb75e
JM
15018.PHONY: all-stage2-libelf maybe-all-stage2-libelf
15019.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
15020maybe-all-stage2-libelf:
15021maybe-clean-stage2-libelf:
15022@if libelf-bootstrap
15023maybe-all-stage2-libelf: all-stage2-libelf
15024all-stage2: all-stage2-libelf
15025TARGET-stage2-libelf = $(TARGET-libelf)
15026all-stage2-libelf: configure-stage2-libelf
cc11cc9b 15027 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
15028 @r=`${PWD_COMMAND}`; export r; \
15029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 15030 TFLAGS="$(STAGE2_TFLAGS)"; \
ce406537 15031 $(HOST_EXPORTS) \
f61428ed 15032 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 15033 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15034 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 15035 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 15036 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
15037 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15038 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15039 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15040 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 15041 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 15042 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 15043 $(TARGET-stage2-libelf)
ce406537 15044
85bfb75e
JM
15045maybe-clean-stage2-libelf: clean-stage2-libelf
15046clean-stage2: clean-stage2-libelf
15047clean-stage2-libelf:
995a5697 15048 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 15049 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15050 else \
85bfb75e 15051 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
995a5697
PB
15052 $(MAKE) stage2-start; \
15053 fi; \
85bfb75e 15054 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15055 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 15056 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
15057 clean
15058@endif libelf-bootstrap
ce406537
PB
15059
15060
85bfb75e
JM
15061.PHONY: all-stage3-libelf maybe-all-stage3-libelf
15062.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
15063maybe-all-stage3-libelf:
15064maybe-clean-stage3-libelf:
15065@if libelf-bootstrap
15066maybe-all-stage3-libelf: all-stage3-libelf
15067all-stage3: all-stage3-libelf
15068TARGET-stage3-libelf = $(TARGET-libelf)
15069all-stage3-libelf: configure-stage3-libelf
cc11cc9b 15070 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
15071 @r=`${PWD_COMMAND}`; export r; \
15072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 15073 TFLAGS="$(STAGE3_TFLAGS)"; \
ce406537 15074 $(HOST_EXPORTS) \
f61428ed 15075 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 15076 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15077 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 15078 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 15079 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
15080 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15081 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15082 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15083 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 15084 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 15085 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 15086 $(TARGET-stage3-libelf)
ce406537 15087
85bfb75e
JM
15088maybe-clean-stage3-libelf: clean-stage3-libelf
15089clean-stage3: clean-stage3-libelf
15090clean-stage3-libelf:
995a5697 15091 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 15092 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15093 else \
85bfb75e 15094 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
995a5697
PB
15095 $(MAKE) stage3-start; \
15096 fi; \
85bfb75e 15097 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15098 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 15099 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
15100 clean
15101@endif libelf-bootstrap
ce406537
PB
15102
15103
85bfb75e
JM
15104.PHONY: all-stage4-libelf maybe-all-stage4-libelf
15105.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
15106maybe-all-stage4-libelf:
15107maybe-clean-stage4-libelf:
15108@if libelf-bootstrap
15109maybe-all-stage4-libelf: all-stage4-libelf
15110all-stage4: all-stage4-libelf
15111TARGET-stage4-libelf = $(TARGET-libelf)
15112all-stage4-libelf: configure-stage4-libelf
cc11cc9b 15113 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
15114 @r=`${PWD_COMMAND}`; export r; \
15115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 15116 TFLAGS="$(STAGE4_TFLAGS)"; \
ce406537 15117 $(HOST_EXPORTS) \
f61428ed 15118 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 15119 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15120 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 15121 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 15122 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
1c8bd6a3 15123 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
15124 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15125 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15126 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 15127 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 15128 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 15129 $(TARGET-stage4-libelf)
ce406537 15130
85bfb75e
JM
15131maybe-clean-stage4-libelf: clean-stage4-libelf
15132clean-stage4: clean-stage4-libelf
15133clean-stage4-libelf:
995a5697 15134 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 15135 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15136 else \
85bfb75e 15137 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
995a5697
PB
15138 $(MAKE) stage4-start; \
15139 fi; \
85bfb75e 15140 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15141 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 15142 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
15143 clean
15144@endif libelf-bootstrap
ce406537
PB
15145
15146
85bfb75e
JM
15147.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15148.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15149maybe-all-stageprofile-libelf:
15150maybe-clean-stageprofile-libelf:
15151@if libelf-bootstrap
15152maybe-all-stageprofile-libelf: all-stageprofile-libelf
15153all-stageprofile: all-stageprofile-libelf
15154TARGET-stageprofile-libelf = $(TARGET-libelf)
15155all-stageprofile-libelf: configure-stageprofile-libelf
cc11cc9b 15156 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
15157 @r=`${PWD_COMMAND}`; export r; \
15158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 15159 TFLAGS="$(STAGEprofile_TFLAGS)"; \
ce406537 15160 $(HOST_EXPORTS) \
f61428ed 15161 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 15162 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15163 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 15164 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 15165 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
15166 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15167 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15168 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15169 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 15170 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 15171 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 15172 $(TARGET-stageprofile-libelf)
ce406537 15173
85bfb75e
JM
15174maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15175clean-stageprofile: clean-stageprofile-libelf
15176clean-stageprofile-libelf:
995a5697 15177 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 15178 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15179 else \
85bfb75e 15180 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
995a5697
PB
15181 $(MAKE) stageprofile-start; \
15182 fi; \
85bfb75e 15183 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15184 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 15185 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
15186 clean
15187@endif libelf-bootstrap
ce406537
PB
15188
15189
85bfb75e
JM
15190.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15191.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15192maybe-all-stagefeedback-libelf:
15193maybe-clean-stagefeedback-libelf:
15194@if libelf-bootstrap
15195maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15196all-stagefeedback: all-stagefeedback-libelf
15197TARGET-stagefeedback-libelf = $(TARGET-libelf)
15198all-stagefeedback-libelf: configure-stagefeedback-libelf
cc11cc9b 15199 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
15200 @r=`${PWD_COMMAND}`; export r; \
15201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 15202 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
ce406537 15203 $(HOST_EXPORTS) \
f61428ed 15204 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 15205 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15206 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 15207 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 15208 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
15209 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15210 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15211 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15212 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 15213 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 15214 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 15215 $(TARGET-stagefeedback-libelf)
ce406537 15216
85bfb75e
JM
15217maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15218clean-stagefeedback: clean-stagefeedback-libelf
15219clean-stagefeedback-libelf:
995a5697 15220 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 15221 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
995a5697 15222 else \
85bfb75e 15223 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
995a5697
PB
15224 $(MAKE) stagefeedback-start; \
15225 fi; \
85bfb75e 15226 cd $(HOST_SUBDIR)/libelf && \
1c8bd6a3 15227 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 15228 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
15229 clean
15230@endif libelf-bootstrap
ce406537
PB
15231
15232
15233
15234
15235
85bfb75e
JM
15236.PHONY: check-libelf maybe-check-libelf
15237maybe-check-libelf:
15238@if libelf
15239maybe-check-libelf: check-libelf
1358ccea 15240
85bfb75e 15241check-libelf:
f41d6665 15242 @: $(MAKE); $(unstage)
295f4e42 15243 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15245 $(HOST_EXPORTS) \
85bfb75e
JM
15246 (cd $(HOST_SUBDIR)/libelf && \
15247 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 15248
85bfb75e 15249@endif libelf
1358ccea 15250
85bfb75e
JM
15251.PHONY: install-libelf maybe-install-libelf
15252maybe-install-libelf:
15253@if libelf
15254maybe-install-libelf: install-libelf
1358ccea 15255
85bfb75e 15256install-libelf:
1358ccea 15257
85bfb75e 15258@endif libelf
1358ccea 15259
85bfb75e
JM
15260.PHONY: install-strip-libelf maybe-install-strip-libelf
15261maybe-install-strip-libelf:
15262@if libelf
15263maybe-install-strip-libelf: install-strip-libelf
455c8f48 15264
85bfb75e 15265install-strip-libelf:
455c8f48 15266
85bfb75e 15267@endif libelf
455c8f48 15268
b5422ad7 15269# Other targets (info, dvi, pdf, etc.)
1358ccea 15270
85bfb75e
JM
15271.PHONY: maybe-info-libelf info-libelf
15272maybe-info-libelf:
15273@if libelf
15274maybe-info-libelf: info-libelf
1358ccea 15275
85bfb75e
JM
15276info-libelf: \
15277 configure-libelf
15278 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15279 r=`${PWD_COMMAND}`; export r; \
15280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15281 $(HOST_EXPORTS) \
85bfb75e 15282 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15284 done; \
85bfb75e
JM
15285 echo "Doing info in libelf" ; \
15286 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15289 "RANLIB=$${RANLIB}" \
901119ae 15290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15291 info) \
1358ccea
NN
15292 || exit 1
15293
85bfb75e 15294@endif libelf
1358ccea 15295
85bfb75e
JM
15296.PHONY: maybe-dvi-libelf dvi-libelf
15297maybe-dvi-libelf:
15298@if libelf
15299maybe-dvi-libelf: dvi-libelf
1358ccea 15300
85bfb75e
JM
15301dvi-libelf: \
15302 configure-libelf
15303 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15304 r=`${PWD_COMMAND}`; export r; \
15305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15306 $(HOST_EXPORTS) \
85bfb75e 15307 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15309 done; \
85bfb75e
JM
15310 echo "Doing dvi in libelf" ; \
15311 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15314 "RANLIB=$${RANLIB}" \
901119ae 15315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15316 dvi) \
1358ccea
NN
15317 || exit 1
15318
85bfb75e 15319@endif libelf
1358ccea 15320
85bfb75e
JM
15321.PHONY: maybe-pdf-libelf pdf-libelf
15322maybe-pdf-libelf:
15323@if libelf
15324maybe-pdf-libelf: pdf-libelf
b5422ad7 15325
85bfb75e
JM
15326pdf-libelf: \
15327 configure-libelf
15328 @[ -f ./libelf/Makefile ] || exit 0; \
b5422ad7
BM
15329 r=`${PWD_COMMAND}`; export r; \
15330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15331 $(HOST_EXPORTS) \
85bfb75e 15332 for flag in $(EXTRA_HOST_FLAGS) ; do \
b5422ad7
BM
15333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15334 done; \
85bfb75e
JM
15335 echo "Doing pdf in libelf" ; \
15336 (cd $(HOST_SUBDIR)/libelf && \
b5422ad7
BM
15337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15339 "RANLIB=$${RANLIB}" \
901119ae 15340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
15341 pdf) \
15342 || exit 1
15343
85bfb75e 15344@endif libelf
b5422ad7 15345
85bfb75e
JM
15346.PHONY: maybe-html-libelf html-libelf
15347maybe-html-libelf:
15348@if libelf
15349maybe-html-libelf: html-libelf
f87a2b2e 15350
85bfb75e
JM
15351html-libelf: \
15352 configure-libelf
15353 @[ -f ./libelf/Makefile ] || exit 0; \
f87a2b2e
MS
15354 r=`${PWD_COMMAND}`; export r; \
15355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 15356 $(HOST_EXPORTS) \
85bfb75e 15357 for flag in $(EXTRA_HOST_FLAGS) ; do \
f87a2b2e
MS
15358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15359 done; \
85bfb75e
JM
15360 echo "Doing html in libelf" ; \
15361 (cd $(HOST_SUBDIR)/libelf && \
f87a2b2e
MS
15362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15364 "RANLIB=$${RANLIB}" \
901119ae 15365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
15366 html) \
15367 || exit 1
15368
85bfb75e 15369@endif libelf
f87a2b2e 15370
85bfb75e
JM
15371.PHONY: maybe-TAGS-libelf TAGS-libelf
15372maybe-TAGS-libelf:
15373@if libelf
15374maybe-TAGS-libelf: TAGS-libelf
1358ccea 15375
85bfb75e
JM
15376TAGS-libelf: \
15377 configure-libelf
15378 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15379 r=`${PWD_COMMAND}`; export r; \
15380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15381 $(HOST_EXPORTS) \
85bfb75e 15382 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15384 done; \
85bfb75e
JM
15385 echo "Doing TAGS in libelf" ; \
15386 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15389 "RANLIB=$${RANLIB}" \
901119ae 15390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15391 TAGS) \
1358ccea
NN
15392 || exit 1
15393
85bfb75e 15394@endif libelf
1358ccea 15395
85bfb75e
JM
15396.PHONY: maybe-install-info-libelf install-info-libelf
15397maybe-install-info-libelf:
15398@if libelf
15399maybe-install-info-libelf: install-info-libelf
1358ccea 15400
85bfb75e
JM
15401install-info-libelf: \
15402 configure-libelf \
15403 info-libelf
15404 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15405 r=`${PWD_COMMAND}`; export r; \
15406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15407 $(HOST_EXPORTS) \
85bfb75e 15408 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15410 done; \
85bfb75e
JM
15411 echo "Doing install-info in libelf" ; \
15412 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15415 "RANLIB=$${RANLIB}" \
901119ae 15416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15417 install-info) \
1358ccea
NN
15418 || exit 1
15419
85bfb75e 15420@endif libelf
1358ccea 15421
85bfb75e
JM
15422.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15423maybe-install-pdf-libelf:
15424@if libelf
15425maybe-install-pdf-libelf: install-pdf-libelf
9c4d2493 15426
85bfb75e
JM
15427install-pdf-libelf: \
15428 configure-libelf \
15429 pdf-libelf
15430 @[ -f ./libelf/Makefile ] || exit 0; \
9c4d2493
BM
15431 r=`${PWD_COMMAND}`; export r; \
15432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15433 $(HOST_EXPORTS) \
85bfb75e 15434 for flag in $(EXTRA_HOST_FLAGS) ; do \
9c4d2493
BM
15435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15436 done; \
85bfb75e
JM
15437 echo "Doing install-pdf in libelf" ; \
15438 (cd $(HOST_SUBDIR)/libelf && \
9c4d2493
BM
15439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15441 "RANLIB=$${RANLIB}" \
901119ae 15442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
15443 install-pdf) \
15444 || exit 1
15445
85bfb75e 15446@endif libelf
9c4d2493 15447
85bfb75e
JM
15448.PHONY: maybe-install-html-libelf install-html-libelf
15449maybe-install-html-libelf:
15450@if libelf
15451maybe-install-html-libelf: install-html-libelf
65d6e994 15452
85bfb75e
JM
15453install-html-libelf: \
15454 configure-libelf \
15455 html-libelf
15456 @[ -f ./libelf/Makefile ] || exit 0; \
65d6e994
CD
15457 r=`${PWD_COMMAND}`; export r; \
15458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15459 $(HOST_EXPORTS) \
85bfb75e 15460 for flag in $(EXTRA_HOST_FLAGS) ; do \
65d6e994
CD
15461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15462 done; \
85bfb75e
JM
15463 echo "Doing install-html in libelf" ; \
15464 (cd $(HOST_SUBDIR)/libelf && \
65d6e994
CD
15465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15467 "RANLIB=$${RANLIB}" \
901119ae 15468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
15469 install-html) \
15470 || exit 1
15471
85bfb75e 15472@endif libelf
65d6e994 15473
85bfb75e
JM
15474.PHONY: maybe-installcheck-libelf installcheck-libelf
15475maybe-installcheck-libelf:
15476@if libelf
15477maybe-installcheck-libelf: installcheck-libelf
1358ccea 15478
85bfb75e
JM
15479installcheck-libelf: \
15480 configure-libelf
15481 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15482 r=`${PWD_COMMAND}`; export r; \
15483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15484 $(HOST_EXPORTS) \
85bfb75e 15485 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15487 done; \
85bfb75e
JM
15488 echo "Doing installcheck in libelf" ; \
15489 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15492 "RANLIB=$${RANLIB}" \
901119ae 15493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15494 installcheck) \
1358ccea
NN
15495 || exit 1
15496
85bfb75e 15497@endif libelf
1358ccea 15498
85bfb75e
JM
15499.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15500maybe-mostlyclean-libelf:
15501@if libelf
15502maybe-mostlyclean-libelf: mostlyclean-libelf
1358ccea 15503
85bfb75e
JM
15504mostlyclean-libelf:
15505 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15506 r=`${PWD_COMMAND}`; export r; \
15507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15508 $(HOST_EXPORTS) \
85bfb75e 15509 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15511 done; \
85bfb75e
JM
15512 echo "Doing mostlyclean in libelf" ; \
15513 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15516 "RANLIB=$${RANLIB}" \
901119ae 15517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15518 mostlyclean) \
1358ccea
NN
15519 || exit 1
15520
85bfb75e 15521@endif libelf
1358ccea 15522
85bfb75e
JM
15523.PHONY: maybe-clean-libelf clean-libelf
15524maybe-clean-libelf:
15525@if libelf
15526maybe-clean-libelf: clean-libelf
1358ccea 15527
85bfb75e
JM
15528clean-libelf:
15529 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15530 r=`${PWD_COMMAND}`; export r; \
15531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15532 $(HOST_EXPORTS) \
85bfb75e 15533 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15535 done; \
85bfb75e
JM
15536 echo "Doing clean in libelf" ; \
15537 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15540 "RANLIB=$${RANLIB}" \
901119ae 15541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15542 clean) \
1358ccea
NN
15543 || exit 1
15544
85bfb75e 15545@endif libelf
1358ccea 15546
85bfb75e
JM
15547.PHONY: maybe-distclean-libelf distclean-libelf
15548maybe-distclean-libelf:
15549@if libelf
15550maybe-distclean-libelf: distclean-libelf
1358ccea 15551
85bfb75e
JM
15552distclean-libelf:
15553 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15554 r=`${PWD_COMMAND}`; export r; \
15555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15556 $(HOST_EXPORTS) \
85bfb75e 15557 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15559 done; \
85bfb75e
JM
15560 echo "Doing distclean in libelf" ; \
15561 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15564 "RANLIB=$${RANLIB}" \
901119ae 15565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15566 distclean) \
1358ccea
NN
15567 || exit 1
15568
85bfb75e 15569@endif libelf
1358ccea 15570
85bfb75e
JM
15571.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15572maybe-maintainer-clean-libelf:
15573@if libelf
15574maybe-maintainer-clean-libelf: maintainer-clean-libelf
1358ccea 15575
85bfb75e
JM
15576maintainer-clean-libelf:
15577 @[ -f ./libelf/Makefile ] || exit 0; \
8c90b13a
L
15578 r=`${PWD_COMMAND}`; export r; \
15579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15580 $(HOST_EXPORTS) \
85bfb75e 15581 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15583 done; \
85bfb75e
JM
15584 echo "Doing maintainer-clean in libelf" ; \
15585 (cd $(HOST_SUBDIR)/libelf && \
1358ccea
NN
15586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15588 "RANLIB=$${RANLIB}" \
901119ae 15589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 15590 maintainer-clean) \
1358ccea
NN
15591 || exit 1
15592
85bfb75e 15593@endif libelf
1358ccea 15594
1358ccea 15595
25b42232 15596
85bfb75e
JM
15597.PHONY: configure-gold maybe-configure-gold
15598maybe-configure-gold:
3ff3adad 15599@if gcc-bootstrap
85bfb75e 15600configure-gold: stage_current
3ff3adad 15601@endif gcc-bootstrap
85bfb75e
JM
15602@if gold
15603maybe-configure-gold: configure-gold
15604configure-gold:
cc11cc9b 15605 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15607 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15608 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
f61428ed 15609 $(HOST_EXPORTS) \
85bfb75e
JM
15610 echo Configuring in $(HOST_SUBDIR)/gold; \
15611 cd "$(HOST_SUBDIR)/gold" || exit 1; \
295f4e42 15612 case $(srcdir) in \
215c351a 15613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 15614 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
215c351a 15615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15616 esac; \
85bfb75e
JM
15617 srcdiroption="--srcdir=$${topdir}/gold"; \
15618 libsrcdir="$$s/gold"; \
295f4e42 15619 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
15620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15621 --target=${target_alias} $${srcdiroption} \
295f4e42 15622 || exit 1
85bfb75e 15623@endif gold
25b42232 15624
ce406537
PB
15625
15626
85bfb75e
JM
15627.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15628maybe-configure-stage1-gold:
15629@if gold-bootstrap
15630maybe-configure-stage1-gold: configure-stage1-gold
15631configure-stage1-gold:
15632 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15633 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
295f4e42
NN
15634 @r=`${PWD_COMMAND}`; export r; \
15635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15636 TFLAGS="$(STAGE1_TFLAGS)"; \
15637 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15638 $(HOST_EXPORTS) \
15639 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15640 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15641 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
15642 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
15643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15644 cd $(HOST_SUBDIR)/gold || exit 1; \
15645 case $(srcdir) in \
15646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15647 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15649 esac; \
15650 srcdiroption="--srcdir=$${topdir}/gold"; \
15651 libsrcdir="$$s/gold"; \
15652 $(SHELL) $${libsrcdir}/configure \
15653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15654 --target=${target_alias} $${srcdiroption} \
15655 $(STAGE1_CONFIGURE_FLAGS)
15656@endif gold-bootstrap
295f4e42 15657
85bfb75e
JM
15658.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15659maybe-configure-stage2-gold:
15660@if gold-bootstrap
15661maybe-configure-stage2-gold: configure-stage2-gold
15662configure-stage2-gold:
15663 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15664 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
295f4e42
NN
15665 @r=`${PWD_COMMAND}`; export r; \
15666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15667 TFLAGS="$(STAGE2_TFLAGS)"; \
15668 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
4fc4dd12 15669 $(HOST_EXPORTS) \
85bfb75e
JM
15670 $(POSTSTAGE1_HOST_EXPORTS) \
15671 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15672 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15673 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
15674 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
15675 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15676 cd $(HOST_SUBDIR)/gold || exit 1; \
15677 case $(srcdir) in \
15678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15679 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15681 esac; \
15682 srcdiroption="--srcdir=$${topdir}/gold"; \
15683 libsrcdir="$$s/gold"; \
15684 $(SHELL) $${libsrcdir}/configure \
15685 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15686 --target=${target_alias} $${srcdiroption} \
15687 --with-build-libsubdir=$(HOST_SUBDIR) \
15688 $(STAGE2_CONFIGURE_FLAGS)
15689@endif gold-bootstrap
295f4e42 15690
85bfb75e
JM
15691.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15692maybe-configure-stage3-gold:
15693@if gold-bootstrap
15694maybe-configure-stage3-gold: configure-stage3-gold
15695configure-stage3-gold:
15696 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15697 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
295f4e42
NN
15698 @r=`${PWD_COMMAND}`; export r; \
15699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15700 TFLAGS="$(STAGE3_TFLAGS)"; \
15701 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
4fc4dd12 15702 $(HOST_EXPORTS) \
85bfb75e
JM
15703 $(POSTSTAGE1_HOST_EXPORTS) \
15704 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15705 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15706 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
15707 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
15708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15709 cd $(HOST_SUBDIR)/gold || exit 1; \
15710 case $(srcdir) in \
15711 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15712 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15713 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15714 esac; \
15715 srcdiroption="--srcdir=$${topdir}/gold"; \
15716 libsrcdir="$$s/gold"; \
15717 $(SHELL) $${libsrcdir}/configure \
15718 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15719 --target=${target_alias} $${srcdiroption} \
15720 --with-build-libsubdir=$(HOST_SUBDIR) \
15721 $(STAGE3_CONFIGURE_FLAGS)
15722@endif gold-bootstrap
455c8f48 15723
85bfb75e
JM
15724.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15725maybe-configure-stage4-gold:
15726@if gold-bootstrap
15727maybe-configure-stage4-gold: configure-stage4-gold
15728configure-stage4-gold:
15729 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15730 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
455c8f48
RW
15731 @r=`${PWD_COMMAND}`; export r; \
15732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15733 TFLAGS="$(STAGE4_TFLAGS)"; \
15734 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
455c8f48 15735 $(HOST_EXPORTS) \
85bfb75e
JM
15736 $(POSTSTAGE1_HOST_EXPORTS) \
15737 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15738 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15739 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
15740 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
15741 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15742 cd $(HOST_SUBDIR)/gold || exit 1; \
15743 case $(srcdir) in \
15744 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15745 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15746 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15747 esac; \
15748 srcdiroption="--srcdir=$${topdir}/gold"; \
15749 libsrcdir="$$s/gold"; \
15750 $(SHELL) $${libsrcdir}/configure \
15751 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15752 --target=${target_alias} $${srcdiroption} \
15753 --with-build-libsubdir=$(HOST_SUBDIR) \
15754 $(STAGE4_CONFIGURE_FLAGS)
15755@endif gold-bootstrap
295f4e42 15756
85bfb75e
JM
15757.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15758maybe-configure-stageprofile-gold:
15759@if gold-bootstrap
15760maybe-configure-stageprofile-gold: configure-stageprofile-gold
15761configure-stageprofile-gold:
15762 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15763 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15764 @r=`${PWD_COMMAND}`; export r; \
295f4e42 15765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15766 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15767 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
4fc4dd12 15768 $(HOST_EXPORTS) \
85bfb75e
JM
15769 $(POSTSTAGE1_HOST_EXPORTS) \
15770 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15771 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15772 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
15773 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
15774 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15775 cd $(HOST_SUBDIR)/gold || exit 1; \
15776 case $(srcdir) in \
15777 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15778 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15779 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15780 esac; \
15781 srcdiroption="--srcdir=$${topdir}/gold"; \
15782 libsrcdir="$$s/gold"; \
15783 $(SHELL) $${libsrcdir}/configure \
15784 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15785 --target=${target_alias} $${srcdiroption} \
15786 --with-build-libsubdir=$(HOST_SUBDIR) \
15787 $(STAGEprofile_CONFIGURE_FLAGS)
15788@endif gold-bootstrap
1358ccea 15789
85bfb75e
JM
15790.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15791maybe-configure-stagefeedback-gold:
15792@if gold-bootstrap
15793maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15794configure-stagefeedback-gold:
15795 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15796 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15797 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15799 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15800 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
4fc4dd12 15801 $(HOST_EXPORTS) \
85bfb75e
JM
15802 $(POSTSTAGE1_HOST_EXPORTS) \
15803 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15804 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15805 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
15806 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
15807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15808 cd $(HOST_SUBDIR)/gold || exit 1; \
15809 case $(srcdir) in \
15810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15811 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15813 esac; \
15814 srcdiroption="--srcdir=$${topdir}/gold"; \
15815 libsrcdir="$$s/gold"; \
15816 $(SHELL) $${libsrcdir}/configure \
15817 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15818 --target=${target_alias} $${srcdiroption} \
15819 --with-build-libsubdir=$(HOST_SUBDIR) \
15820 $(STAGEfeedback_CONFIGURE_FLAGS)
15821@endif gold-bootstrap
1358ccea 15822
b5422ad7 15823
b5422ad7 15824
b5422ad7 15825
f87a2b2e 15826
85bfb75e
JM
15827.PHONY: all-gold maybe-all-gold
15828maybe-all-gold:
15829@if gcc-bootstrap
15830all-gold: stage_current
15831@endif gcc-bootstrap
15832@if gold
15833TARGET-gold=all
15834maybe-all-gold: all-gold
15835all-gold: configure-gold
15836 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 15837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15838 $(HOST_EXPORTS) \
15839 (cd $(HOST_SUBDIR)/gold && \
15840 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
15841 $(TARGET-gold))
15842@endif gold
f87a2b2e 15843
f87a2b2e 15844
d9cdb878 15845
85bfb75e
JM
15846.PHONY: all-stage1-gold maybe-all-stage1-gold
15847.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15848maybe-all-stage1-gold:
15849maybe-clean-stage1-gold:
15850@if gold-bootstrap
15851maybe-all-stage1-gold: all-stage1-gold
15852all-stage1: all-stage1-gold
15853TARGET-stage1-gold = $(TARGET-gold)
15854all-stage1-gold: configure-stage1-gold
15855 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15856 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 15857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
15858 TFLAGS="$(STAGE1_TFLAGS)"; \
15859 $(HOST_EXPORTS) \
15860 cd $(HOST_SUBDIR)/gold && \
15861 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15862 CFLAGS="$(STAGE1_CFLAGS)" \
15863 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15864 LIBCFLAGS="$(LIBCFLAGS)" \
15865 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15866 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15867 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15868 $(EXTRA_HOST_FLAGS) \
15869 TFLAGS="$(STAGE1_TFLAGS)" \
15870 $(TARGET-stage1-gold)
d9cdb878 15871
85bfb75e
JM
15872maybe-clean-stage1-gold: clean-stage1-gold
15873clean-stage1: clean-stage1-gold
15874clean-stage1-gold:
15875 @if [ $(current_stage) = stage1 ]; then \
15876 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15877 else \
15878 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15879 $(MAKE) stage1-start; \
15880 fi; \
15881 cd $(HOST_SUBDIR)/gold && \
15882 $(MAKE) $(EXTRA_HOST_FLAGS) \
15883 clean
15884@endif gold-bootstrap
d9cdb878 15885
1358ccea 15886
85bfb75e
JM
15887.PHONY: all-stage2-gold maybe-all-stage2-gold
15888.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15889maybe-all-stage2-gold:
15890maybe-clean-stage2-gold:
15891@if gold-bootstrap
15892maybe-all-stage2-gold: all-stage2-gold
15893all-stage2: all-stage2-gold
15894TARGET-stage2-gold = $(TARGET-gold)
15895all-stage2-gold: configure-stage2-gold
15896 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15897 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 15899 TFLAGS="$(STAGE2_TFLAGS)"; \
4fc4dd12 15900 $(HOST_EXPORTS) \
85bfb75e
JM
15901 $(POSTSTAGE1_HOST_EXPORTS) \
15902 cd $(HOST_SUBDIR)/gold && \
15903 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15904 CFLAGS="$(STAGE2_CFLAGS)" \
15905 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15906 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15907 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15908 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15909 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15910 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15911 TFLAGS="$(STAGE2_TFLAGS)" \
15912 $(TARGET-stage2-gold)
1358ccea 15913
85bfb75e
JM
15914maybe-clean-stage2-gold: clean-stage2-gold
15915clean-stage2: clean-stage2-gold
15916clean-stage2-gold:
15917 @if [ $(current_stage) = stage2 ]; then \
15918 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15919 else \
15920 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15921 $(MAKE) stage2-start; \
15922 fi; \
15923 cd $(HOST_SUBDIR)/gold && \
15924 $(MAKE) $(EXTRA_HOST_FLAGS) \
15925 $(POSTSTAGE1_FLAGS_TO_PASS) \
15926 clean
15927@endif gold-bootstrap
1358ccea 15928
9c4d2493 15929
85bfb75e
JM
15930.PHONY: all-stage3-gold maybe-all-stage3-gold
15931.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15932maybe-all-stage3-gold:
15933maybe-clean-stage3-gold:
15934@if gold-bootstrap
15935maybe-all-stage3-gold: all-stage3-gold
15936all-stage3: all-stage3-gold
15937TARGET-stage3-gold = $(TARGET-gold)
15938all-stage3-gold: configure-stage3-gold
15939 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15940 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 15942 TFLAGS="$(STAGE3_TFLAGS)"; \
4fc4dd12 15943 $(HOST_EXPORTS) \
85bfb75e
JM
15944 $(POSTSTAGE1_HOST_EXPORTS) \
15945 cd $(HOST_SUBDIR)/gold && \
15946 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15947 CFLAGS="$(STAGE3_CFLAGS)" \
15948 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15949 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15950 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15951 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15952 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15953 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15954 TFLAGS="$(STAGE3_TFLAGS)" \
15955 $(TARGET-stage3-gold)
1358ccea 15956
85bfb75e
JM
15957maybe-clean-stage3-gold: clean-stage3-gold
15958clean-stage3: clean-stage3-gold
15959clean-stage3-gold:
15960 @if [ $(current_stage) = stage3 ]; then \
15961 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15962 else \
15963 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15964 $(MAKE) stage3-start; \
15965 fi; \
15966 cd $(HOST_SUBDIR)/gold && \
15967 $(MAKE) $(EXTRA_HOST_FLAGS) \
15968 $(POSTSTAGE1_FLAGS_TO_PASS) \
15969 clean
15970@endif gold-bootstrap
1358ccea 15971
1358ccea 15972
85bfb75e
JM
15973.PHONY: all-stage4-gold maybe-all-stage4-gold
15974.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15975maybe-all-stage4-gold:
15976maybe-clean-stage4-gold:
15977@if gold-bootstrap
15978maybe-all-stage4-gold: all-stage4-gold
15979all-stage4: all-stage4-gold
15980TARGET-stage4-gold = $(TARGET-gold)
15981all-stage4-gold: configure-stage4-gold
15982 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15983 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 15985 TFLAGS="$(STAGE4_TFLAGS)"; \
4fc4dd12 15986 $(HOST_EXPORTS) \
85bfb75e
JM
15987 $(POSTSTAGE1_HOST_EXPORTS) \
15988 cd $(HOST_SUBDIR)/gold && \
15989 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15990 CFLAGS="$(STAGE4_CFLAGS)" \
15991 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15992 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15996 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15997 TFLAGS="$(STAGE4_TFLAGS)" \
15998 $(TARGET-stage4-gold)
1358ccea 15999
85bfb75e
JM
16000maybe-clean-stage4-gold: clean-stage4-gold
16001clean-stage4: clean-stage4-gold
16002clean-stage4-gold:
16003 @if [ $(current_stage) = stage4 ]; then \
16004 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16005 else \
16006 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
16007 $(MAKE) stage4-start; \
16008 fi; \
16009 cd $(HOST_SUBDIR)/gold && \
16010 $(MAKE) $(EXTRA_HOST_FLAGS) \
16011 $(POSTSTAGE1_FLAGS_TO_PASS) \
16012 clean
16013@endif gold-bootstrap
1358ccea 16014
1358ccea 16015
85bfb75e
JM
16016.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
16017.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
16018maybe-all-stageprofile-gold:
16019maybe-clean-stageprofile-gold:
16020@if gold-bootstrap
16021maybe-all-stageprofile-gold: all-stageprofile-gold
16022all-stageprofile: all-stageprofile-gold
16023TARGET-stageprofile-gold = $(TARGET-gold)
16024all-stageprofile-gold: configure-stageprofile-gold
16025 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16026 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 16028 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 16029 $(HOST_EXPORTS) \
85bfb75e
JM
16030 $(POSTSTAGE1_HOST_EXPORTS) \
16031 cd $(HOST_SUBDIR)/gold && \
16032 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16033 CFLAGS="$(STAGEprofile_CFLAGS)" \
16034 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
16035 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
16036 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16037 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16038 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16039 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16040 TFLAGS="$(STAGEprofile_TFLAGS)" \
16041 $(TARGET-stageprofile-gold)
1358ccea 16042
85bfb75e
JM
16043maybe-clean-stageprofile-gold: clean-stageprofile-gold
16044clean-stageprofile: clean-stageprofile-gold
16045clean-stageprofile-gold:
16046 @if [ $(current_stage) = stageprofile ]; then \
16047 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16048 else \
16049 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
16050 $(MAKE) stageprofile-start; \
16051 fi; \
16052 cd $(HOST_SUBDIR)/gold && \
16053 $(MAKE) $(EXTRA_HOST_FLAGS) \
16054 $(POSTSTAGE1_FLAGS_TO_PASS) \
16055 clean
16056@endif gold-bootstrap
1358ccea 16057
25b42232 16058
85bfb75e
JM
16059.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
16060.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
16061maybe-all-stagefeedback-gold:
16062maybe-clean-stagefeedback-gold:
16063@if gold-bootstrap
16064maybe-all-stagefeedback-gold: all-stagefeedback-gold
16065all-stagefeedback: all-stagefeedback-gold
16066TARGET-stagefeedback-gold = $(TARGET-gold)
16067all-stagefeedback-gold: configure-stagefeedback-gold
16068 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
cc11cc9b 16069 @r=`${PWD_COMMAND}`; export r; \
295f4e42 16070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
16071 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
16072 $(HOST_EXPORTS) \
16073 $(POSTSTAGE1_HOST_EXPORTS) \
16074 cd $(HOST_SUBDIR)/gold && \
16075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16076 CFLAGS="$(STAGEfeedback_CFLAGS)" \
16077 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
16078 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
16079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16083 TFLAGS="$(STAGEfeedback_TFLAGS)" \
16084 $(TARGET-stagefeedback-gold)
ce406537 16085
85bfb75e
JM
16086maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
16087clean-stagefeedback: clean-stagefeedback-gold
16088clean-stagefeedback-gold:
16089 @if [ $(current_stage) = stagefeedback ]; then \
16090 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16091 else \
16092 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
16093 $(MAKE) stagefeedback-start; \
16094 fi; \
16095 cd $(HOST_SUBDIR)/gold && \
16096 $(MAKE) $(EXTRA_HOST_FLAGS) \
16097 $(POSTSTAGE1_FLAGS_TO_PASS) \
16098 clean
16099@endif gold-bootstrap
ce406537 16100
295f4e42 16101
25b42232 16102
ce406537
PB
16103
16104
85bfb75e
JM
16105.PHONY: check-gold maybe-check-gold
16106maybe-check-gold:
16107@if gold
16108maybe-check-gold: check-gold
295f4e42 16109
85bfb75e 16110check-gold:
f41d6665 16111 @: $(MAKE); $(unstage)
295f4e42
NN
16112 @r=`${PWD_COMMAND}`; export r; \
16113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16114 $(HOST_EXPORTS) \
85bfb75e 16115 (cd $(HOST_SUBDIR)/gold && \
215c351a 16116 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 16117
85bfb75e 16118@endif gold
295f4e42 16119
85bfb75e
JM
16120.PHONY: install-gold maybe-install-gold
16121maybe-install-gold:
16122@if gold
16123maybe-install-gold: install-gold
295f4e42 16124
85bfb75e 16125install-gold: installdirs
f41d6665 16126 @: $(MAKE); $(unstage)
295f4e42
NN
16127 @r=`${PWD_COMMAND}`; export r; \
16128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16129 $(HOST_EXPORTS) \
85bfb75e 16130 (cd $(HOST_SUBDIR)/gold && \
ace9ac7b 16131 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 16132
85bfb75e 16133@endif gold
295f4e42 16134
85bfb75e
JM
16135.PHONY: install-strip-gold maybe-install-strip-gold
16136maybe-install-strip-gold:
16137@if gold
16138maybe-install-strip-gold: install-strip-gold
455c8f48 16139
85bfb75e 16140install-strip-gold: installdirs
455c8f48
RW
16141 @: $(MAKE); $(unstage)
16142 @r=`${PWD_COMMAND}`; export r; \
16143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16144 $(HOST_EXPORTS) \
85bfb75e 16145 (cd $(HOST_SUBDIR)/gold && \
455c8f48
RW
16146 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16147
85bfb75e 16148@endif gold
455c8f48 16149
b5422ad7 16150# Other targets (info, dvi, pdf, etc.)
295f4e42 16151
85bfb75e
JM
16152.PHONY: maybe-info-gold info-gold
16153maybe-info-gold:
16154@if gold
16155maybe-info-gold: info-gold
295f4e42 16156
85bfb75e
JM
16157info-gold: \
16158 configure-gold
16159 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16160 r=`${PWD_COMMAND}`; export r; \
16161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16162 $(HOST_EXPORTS) \
d32ab992 16163 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16165 done; \
85bfb75e
JM
16166 echo "Doing info in gold" ; \
16167 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16170 "RANLIB=$${RANLIB}" \
901119ae 16171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16172 info) \
1358ccea
NN
16173 || exit 1
16174
85bfb75e 16175@endif gold
1358ccea 16176
85bfb75e
JM
16177.PHONY: maybe-dvi-gold dvi-gold
16178maybe-dvi-gold:
16179@if gold
16180maybe-dvi-gold: dvi-gold
1358ccea 16181
85bfb75e
JM
16182dvi-gold: \
16183 configure-gold
16184 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16185 r=`${PWD_COMMAND}`; export r; \
16186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16187 $(HOST_EXPORTS) \
d32ab992 16188 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16190 done; \
85bfb75e
JM
16191 echo "Doing dvi in gold" ; \
16192 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16195 "RANLIB=$${RANLIB}" \
901119ae 16196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16197 dvi) \
1358ccea
NN
16198 || exit 1
16199
85bfb75e 16200@endif gold
1358ccea 16201
85bfb75e
JM
16202.PHONY: maybe-pdf-gold pdf-gold
16203maybe-pdf-gold:
16204@if gold
16205maybe-pdf-gold: pdf-gold
b5422ad7 16206
85bfb75e
JM
16207pdf-gold: \
16208 configure-gold
16209 @[ -f ./gold/Makefile ] || exit 0; \
b5422ad7
BM
16210 r=`${PWD_COMMAND}`; export r; \
16211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16212 $(HOST_EXPORTS) \
16213 for flag in $(EXTRA_HOST_FLAGS) ; do \
16214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16215 done; \
85bfb75e
JM
16216 echo "Doing pdf in gold" ; \
16217 (cd $(HOST_SUBDIR)/gold && \
b5422ad7
BM
16218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16220 "RANLIB=$${RANLIB}" \
901119ae 16221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
16222 pdf) \
16223 || exit 1
16224
85bfb75e 16225@endif gold
b5422ad7 16226
85bfb75e
JM
16227.PHONY: maybe-html-gold html-gold
16228maybe-html-gold:
16229@if gold
16230maybe-html-gold: html-gold
f87a2b2e 16231
85bfb75e
JM
16232html-gold: \
16233 configure-gold
16234 @[ -f ./gold/Makefile ] || exit 0; \
f87a2b2e
MS
16235 r=`${PWD_COMMAND}`; export r; \
16236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16237 $(HOST_EXPORTS) \
16238 for flag in $(EXTRA_HOST_FLAGS) ; do \
16239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16240 done; \
85bfb75e
JM
16241 echo "Doing html in gold" ; \
16242 (cd $(HOST_SUBDIR)/gold && \
f87a2b2e
MS
16243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16245 "RANLIB=$${RANLIB}" \
901119ae 16246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
16247 html) \
16248 || exit 1
16249
85bfb75e 16250@endif gold
f87a2b2e 16251
85bfb75e
JM
16252.PHONY: maybe-TAGS-gold TAGS-gold
16253maybe-TAGS-gold:
16254@if gold
16255maybe-TAGS-gold: TAGS-gold
1358ccea 16256
85bfb75e
JM
16257TAGS-gold: \
16258 configure-gold
16259 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16260 r=`${PWD_COMMAND}`; export r; \
16261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16262 $(HOST_EXPORTS) \
d32ab992 16263 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16265 done; \
85bfb75e
JM
16266 echo "Doing TAGS in gold" ; \
16267 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16270 "RANLIB=$${RANLIB}" \
901119ae 16271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16272 TAGS) \
1358ccea
NN
16273 || exit 1
16274
85bfb75e 16275@endif gold
1358ccea 16276
85bfb75e
JM
16277.PHONY: maybe-install-info-gold install-info-gold
16278maybe-install-info-gold:
16279@if gold
16280maybe-install-info-gold: install-info-gold
d32ab992 16281
85bfb75e
JM
16282install-info-gold: \
16283 configure-gold \
16284 info-gold
16285 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16286 r=`${PWD_COMMAND}`; export r; \
16287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16288 $(HOST_EXPORTS) \
d32ab992 16289 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16291 done; \
85bfb75e
JM
16292 echo "Doing install-info in gold" ; \
16293 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16296 "RANLIB=$${RANLIB}" \
901119ae 16297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16298 install-info) \
1358ccea
NN
16299 || exit 1
16300
85bfb75e 16301@endif gold
1358ccea 16302
85bfb75e
JM
16303.PHONY: maybe-install-pdf-gold install-pdf-gold
16304maybe-install-pdf-gold:
16305@if gold
16306maybe-install-pdf-gold: install-pdf-gold
9c4d2493 16307
85bfb75e
JM
16308install-pdf-gold: \
16309 configure-gold \
16310 pdf-gold
16311 @[ -f ./gold/Makefile ] || exit 0; \
9c4d2493
BM
16312 r=`${PWD_COMMAND}`; export r; \
16313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16314 $(HOST_EXPORTS) \
16315 for flag in $(EXTRA_HOST_FLAGS) ; do \
16316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16317 done; \
85bfb75e
JM
16318 echo "Doing install-pdf in gold" ; \
16319 (cd $(HOST_SUBDIR)/gold && \
9c4d2493
BM
16320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16322 "RANLIB=$${RANLIB}" \
901119ae 16323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
16324 install-pdf) \
16325 || exit 1
16326
85bfb75e 16327@endif gold
9c4d2493 16328
85bfb75e
JM
16329.PHONY: maybe-install-html-gold install-html-gold
16330maybe-install-html-gold:
16331@if gold
16332maybe-install-html-gold: install-html-gold
65d6e994 16333
85bfb75e
JM
16334install-html-gold: \
16335 configure-gold \
16336 html-gold
16337 @[ -f ./gold/Makefile ] || exit 0; \
65d6e994
CD
16338 r=`${PWD_COMMAND}`; export r; \
16339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16340 $(HOST_EXPORTS) \
16341 for flag in $(EXTRA_HOST_FLAGS) ; do \
16342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16343 done; \
85bfb75e
JM
16344 echo "Doing install-html in gold" ; \
16345 (cd $(HOST_SUBDIR)/gold && \
65d6e994
CD
16346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16348 "RANLIB=$${RANLIB}" \
901119ae 16349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
16350 install-html) \
16351 || exit 1
16352
85bfb75e 16353@endif gold
65d6e994 16354
85bfb75e
JM
16355.PHONY: maybe-installcheck-gold installcheck-gold
16356maybe-installcheck-gold:
16357@if gold
16358maybe-installcheck-gold: installcheck-gold
1358ccea 16359
85bfb75e
JM
16360installcheck-gold: \
16361 configure-gold
16362 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16363 r=`${PWD_COMMAND}`; export r; \
16364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16365 $(HOST_EXPORTS) \
d32ab992 16366 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16368 done; \
85bfb75e
JM
16369 echo "Doing installcheck in gold" ; \
16370 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16373 "RANLIB=$${RANLIB}" \
901119ae 16374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16375 installcheck) \
1358ccea
NN
16376 || exit 1
16377
85bfb75e 16378@endif gold
1358ccea 16379
85bfb75e
JM
16380.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16381maybe-mostlyclean-gold:
16382@if gold
16383maybe-mostlyclean-gold: mostlyclean-gold
1358ccea 16384
85bfb75e
JM
16385mostlyclean-gold:
16386 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16387 r=`${PWD_COMMAND}`; export r; \
16388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16389 $(HOST_EXPORTS) \
d32ab992 16390 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16392 done; \
85bfb75e
JM
16393 echo "Doing mostlyclean in gold" ; \
16394 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16397 "RANLIB=$${RANLIB}" \
901119ae 16398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16399 mostlyclean) \
1358ccea
NN
16400 || exit 1
16401
85bfb75e 16402@endif gold
1358ccea 16403
85bfb75e
JM
16404.PHONY: maybe-clean-gold clean-gold
16405maybe-clean-gold:
16406@if gold
16407maybe-clean-gold: clean-gold
1358ccea 16408
85bfb75e
JM
16409clean-gold:
16410 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16411 r=`${PWD_COMMAND}`; export r; \
16412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16413 $(HOST_EXPORTS) \
d32ab992 16414 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16416 done; \
85bfb75e
JM
16417 echo "Doing clean in gold" ; \
16418 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16421 "RANLIB=$${RANLIB}" \
901119ae 16422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16423 clean) \
1358ccea
NN
16424 || exit 1
16425
85bfb75e 16426@endif gold
1358ccea 16427
85bfb75e
JM
16428.PHONY: maybe-distclean-gold distclean-gold
16429maybe-distclean-gold:
16430@if gold
16431maybe-distclean-gold: distclean-gold
1358ccea 16432
85bfb75e
JM
16433distclean-gold:
16434 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16435 r=`${PWD_COMMAND}`; export r; \
16436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16437 $(HOST_EXPORTS) \
d32ab992 16438 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16440 done; \
85bfb75e
JM
16441 echo "Doing distclean in gold" ; \
16442 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16445 "RANLIB=$${RANLIB}" \
901119ae 16446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16447 distclean) \
1358ccea
NN
16448 || exit 1
16449
85bfb75e 16450@endif gold
1358ccea 16451
85bfb75e
JM
16452.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16453maybe-maintainer-clean-gold:
16454@if gold
16455maybe-maintainer-clean-gold: maintainer-clean-gold
1358ccea 16456
85bfb75e
JM
16457maintainer-clean-gold:
16458 @[ -f ./gold/Makefile ] || exit 0; \
8c90b13a
L
16459 r=`${PWD_COMMAND}`; export r; \
16460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16461 $(HOST_EXPORTS) \
d32ab992 16462 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16464 done; \
85bfb75e
JM
16465 echo "Doing maintainer-clean in gold" ; \
16466 (cd $(HOST_SUBDIR)/gold && \
1358ccea
NN
16467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16469 "RANLIB=$${RANLIB}" \
901119ae 16470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 16471 maintainer-clean) \
1358ccea
NN
16472 || exit 1
16473
85bfb75e 16474@endif gold
1358ccea 16475
1358ccea 16476
25b42232 16477
85bfb75e
JM
16478.PHONY: configure-gprof maybe-configure-gprof
16479maybe-configure-gprof:
e69bf64b 16480@if gcc-bootstrap
85bfb75e 16481configure-gprof: stage_current
e69bf64b 16482@endif gcc-bootstrap
85bfb75e
JM
16483@if gprof
16484maybe-configure-gprof: configure-gprof
16485configure-gprof:
16486 @: $(MAKE); $(unstage)
e69bf64b
PB
16487 @r=`${PWD_COMMAND}`; export r; \
16488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
16489 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
16490 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
f61428ed 16491 $(HOST_EXPORTS) \
85bfb75e
JM
16492 echo Configuring in $(HOST_SUBDIR)/gprof; \
16493 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
e69bf64b
PB
16494 case $(srcdir) in \
16495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 16496 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
e69bf64b
PB
16497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16498 esac; \
85bfb75e
JM
16499 srcdiroption="--srcdir=$${topdir}/gprof"; \
16500 libsrcdir="$$s/gprof"; \
e69bf64b 16501 $(SHELL) $${libsrcdir}/configure \
85bfb75e
JM
16502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16503 --target=${target_alias} $${srcdiroption} \
e69bf64b 16504 || exit 1
85bfb75e 16505@endif gprof
e69bf64b
PB
16506
16507
16508
e69bf64b 16509
85bfb75e
JM
16510
16511.PHONY: all-gprof maybe-all-gprof
16512maybe-all-gprof:
16513@if gcc-bootstrap
16514all-gprof: stage_current
16515@endif gcc-bootstrap
16516@if gprof
16517TARGET-gprof=all
16518maybe-all-gprof: all-gprof
16519all-gprof: configure-gprof
16520 @: $(MAKE); $(unstage)
e69bf64b
PB
16521 @r=`${PWD_COMMAND}`; export r; \
16522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 16523 $(HOST_EXPORTS) \
85bfb75e 16524 (cd $(HOST_SUBDIR)/gprof && \
1c8bd6a3 16525 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
16526 $(TARGET-gprof))
16527@endif gprof
e69bf64b
PB
16528
16529
e69bf64b 16530
e69bf64b 16531
85bfb75e
JM
16532.PHONY: check-gprof maybe-check-gprof
16533maybe-check-gprof:
16534@if gprof
16535maybe-check-gprof: check-gprof
e69bf64b 16536
85bfb75e
JM
16537check-gprof:
16538 @: $(MAKE); $(unstage)
e69bf64b
PB
16539 @r=`${PWD_COMMAND}`; export r; \
16540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16541 $(HOST_EXPORTS) \
85bfb75e
JM
16542 (cd $(HOST_SUBDIR)/gprof && \
16543 $(MAKE) $(FLAGS_TO_PASS) check)
e69bf64b 16544
85bfb75e 16545@endif gprof
e69bf64b 16546
85bfb75e
JM
16547.PHONY: install-gprof maybe-install-gprof
16548maybe-install-gprof:
16549@if gprof
16550maybe-install-gprof: install-gprof
e69bf64b 16551
85bfb75e
JM
16552install-gprof: installdirs
16553 @: $(MAKE); $(unstage)
e69bf64b
PB
16554 @r=`${PWD_COMMAND}`; export r; \
16555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16556 $(HOST_EXPORTS) \
85bfb75e
JM
16557 (cd $(HOST_SUBDIR)/gprof && \
16558 $(MAKE) $(FLAGS_TO_PASS) install)
e69bf64b 16559
85bfb75e 16560@endif gprof
e69bf64b 16561
85bfb75e
JM
16562.PHONY: install-strip-gprof maybe-install-strip-gprof
16563maybe-install-strip-gprof:
16564@if gprof
16565maybe-install-strip-gprof: install-strip-gprof
e69bf64b 16566
85bfb75e 16567install-strip-gprof: installdirs
e69bf64b
PB
16568 @: $(MAKE); $(unstage)
16569 @r=`${PWD_COMMAND}`; export r; \
16570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16571 $(HOST_EXPORTS) \
85bfb75e
JM
16572 (cd $(HOST_SUBDIR)/gprof && \
16573 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 16574
85bfb75e 16575@endif gprof
455c8f48 16576
e69bf64b
PB
16577# Other targets (info, dvi, pdf, etc.)
16578
85bfb75e
JM
16579.PHONY: maybe-info-gprof info-gprof
16580maybe-info-gprof:
16581@if gprof
16582maybe-info-gprof: info-gprof
e69bf64b 16583
85bfb75e
JM
16584info-gprof: \
16585 configure-gprof
16586 @: $(MAKE); $(unstage)
16587 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16588 r=`${PWD_COMMAND}`; export r; \
16589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16590 $(HOST_EXPORTS) \
16591 for flag in $(EXTRA_HOST_FLAGS) ; do \
16592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16593 done; \
85bfb75e
JM
16594 echo "Doing info in gprof" ; \
16595 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16598 "RANLIB=$${RANLIB}" \
901119ae 16599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16600 info) \
16601 || exit 1
16602
85bfb75e 16603@endif gprof
e69bf64b 16604
85bfb75e
JM
16605.PHONY: maybe-dvi-gprof dvi-gprof
16606maybe-dvi-gprof:
16607@if gprof
16608maybe-dvi-gprof: dvi-gprof
e69bf64b 16609
85bfb75e
JM
16610dvi-gprof: \
16611 configure-gprof
16612 @: $(MAKE); $(unstage)
16613 @[ -f ./gprof/Makefile ] || exit 0; \
16614 r=`${PWD_COMMAND}`; export r; \
16615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16616 $(HOST_EXPORTS) \
e69bf64b
PB
16617 for flag in $(EXTRA_HOST_FLAGS) ; do \
16618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16619 done; \
85bfb75e
JM
16620 echo "Doing dvi in gprof" ; \
16621 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16624 "RANLIB=$${RANLIB}" \
901119ae 16625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16626 dvi) \
16627 || exit 1
16628
85bfb75e 16629@endif gprof
e69bf64b 16630
85bfb75e
JM
16631.PHONY: maybe-pdf-gprof pdf-gprof
16632maybe-pdf-gprof:
16633@if gprof
16634maybe-pdf-gprof: pdf-gprof
e69bf64b 16635
85bfb75e
JM
16636pdf-gprof: \
16637 configure-gprof
16638 @: $(MAKE); $(unstage)
16639 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16640 r=`${PWD_COMMAND}`; export r; \
16641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16642 $(HOST_EXPORTS) \
16643 for flag in $(EXTRA_HOST_FLAGS) ; do \
16644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16645 done; \
85bfb75e
JM
16646 echo "Doing pdf in gprof" ; \
16647 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16650 "RANLIB=$${RANLIB}" \
901119ae 16651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16652 pdf) \
16653 || exit 1
16654
85bfb75e 16655@endif gprof
e69bf64b 16656
85bfb75e
JM
16657.PHONY: maybe-html-gprof html-gprof
16658maybe-html-gprof:
16659@if gprof
16660maybe-html-gprof: html-gprof
e69bf64b 16661
85bfb75e
JM
16662html-gprof: \
16663 configure-gprof
16664 @: $(MAKE); $(unstage)
16665 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16666 r=`${PWD_COMMAND}`; export r; \
16667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16668 $(HOST_EXPORTS) \
16669 for flag in $(EXTRA_HOST_FLAGS) ; do \
16670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16671 done; \
85bfb75e
JM
16672 echo "Doing html in gprof" ; \
16673 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16676 "RANLIB=$${RANLIB}" \
901119ae 16677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16678 html) \
16679 || exit 1
16680
85bfb75e 16681@endif gprof
e69bf64b 16682
85bfb75e
JM
16683.PHONY: maybe-TAGS-gprof TAGS-gprof
16684maybe-TAGS-gprof:
16685@if gprof
16686maybe-TAGS-gprof: TAGS-gprof
e69bf64b 16687
85bfb75e
JM
16688TAGS-gprof: \
16689 configure-gprof
16690 @: $(MAKE); $(unstage)
16691 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16692 r=`${PWD_COMMAND}`; export r; \
16693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16694 $(HOST_EXPORTS) \
16695 for flag in $(EXTRA_HOST_FLAGS) ; do \
16696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16697 done; \
85bfb75e
JM
16698 echo "Doing TAGS in gprof" ; \
16699 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16702 "RANLIB=$${RANLIB}" \
901119ae 16703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16704 TAGS) \
16705 || exit 1
16706
85bfb75e 16707@endif gprof
e69bf64b 16708
85bfb75e
JM
16709.PHONY: maybe-install-info-gprof install-info-gprof
16710maybe-install-info-gprof:
16711@if gprof
16712maybe-install-info-gprof: install-info-gprof
e69bf64b 16713
85bfb75e
JM
16714install-info-gprof: \
16715 configure-gprof \
16716 info-gprof
16717 @: $(MAKE); $(unstage)
16718 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16719 r=`${PWD_COMMAND}`; export r; \
16720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16721 $(HOST_EXPORTS) \
16722 for flag in $(EXTRA_HOST_FLAGS) ; do \
16723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16724 done; \
85bfb75e
JM
16725 echo "Doing install-info in gprof" ; \
16726 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16729 "RANLIB=$${RANLIB}" \
901119ae 16730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16731 install-info) \
16732 || exit 1
16733
85bfb75e 16734@endif gprof
e69bf64b 16735
85bfb75e
JM
16736.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16737maybe-install-pdf-gprof:
16738@if gprof
16739maybe-install-pdf-gprof: install-pdf-gprof
9c4d2493 16740
85bfb75e
JM
16741install-pdf-gprof: \
16742 configure-gprof \
16743 pdf-gprof
16744 @: $(MAKE); $(unstage)
16745 @[ -f ./gprof/Makefile ] || exit 0; \
9c4d2493
BM
16746 r=`${PWD_COMMAND}`; export r; \
16747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16748 $(HOST_EXPORTS) \
16749 for flag in $(EXTRA_HOST_FLAGS) ; do \
16750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16751 done; \
85bfb75e
JM
16752 echo "Doing install-pdf in gprof" ; \
16753 (cd $(HOST_SUBDIR)/gprof && \
9c4d2493
BM
16754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16756 "RANLIB=$${RANLIB}" \
901119ae 16757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
16758 install-pdf) \
16759 || exit 1
16760
85bfb75e 16761@endif gprof
9c4d2493 16762
85bfb75e
JM
16763.PHONY: maybe-install-html-gprof install-html-gprof
16764maybe-install-html-gprof:
16765@if gprof
16766maybe-install-html-gprof: install-html-gprof
e69bf64b 16767
85bfb75e
JM
16768install-html-gprof: \
16769 configure-gprof \
16770 html-gprof
16771 @: $(MAKE); $(unstage)
16772 @[ -f ./gprof/Makefile ] || exit 0; \
e69bf64b
PB
16773 r=`${PWD_COMMAND}`; export r; \
16774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16775 $(HOST_EXPORTS) \
16776 for flag in $(EXTRA_HOST_FLAGS) ; do \
16777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16778 done; \
85bfb75e
JM
16779 echo "Doing install-html in gprof" ; \
16780 (cd $(HOST_SUBDIR)/gprof && \
e69bf64b
PB
16781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16783 "RANLIB=$${RANLIB}" \
901119ae 16784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
16785 install-html) \
16786 || exit 1
16787
85bfb75e 16788@endif gprof
e69bf64b 16789
85bfb75e
JM
16790.PHONY: maybe-installcheck-gprof installcheck-gprof
16791maybe-installcheck-gprof:
16792@if gprof
16793maybe-installcheck-gprof: installcheck-gprof
e69bf64b 16794
85bfb75e
JM
16795installcheck-gprof: \
16796 configure-gprof
16797 @: $(MAKE); $(unstage)
16798 @[ -f ./gprof/Makefile ] || exit 0; \
f8bf9252
SP
16799 r=`${PWD_COMMAND}`; export r; \
16800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16801 $(HOST_EXPORTS) \
16802 for flag in $(EXTRA_HOST_FLAGS) ; do \
16803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16804 done; \
85bfb75e
JM
16805 echo "Doing installcheck in gprof" ; \
16806 (cd $(HOST_SUBDIR)/gprof && \
f8bf9252
SP
16807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16809 "RANLIB=$${RANLIB}" \
16810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16811 installcheck) \
16812 || exit 1
16813
85bfb75e 16814@endif gprof
f8bf9252 16815
85bfb75e
JM
16816.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16817maybe-mostlyclean-gprof:
16818@if gprof
16819maybe-mostlyclean-gprof: mostlyclean-gprof
f8bf9252 16820
85bfb75e
JM
16821mostlyclean-gprof:
16822 @: $(MAKE); $(unstage)
16823 @[ -f ./gprof/Makefile ] || exit 0; \
f8bf9252
SP
16824 r=`${PWD_COMMAND}`; export r; \
16825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16826 $(HOST_EXPORTS) \
16827 for flag in $(EXTRA_HOST_FLAGS) ; do \
16828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16829 done; \
85bfb75e
JM
16830 echo "Doing mostlyclean in gprof" ; \
16831 (cd $(HOST_SUBDIR)/gprof && \
f8bf9252
SP
16832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16834 "RANLIB=$${RANLIB}" \
16835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16836 mostlyclean) \
16837 || exit 1
16838
85bfb75e 16839@endif gprof
f8bf9252 16840
85bfb75e
JM
16841.PHONY: maybe-clean-gprof clean-gprof
16842maybe-clean-gprof:
16843@if gprof
16844maybe-clean-gprof: clean-gprof
f8bf9252 16845
85bfb75e
JM
16846clean-gprof:
16847 @: $(MAKE); $(unstage)
16848 @[ -f ./gprof/Makefile ] || exit 0; \
f8bf9252
SP
16849 r=`${PWD_COMMAND}`; export r; \
16850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16851 $(HOST_EXPORTS) \
16852 for flag in $(EXTRA_HOST_FLAGS) ; do \
16853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16854 done; \
85bfb75e
JM
16855 echo "Doing clean in gprof" ; \
16856 (cd $(HOST_SUBDIR)/gprof && \
f8bf9252
SP
16857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16859 "RANLIB=$${RANLIB}" \
16860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16861 clean) \
16862 || exit 1
16863
85bfb75e 16864@endif gprof
f8bf9252 16865
85bfb75e
JM
16866.PHONY: maybe-distclean-gprof distclean-gprof
16867maybe-distclean-gprof:
16868@if gprof
16869maybe-distclean-gprof: distclean-gprof
f8bf9252 16870
85bfb75e
JM
16871distclean-gprof:
16872 @: $(MAKE); $(unstage)
16873 @[ -f ./gprof/Makefile ] || exit 0; \
f8bf9252
SP
16874 r=`${PWD_COMMAND}`; export r; \
16875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16876 $(HOST_EXPORTS) \
16877 for flag in $(EXTRA_HOST_FLAGS) ; do \
16878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16879 done; \
85bfb75e
JM
16880 echo "Doing distclean in gprof" ; \
16881 (cd $(HOST_SUBDIR)/gprof && \
f8bf9252
SP
16882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16884 "RANLIB=$${RANLIB}" \
16885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16886 distclean) \
16887 || exit 1
16888
85bfb75e 16889@endif gprof
f8bf9252 16890
85bfb75e
JM
16891.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16892maybe-maintainer-clean-gprof:
16893@if gprof
16894maybe-maintainer-clean-gprof: maintainer-clean-gprof
f8bf9252 16895
85bfb75e
JM
16896maintainer-clean-gprof:
16897 @: $(MAKE); $(unstage)
16898 @[ -f ./gprof/Makefile ] || exit 0; \
f8bf9252
SP
16899 r=`${PWD_COMMAND}`; export r; \
16900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16901 $(HOST_EXPORTS) \
16902 for flag in $(EXTRA_HOST_FLAGS) ; do \
16903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16904 done; \
85bfb75e
JM
16905 echo "Doing maintainer-clean in gprof" ; \
16906 (cd $(HOST_SUBDIR)/gprof && \
f8bf9252
SP
16907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16909 "RANLIB=$${RANLIB}" \
16910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16911 maintainer-clean) \
16912 || exit 1
16913
85bfb75e 16914@endif gprof
f8bf9252
SP
16915
16916
16917
85bfb75e
JM
16918.PHONY: configure-intl maybe-configure-intl
16919maybe-configure-intl:
f8bf9252 16920@if gcc-bootstrap
85bfb75e 16921configure-intl: stage_current
f8bf9252 16922@endif gcc-bootstrap
85bfb75e
JM
16923@if intl
16924maybe-configure-intl: configure-intl
16925configure-intl:
f8bf9252
SP
16926 @r=`${PWD_COMMAND}`; export r; \
16927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
16928 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
16929 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
f61428ed 16930 $(HOST_EXPORTS) \
85bfb75e
JM
16931 echo Configuring in $(HOST_SUBDIR)/intl; \
16932 cd "$(HOST_SUBDIR)/intl" || exit 1; \
f8bf9252
SP
16933 case $(srcdir) in \
16934 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 16935 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
16936 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16937 esac; \
85bfb75e
JM
16938 srcdiroption="--srcdir=$${topdir}/intl"; \
16939 libsrcdir="$$s/intl"; \
f8bf9252 16940 $(SHELL) $${libsrcdir}/configure \
f61428ed 16941 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 16942 --target=${target_alias} $${srcdiroption} \
f8bf9252 16943 || exit 1
85bfb75e 16944@endif intl
f8bf9252
SP
16945
16946
16947
85bfb75e
JM
16948.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16949maybe-configure-stage1-intl:
16950@if intl-bootstrap
16951maybe-configure-stage1-intl: configure-stage1-intl
16952configure-stage1-intl:
f8bf9252 16953 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 16954 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
16955 @r=`${PWD_COMMAND}`; export r; \
16956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 16957 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 16958 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
4a4a4e99 16959 $(HOST_EXPORTS) \
f8bf9252 16960 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
16961 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16962 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
16963 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
16964 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16965 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
16966 case $(srcdir) in \
16967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 16968 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
16969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16970 esac; \
85bfb75e
JM
16971 srcdiroption="--srcdir=$${topdir}/intl"; \
16972 libsrcdir="$$s/intl"; \
f8bf9252 16973 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
16974 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16975 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
16976 $(STAGE1_CONFIGURE_FLAGS)
16977@endif intl-bootstrap
f8bf9252 16978
85bfb75e
JM
16979.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16980maybe-configure-stage2-intl:
16981@if intl-bootstrap
16982maybe-configure-stage2-intl: configure-stage2-intl
16983configure-stage2-intl:
f8bf9252 16984 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 16985 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
16986 @r=`${PWD_COMMAND}`; export r; \
16987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 16988 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 16989 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
f8bf9252 16990 $(HOST_EXPORTS) \
4a4a4e99 16991 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 16992 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
16993 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16994 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
16995 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
16996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16997 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
16998 case $(srcdir) in \
16999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17000 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
17001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17002 esac; \
85bfb75e
JM
17003 srcdiroption="--srcdir=$${topdir}/intl"; \
17004 libsrcdir="$$s/intl"; \
f8bf9252 17005 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
17006 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17007 --target=${target_alias} $${srcdiroption} \
f8bf9252 17008 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
17009 $(STAGE2_CONFIGURE_FLAGS)
17010@endif intl-bootstrap
f8bf9252 17011
85bfb75e
JM
17012.PHONY: configure-stage3-intl maybe-configure-stage3-intl
17013maybe-configure-stage3-intl:
17014@if intl-bootstrap
17015maybe-configure-stage3-intl: configure-stage3-intl
17016configure-stage3-intl:
f8bf9252 17017 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 17018 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
17019 @r=`${PWD_COMMAND}`; export r; \
17020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17021 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 17022 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
f8bf9252 17023 $(HOST_EXPORTS) \
4a4a4e99 17024 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 17025 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
17026 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
17027 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
17028 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
17029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17030 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
17031 case $(srcdir) in \
17032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17033 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
17034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17035 esac; \
85bfb75e
JM
17036 srcdiroption="--srcdir=$${topdir}/intl"; \
17037 libsrcdir="$$s/intl"; \
f8bf9252 17038 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
17039 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17040 --target=${target_alias} $${srcdiroption} \
f8bf9252 17041 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
17042 $(STAGE3_CONFIGURE_FLAGS)
17043@endif intl-bootstrap
f8bf9252 17044
85bfb75e
JM
17045.PHONY: configure-stage4-intl maybe-configure-stage4-intl
17046maybe-configure-stage4-intl:
17047@if intl-bootstrap
17048maybe-configure-stage4-intl: configure-stage4-intl
17049configure-stage4-intl:
f8bf9252 17050 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 17051 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
17052 @r=`${PWD_COMMAND}`; export r; \
17053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17054 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 17055 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
f8bf9252 17056 $(HOST_EXPORTS) \
4a4a4e99 17057 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 17058 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
17059 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
17060 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
17061 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
17062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17063 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
17064 case $(srcdir) in \
17065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17066 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
17067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17068 esac; \
85bfb75e
JM
17069 srcdiroption="--srcdir=$${topdir}/intl"; \
17070 libsrcdir="$$s/intl"; \
f8bf9252 17071 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
17072 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17073 --target=${target_alias} $${srcdiroption} \
f8bf9252 17074 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
17075 $(STAGE4_CONFIGURE_FLAGS)
17076@endif intl-bootstrap
f8bf9252 17077
85bfb75e
JM
17078.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
17079maybe-configure-stageprofile-intl:
17080@if intl-bootstrap
17081maybe-configure-stageprofile-intl: configure-stageprofile-intl
17082configure-stageprofile-intl:
f8bf9252 17083 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 17084 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
17085 @r=`${PWD_COMMAND}`; export r; \
17086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17087 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 17088 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
f8bf9252 17089 $(HOST_EXPORTS) \
4a4a4e99
AO
17090 $(POSTSTAGE1_HOST_EXPORTS) \
17091 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
17092 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17093 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
17094 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
17095 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17096 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
17097 case $(srcdir) in \
17098 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17099 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
17100 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17101 esac; \
85bfb75e
JM
17102 srcdiroption="--srcdir=$${topdir}/intl"; \
17103 libsrcdir="$$s/intl"; \
f8bf9252 17104 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
17105 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17106 --target=${target_alias} $${srcdiroption} \
f8bf9252 17107 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
17108 $(STAGEprofile_CONFIGURE_FLAGS)
17109@endif intl-bootstrap
f8bf9252 17110
85bfb75e
JM
17111.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
17112maybe-configure-stagefeedback-intl:
17113@if intl-bootstrap
17114maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
17115configure-stagefeedback-intl:
f8bf9252 17116 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 17117 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
f8bf9252
SP
17118 @r=`${PWD_COMMAND}`; export r; \
17119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17120 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 17121 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
f8bf9252 17122 $(HOST_EXPORTS) \
4a4a4e99
AO
17123 $(POSTSTAGE1_HOST_EXPORTS) \
17124 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
17125 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17126 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
17127 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
17128 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17129 cd $(HOST_SUBDIR)/intl || exit 1; \
f8bf9252
SP
17130 case $(srcdir) in \
17131 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17132 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
f8bf9252
SP
17133 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17134 esac; \
85bfb75e
JM
17135 srcdiroption="--srcdir=$${topdir}/intl"; \
17136 libsrcdir="$$s/intl"; \
f8bf9252 17137 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
17138 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17139 --target=${target_alias} $${srcdiroption} \
f8bf9252 17140 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
17141 $(STAGEfeedback_CONFIGURE_FLAGS)
17142@endif intl-bootstrap
f8bf9252
SP
17143
17144
17145
17146
17147
85bfb75e
JM
17148.PHONY: all-intl maybe-all-intl
17149maybe-all-intl:
f8bf9252 17150@if gcc-bootstrap
85bfb75e 17151all-intl: stage_current
f8bf9252 17152@endif gcc-bootstrap
85bfb75e
JM
17153@if intl
17154TARGET-intl=all
17155maybe-all-intl: all-intl
17156all-intl: configure-intl
f8bf9252
SP
17157 @r=`${PWD_COMMAND}`; export r; \
17158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 17159 $(HOST_EXPORTS) \
85bfb75e 17160 (cd $(HOST_SUBDIR)/intl && \
f8bf9252 17161 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
17162 $(TARGET-intl))
17163@endif intl
f8bf9252
SP
17164
17165
17166
85bfb75e
JM
17167.PHONY: all-stage1-intl maybe-all-stage1-intl
17168.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17169maybe-all-stage1-intl:
17170maybe-clean-stage1-intl:
17171@if intl-bootstrap
17172maybe-all-stage1-intl: all-stage1-intl
17173all-stage1: all-stage1-intl
17174TARGET-stage1-intl = $(TARGET-intl)
17175all-stage1-intl: configure-stage1-intl
f8bf9252
SP
17176 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17177 @r=`${PWD_COMMAND}`; export r; \
17178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17179 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 17180 $(HOST_EXPORTS) \
85bfb75e 17181 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17183 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 17184 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
17185 LIBCFLAGS="$(LIBCFLAGS)" \
17186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17189 $(EXTRA_HOST_FLAGS) \
17190 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 17191 $(TARGET-stage1-intl)
f8bf9252 17192
85bfb75e
JM
17193maybe-clean-stage1-intl: clean-stage1-intl
17194clean-stage1: clean-stage1-intl
17195clean-stage1-intl:
f8bf9252 17196 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 17197 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17198 else \
85bfb75e 17199 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
f8bf9252
SP
17200 $(MAKE) stage1-start; \
17201 fi; \
85bfb75e 17202 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17203 $(MAKE) $(EXTRA_HOST_FLAGS) \
17204 clean
85bfb75e 17205@endif intl-bootstrap
f8bf9252
SP
17206
17207
85bfb75e
JM
17208.PHONY: all-stage2-intl maybe-all-stage2-intl
17209.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17210maybe-all-stage2-intl:
17211maybe-clean-stage2-intl:
17212@if intl-bootstrap
17213maybe-all-stage2-intl: all-stage2-intl
17214all-stage2: all-stage2-intl
17215TARGET-stage2-intl = $(TARGET-intl)
17216all-stage2-intl: configure-stage2-intl
f8bf9252
SP
17217 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17218 @r=`${PWD_COMMAND}`; export r; \
17219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17220 TFLAGS="$(STAGE2_TFLAGS)"; \
f8bf9252 17221 $(HOST_EXPORTS) \
f61428ed 17222 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 17223 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17224 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17225 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 17226 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
17227 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17228 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17229 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17230 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17231 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17232 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 17233 $(TARGET-stage2-intl)
f8bf9252 17234
85bfb75e
JM
17235maybe-clean-stage2-intl: clean-stage2-intl
17236clean-stage2: clean-stage2-intl
17237clean-stage2-intl:
f8bf9252 17238 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 17239 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17240 else \
85bfb75e 17241 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
f8bf9252
SP
17242 $(MAKE) stage2-start; \
17243 fi; \
85bfb75e 17244 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17245 $(MAKE) $(EXTRA_HOST_FLAGS) \
17246 $(POSTSTAGE1_FLAGS_TO_PASS) \
17247 clean
85bfb75e 17248@endif intl-bootstrap
f8bf9252
SP
17249
17250
85bfb75e
JM
17251.PHONY: all-stage3-intl maybe-all-stage3-intl
17252.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17253maybe-all-stage3-intl:
17254maybe-clean-stage3-intl:
17255@if intl-bootstrap
17256maybe-all-stage3-intl: all-stage3-intl
17257all-stage3: all-stage3-intl
17258TARGET-stage3-intl = $(TARGET-intl)
17259all-stage3-intl: configure-stage3-intl
f8bf9252
SP
17260 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17261 @r=`${PWD_COMMAND}`; export r; \
17262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17263 TFLAGS="$(STAGE3_TFLAGS)"; \
f8bf9252 17264 $(HOST_EXPORTS) \
f61428ed 17265 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 17266 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17267 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17268 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 17269 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
17270 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17271 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17272 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17273 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17274 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17275 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 17276 $(TARGET-stage3-intl)
f8bf9252 17277
85bfb75e
JM
17278maybe-clean-stage3-intl: clean-stage3-intl
17279clean-stage3: clean-stage3-intl
17280clean-stage3-intl:
f8bf9252 17281 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 17282 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17283 else \
85bfb75e 17284 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
f8bf9252
SP
17285 $(MAKE) stage3-start; \
17286 fi; \
85bfb75e 17287 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17288 $(MAKE) $(EXTRA_HOST_FLAGS) \
17289 $(POSTSTAGE1_FLAGS_TO_PASS) \
17290 clean
85bfb75e 17291@endif intl-bootstrap
f8bf9252
SP
17292
17293
85bfb75e
JM
17294.PHONY: all-stage4-intl maybe-all-stage4-intl
17295.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17296maybe-all-stage4-intl:
17297maybe-clean-stage4-intl:
17298@if intl-bootstrap
17299maybe-all-stage4-intl: all-stage4-intl
17300all-stage4: all-stage4-intl
17301TARGET-stage4-intl = $(TARGET-intl)
17302all-stage4-intl: configure-stage4-intl
f8bf9252
SP
17303 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17304 @r=`${PWD_COMMAND}`; export r; \
17305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17306 TFLAGS="$(STAGE4_TFLAGS)"; \
f8bf9252 17307 $(HOST_EXPORTS) \
f61428ed 17308 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 17309 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17310 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17311 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 17312 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
f8bf9252 17313 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
17314 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17315 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17316 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17317 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17318 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 17319 $(TARGET-stage4-intl)
f8bf9252 17320
85bfb75e
JM
17321maybe-clean-stage4-intl: clean-stage4-intl
17322clean-stage4: clean-stage4-intl
17323clean-stage4-intl:
f8bf9252 17324 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 17325 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17326 else \
85bfb75e 17327 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
f8bf9252
SP
17328 $(MAKE) stage4-start; \
17329 fi; \
85bfb75e 17330 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17331 $(MAKE) $(EXTRA_HOST_FLAGS) \
17332 $(POSTSTAGE1_FLAGS_TO_PASS) \
17333 clean
85bfb75e 17334@endif intl-bootstrap
f8bf9252
SP
17335
17336
85bfb75e
JM
17337.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17338.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17339maybe-all-stageprofile-intl:
17340maybe-clean-stageprofile-intl:
17341@if intl-bootstrap
17342maybe-all-stageprofile-intl: all-stageprofile-intl
17343all-stageprofile: all-stageprofile-intl
17344TARGET-stageprofile-intl = $(TARGET-intl)
17345all-stageprofile-intl: configure-stageprofile-intl
f8bf9252
SP
17346 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17347 @r=`${PWD_COMMAND}`; export r; \
17348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17349 TFLAGS="$(STAGEprofile_TFLAGS)"; \
f8bf9252 17350 $(HOST_EXPORTS) \
f61428ed 17351 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 17352 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17353 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17354 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 17355 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
17356 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17357 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17358 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17359 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17360 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17361 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 17362 $(TARGET-stageprofile-intl)
f8bf9252 17363
85bfb75e
JM
17364maybe-clean-stageprofile-intl: clean-stageprofile-intl
17365clean-stageprofile: clean-stageprofile-intl
17366clean-stageprofile-intl:
f8bf9252 17367 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 17368 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17369 else \
85bfb75e 17370 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
f8bf9252
SP
17371 $(MAKE) stageprofile-start; \
17372 fi; \
85bfb75e 17373 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17374 $(MAKE) $(EXTRA_HOST_FLAGS) \
17375 $(POSTSTAGE1_FLAGS_TO_PASS) \
17376 clean
85bfb75e 17377@endif intl-bootstrap
f8bf9252
SP
17378
17379
85bfb75e
JM
17380.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17381.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17382maybe-all-stagefeedback-intl:
17383maybe-clean-stagefeedback-intl:
17384@if intl-bootstrap
17385maybe-all-stagefeedback-intl: all-stagefeedback-intl
17386all-stagefeedback: all-stagefeedback-intl
17387TARGET-stagefeedback-intl = $(TARGET-intl)
17388all-stagefeedback-intl: configure-stagefeedback-intl
f8bf9252
SP
17389 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17390 @r=`${PWD_COMMAND}`; export r; \
17391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 17392 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
f8bf9252 17393 $(HOST_EXPORTS) \
f61428ed 17394 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 17395 cd $(HOST_SUBDIR)/intl && \
f8bf9252 17396 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 17397 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 17398 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
17399 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17400 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17401 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17402 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17403 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17404 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 17405 $(TARGET-stagefeedback-intl)
f8bf9252 17406
85bfb75e
JM
17407maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17408clean-stagefeedback: clean-stagefeedback-intl
17409clean-stagefeedback-intl:
f8bf9252 17410 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 17411 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
f8bf9252 17412 else \
85bfb75e 17413 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
f8bf9252
SP
17414 $(MAKE) stagefeedback-start; \
17415 fi; \
85bfb75e 17416 cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17417 $(MAKE) $(EXTRA_HOST_FLAGS) \
17418 $(POSTSTAGE1_FLAGS_TO_PASS) \
17419 clean
85bfb75e 17420@endif intl-bootstrap
f8bf9252
SP
17421
17422
17423
17424
17425
85bfb75e
JM
17426.PHONY: check-intl maybe-check-intl
17427maybe-check-intl:
17428@if intl
17429maybe-check-intl: check-intl
f8bf9252 17430
85bfb75e 17431check-intl:
f8bf9252
SP
17432 @: $(MAKE); $(unstage)
17433 @r=`${PWD_COMMAND}`; export r; \
17434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17435 $(HOST_EXPORTS) \
85bfb75e 17436 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17437 $(MAKE) $(FLAGS_TO_PASS) check)
17438
85bfb75e 17439@endif intl
f8bf9252 17440
85bfb75e
JM
17441.PHONY: install-intl maybe-install-intl
17442maybe-install-intl:
17443@if intl
17444maybe-install-intl: install-intl
f8bf9252 17445
85bfb75e
JM
17446install-intl: installdirs
17447 @: $(MAKE); $(unstage)
17448 @r=`${PWD_COMMAND}`; export r; \
17449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17450 $(HOST_EXPORTS) \
17451 (cd $(HOST_SUBDIR)/intl && \
17452 $(MAKE) $(FLAGS_TO_PASS) install)
f8bf9252 17453
85bfb75e 17454@endif intl
f8bf9252 17455
85bfb75e
JM
17456.PHONY: install-strip-intl maybe-install-strip-intl
17457maybe-install-strip-intl:
17458@if intl
17459maybe-install-strip-intl: install-strip-intl
455c8f48 17460
85bfb75e
JM
17461install-strip-intl: installdirs
17462 @: $(MAKE); $(unstage)
17463 @r=`${PWD_COMMAND}`; export r; \
17464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17465 $(HOST_EXPORTS) \
17466 (cd $(HOST_SUBDIR)/intl && \
17467 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 17468
85bfb75e 17469@endif intl
455c8f48 17470
f8bf9252
SP
17471# Other targets (info, dvi, pdf, etc.)
17472
85bfb75e
JM
17473.PHONY: maybe-info-intl info-intl
17474maybe-info-intl:
17475@if intl
17476maybe-info-intl: info-intl
f8bf9252 17477
85bfb75e
JM
17478info-intl: \
17479 configure-intl
17480 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17481 r=`${PWD_COMMAND}`; export r; \
17482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17483 $(HOST_EXPORTS) \
17484 for flag in $(EXTRA_HOST_FLAGS) ; do \
17485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17486 done; \
85bfb75e
JM
17487 echo "Doing info in intl" ; \
17488 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17491 "RANLIB=$${RANLIB}" \
17492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17493 info) \
17494 || exit 1
17495
85bfb75e 17496@endif intl
f8bf9252 17497
85bfb75e
JM
17498.PHONY: maybe-dvi-intl dvi-intl
17499maybe-dvi-intl:
17500@if intl
17501maybe-dvi-intl: dvi-intl
f8bf9252 17502
85bfb75e
JM
17503dvi-intl: \
17504 configure-intl
17505 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17506 r=`${PWD_COMMAND}`; export r; \
17507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17508 $(HOST_EXPORTS) \
17509 for flag in $(EXTRA_HOST_FLAGS) ; do \
17510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17511 done; \
85bfb75e
JM
17512 echo "Doing dvi in intl" ; \
17513 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17516 "RANLIB=$${RANLIB}" \
17517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17518 dvi) \
17519 || exit 1
17520
85bfb75e 17521@endif intl
f8bf9252 17522
85bfb75e
JM
17523.PHONY: maybe-pdf-intl pdf-intl
17524maybe-pdf-intl:
17525@if intl
17526maybe-pdf-intl: pdf-intl
f8bf9252 17527
85bfb75e
JM
17528pdf-intl: \
17529 configure-intl
17530 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17531 r=`${PWD_COMMAND}`; export r; \
17532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17533 $(HOST_EXPORTS) \
17534 for flag in $(EXTRA_HOST_FLAGS) ; do \
17535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17536 done; \
85bfb75e
JM
17537 echo "Doing pdf in intl" ; \
17538 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17541 "RANLIB=$${RANLIB}" \
17542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17543 pdf) \
17544 || exit 1
17545
85bfb75e 17546@endif intl
f8bf9252 17547
85bfb75e
JM
17548.PHONY: maybe-html-intl html-intl
17549maybe-html-intl:
17550@if intl
17551maybe-html-intl: html-intl
f8bf9252 17552
85bfb75e
JM
17553html-intl: \
17554 configure-intl
17555 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17556 r=`${PWD_COMMAND}`; export r; \
17557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17558 $(HOST_EXPORTS) \
17559 for flag in $(EXTRA_HOST_FLAGS) ; do \
17560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17561 done; \
85bfb75e
JM
17562 echo "Doing html in intl" ; \
17563 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17566 "RANLIB=$${RANLIB}" \
17567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17568 html) \
17569 || exit 1
17570
85bfb75e 17571@endif intl
f8bf9252 17572
85bfb75e
JM
17573.PHONY: maybe-TAGS-intl TAGS-intl
17574maybe-TAGS-intl:
17575@if intl
17576maybe-TAGS-intl: TAGS-intl
f8bf9252 17577
85bfb75e
JM
17578TAGS-intl: \
17579 configure-intl
17580 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17581 r=`${PWD_COMMAND}`; export r; \
17582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17583 $(HOST_EXPORTS) \
17584 for flag in $(EXTRA_HOST_FLAGS) ; do \
17585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17586 done; \
85bfb75e
JM
17587 echo "Doing TAGS in intl" ; \
17588 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17591 "RANLIB=$${RANLIB}" \
17592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17593 TAGS) \
17594 || exit 1
17595
85bfb75e 17596@endif intl
f8bf9252 17597
85bfb75e
JM
17598.PHONY: maybe-install-info-intl install-info-intl
17599maybe-install-info-intl:
17600@if intl
17601maybe-install-info-intl: install-info-intl
f8bf9252 17602
85bfb75e
JM
17603install-info-intl: \
17604 configure-intl \
17605 info-intl
17606 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17607 r=`${PWD_COMMAND}`; export r; \
17608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17609 $(HOST_EXPORTS) \
17610 for flag in $(EXTRA_HOST_FLAGS) ; do \
17611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17612 done; \
85bfb75e
JM
17613 echo "Doing install-info in intl" ; \
17614 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17617 "RANLIB=$${RANLIB}" \
17618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17619 install-info) \
17620 || exit 1
17621
85bfb75e 17622@endif intl
f8bf9252 17623
85bfb75e
JM
17624.PHONY: maybe-install-pdf-intl install-pdf-intl
17625maybe-install-pdf-intl:
17626@if intl
17627maybe-install-pdf-intl: install-pdf-intl
f8bf9252 17628
85bfb75e
JM
17629install-pdf-intl: \
17630 configure-intl \
17631 pdf-intl
17632 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17633 r=`${PWD_COMMAND}`; export r; \
17634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17635 $(HOST_EXPORTS) \
17636 for flag in $(EXTRA_HOST_FLAGS) ; do \
17637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17638 done; \
85bfb75e
JM
17639 echo "Doing install-pdf in intl" ; \
17640 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17643 "RANLIB=$${RANLIB}" \
17644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17645 install-pdf) \
17646 || exit 1
17647
85bfb75e 17648@endif intl
f8bf9252 17649
85bfb75e
JM
17650.PHONY: maybe-install-html-intl install-html-intl
17651maybe-install-html-intl:
17652@if intl
17653maybe-install-html-intl: install-html-intl
f8bf9252 17654
85bfb75e
JM
17655install-html-intl: \
17656 configure-intl \
17657 html-intl
17658 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17659 r=`${PWD_COMMAND}`; export r; \
17660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17661 $(HOST_EXPORTS) \
17662 for flag in $(EXTRA_HOST_FLAGS) ; do \
17663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17664 done; \
85bfb75e
JM
17665 echo "Doing install-html in intl" ; \
17666 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17669 "RANLIB=$${RANLIB}" \
17670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17671 install-html) \
17672 || exit 1
17673
85bfb75e 17674@endif intl
f8bf9252 17675
85bfb75e
JM
17676.PHONY: maybe-installcheck-intl installcheck-intl
17677maybe-installcheck-intl:
17678@if intl
17679maybe-installcheck-intl: installcheck-intl
f8bf9252 17680
85bfb75e
JM
17681installcheck-intl: \
17682 configure-intl
17683 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17684 r=`${PWD_COMMAND}`; export r; \
17685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17686 $(HOST_EXPORTS) \
17687 for flag in $(EXTRA_HOST_FLAGS) ; do \
17688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17689 done; \
85bfb75e
JM
17690 echo "Doing installcheck in intl" ; \
17691 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17694 "RANLIB=$${RANLIB}" \
17695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17696 installcheck) \
17697 || exit 1
17698
85bfb75e 17699@endif intl
f8bf9252 17700
85bfb75e
JM
17701.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17702maybe-mostlyclean-intl:
17703@if intl
17704maybe-mostlyclean-intl: mostlyclean-intl
f8bf9252 17705
85bfb75e
JM
17706mostlyclean-intl:
17707 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17708 r=`${PWD_COMMAND}`; export r; \
17709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17710 $(HOST_EXPORTS) \
17711 for flag in $(EXTRA_HOST_FLAGS) ; do \
17712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17713 done; \
85bfb75e
JM
17714 echo "Doing mostlyclean in intl" ; \
17715 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17718 "RANLIB=$${RANLIB}" \
17719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17720 mostlyclean) \
17721 || exit 1
17722
85bfb75e 17723@endif intl
f8bf9252 17724
85bfb75e
JM
17725.PHONY: maybe-clean-intl clean-intl
17726maybe-clean-intl:
17727@if intl
17728maybe-clean-intl: clean-intl
f8bf9252 17729
85bfb75e
JM
17730clean-intl:
17731 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17732 r=`${PWD_COMMAND}`; export r; \
17733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17734 $(HOST_EXPORTS) \
17735 for flag in $(EXTRA_HOST_FLAGS) ; do \
17736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17737 done; \
85bfb75e
JM
17738 echo "Doing clean in intl" ; \
17739 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17742 "RANLIB=$${RANLIB}" \
17743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17744 clean) \
17745 || exit 1
17746
85bfb75e 17747@endif intl
f8bf9252 17748
85bfb75e
JM
17749.PHONY: maybe-distclean-intl distclean-intl
17750maybe-distclean-intl:
17751@if intl
17752maybe-distclean-intl: distclean-intl
f8bf9252 17753
85bfb75e
JM
17754distclean-intl:
17755 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17756 r=`${PWD_COMMAND}`; export r; \
17757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17758 $(HOST_EXPORTS) \
17759 for flag in $(EXTRA_HOST_FLAGS) ; do \
17760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17761 done; \
85bfb75e
JM
17762 echo "Doing distclean in intl" ; \
17763 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17766 "RANLIB=$${RANLIB}" \
17767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17768 distclean) \
17769 || exit 1
17770
85bfb75e 17771@endif intl
f8bf9252 17772
85bfb75e
JM
17773.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17774maybe-maintainer-clean-intl:
17775@if intl
17776maybe-maintainer-clean-intl: maintainer-clean-intl
f8bf9252 17777
85bfb75e
JM
17778maintainer-clean-intl:
17779 @[ -f ./intl/Makefile ] || exit 0; \
f8bf9252
SP
17780 r=`${PWD_COMMAND}`; export r; \
17781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17782 $(HOST_EXPORTS) \
17783 for flag in $(EXTRA_HOST_FLAGS) ; do \
17784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17785 done; \
85bfb75e
JM
17786 echo "Doing maintainer-clean in intl" ; \
17787 (cd $(HOST_SUBDIR)/intl && \
f8bf9252
SP
17788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17790 "RANLIB=$${RANLIB}" \
17791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17792 maintainer-clean) \
17793 || exit 1
17794
85bfb75e 17795@endif intl
f8bf9252
SP
17796
17797
17798
85bfb75e
JM
17799.PHONY: configure-tcl maybe-configure-tcl
17800maybe-configure-tcl:
acd26225 17801@if gcc-bootstrap
85bfb75e 17802configure-tcl: stage_current
acd26225 17803@endif gcc-bootstrap
85bfb75e
JM
17804@if tcl
17805maybe-configure-tcl: configure-tcl
17806configure-tcl:
17807 @: $(MAKE); $(unstage)
acd26225
KG
17808 @r=`${PWD_COMMAND}`; export r; \
17809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
17810 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
17811 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
f61428ed 17812 $(HOST_EXPORTS) \
85bfb75e
JM
17813 echo Configuring in $(HOST_SUBDIR)/tcl; \
17814 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
acd26225
KG
17815 case $(srcdir) in \
17816 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 17817 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
acd26225
KG
17818 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17819 esac; \
85bfb75e
JM
17820 srcdiroption="--srcdir=$${topdir}/tcl"; \
17821 libsrcdir="$$s/tcl"; \
acd26225
KG
17822 $(SHELL) $${libsrcdir}/configure \
17823 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 17824 --target=${target_alias} $${srcdiroption} \
acd26225 17825 || exit 1
85bfb75e 17826@endif tcl
acd26225
KG
17827
17828
17829
acd26225 17830
acd26225 17831
85bfb75e
JM
17832.PHONY: all-tcl maybe-all-tcl
17833maybe-all-tcl:
17834@if gcc-bootstrap
17835all-tcl: stage_current
17836@endif gcc-bootstrap
17837@if tcl
17838TARGET-tcl=all
17839maybe-all-tcl: all-tcl
17840all-tcl: configure-tcl
17841 @: $(MAKE); $(unstage)
acd26225
KG
17842 @r=`${PWD_COMMAND}`; export r; \
17843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
17844 $(HOST_EXPORTS) \
17845 (cd $(HOST_SUBDIR)/tcl && \
17846 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
17847 $(TARGET-tcl))
17848@endif tcl
acd26225 17849
85bfb75e
JM
17850
17851
17852
17853.PHONY: check-tcl maybe-check-tcl
17854maybe-check-tcl:
17855@if tcl
17856maybe-check-tcl: check-tcl
17857
17858check-tcl:
17859 @: $(MAKE); $(unstage)
acd26225
KG
17860 @r=`${PWD_COMMAND}`; export r; \
17861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 17862 $(HOST_EXPORTS) \
85bfb75e
JM
17863 (cd $(HOST_SUBDIR)/tcl && \
17864 $(MAKE) $(FLAGS_TO_PASS) check)
acd26225 17865
85bfb75e
JM
17866@endif tcl
17867
17868.PHONY: install-tcl maybe-install-tcl
17869maybe-install-tcl:
17870@if tcl
17871maybe-install-tcl: install-tcl
17872
17873install-tcl: installdirs
17874 @: $(MAKE); $(unstage)
acd26225
KG
17875 @r=`${PWD_COMMAND}`; export r; \
17876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 17877 $(HOST_EXPORTS) \
85bfb75e
JM
17878 (cd $(HOST_SUBDIR)/tcl && \
17879 $(MAKE) $(FLAGS_TO_PASS) install)
acd26225 17880
85bfb75e
JM
17881@endif tcl
17882
17883.PHONY: install-strip-tcl maybe-install-strip-tcl
17884maybe-install-strip-tcl:
17885@if tcl
17886maybe-install-strip-tcl: install-strip-tcl
17887
17888install-strip-tcl: installdirs
17889 @: $(MAKE); $(unstage)
acd26225
KG
17890 @r=`${PWD_COMMAND}`; export r; \
17891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 17892 $(HOST_EXPORTS) \
85bfb75e
JM
17893 (cd $(HOST_SUBDIR)/tcl && \
17894 $(MAKE) $(FLAGS_TO_PASS) install-strip)
acd26225 17895
85bfb75e 17896@endif tcl
acd26225 17897
85bfb75e 17898# Other targets (info, dvi, pdf, etc.)
acd26225 17899
85bfb75e
JM
17900.PHONY: maybe-info-tcl info-tcl
17901maybe-info-tcl:
17902@if tcl
17903maybe-info-tcl: info-tcl
acd26225 17904
85bfb75e
JM
17905info-tcl: \
17906 configure-tcl
17907 @: $(MAKE); $(unstage)
17908 @[ -f ./tcl/Makefile ] || exit 0; \
17909 r=`${PWD_COMMAND}`; export r; \
acd26225 17910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
17911 $(HOST_EXPORTS) \
17912 for flag in $(EXTRA_HOST_FLAGS) ; do \
17913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17914 done; \
17915 echo "Doing info in tcl" ; \
17916 (cd $(HOST_SUBDIR)/tcl && \
17917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17919 "RANLIB=$${RANLIB}" \
17920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17921 info) \
17922 || exit 1
acd26225 17923
85bfb75e 17924@endif tcl
acd26225 17925
85bfb75e
JM
17926.PHONY: maybe-dvi-tcl dvi-tcl
17927maybe-dvi-tcl:
17928@if tcl
17929maybe-dvi-tcl: dvi-tcl
acd26225 17930
85bfb75e
JM
17931dvi-tcl: \
17932 configure-tcl
17933 @: $(MAKE); $(unstage)
17934 @[ -f ./tcl/Makefile ] || exit 0; \
17935 r=`${PWD_COMMAND}`; export r; \
acd26225 17936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
17937 $(HOST_EXPORTS) \
17938 for flag in $(EXTRA_HOST_FLAGS) ; do \
17939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17940 done; \
17941 echo "Doing dvi in tcl" ; \
17942 (cd $(HOST_SUBDIR)/tcl && \
17943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17945 "RANLIB=$${RANLIB}" \
17946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17947 dvi) \
17948 || exit 1
acd26225 17949
85bfb75e 17950@endif tcl
acd26225 17951
85bfb75e
JM
17952.PHONY: maybe-pdf-tcl pdf-tcl
17953maybe-pdf-tcl:
17954@if tcl
17955maybe-pdf-tcl: pdf-tcl
acd26225 17956
85bfb75e
JM
17957pdf-tcl: \
17958 configure-tcl
17959 @: $(MAKE); $(unstage)
17960 @[ -f ./tcl/Makefile ] || exit 0; \
17961 r=`${PWD_COMMAND}`; export r; \
acd26225 17962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 17963 $(HOST_EXPORTS) \
85bfb75e
JM
17964 for flag in $(EXTRA_HOST_FLAGS) ; do \
17965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17966 done; \
17967 echo "Doing pdf in tcl" ; \
17968 (cd $(HOST_SUBDIR)/tcl && \
17969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17971 "RANLIB=$${RANLIB}" \
17972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17973 pdf) \
17974 || exit 1
acd26225 17975
85bfb75e 17976@endif tcl
acd26225 17977
85bfb75e
JM
17978.PHONY: maybe-html-tcl html-tcl
17979maybe-html-tcl:
17980@if tcl
17981maybe-html-tcl: html-tcl
acd26225 17982
85bfb75e
JM
17983html-tcl: \
17984 configure-tcl
17985 @: $(MAKE); $(unstage)
17986 @[ -f ./tcl/Makefile ] || exit 0; \
17987 r=`${PWD_COMMAND}`; export r; \
acd26225 17988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 17989 $(HOST_EXPORTS) \
85bfb75e
JM
17990 for flag in $(EXTRA_HOST_FLAGS) ; do \
17991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17992 done; \
17993 echo "Doing html in tcl" ; \
17994 (cd $(HOST_SUBDIR)/tcl && \
17995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17997 "RANLIB=$${RANLIB}" \
17998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17999 html) \
18000 || exit 1
acd26225 18001
85bfb75e 18002@endif tcl
acd26225 18003
85bfb75e
JM
18004.PHONY: maybe-TAGS-tcl TAGS-tcl
18005maybe-TAGS-tcl:
18006@if tcl
18007maybe-TAGS-tcl: TAGS-tcl
acd26225 18008
85bfb75e
JM
18009TAGS-tcl: \
18010 configure-tcl
18011 @: $(MAKE); $(unstage)
18012 @[ -f ./tcl/Makefile ] || exit 0; \
18013 r=`${PWD_COMMAND}`; export r; \
acd26225 18014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
acd26225 18015 $(HOST_EXPORTS) \
85bfb75e
JM
18016 for flag in $(EXTRA_HOST_FLAGS) ; do \
18017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18018 done; \
18019 echo "Doing TAGS in tcl" ; \
18020 (cd $(HOST_SUBDIR)/tcl && \
18021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18023 "RANLIB=$${RANLIB}" \
18024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18025 TAGS) \
18026 || exit 1
acd26225 18027
85bfb75e 18028@endif tcl
acd26225 18029
85bfb75e
JM
18030.PHONY: maybe-install-info-tcl install-info-tcl
18031maybe-install-info-tcl:
18032@if tcl
18033maybe-install-info-tcl: install-info-tcl
acd26225 18034
85bfb75e
JM
18035install-info-tcl: \
18036 configure-tcl \
18037 info-tcl
acd26225 18038 @: $(MAKE); $(unstage)
85bfb75e 18039 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18040 r=`${PWD_COMMAND}`; export r; \
18041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18042 $(HOST_EXPORTS) \
18043 for flag in $(EXTRA_HOST_FLAGS) ; do \
18044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18045 done; \
85bfb75e
JM
18046 echo "Doing install-info in tcl" ; \
18047 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18050 "RANLIB=$${RANLIB}" \
18051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18052 install-info) \
acd26225
KG
18053 || exit 1
18054
85bfb75e 18055@endif tcl
acd26225 18056
85bfb75e
JM
18057.PHONY: maybe-install-pdf-tcl install-pdf-tcl
18058maybe-install-pdf-tcl:
18059@if tcl
18060maybe-install-pdf-tcl: install-pdf-tcl
acd26225 18061
85bfb75e
JM
18062install-pdf-tcl: \
18063 configure-tcl \
18064 pdf-tcl
18065 @: $(MAKE); $(unstage)
18066 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18067 r=`${PWD_COMMAND}`; export r; \
18068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18069 $(HOST_EXPORTS) \
18070 for flag in $(EXTRA_HOST_FLAGS) ; do \
18071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18072 done; \
85bfb75e
JM
18073 echo "Doing install-pdf in tcl" ; \
18074 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18077 "RANLIB=$${RANLIB}" \
18078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18079 install-pdf) \
acd26225
KG
18080 || exit 1
18081
85bfb75e 18082@endif tcl
acd26225 18083
85bfb75e
JM
18084.PHONY: maybe-install-html-tcl install-html-tcl
18085maybe-install-html-tcl:
18086@if tcl
18087maybe-install-html-tcl: install-html-tcl
acd26225 18088
85bfb75e
JM
18089install-html-tcl: \
18090 configure-tcl \
18091 html-tcl
18092 @: $(MAKE); $(unstage)
18093 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18094 r=`${PWD_COMMAND}`; export r; \
18095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18096 $(HOST_EXPORTS) \
18097 for flag in $(EXTRA_HOST_FLAGS) ; do \
18098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18099 done; \
85bfb75e
JM
18100 echo "Doing install-html in tcl" ; \
18101 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18104 "RANLIB=$${RANLIB}" \
18105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18106 install-html) \
acd26225
KG
18107 || exit 1
18108
85bfb75e 18109@endif tcl
acd26225 18110
85bfb75e
JM
18111.PHONY: maybe-installcheck-tcl installcheck-tcl
18112maybe-installcheck-tcl:
18113@if tcl
18114maybe-installcheck-tcl: installcheck-tcl
acd26225 18115
85bfb75e
JM
18116installcheck-tcl: \
18117 configure-tcl
18118 @: $(MAKE); $(unstage)
18119 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18120 r=`${PWD_COMMAND}`; export r; \
18121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18122 $(HOST_EXPORTS) \
18123 for flag in $(EXTRA_HOST_FLAGS) ; do \
18124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18125 done; \
85bfb75e
JM
18126 echo "Doing installcheck in tcl" ; \
18127 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18130 "RANLIB=$${RANLIB}" \
18131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18132 installcheck) \
acd26225
KG
18133 || exit 1
18134
85bfb75e 18135@endif tcl
acd26225 18136
85bfb75e
JM
18137.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18138maybe-mostlyclean-tcl:
18139@if tcl
18140maybe-mostlyclean-tcl: mostlyclean-tcl
acd26225 18141
85bfb75e
JM
18142# tcl doesn't support mostlyclean.
18143mostlyclean-tcl:
18144
18145@endif tcl
18146
18147.PHONY: maybe-clean-tcl clean-tcl
18148maybe-clean-tcl:
18149@if tcl
18150maybe-clean-tcl: clean-tcl
18151
18152clean-tcl:
18153 @: $(MAKE); $(unstage)
18154 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18155 r=`${PWD_COMMAND}`; export r; \
18156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18157 $(HOST_EXPORTS) \
18158 for flag in $(EXTRA_HOST_FLAGS) ; do \
18159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18160 done; \
85bfb75e
JM
18161 echo "Doing clean in tcl" ; \
18162 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18165 "RANLIB=$${RANLIB}" \
18166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18167 clean) \
acd26225
KG
18168 || exit 1
18169
85bfb75e 18170@endif tcl
acd26225 18171
85bfb75e
JM
18172.PHONY: maybe-distclean-tcl distclean-tcl
18173maybe-distclean-tcl:
18174@if tcl
18175maybe-distclean-tcl: distclean-tcl
acd26225 18176
85bfb75e
JM
18177distclean-tcl:
18178 @: $(MAKE); $(unstage)
18179 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18180 r=`${PWD_COMMAND}`; export r; \
18181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18182 $(HOST_EXPORTS) \
18183 for flag in $(EXTRA_HOST_FLAGS) ; do \
18184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18185 done; \
85bfb75e
JM
18186 echo "Doing distclean in tcl" ; \
18187 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18190 "RANLIB=$${RANLIB}" \
18191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18192 distclean) \
acd26225
KG
18193 || exit 1
18194
85bfb75e 18195@endif tcl
acd26225 18196
85bfb75e
JM
18197.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18198maybe-maintainer-clean-tcl:
18199@if tcl
18200maybe-maintainer-clean-tcl: maintainer-clean-tcl
acd26225 18201
85bfb75e
JM
18202maintainer-clean-tcl:
18203 @: $(MAKE); $(unstage)
18204 @[ -f ./tcl/Makefile ] || exit 0; \
acd26225
KG
18205 r=`${PWD_COMMAND}`; export r; \
18206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18207 $(HOST_EXPORTS) \
18208 for flag in $(EXTRA_HOST_FLAGS) ; do \
18209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18210 done; \
85bfb75e
JM
18211 echo "Doing maintainer-clean in tcl" ; \
18212 (cd $(HOST_SUBDIR)/tcl && \
acd26225
KG
18213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18215 "RANLIB=$${RANLIB}" \
18216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18217 maintainer-clean) \
acd26225
KG
18218 || exit 1
18219
85bfb75e 18220@endif tcl
acd26225 18221
acd26225 18222
85bfb75e
JM
18223
18224.PHONY: configure-itcl maybe-configure-itcl
18225maybe-configure-itcl:
18226@if gcc-bootstrap
18227configure-itcl: stage_current
18228@endif gcc-bootstrap
18229@if itcl
18230maybe-configure-itcl: configure-itcl
18231configure-itcl:
18232 @: $(MAKE); $(unstage)
18233 @r=`${PWD_COMMAND}`; export r; \
18234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18235 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
18236 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
18237 $(HOST_EXPORTS) \
18238 echo Configuring in $(HOST_SUBDIR)/itcl; \
18239 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18240 case $(srcdir) in \
18241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18242 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18244 esac; \
18245 srcdiroption="--srcdir=$${topdir}/itcl"; \
18246 libsrcdir="$$s/itcl"; \
18247 $(SHELL) $${libsrcdir}/configure \
18248 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18249 --target=${target_alias} $${srcdiroption} \
18250 || exit 1
18251@endif itcl
18252
18253
18254
18255
18256
18257.PHONY: all-itcl maybe-all-itcl
18258maybe-all-itcl:
18259@if gcc-bootstrap
18260all-itcl: stage_current
18261@endif gcc-bootstrap
18262@if itcl
18263TARGET-itcl=all
18264maybe-all-itcl: all-itcl
18265all-itcl: configure-itcl
18266 @: $(MAKE); $(unstage)
18267 @r=`${PWD_COMMAND}`; export r; \
18268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18269 $(HOST_EXPORTS) \
18270 (cd $(HOST_SUBDIR)/itcl && \
18271 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
18272 $(TARGET-itcl))
18273@endif itcl
18274
18275
18276
18277
18278.PHONY: check-itcl maybe-check-itcl
18279maybe-check-itcl:
18280@if itcl
18281maybe-check-itcl: check-itcl
18282
18283check-itcl:
18284 @: $(MAKE); $(unstage)
18285 @r=`${PWD_COMMAND}`; export r; \
18286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18287 $(HOST_EXPORTS) \
18288 (cd $(HOST_SUBDIR)/itcl && \
18289 $(MAKE) $(FLAGS_TO_PASS) check)
18290
18291@endif itcl
18292
18293.PHONY: install-itcl maybe-install-itcl
18294maybe-install-itcl:
18295@if itcl
18296maybe-install-itcl: install-itcl
18297
18298install-itcl: installdirs
18299 @: $(MAKE); $(unstage)
18300 @r=`${PWD_COMMAND}`; export r; \
18301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18302 $(HOST_EXPORTS) \
18303 (cd $(HOST_SUBDIR)/itcl && \
18304 $(MAKE) $(FLAGS_TO_PASS) install)
18305
18306@endif itcl
18307
18308.PHONY: install-strip-itcl maybe-install-strip-itcl
18309maybe-install-strip-itcl:
18310@if itcl
18311maybe-install-strip-itcl: install-strip-itcl
18312
18313install-strip-itcl: installdirs
18314 @: $(MAKE); $(unstage)
18315 @r=`${PWD_COMMAND}`; export r; \
18316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18317 $(HOST_EXPORTS) \
18318 (cd $(HOST_SUBDIR)/itcl && \
18319 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18320
18321@endif itcl
18322
18323# Other targets (info, dvi, pdf, etc.)
18324
18325.PHONY: maybe-info-itcl info-itcl
18326maybe-info-itcl:
18327@if itcl
18328maybe-info-itcl: info-itcl
18329
18330info-itcl: \
18331 configure-itcl
18332 @: $(MAKE); $(unstage)
18333 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18334 r=`${PWD_COMMAND}`; export r; \
18335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18336 $(HOST_EXPORTS) \
18337 for flag in $(EXTRA_HOST_FLAGS) ; do \
18338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18339 done; \
85bfb75e
JM
18340 echo "Doing info in itcl" ; \
18341 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18344 "RANLIB=$${RANLIB}" \
18345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18346 info) \
acd26225
KG
18347 || exit 1
18348
85bfb75e 18349@endif itcl
acd26225 18350
85bfb75e
JM
18351.PHONY: maybe-dvi-itcl dvi-itcl
18352maybe-dvi-itcl:
18353@if itcl
18354maybe-dvi-itcl: dvi-itcl
acd26225 18355
85bfb75e
JM
18356dvi-itcl: \
18357 configure-itcl
18358 @: $(MAKE); $(unstage)
18359 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18360 r=`${PWD_COMMAND}`; export r; \
18361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18362 $(HOST_EXPORTS) \
18363 for flag in $(EXTRA_HOST_FLAGS) ; do \
18364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18365 done; \
85bfb75e
JM
18366 echo "Doing dvi in itcl" ; \
18367 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18370 "RANLIB=$${RANLIB}" \
18371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18372 dvi) \
acd26225
KG
18373 || exit 1
18374
85bfb75e 18375@endif itcl
acd26225 18376
85bfb75e
JM
18377.PHONY: maybe-pdf-itcl pdf-itcl
18378maybe-pdf-itcl:
18379@if itcl
18380maybe-pdf-itcl: pdf-itcl
acd26225 18381
85bfb75e
JM
18382pdf-itcl: \
18383 configure-itcl
18384 @: $(MAKE); $(unstage)
18385 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18386 r=`${PWD_COMMAND}`; export r; \
18387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18388 $(HOST_EXPORTS) \
18389 for flag in $(EXTRA_HOST_FLAGS) ; do \
18390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18391 done; \
85bfb75e
JM
18392 echo "Doing pdf in itcl" ; \
18393 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18396 "RANLIB=$${RANLIB}" \
18397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18398 pdf) \
acd26225
KG
18399 || exit 1
18400
85bfb75e 18401@endif itcl
acd26225 18402
85bfb75e
JM
18403.PHONY: maybe-html-itcl html-itcl
18404maybe-html-itcl:
18405@if itcl
18406maybe-html-itcl: html-itcl
acd26225 18407
85bfb75e
JM
18408html-itcl: \
18409 configure-itcl
18410 @: $(MAKE); $(unstage)
18411 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18412 r=`${PWD_COMMAND}`; export r; \
18413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18414 $(HOST_EXPORTS) \
18415 for flag in $(EXTRA_HOST_FLAGS) ; do \
18416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18417 done; \
85bfb75e
JM
18418 echo "Doing html in itcl" ; \
18419 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18422 "RANLIB=$${RANLIB}" \
18423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 18424 html) \
acd26225
KG
18425 || exit 1
18426
85bfb75e 18427@endif itcl
acd26225 18428
85bfb75e
JM
18429.PHONY: maybe-TAGS-itcl TAGS-itcl
18430maybe-TAGS-itcl:
18431@if itcl
18432maybe-TAGS-itcl: TAGS-itcl
acd26225 18433
85bfb75e
JM
18434TAGS-itcl: \
18435 configure-itcl
18436 @: $(MAKE); $(unstage)
18437 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18438 r=`${PWD_COMMAND}`; export r; \
18439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18440 $(HOST_EXPORTS) \
18441 for flag in $(EXTRA_HOST_FLAGS) ; do \
18442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18443 done; \
85bfb75e
JM
18444 echo "Doing TAGS in itcl" ; \
18445 (cd $(HOST_SUBDIR)/itcl && \
18446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18448 "RANLIB=$${RANLIB}" \
18449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18450 TAGS) \
18451 || exit 1
18452
18453@endif itcl
18454
18455.PHONY: maybe-install-info-itcl install-info-itcl
18456maybe-install-info-itcl:
18457@if itcl
18458maybe-install-info-itcl: install-info-itcl
18459
18460install-info-itcl: \
18461 configure-itcl \
18462 info-itcl
18463 @: $(MAKE); $(unstage)
18464 @[ -f ./itcl/Makefile ] || exit 0; \
18465 r=`${PWD_COMMAND}`; export r; \
18466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18467 $(HOST_EXPORTS) \
18468 for flag in $(EXTRA_HOST_FLAGS) ; do \
18469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18470 done; \
18471 echo "Doing install-info in itcl" ; \
18472 (cd $(HOST_SUBDIR)/itcl && \
18473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18475 "RANLIB=$${RANLIB}" \
18476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18477 install-info) \
18478 || exit 1
18479
18480@endif itcl
18481
18482.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18483maybe-install-pdf-itcl:
18484@if itcl
18485maybe-install-pdf-itcl: install-pdf-itcl
18486
18487install-pdf-itcl: \
18488 configure-itcl \
18489 pdf-itcl
18490 @: $(MAKE); $(unstage)
18491 @[ -f ./itcl/Makefile ] || exit 0; \
18492 r=`${PWD_COMMAND}`; export r; \
18493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18494 $(HOST_EXPORTS) \
18495 for flag in $(EXTRA_HOST_FLAGS) ; do \
18496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18497 done; \
18498 echo "Doing install-pdf in itcl" ; \
18499 (cd $(HOST_SUBDIR)/itcl && \
18500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18502 "RANLIB=$${RANLIB}" \
18503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18504 install-pdf) \
18505 || exit 1
18506
18507@endif itcl
18508
18509.PHONY: maybe-install-html-itcl install-html-itcl
18510maybe-install-html-itcl:
18511@if itcl
18512maybe-install-html-itcl: install-html-itcl
18513
18514install-html-itcl: \
18515 configure-itcl \
18516 html-itcl
18517 @: $(MAKE); $(unstage)
18518 @[ -f ./itcl/Makefile ] || exit 0; \
18519 r=`${PWD_COMMAND}`; export r; \
18520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18521 $(HOST_EXPORTS) \
18522 for flag in $(EXTRA_HOST_FLAGS) ; do \
18523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18524 done; \
18525 echo "Doing install-html in itcl" ; \
18526 (cd $(HOST_SUBDIR)/itcl && \
18527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18529 "RANLIB=$${RANLIB}" \
18530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18531 install-html) \
18532 || exit 1
18533
18534@endif itcl
18535
18536.PHONY: maybe-installcheck-itcl installcheck-itcl
18537maybe-installcheck-itcl:
18538@if itcl
18539maybe-installcheck-itcl: installcheck-itcl
18540
18541installcheck-itcl: \
18542 configure-itcl
18543 @: $(MAKE); $(unstage)
18544 @[ -f ./itcl/Makefile ] || exit 0; \
18545 r=`${PWD_COMMAND}`; export r; \
18546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18547 $(HOST_EXPORTS) \
18548 for flag in $(EXTRA_HOST_FLAGS) ; do \
18549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18550 done; \
18551 echo "Doing installcheck in itcl" ; \
18552 (cd $(HOST_SUBDIR)/itcl && \
18553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18555 "RANLIB=$${RANLIB}" \
18556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18557 installcheck) \
18558 || exit 1
18559
18560@endif itcl
18561
18562.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18563maybe-mostlyclean-itcl:
18564@if itcl
18565maybe-mostlyclean-itcl: mostlyclean-itcl
18566
18567mostlyclean-itcl:
18568 @: $(MAKE); $(unstage)
18569 @[ -f ./itcl/Makefile ] || exit 0; \
18570 r=`${PWD_COMMAND}`; export r; \
18571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18572 $(HOST_EXPORTS) \
18573 for flag in $(EXTRA_HOST_FLAGS) ; do \
18574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18575 done; \
18576 echo "Doing mostlyclean in itcl" ; \
18577 (cd $(HOST_SUBDIR)/itcl && \
18578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18580 "RANLIB=$${RANLIB}" \
18581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18582 mostlyclean) \
18583 || exit 1
18584
18585@endif itcl
18586
18587.PHONY: maybe-clean-itcl clean-itcl
18588maybe-clean-itcl:
18589@if itcl
18590maybe-clean-itcl: clean-itcl
18591
18592clean-itcl:
18593 @: $(MAKE); $(unstage)
18594 @[ -f ./itcl/Makefile ] || exit 0; \
18595 r=`${PWD_COMMAND}`; export r; \
18596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18597 $(HOST_EXPORTS) \
18598 for flag in $(EXTRA_HOST_FLAGS) ; do \
18599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18600 done; \
18601 echo "Doing clean in itcl" ; \
18602 (cd $(HOST_SUBDIR)/itcl && \
18603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18605 "RANLIB=$${RANLIB}" \
18606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18607 clean) \
18608 || exit 1
18609
18610@endif itcl
18611
18612.PHONY: maybe-distclean-itcl distclean-itcl
18613maybe-distclean-itcl:
18614@if itcl
18615maybe-distclean-itcl: distclean-itcl
18616
18617distclean-itcl:
18618 @: $(MAKE); $(unstage)
18619 @[ -f ./itcl/Makefile ] || exit 0; \
18620 r=`${PWD_COMMAND}`; export r; \
18621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18622 $(HOST_EXPORTS) \
18623 for flag in $(EXTRA_HOST_FLAGS) ; do \
18624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18625 done; \
18626 echo "Doing distclean in itcl" ; \
18627 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18630 "RANLIB=$${RANLIB}" \
18631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18632 distclean) \
18633 || exit 1
18634
85bfb75e 18635@endif itcl
acd26225 18636
85bfb75e
JM
18637.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18638maybe-maintainer-clean-itcl:
18639@if itcl
18640maybe-maintainer-clean-itcl: maintainer-clean-itcl
acd26225 18641
85bfb75e
JM
18642maintainer-clean-itcl:
18643 @: $(MAKE); $(unstage)
18644 @[ -f ./itcl/Makefile ] || exit 0; \
acd26225
KG
18645 r=`${PWD_COMMAND}`; export r; \
18646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18647 $(HOST_EXPORTS) \
18648 for flag in $(EXTRA_HOST_FLAGS) ; do \
18649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18650 done; \
85bfb75e
JM
18651 echo "Doing maintainer-clean in itcl" ; \
18652 (cd $(HOST_SUBDIR)/itcl && \
acd26225
KG
18653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18655 "RANLIB=$${RANLIB}" \
18656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18657 maintainer-clean) \
18658 || exit 1
18659
85bfb75e 18660@endif itcl
acd26225
KG
18661
18662
18663
85bfb75e
JM
18664.PHONY: configure-ld maybe-configure-ld
18665maybe-configure-ld:
f8bf9252 18666@if gcc-bootstrap
85bfb75e 18667configure-ld: stage_current
f8bf9252 18668@endif gcc-bootstrap
85bfb75e
JM
18669@if ld
18670maybe-configure-ld: configure-ld
18671configure-ld:
f8bf9252
SP
18672 @r=`${PWD_COMMAND}`; export r; \
18673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
18674 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
18675 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
f61428ed 18676 $(HOST_EXPORTS) \
85bfb75e
JM
18677 echo Configuring in $(HOST_SUBDIR)/ld; \
18678 cd "$(HOST_SUBDIR)/ld" || exit 1; \
f8bf9252
SP
18679 case $(srcdir) in \
18680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18681 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18683 esac; \
85bfb75e
JM
18684 srcdiroption="--srcdir=$${topdir}/ld"; \
18685 libsrcdir="$$s/ld"; \
f8bf9252 18686 $(SHELL) $${libsrcdir}/configure \
f61428ed 18687 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 18688 --target=${target_alias} $${srcdiroption} \
f8bf9252 18689 || exit 1
85bfb75e 18690@endif ld
f8bf9252
SP
18691
18692
18693
85bfb75e
JM
18694.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18695maybe-configure-stage1-ld:
18696@if ld-bootstrap
18697maybe-configure-stage1-ld: configure-stage1-ld
18698configure-stage1-ld:
f8bf9252 18699 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 18700 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18701 @r=`${PWD_COMMAND}`; export r; \
18702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18703 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 18704 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
4a4a4e99 18705 $(HOST_EXPORTS) \
f8bf9252 18706 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18707 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18708 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18709 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
18710 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18711 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18712 case $(srcdir) in \
18713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18714 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18716 esac; \
85bfb75e
JM
18717 srcdiroption="--srcdir=$${topdir}/ld"; \
18718 libsrcdir="$$s/ld"; \
f8bf9252 18719 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18720 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18721 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
18722 $(STAGE1_CONFIGURE_FLAGS)
18723@endif ld-bootstrap
f8bf9252 18724
85bfb75e
JM
18725.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18726maybe-configure-stage2-ld:
18727@if ld-bootstrap
18728maybe-configure-stage2-ld: configure-stage2-ld
18729configure-stage2-ld:
f8bf9252 18730 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 18731 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18732 @r=`${PWD_COMMAND}`; export r; \
18733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18734 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 18735 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
f8bf9252 18736 $(HOST_EXPORTS) \
4a4a4e99 18737 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 18738 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18739 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18740 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18741 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
18742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18743 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18744 case $(srcdir) in \
18745 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18746 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18747 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18748 esac; \
85bfb75e
JM
18749 srcdiroption="--srcdir=$${topdir}/ld"; \
18750 libsrcdir="$$s/ld"; \
f8bf9252 18751 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18752 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18753 --target=${target_alias} $${srcdiroption} \
f8bf9252 18754 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
18755 $(STAGE2_CONFIGURE_FLAGS)
18756@endif ld-bootstrap
f8bf9252 18757
85bfb75e
JM
18758.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18759maybe-configure-stage3-ld:
18760@if ld-bootstrap
18761maybe-configure-stage3-ld: configure-stage3-ld
18762configure-stage3-ld:
f8bf9252 18763 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 18764 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18765 @r=`${PWD_COMMAND}`; export r; \
18766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18767 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 18768 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
f8bf9252 18769 $(HOST_EXPORTS) \
4a4a4e99 18770 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 18771 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18772 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18773 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18774 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
18775 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18776 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18777 case $(srcdir) in \
18778 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18779 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18780 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18781 esac; \
85bfb75e
JM
18782 srcdiroption="--srcdir=$${topdir}/ld"; \
18783 libsrcdir="$$s/ld"; \
f8bf9252 18784 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18785 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18786 --target=${target_alias} $${srcdiroption} \
f8bf9252 18787 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
18788 $(STAGE3_CONFIGURE_FLAGS)
18789@endif ld-bootstrap
f8bf9252 18790
85bfb75e
JM
18791.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18792maybe-configure-stage4-ld:
18793@if ld-bootstrap
18794maybe-configure-stage4-ld: configure-stage4-ld
18795configure-stage4-ld:
f8bf9252 18796 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 18797 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18798 @r=`${PWD_COMMAND}`; export r; \
18799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18800 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 18801 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
f8bf9252 18802 $(HOST_EXPORTS) \
4a4a4e99 18803 $(POSTSTAGE1_HOST_EXPORTS) \
f8bf9252 18804 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18805 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18806 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18807 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
18808 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18809 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18810 case $(srcdir) in \
18811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18812 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18814 esac; \
85bfb75e
JM
18815 srcdiroption="--srcdir=$${topdir}/ld"; \
18816 libsrcdir="$$s/ld"; \
f8bf9252 18817 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18818 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18819 --target=${target_alias} $${srcdiroption} \
f8bf9252 18820 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
18821 $(STAGE4_CONFIGURE_FLAGS)
18822@endif ld-bootstrap
f8bf9252 18823
85bfb75e
JM
18824.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18825maybe-configure-stageprofile-ld:
18826@if ld-bootstrap
18827maybe-configure-stageprofile-ld: configure-stageprofile-ld
18828configure-stageprofile-ld:
f8bf9252 18829 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 18830 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18831 @r=`${PWD_COMMAND}`; export r; \
18832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18833 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 18834 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
f8bf9252 18835 $(HOST_EXPORTS) \
4a4a4e99
AO
18836 $(POSTSTAGE1_HOST_EXPORTS) \
18837 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18838 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18839 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18840 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
18841 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18842 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18843 case $(srcdir) in \
18844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18845 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18847 esac; \
85bfb75e
JM
18848 srcdiroption="--srcdir=$${topdir}/ld"; \
18849 libsrcdir="$$s/ld"; \
f8bf9252 18850 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18851 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18852 --target=${target_alias} $${srcdiroption} \
f8bf9252 18853 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
18854 $(STAGEprofile_CONFIGURE_FLAGS)
18855@endif ld-bootstrap
f8bf9252 18856
85bfb75e
JM
18857.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18858maybe-configure-stagefeedback-ld:
18859@if ld-bootstrap
18860maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18861configure-stagefeedback-ld:
f8bf9252 18862 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 18863 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
f8bf9252
SP
18864 @r=`${PWD_COMMAND}`; export r; \
18865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18866 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 18867 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
f8bf9252 18868 $(HOST_EXPORTS) \
4a4a4e99
AO
18869 $(POSTSTAGE1_HOST_EXPORTS) \
18870 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
18871 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18872 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
18873 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
18874 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18875 cd $(HOST_SUBDIR)/ld || exit 1; \
f8bf9252
SP
18876 case $(srcdir) in \
18877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 18878 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
f8bf9252
SP
18879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18880 esac; \
85bfb75e
JM
18881 srcdiroption="--srcdir=$${topdir}/ld"; \
18882 libsrcdir="$$s/ld"; \
f8bf9252 18883 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
18884 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18885 --target=${target_alias} $${srcdiroption} \
f8bf9252 18886 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
18887 $(STAGEfeedback_CONFIGURE_FLAGS)
18888@endif ld-bootstrap
f8bf9252
SP
18889
18890
18891
18892
18893
85bfb75e
JM
18894.PHONY: all-ld maybe-all-ld
18895maybe-all-ld:
f8bf9252 18896@if gcc-bootstrap
85bfb75e 18897all-ld: stage_current
f8bf9252 18898@endif gcc-bootstrap
85bfb75e
JM
18899@if ld
18900TARGET-ld=all
18901maybe-all-ld: all-ld
18902all-ld: configure-ld
f8bf9252
SP
18903 @r=`${PWD_COMMAND}`; export r; \
18904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 18905 $(HOST_EXPORTS) \
85bfb75e 18906 (cd $(HOST_SUBDIR)/ld && \
f8bf9252 18907 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
18908 $(TARGET-ld))
18909@endif ld
f8bf9252
SP
18910
18911
18912
85bfb75e
JM
18913.PHONY: all-stage1-ld maybe-all-stage1-ld
18914.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18915maybe-all-stage1-ld:
18916maybe-clean-stage1-ld:
18917@if ld-bootstrap
18918maybe-all-stage1-ld: all-stage1-ld
18919all-stage1: all-stage1-ld
18920TARGET-stage1-ld = $(TARGET-ld)
18921all-stage1-ld: configure-stage1-ld
f8bf9252
SP
18922 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18923 @r=`${PWD_COMMAND}`; export r; \
18924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18925 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 18926 $(HOST_EXPORTS) \
85bfb75e 18927 cd $(HOST_SUBDIR)/ld && \
f8bf9252 18928 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 18929 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 18930 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
18931 LIBCFLAGS="$(LIBCFLAGS)" \
18932 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18933 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18934 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18935 $(EXTRA_HOST_FLAGS) \
18936 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 18937 $(TARGET-stage1-ld)
f8bf9252 18938
85bfb75e
JM
18939maybe-clean-stage1-ld: clean-stage1-ld
18940clean-stage1: clean-stage1-ld
18941clean-stage1-ld:
f8bf9252 18942 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 18943 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 18944 else \
85bfb75e 18945 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
f8bf9252
SP
18946 $(MAKE) stage1-start; \
18947 fi; \
85bfb75e 18948 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
18949 $(MAKE) $(EXTRA_HOST_FLAGS) \
18950 clean
85bfb75e 18951@endif ld-bootstrap
f8bf9252
SP
18952
18953
85bfb75e
JM
18954.PHONY: all-stage2-ld maybe-all-stage2-ld
18955.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18956maybe-all-stage2-ld:
18957maybe-clean-stage2-ld:
18958@if ld-bootstrap
18959maybe-all-stage2-ld: all-stage2-ld
18960all-stage2: all-stage2-ld
18961TARGET-stage2-ld = $(TARGET-ld)
18962all-stage2-ld: configure-stage2-ld
f8bf9252
SP
18963 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18964 @r=`${PWD_COMMAND}`; export r; \
18965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 18966 TFLAGS="$(STAGE2_TFLAGS)"; \
f8bf9252 18967 $(HOST_EXPORTS) \
f61428ed 18968 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 18969 cd $(HOST_SUBDIR)/ld && \
f8bf9252 18970 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 18971 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 18972 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
18973 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18974 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18975 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18976 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18977 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18978 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 18979 $(TARGET-stage2-ld)
f8bf9252 18980
85bfb75e
JM
18981maybe-clean-stage2-ld: clean-stage2-ld
18982clean-stage2: clean-stage2-ld
18983clean-stage2-ld:
f8bf9252 18984 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 18985 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 18986 else \
85bfb75e 18987 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
f8bf9252
SP
18988 $(MAKE) stage2-start; \
18989 fi; \
85bfb75e 18990 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
18991 $(MAKE) $(EXTRA_HOST_FLAGS) \
18992 $(POSTSTAGE1_FLAGS_TO_PASS) \
18993 clean
85bfb75e 18994@endif ld-bootstrap
f8bf9252
SP
18995
18996
85bfb75e
JM
18997.PHONY: all-stage3-ld maybe-all-stage3-ld
18998.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18999maybe-all-stage3-ld:
19000maybe-clean-stage3-ld:
19001@if ld-bootstrap
19002maybe-all-stage3-ld: all-stage3-ld
19003all-stage3: all-stage3-ld
19004TARGET-stage3-ld = $(TARGET-ld)
19005all-stage3-ld: configure-stage3-ld
f8bf9252
SP
19006 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19007 @r=`${PWD_COMMAND}`; export r; \
19008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19009 TFLAGS="$(STAGE3_TFLAGS)"; \
f8bf9252 19010 $(HOST_EXPORTS) \
f61428ed 19011 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 19012 cd $(HOST_SUBDIR)/ld && \
f8bf9252 19013 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19014 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 19015 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
19016 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19017 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19018 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19019 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19020 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19021 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 19022 $(TARGET-stage3-ld)
f8bf9252 19023
85bfb75e
JM
19024maybe-clean-stage3-ld: clean-stage3-ld
19025clean-stage3: clean-stage3-ld
19026clean-stage3-ld:
f8bf9252 19027 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 19028 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 19029 else \
85bfb75e 19030 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
f8bf9252
SP
19031 $(MAKE) stage3-start; \
19032 fi; \
85bfb75e 19033 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19034 $(MAKE) $(EXTRA_HOST_FLAGS) \
19035 $(POSTSTAGE1_FLAGS_TO_PASS) \
19036 clean
85bfb75e 19037@endif ld-bootstrap
f8bf9252
SP
19038
19039
85bfb75e
JM
19040.PHONY: all-stage4-ld maybe-all-stage4-ld
19041.PHONY: clean-stage4-ld maybe-clean-stage4-ld
19042maybe-all-stage4-ld:
19043maybe-clean-stage4-ld:
19044@if ld-bootstrap
19045maybe-all-stage4-ld: all-stage4-ld
19046all-stage4: all-stage4-ld
19047TARGET-stage4-ld = $(TARGET-ld)
19048all-stage4-ld: configure-stage4-ld
f8bf9252
SP
19049 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19050 @r=`${PWD_COMMAND}`; export r; \
19051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19052 TFLAGS="$(STAGE4_TFLAGS)"; \
f8bf9252 19053 $(HOST_EXPORTS) \
f61428ed 19054 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 19055 cd $(HOST_SUBDIR)/ld && \
f8bf9252 19056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19057 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 19058 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
f8bf9252 19059 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
19060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19064 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 19065 $(TARGET-stage4-ld)
f8bf9252 19066
85bfb75e
JM
19067maybe-clean-stage4-ld: clean-stage4-ld
19068clean-stage4: clean-stage4-ld
19069clean-stage4-ld:
f8bf9252 19070 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 19071 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 19072 else \
85bfb75e 19073 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
f8bf9252
SP
19074 $(MAKE) stage4-start; \
19075 fi; \
85bfb75e 19076 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19077 $(MAKE) $(EXTRA_HOST_FLAGS) \
19078 $(POSTSTAGE1_FLAGS_TO_PASS) \
19079 clean
85bfb75e 19080@endif ld-bootstrap
f8bf9252
SP
19081
19082
85bfb75e
JM
19083.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
19084.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
19085maybe-all-stageprofile-ld:
19086maybe-clean-stageprofile-ld:
19087@if ld-bootstrap
19088maybe-all-stageprofile-ld: all-stageprofile-ld
19089all-stageprofile: all-stageprofile-ld
19090TARGET-stageprofile-ld = $(TARGET-ld)
19091all-stageprofile-ld: configure-stageprofile-ld
f8bf9252
SP
19092 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19093 @r=`${PWD_COMMAND}`; export r; \
19094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19095 TFLAGS="$(STAGEprofile_TFLAGS)"; \
f8bf9252 19096 $(HOST_EXPORTS) \
f61428ed 19097 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 19098 cd $(HOST_SUBDIR)/ld && \
f8bf9252 19099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19100 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 19101 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
19102 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19103 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19104 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19105 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19106 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19107 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 19108 $(TARGET-stageprofile-ld)
f8bf9252 19109
85bfb75e
JM
19110maybe-clean-stageprofile-ld: clean-stageprofile-ld
19111clean-stageprofile: clean-stageprofile-ld
19112clean-stageprofile-ld:
f8bf9252 19113 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 19114 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 19115 else \
85bfb75e 19116 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
f8bf9252
SP
19117 $(MAKE) stageprofile-start; \
19118 fi; \
85bfb75e 19119 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19120 $(MAKE) $(EXTRA_HOST_FLAGS) \
19121 $(POSTSTAGE1_FLAGS_TO_PASS) \
19122 clean
85bfb75e 19123@endif ld-bootstrap
f8bf9252
SP
19124
19125
85bfb75e
JM
19126.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
19127.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
19128maybe-all-stagefeedback-ld:
19129maybe-clean-stagefeedback-ld:
19130@if ld-bootstrap
19131maybe-all-stagefeedback-ld: all-stagefeedback-ld
19132all-stagefeedback: all-stagefeedback-ld
19133TARGET-stagefeedback-ld = $(TARGET-ld)
19134all-stagefeedback-ld: configure-stagefeedback-ld
f8bf9252
SP
19135 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19136 @r=`${PWD_COMMAND}`; export r; \
19137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19138 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
f8bf9252 19139 $(HOST_EXPORTS) \
f61428ed 19140 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 19141 cd $(HOST_SUBDIR)/ld && \
f8bf9252 19142 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19143 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 19144 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
19145 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19146 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19147 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19148 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19149 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19150 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 19151 $(TARGET-stagefeedback-ld)
f8bf9252 19152
85bfb75e
JM
19153maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19154clean-stagefeedback: clean-stagefeedback-ld
19155clean-stagefeedback-ld:
f8bf9252 19156 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 19157 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
f8bf9252 19158 else \
85bfb75e 19159 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
f8bf9252
SP
19160 $(MAKE) stagefeedback-start; \
19161 fi; \
85bfb75e 19162 cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19163 $(MAKE) $(EXTRA_HOST_FLAGS) \
19164 $(POSTSTAGE1_FLAGS_TO_PASS) \
19165 clean
85bfb75e 19166@endif ld-bootstrap
f8bf9252
SP
19167
19168
19169
19170
19171
85bfb75e
JM
19172.PHONY: check-ld maybe-check-ld
19173maybe-check-ld:
19174@if ld
19175maybe-check-ld: check-ld
f8bf9252 19176
85bfb75e 19177check-ld:
f8bf9252
SP
19178 @: $(MAKE); $(unstage)
19179 @r=`${PWD_COMMAND}`; export r; \
19180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19181 $(HOST_EXPORTS) \
85bfb75e 19182 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19183 $(MAKE) $(FLAGS_TO_PASS) check)
19184
85bfb75e 19185@endif ld
f8bf9252 19186
85bfb75e
JM
19187.PHONY: install-ld maybe-install-ld
19188maybe-install-ld:
19189@if ld
19190maybe-install-ld: install-ld
f8bf9252 19191
85bfb75e
JM
19192install-ld: installdirs
19193 @: $(MAKE); $(unstage)
19194 @r=`${PWD_COMMAND}`; export r; \
19195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19196 $(HOST_EXPORTS) \
19197 (cd $(HOST_SUBDIR)/ld && \
19198 $(MAKE) $(FLAGS_TO_PASS) install)
f8bf9252 19199
85bfb75e 19200@endif ld
f8bf9252 19201
85bfb75e
JM
19202.PHONY: install-strip-ld maybe-install-strip-ld
19203maybe-install-strip-ld:
19204@if ld
19205maybe-install-strip-ld: install-strip-ld
455c8f48 19206
85bfb75e
JM
19207install-strip-ld: installdirs
19208 @: $(MAKE); $(unstage)
19209 @r=`${PWD_COMMAND}`; export r; \
19210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19211 $(HOST_EXPORTS) \
19212 (cd $(HOST_SUBDIR)/ld && \
19213 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 19214
85bfb75e 19215@endif ld
455c8f48 19216
f8bf9252
SP
19217# Other targets (info, dvi, pdf, etc.)
19218
85bfb75e
JM
19219.PHONY: maybe-info-ld info-ld
19220maybe-info-ld:
19221@if ld
19222maybe-info-ld: info-ld
f8bf9252 19223
85bfb75e
JM
19224info-ld: \
19225 configure-ld
19226 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19227 r=`${PWD_COMMAND}`; export r; \
19228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19229 $(HOST_EXPORTS) \
19230 for flag in $(EXTRA_HOST_FLAGS) ; do \
19231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19232 done; \
85bfb75e
JM
19233 echo "Doing info in ld" ; \
19234 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19237 "RANLIB=$${RANLIB}" \
19238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19239 info) \
19240 || exit 1
19241
85bfb75e 19242@endif ld
f8bf9252 19243
85bfb75e
JM
19244.PHONY: maybe-dvi-ld dvi-ld
19245maybe-dvi-ld:
19246@if ld
19247maybe-dvi-ld: dvi-ld
f8bf9252 19248
85bfb75e
JM
19249dvi-ld: \
19250 configure-ld
19251 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19252 r=`${PWD_COMMAND}`; export r; \
19253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19254 $(HOST_EXPORTS) \
19255 for flag in $(EXTRA_HOST_FLAGS) ; do \
19256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19257 done; \
85bfb75e
JM
19258 echo "Doing dvi in ld" ; \
19259 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19262 "RANLIB=$${RANLIB}" \
19263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19264 dvi) \
19265 || exit 1
19266
85bfb75e 19267@endif ld
f8bf9252 19268
85bfb75e
JM
19269.PHONY: maybe-pdf-ld pdf-ld
19270maybe-pdf-ld:
19271@if ld
19272maybe-pdf-ld: pdf-ld
f8bf9252 19273
85bfb75e
JM
19274pdf-ld: \
19275 configure-ld
19276 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19277 r=`${PWD_COMMAND}`; export r; \
19278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19279 $(HOST_EXPORTS) \
19280 for flag in $(EXTRA_HOST_FLAGS) ; do \
19281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19282 done; \
85bfb75e
JM
19283 echo "Doing pdf in ld" ; \
19284 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19287 "RANLIB=$${RANLIB}" \
19288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19289 pdf) \
19290 || exit 1
19291
85bfb75e 19292@endif ld
f8bf9252 19293
85bfb75e
JM
19294.PHONY: maybe-html-ld html-ld
19295maybe-html-ld:
19296@if ld
19297maybe-html-ld: html-ld
f8bf9252 19298
85bfb75e
JM
19299html-ld: \
19300 configure-ld
19301 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19302 r=`${PWD_COMMAND}`; export r; \
19303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19304 $(HOST_EXPORTS) \
19305 for flag in $(EXTRA_HOST_FLAGS) ; do \
19306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19307 done; \
85bfb75e
JM
19308 echo "Doing html in ld" ; \
19309 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19312 "RANLIB=$${RANLIB}" \
19313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19314 html) \
19315 || exit 1
19316
85bfb75e 19317@endif ld
f8bf9252 19318
85bfb75e
JM
19319.PHONY: maybe-TAGS-ld TAGS-ld
19320maybe-TAGS-ld:
19321@if ld
19322maybe-TAGS-ld: TAGS-ld
f8bf9252 19323
85bfb75e
JM
19324TAGS-ld: \
19325 configure-ld
19326 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19327 r=`${PWD_COMMAND}`; export r; \
19328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19329 $(HOST_EXPORTS) \
19330 for flag in $(EXTRA_HOST_FLAGS) ; do \
19331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19332 done; \
85bfb75e
JM
19333 echo "Doing TAGS in ld" ; \
19334 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19337 "RANLIB=$${RANLIB}" \
19338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19339 TAGS) \
19340 || exit 1
19341
85bfb75e 19342@endif ld
f8bf9252 19343
85bfb75e
JM
19344.PHONY: maybe-install-info-ld install-info-ld
19345maybe-install-info-ld:
19346@if ld
19347maybe-install-info-ld: install-info-ld
f8bf9252 19348
85bfb75e
JM
19349install-info-ld: \
19350 configure-ld \
19351 info-ld
19352 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19353 r=`${PWD_COMMAND}`; export r; \
19354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19355 $(HOST_EXPORTS) \
19356 for flag in $(EXTRA_HOST_FLAGS) ; do \
19357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19358 done; \
85bfb75e
JM
19359 echo "Doing install-info in ld" ; \
19360 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19363 "RANLIB=$${RANLIB}" \
19364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19365 install-info) \
19366 || exit 1
19367
85bfb75e 19368@endif ld
f8bf9252 19369
85bfb75e
JM
19370.PHONY: maybe-install-pdf-ld install-pdf-ld
19371maybe-install-pdf-ld:
19372@if ld
19373maybe-install-pdf-ld: install-pdf-ld
f8bf9252 19374
85bfb75e
JM
19375install-pdf-ld: \
19376 configure-ld \
19377 pdf-ld
19378 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19379 r=`${PWD_COMMAND}`; export r; \
19380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19381 $(HOST_EXPORTS) \
19382 for flag in $(EXTRA_HOST_FLAGS) ; do \
19383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19384 done; \
85bfb75e
JM
19385 echo "Doing install-pdf in ld" ; \
19386 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19389 "RANLIB=$${RANLIB}" \
19390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19391 install-pdf) \
19392 || exit 1
19393
85bfb75e 19394@endif ld
f8bf9252 19395
85bfb75e
JM
19396.PHONY: maybe-install-html-ld install-html-ld
19397maybe-install-html-ld:
19398@if ld
19399maybe-install-html-ld: install-html-ld
f8bf9252 19400
85bfb75e
JM
19401install-html-ld: \
19402 configure-ld \
19403 html-ld
19404 @[ -f ./ld/Makefile ] || exit 0; \
f8bf9252
SP
19405 r=`${PWD_COMMAND}`; export r; \
19406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19407 $(HOST_EXPORTS) \
19408 for flag in $(EXTRA_HOST_FLAGS) ; do \
19409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19410 done; \
85bfb75e
JM
19411 echo "Doing install-html in ld" ; \
19412 (cd $(HOST_SUBDIR)/ld && \
f8bf9252
SP
19413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19415 "RANLIB=$${RANLIB}" \
19416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19417 install-html) \
19418 || exit 1
19419
85bfb75e 19420@endif ld
f8bf9252 19421
85bfb75e
JM
19422.PHONY: maybe-installcheck-ld installcheck-ld
19423maybe-installcheck-ld:
19424@if ld
19425maybe-installcheck-ld: installcheck-ld
f8bf9252 19426
85bfb75e
JM
19427installcheck-ld: \
19428 configure-ld
19429 @[ -f ./ld/Makefile ] || exit 0; \
e69bf64b
PB
19430 r=`${PWD_COMMAND}`; export r; \
19431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19432 $(HOST_EXPORTS) \
19433 for flag in $(EXTRA_HOST_FLAGS) ; do \
19434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19435 done; \
85bfb75e
JM
19436 echo "Doing installcheck in ld" ; \
19437 (cd $(HOST_SUBDIR)/ld && \
e69bf64b
PB
19438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19440 "RANLIB=$${RANLIB}" \
901119ae 19441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
19442 installcheck) \
19443 || exit 1
19444
85bfb75e 19445@endif ld
e69bf64b 19446
85bfb75e
JM
19447.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19448maybe-mostlyclean-ld:
19449@if ld
19450maybe-mostlyclean-ld: mostlyclean-ld
e69bf64b 19451
85bfb75e
JM
19452mostlyclean-ld:
19453 @[ -f ./ld/Makefile ] || exit 0; \
e69bf64b
PB
19454 r=`${PWD_COMMAND}`; export r; \
19455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19456 $(HOST_EXPORTS) \
19457 for flag in $(EXTRA_HOST_FLAGS) ; do \
19458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19459 done; \
85bfb75e
JM
19460 echo "Doing mostlyclean in ld" ; \
19461 (cd $(HOST_SUBDIR)/ld && \
e69bf64b
PB
19462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19464 "RANLIB=$${RANLIB}" \
901119ae 19465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
19466 mostlyclean) \
19467 || exit 1
19468
85bfb75e 19469@endif ld
e69bf64b 19470
85bfb75e
JM
19471.PHONY: maybe-clean-ld clean-ld
19472maybe-clean-ld:
19473@if ld
19474maybe-clean-ld: clean-ld
e69bf64b 19475
85bfb75e
JM
19476clean-ld:
19477 @[ -f ./ld/Makefile ] || exit 0; \
e69bf64b
PB
19478 r=`${PWD_COMMAND}`; export r; \
19479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19480 $(HOST_EXPORTS) \
19481 for flag in $(EXTRA_HOST_FLAGS) ; do \
19482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19483 done; \
85bfb75e
JM
19484 echo "Doing clean in ld" ; \
19485 (cd $(HOST_SUBDIR)/ld && \
e69bf64b
PB
19486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19488 "RANLIB=$${RANLIB}" \
901119ae 19489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
19490 clean) \
19491 || exit 1
19492
85bfb75e 19493@endif ld
e69bf64b 19494
85bfb75e
JM
19495.PHONY: maybe-distclean-ld distclean-ld
19496maybe-distclean-ld:
19497@if ld
19498maybe-distclean-ld: distclean-ld
e69bf64b 19499
85bfb75e
JM
19500distclean-ld:
19501 @[ -f ./ld/Makefile ] || exit 0; \
e69bf64b
PB
19502 r=`${PWD_COMMAND}`; export r; \
19503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19504 $(HOST_EXPORTS) \
19505 for flag in $(EXTRA_HOST_FLAGS) ; do \
19506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19507 done; \
85bfb75e
JM
19508 echo "Doing distclean in ld" ; \
19509 (cd $(HOST_SUBDIR)/ld && \
e69bf64b
PB
19510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19512 "RANLIB=$${RANLIB}" \
901119ae 19513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
19514 distclean) \
19515 || exit 1
19516
85bfb75e 19517@endif ld
e69bf64b 19518
85bfb75e
JM
19519.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19520maybe-maintainer-clean-ld:
19521@if ld
19522maybe-maintainer-clean-ld: maintainer-clean-ld
e69bf64b 19523
85bfb75e
JM
19524maintainer-clean-ld:
19525 @[ -f ./ld/Makefile ] || exit 0; \
e69bf64b
PB
19526 r=`${PWD_COMMAND}`; export r; \
19527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19528 $(HOST_EXPORTS) \
19529 for flag in $(EXTRA_HOST_FLAGS) ; do \
19530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19531 done; \
85bfb75e
JM
19532 echo "Doing maintainer-clean in ld" ; \
19533 (cd $(HOST_SUBDIR)/ld && \
e69bf64b
PB
19534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19536 "RANLIB=$${RANLIB}" \
901119ae 19537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
19538 maintainer-clean) \
19539 || exit 1
19540
85bfb75e 19541@endif ld
e69bf64b
PB
19542
19543
19544
85bfb75e
JM
19545.PHONY: configure-libcpp maybe-configure-libcpp
19546maybe-configure-libcpp:
e69bf64b 19547@if gcc-bootstrap
85bfb75e 19548configure-libcpp: stage_current
e69bf64b 19549@endif gcc-bootstrap
85bfb75e
JM
19550@if libcpp
19551maybe-configure-libcpp: configure-libcpp
19552configure-libcpp:
e69bf64b
PB
19553 @r=`${PWD_COMMAND}`; export r; \
19554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
19555 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
19556 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19557 $(HOST_EXPORTS) \
19558 echo Configuring in $(HOST_SUBDIR)/libcpp; \
19559 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
e69bf64b
PB
19560 case $(srcdir) in \
19561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19562 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19564 esac; \
85bfb75e
JM
19565 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19566 libsrcdir="$$s/libcpp"; \
e69bf64b 19567 $(SHELL) $${libsrcdir}/configure \
f61428ed 19568 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 19569 --target=${target_alias} $${srcdiroption} \
e69bf64b 19570 || exit 1
85bfb75e 19571@endif libcpp
e69bf64b
PB
19572
19573
19574
85bfb75e
JM
19575.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
19576maybe-configure-stage1-libcpp:
19577@if libcpp-bootstrap
19578maybe-configure-stage1-libcpp: configure-stage1-libcpp
19579configure-stage1-libcpp:
e69bf64b 19580 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 19581 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19582 @r=`${PWD_COMMAND}`; export r; \
19583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19584 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 19585 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4a4a4e99 19586 $(HOST_EXPORTS) \
342b9200 19587 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed 19588 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19589 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
19590 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
19591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19592 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19593 case $(srcdir) in \
19594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19595 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19597 esac; \
85bfb75e
JM
19598 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19599 libsrcdir="$$s/libcpp"; \
e69bf64b 19600 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19602 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
19603 $(STAGE1_CONFIGURE_FLAGS)
19604@endif libcpp-bootstrap
f8bf9252 19605
85bfb75e
JM
19606.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
19607maybe-configure-stage2-libcpp:
19608@if libcpp-bootstrap
19609maybe-configure-stage2-libcpp: configure-stage2-libcpp
19610configure-stage2-libcpp:
e69bf64b 19611 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 19612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19613 @r=`${PWD_COMMAND}`; export r; \
19614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19615 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 19616 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
e69bf64b 19617 $(HOST_EXPORTS) \
4a4a4e99 19618 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 19619 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed 19620 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19621 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
19622 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
19623 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19624 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19625 case $(srcdir) in \
19626 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19627 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19628 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19629 esac; \
85bfb75e
JM
19630 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19631 libsrcdir="$$s/libcpp"; \
e69bf64b 19632 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19634 --target=${target_alias} $${srcdiroption} \
e69bf64b 19635 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
19636 $(STAGE2_CONFIGURE_FLAGS)
19637@endif libcpp-bootstrap
f8bf9252 19638
85bfb75e
JM
19639.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
19640maybe-configure-stage3-libcpp:
19641@if libcpp-bootstrap
19642maybe-configure-stage3-libcpp: configure-stage3-libcpp
19643configure-stage3-libcpp:
e69bf64b 19644 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 19645 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19646 @r=`${PWD_COMMAND}`; export r; \
19647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19648 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 19649 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
e69bf64b 19650 $(HOST_EXPORTS) \
4a4a4e99 19651 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 19652 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed 19653 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19654 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
19655 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
19656 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19657 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19658 case $(srcdir) in \
19659 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19660 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19661 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19662 esac; \
85bfb75e
JM
19663 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19664 libsrcdir="$$s/libcpp"; \
e69bf64b 19665 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19666 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19667 --target=${target_alias} $${srcdiroption} \
e69bf64b 19668 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
19669 $(STAGE3_CONFIGURE_FLAGS)
19670@endif libcpp-bootstrap
f8bf9252 19671
85bfb75e
JM
19672.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
19673maybe-configure-stage4-libcpp:
19674@if libcpp-bootstrap
19675maybe-configure-stage4-libcpp: configure-stage4-libcpp
19676configure-stage4-libcpp:
e69bf64b 19677 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 19678 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19679 @r=`${PWD_COMMAND}`; export r; \
19680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19681 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 19682 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
e69bf64b 19683 $(HOST_EXPORTS) \
4a4a4e99 19684 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 19685 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed 19686 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19687 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
19688 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
19689 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19690 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19691 case $(srcdir) in \
19692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19693 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19695 esac; \
85bfb75e
JM
19696 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19697 libsrcdir="$$s/libcpp"; \
e69bf64b 19698 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19699 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19700 --target=${target_alias} $${srcdiroption} \
e69bf64b 19701 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
19702 $(STAGE4_CONFIGURE_FLAGS)
19703@endif libcpp-bootstrap
f8bf9252 19704
85bfb75e
JM
19705.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
19706maybe-configure-stageprofile-libcpp:
19707@if libcpp-bootstrap
19708maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
19709configure-stageprofile-libcpp:
e69bf64b 19710 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 19711 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19712 @r=`${PWD_COMMAND}`; export r; \
19713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19714 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 19715 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
e69bf64b 19716 $(HOST_EXPORTS) \
4a4a4e99
AO
19717 $(POSTSTAGE1_HOST_EXPORTS) \
19718 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed 19719 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19720 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
19721 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
19722 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19723 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19724 case $(srcdir) in \
19725 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19726 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19727 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19728 esac; \
85bfb75e
JM
19729 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19730 libsrcdir="$$s/libcpp"; \
e69bf64b 19731 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19732 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19733 --target=${target_alias} $${srcdiroption} \
e69bf64b 19734 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
19735 $(STAGEprofile_CONFIGURE_FLAGS)
19736@endif libcpp-bootstrap
f8bf9252 19737
85bfb75e
JM
19738.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
19739maybe-configure-stagefeedback-libcpp:
19740@if libcpp-bootstrap
19741maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
19742configure-stagefeedback-libcpp:
e69bf64b 19743 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 19744 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
e69bf64b
PB
19745 @r=`${PWD_COMMAND}`; export r; \
19746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19747 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 19748 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
e69bf64b 19749 $(HOST_EXPORTS) \
4a4a4e99
AO
19750 $(POSTSTAGE1_HOST_EXPORTS) \
19751 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed 19752 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
85bfb75e
JM
19753 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
19754 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
19755 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
19756 cd $(HOST_SUBDIR)/libcpp || exit 1; \
e69bf64b
PB
19757 case $(srcdir) in \
19758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 19759 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
e69bf64b
PB
19760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19761 esac; \
85bfb75e
JM
19762 srcdiroption="--srcdir=$${topdir}/libcpp"; \
19763 libsrcdir="$$s/libcpp"; \
e69bf64b 19764 $(SHELL) $${libsrcdir}/configure \
f61428ed
AO
19765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19766 --target=${target_alias} $${srcdiroption} \
e69bf64b 19767 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
19768 $(STAGEfeedback_CONFIGURE_FLAGS)
19769@endif libcpp-bootstrap
e69bf64b
PB
19770
19771
19772
19773
19774
85bfb75e
JM
19775.PHONY: all-libcpp maybe-all-libcpp
19776maybe-all-libcpp:
e69bf64b 19777@if gcc-bootstrap
85bfb75e 19778all-libcpp: stage_current
e69bf64b 19779@endif gcc-bootstrap
85bfb75e
JM
19780@if libcpp
19781TARGET-libcpp=all
19782maybe-all-libcpp: all-libcpp
19783all-libcpp: configure-libcpp
e69bf64b
PB
19784 @r=`${PWD_COMMAND}`; export r; \
19785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
19786 $(HOST_EXPORTS) \
19787 (cd $(HOST_SUBDIR)/libcpp && \
19788 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
19789 $(TARGET-libcpp))
19790@endif libcpp
e69bf64b
PB
19791
19792
19793
85bfb75e
JM
19794.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
19795.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
19796maybe-all-stage1-libcpp:
19797maybe-clean-stage1-libcpp:
19798@if libcpp-bootstrap
19799maybe-all-stage1-libcpp: all-stage1-libcpp
19800all-stage1: all-stage1-libcpp
19801TARGET-stage1-libcpp = $(TARGET-libcpp)
19802all-stage1-libcpp: configure-stage1-libcpp
e69bf64b
PB
19803 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19804 @r=`${PWD_COMMAND}`; export r; \
19805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19806 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e
JM
19807 $(HOST_EXPORTS) \
19808 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19809 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19810 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 19811 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
19812 LIBCFLAGS="$(LIBCFLAGS)" \
19813 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19814 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19815 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 19816 $(EXTRA_HOST_FLAGS) \
4a4a4e99 19817 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 19818 $(TARGET-stage1-libcpp)
e69bf64b 19819
85bfb75e
JM
19820maybe-clean-stage1-libcpp: clean-stage1-libcpp
19821clean-stage1: clean-stage1-libcpp
19822clean-stage1-libcpp:
e69bf64b 19823 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 19824 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 19825 else \
85bfb75e 19826 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
19827 $(MAKE) stage1-start; \
19828 fi; \
85bfb75e 19829 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19830 $(MAKE) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
19831 clean
19832@endif libcpp-bootstrap
f8bf9252
SP
19833
19834
85bfb75e
JM
19835.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
19836.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
19837maybe-all-stage2-libcpp:
19838maybe-clean-stage2-libcpp:
19839@if libcpp-bootstrap
19840maybe-all-stage2-libcpp: all-stage2-libcpp
19841all-stage2: all-stage2-libcpp
19842TARGET-stage2-libcpp = $(TARGET-libcpp)
19843all-stage2-libcpp: configure-stage2-libcpp
e69bf64b
PB
19844 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19845 @r=`${PWD_COMMAND}`; export r; \
19846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19847 TFLAGS="$(STAGE2_TFLAGS)"; \
e69bf64b 19848 $(HOST_EXPORTS) \
85bfb75e
JM
19849 $(POSTSTAGE1_HOST_EXPORTS) \
19850 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19851 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19852 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 19853 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
19854 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19855 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19856 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19857 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 19858 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 19859 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 19860 $(TARGET-stage2-libcpp)
e69bf64b 19861
85bfb75e
JM
19862maybe-clean-stage2-libcpp: clean-stage2-libcpp
19863clean-stage2: clean-stage2-libcpp
19864clean-stage2-libcpp:
e69bf64b 19865 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 19866 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 19867 else \
85bfb75e 19868 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
19869 $(MAKE) stage2-start; \
19870 fi; \
85bfb75e 19871 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19872 $(MAKE) $(EXTRA_HOST_FLAGS) \
e69bf64b 19873 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
19874 clean
19875@endif libcpp-bootstrap
f8bf9252
SP
19876
19877
85bfb75e
JM
19878.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
19879.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
19880maybe-all-stage3-libcpp:
19881maybe-clean-stage3-libcpp:
19882@if libcpp-bootstrap
19883maybe-all-stage3-libcpp: all-stage3-libcpp
19884all-stage3: all-stage3-libcpp
19885TARGET-stage3-libcpp = $(TARGET-libcpp)
19886all-stage3-libcpp: configure-stage3-libcpp
e69bf64b
PB
19887 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19888 @r=`${PWD_COMMAND}`; export r; \
19889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19890 TFLAGS="$(STAGE3_TFLAGS)"; \
e69bf64b 19891 $(HOST_EXPORTS) \
85bfb75e
JM
19892 $(POSTSTAGE1_HOST_EXPORTS) \
19893 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19894 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19895 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 19896 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
19897 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19898 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19899 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19900 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 19901 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 19902 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 19903 $(TARGET-stage3-libcpp)
e69bf64b 19904
85bfb75e
JM
19905maybe-clean-stage3-libcpp: clean-stage3-libcpp
19906clean-stage3: clean-stage3-libcpp
19907clean-stage3-libcpp:
e69bf64b 19908 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 19909 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 19910 else \
85bfb75e 19911 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
19912 $(MAKE) stage3-start; \
19913 fi; \
85bfb75e 19914 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19915 $(MAKE) $(EXTRA_HOST_FLAGS) \
e69bf64b 19916 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
19917 clean
19918@endif libcpp-bootstrap
f8bf9252
SP
19919
19920
85bfb75e
JM
19921.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
19922.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
19923maybe-all-stage4-libcpp:
19924maybe-clean-stage4-libcpp:
19925@if libcpp-bootstrap
19926maybe-all-stage4-libcpp: all-stage4-libcpp
19927all-stage4: all-stage4-libcpp
19928TARGET-stage4-libcpp = $(TARGET-libcpp)
19929all-stage4-libcpp: configure-stage4-libcpp
e69bf64b
PB
19930 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19931 @r=`${PWD_COMMAND}`; export r; \
19932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19933 TFLAGS="$(STAGE4_TFLAGS)"; \
e69bf64b 19934 $(HOST_EXPORTS) \
85bfb75e
JM
19935 $(POSTSTAGE1_HOST_EXPORTS) \
19936 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19937 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19938 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 19939 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
1c8bd6a3 19940 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
19941 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19942 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19943 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 19944 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 19945 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 19946 $(TARGET-stage4-libcpp)
e69bf64b 19947
85bfb75e
JM
19948maybe-clean-stage4-libcpp: clean-stage4-libcpp
19949clean-stage4: clean-stage4-libcpp
19950clean-stage4-libcpp:
e69bf64b 19951 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 19952 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 19953 else \
85bfb75e 19954 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
19955 $(MAKE) stage4-start; \
19956 fi; \
85bfb75e 19957 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19958 $(MAKE) $(EXTRA_HOST_FLAGS) \
e69bf64b 19959 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
19960 clean
19961@endif libcpp-bootstrap
f8bf9252
SP
19962
19963
85bfb75e
JM
19964.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
19965.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
19966maybe-all-stageprofile-libcpp:
19967maybe-clean-stageprofile-libcpp:
19968@if libcpp-bootstrap
19969maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
19970all-stageprofile: all-stageprofile-libcpp
19971TARGET-stageprofile-libcpp = $(TARGET-libcpp)
19972all-stageprofile-libcpp: configure-stageprofile-libcpp
e69bf64b
PB
19973 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19974 @r=`${PWD_COMMAND}`; export r; \
19975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 19976 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e69bf64b 19977 $(HOST_EXPORTS) \
85bfb75e
JM
19978 $(POSTSTAGE1_HOST_EXPORTS) \
19979 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 19980 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 19981 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 19982 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
19983 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19984 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19985 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19986 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 19987 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 19988 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 19989 $(TARGET-stageprofile-libcpp)
e69bf64b 19990
85bfb75e
JM
19991maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
19992clean-stageprofile: clean-stageprofile-libcpp
19993clean-stageprofile-libcpp:
e69bf64b 19994 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 19995 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 19996 else \
85bfb75e 19997 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
19998 $(MAKE) stageprofile-start; \
19999 fi; \
85bfb75e 20000 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 20001 $(MAKE) $(EXTRA_HOST_FLAGS) \
e69bf64b 20002 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
20003 clean
20004@endif libcpp-bootstrap
f8bf9252
SP
20005
20006
85bfb75e
JM
20007.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20008.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20009maybe-all-stagefeedback-libcpp:
20010maybe-clean-stagefeedback-libcpp:
20011@if libcpp-bootstrap
20012maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20013all-stagefeedback: all-stagefeedback-libcpp
20014TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20015all-stagefeedback-libcpp: configure-stagefeedback-libcpp
e69bf64b
PB
20016 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20017 @r=`${PWD_COMMAND}`; export r; \
20018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 20019 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e69bf64b 20020 $(HOST_EXPORTS) \
85bfb75e
JM
20021 $(POSTSTAGE1_HOST_EXPORTS) \
20022 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 20023 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 20024 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 20025 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
20026 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20027 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20028 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20029 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
85bfb75e 20030 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4a4a4e99 20031 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 20032 $(TARGET-stagefeedback-libcpp)
e69bf64b 20033
85bfb75e
JM
20034maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20035clean-stagefeedback: clean-stagefeedback-libcpp
20036clean-stagefeedback-libcpp:
e69bf64b 20037 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 20038 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
e69bf64b 20039 else \
85bfb75e 20040 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20041 $(MAKE) stagefeedback-start; \
20042 fi; \
85bfb75e 20043 cd $(HOST_SUBDIR)/libcpp && \
1c8bd6a3 20044 $(MAKE) $(EXTRA_HOST_FLAGS) \
e69bf64b 20045 $(POSTSTAGE1_FLAGS_TO_PASS) \
85bfb75e
JM
20046 clean
20047@endif libcpp-bootstrap
e69bf64b
PB
20048
20049
20050
20051
20052
85bfb75e
JM
20053.PHONY: check-libcpp maybe-check-libcpp
20054maybe-check-libcpp:
20055@if libcpp
20056maybe-check-libcpp: check-libcpp
e69bf64b 20057
85bfb75e 20058check-libcpp:
e69bf64b
PB
20059 @: $(MAKE); $(unstage)
20060 @r=`${PWD_COMMAND}`; export r; \
20061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20062 $(HOST_EXPORTS) \
85bfb75e
JM
20063 (cd $(HOST_SUBDIR)/libcpp && \
20064 $(MAKE) $(FLAGS_TO_PASS) check)
e69bf64b 20065
85bfb75e 20066@endif libcpp
e69bf64b 20067
85bfb75e
JM
20068.PHONY: install-libcpp maybe-install-libcpp
20069maybe-install-libcpp:
20070@if libcpp
20071maybe-install-libcpp: install-libcpp
e69bf64b 20072
85bfb75e
JM
20073install-libcpp: installdirs
20074 @: $(MAKE); $(unstage)
20075 @r=`${PWD_COMMAND}`; export r; \
20076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20077 $(HOST_EXPORTS) \
20078 (cd $(HOST_SUBDIR)/libcpp && \
20079 $(MAKE) $(FLAGS_TO_PASS) install)
e69bf64b 20080
85bfb75e 20081@endif libcpp
e69bf64b 20082
85bfb75e
JM
20083.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20084maybe-install-strip-libcpp:
20085@if libcpp
20086maybe-install-strip-libcpp: install-strip-libcpp
455c8f48 20087
85bfb75e
JM
20088install-strip-libcpp: installdirs
20089 @: $(MAKE); $(unstage)
20090 @r=`${PWD_COMMAND}`; export r; \
20091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20092 $(HOST_EXPORTS) \
20093 (cd $(HOST_SUBDIR)/libcpp && \
20094 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 20095
85bfb75e 20096@endif libcpp
455c8f48 20097
e69bf64b
PB
20098# Other targets (info, dvi, pdf, etc.)
20099
85bfb75e
JM
20100.PHONY: maybe-info-libcpp info-libcpp
20101maybe-info-libcpp:
20102@if libcpp
20103maybe-info-libcpp: info-libcpp
e69bf64b 20104
85bfb75e
JM
20105info-libcpp: \
20106 configure-libcpp
20107 @[ -f ./libcpp/Makefile ] || exit 0; \
20108 r=`${PWD_COMMAND}`; export r; \
e69bf64b
PB
20109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20110 $(HOST_EXPORTS) \
85bfb75e 20111 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20113 done; \
85bfb75e
JM
20114 echo "Doing info in libcpp" ; \
20115 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20118 "RANLIB=$${RANLIB}" \
901119ae 20119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20120 info) \
20121 || exit 1
20122
85bfb75e 20123@endif libcpp
e69bf64b 20124
85bfb75e
JM
20125.PHONY: maybe-dvi-libcpp dvi-libcpp
20126maybe-dvi-libcpp:
20127@if libcpp
20128maybe-dvi-libcpp: dvi-libcpp
e69bf64b 20129
85bfb75e
JM
20130dvi-libcpp: \
20131 configure-libcpp
20132 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20133 r=`${PWD_COMMAND}`; export r; \
20134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20135 $(HOST_EXPORTS) \
85bfb75e 20136 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20138 done; \
85bfb75e
JM
20139 echo "Doing dvi in libcpp" ; \
20140 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20143 "RANLIB=$${RANLIB}" \
901119ae 20144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20145 dvi) \
20146 || exit 1
20147
85bfb75e 20148@endif libcpp
e69bf64b 20149
85bfb75e
JM
20150.PHONY: maybe-pdf-libcpp pdf-libcpp
20151maybe-pdf-libcpp:
20152@if libcpp
20153maybe-pdf-libcpp: pdf-libcpp
e69bf64b 20154
85bfb75e
JM
20155pdf-libcpp: \
20156 configure-libcpp
20157 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20158 r=`${PWD_COMMAND}`; export r; \
20159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20160 $(HOST_EXPORTS) \
85bfb75e 20161 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20163 done; \
85bfb75e
JM
20164 echo "Doing pdf in libcpp" ; \
20165 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20168 "RANLIB=$${RANLIB}" \
901119ae 20169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20170 pdf) \
20171 || exit 1
20172
85bfb75e 20173@endif libcpp
e69bf64b 20174
85bfb75e
JM
20175.PHONY: maybe-html-libcpp html-libcpp
20176maybe-html-libcpp:
20177@if libcpp
20178maybe-html-libcpp: html-libcpp
e69bf64b 20179
85bfb75e
JM
20180html-libcpp: \
20181 configure-libcpp
20182 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20183 r=`${PWD_COMMAND}`; export r; \
20184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20185 $(HOST_EXPORTS) \
85bfb75e 20186 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20188 done; \
85bfb75e
JM
20189 echo "Doing html in libcpp" ; \
20190 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20193 "RANLIB=$${RANLIB}" \
901119ae 20194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20195 html) \
20196 || exit 1
20197
85bfb75e 20198@endif libcpp
e69bf64b 20199
85bfb75e
JM
20200.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20201maybe-TAGS-libcpp:
20202@if libcpp
20203maybe-TAGS-libcpp: TAGS-libcpp
e69bf64b 20204
85bfb75e
JM
20205TAGS-libcpp: \
20206 configure-libcpp
20207 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20208 r=`${PWD_COMMAND}`; export r; \
20209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20210 $(HOST_EXPORTS) \
85bfb75e 20211 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20213 done; \
85bfb75e
JM
20214 echo "Doing TAGS in libcpp" ; \
20215 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20218 "RANLIB=$${RANLIB}" \
901119ae 20219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20220 TAGS) \
20221 || exit 1
20222
85bfb75e 20223@endif libcpp
e69bf64b 20224
85bfb75e
JM
20225.PHONY: maybe-install-info-libcpp install-info-libcpp
20226maybe-install-info-libcpp:
20227@if libcpp
20228maybe-install-info-libcpp: install-info-libcpp
e69bf64b 20229
85bfb75e
JM
20230install-info-libcpp: \
20231 configure-libcpp \
20232 info-libcpp
20233 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20234 r=`${PWD_COMMAND}`; export r; \
20235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20236 $(HOST_EXPORTS) \
85bfb75e 20237 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20239 done; \
85bfb75e
JM
20240 echo "Doing install-info in libcpp" ; \
20241 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20244 "RANLIB=$${RANLIB}" \
901119ae 20245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20246 install-info) \
20247 || exit 1
20248
85bfb75e 20249@endif libcpp
e69bf64b 20250
85bfb75e
JM
20251.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20252maybe-install-pdf-libcpp:
20253@if libcpp
20254maybe-install-pdf-libcpp: install-pdf-libcpp
9c4d2493 20255
85bfb75e
JM
20256install-pdf-libcpp: \
20257 configure-libcpp \
20258 pdf-libcpp
20259 @[ -f ./libcpp/Makefile ] || exit 0; \
9c4d2493
BM
20260 r=`${PWD_COMMAND}`; export r; \
20261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20262 $(HOST_EXPORTS) \
85bfb75e 20263 for flag in $(EXTRA_HOST_FLAGS) ; do \
9c4d2493
BM
20264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20265 done; \
85bfb75e
JM
20266 echo "Doing install-pdf in libcpp" ; \
20267 (cd $(HOST_SUBDIR)/libcpp && \
9c4d2493
BM
20268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20270 "RANLIB=$${RANLIB}" \
901119ae 20271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
20272 install-pdf) \
20273 || exit 1
20274
85bfb75e 20275@endif libcpp
9c4d2493 20276
85bfb75e
JM
20277.PHONY: maybe-install-html-libcpp install-html-libcpp
20278maybe-install-html-libcpp:
20279@if libcpp
20280maybe-install-html-libcpp: install-html-libcpp
e69bf64b 20281
85bfb75e
JM
20282install-html-libcpp: \
20283 configure-libcpp \
20284 html-libcpp
20285 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20286 r=`${PWD_COMMAND}`; export r; \
20287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20288 $(HOST_EXPORTS) \
85bfb75e 20289 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20291 done; \
85bfb75e
JM
20292 echo "Doing install-html in libcpp" ; \
20293 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20296 "RANLIB=$${RANLIB}" \
901119ae 20297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20298 install-html) \
20299 || exit 1
20300
85bfb75e 20301@endif libcpp
e69bf64b 20302
85bfb75e
JM
20303.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20304maybe-installcheck-libcpp:
20305@if libcpp
20306maybe-installcheck-libcpp: installcheck-libcpp
e69bf64b 20307
85bfb75e
JM
20308installcheck-libcpp: \
20309 configure-libcpp
20310 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20311 r=`${PWD_COMMAND}`; export r; \
20312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20313 $(HOST_EXPORTS) \
85bfb75e 20314 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20316 done; \
85bfb75e
JM
20317 echo "Doing installcheck in libcpp" ; \
20318 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20321 "RANLIB=$${RANLIB}" \
901119ae 20322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20323 installcheck) \
20324 || exit 1
20325
85bfb75e 20326@endif libcpp
e69bf64b 20327
85bfb75e
JM
20328.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20329maybe-mostlyclean-libcpp:
20330@if libcpp
20331maybe-mostlyclean-libcpp: mostlyclean-libcpp
e69bf64b 20332
85bfb75e
JM
20333mostlyclean-libcpp:
20334 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20335 r=`${PWD_COMMAND}`; export r; \
20336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20337 $(HOST_EXPORTS) \
85bfb75e 20338 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20340 done; \
85bfb75e
JM
20341 echo "Doing mostlyclean in libcpp" ; \
20342 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20345 "RANLIB=$${RANLIB}" \
901119ae 20346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20347 mostlyclean) \
20348 || exit 1
20349
85bfb75e 20350@endif libcpp
e69bf64b 20351
85bfb75e
JM
20352.PHONY: maybe-clean-libcpp clean-libcpp
20353maybe-clean-libcpp:
20354@if libcpp
20355maybe-clean-libcpp: clean-libcpp
e69bf64b 20356
85bfb75e
JM
20357clean-libcpp:
20358 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20359 r=`${PWD_COMMAND}`; export r; \
20360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20361 $(HOST_EXPORTS) \
85bfb75e 20362 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20364 done; \
85bfb75e
JM
20365 echo "Doing clean in libcpp" ; \
20366 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20369 "RANLIB=$${RANLIB}" \
901119ae 20370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20371 clean) \
20372 || exit 1
20373
85bfb75e 20374@endif libcpp
e69bf64b 20375
85bfb75e
JM
20376.PHONY: maybe-distclean-libcpp distclean-libcpp
20377maybe-distclean-libcpp:
20378@if libcpp
20379maybe-distclean-libcpp: distclean-libcpp
e69bf64b 20380
85bfb75e
JM
20381distclean-libcpp:
20382 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20383 r=`${PWD_COMMAND}`; export r; \
20384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20385 $(HOST_EXPORTS) \
85bfb75e 20386 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20388 done; \
85bfb75e
JM
20389 echo "Doing distclean in libcpp" ; \
20390 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20393 "RANLIB=$${RANLIB}" \
901119ae 20394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20395 distclean) \
20396 || exit 1
20397
85bfb75e 20398@endif libcpp
e69bf64b 20399
85bfb75e
JM
20400.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
20401maybe-maintainer-clean-libcpp:
20402@if libcpp
20403maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
e69bf64b 20404
85bfb75e
JM
20405maintainer-clean-libcpp:
20406 @[ -f ./libcpp/Makefile ] || exit 0; \
e69bf64b
PB
20407 r=`${PWD_COMMAND}`; export r; \
20408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20409 $(HOST_EXPORTS) \
85bfb75e 20410 for flag in $(EXTRA_HOST_FLAGS) ; do \
e69bf64b
PB
20411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20412 done; \
85bfb75e
JM
20413 echo "Doing maintainer-clean in libcpp" ; \
20414 (cd $(HOST_SUBDIR)/libcpp && \
e69bf64b
PB
20415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20417 "RANLIB=$${RANLIB}" \
901119ae 20418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
e69bf64b
PB
20419 maintainer-clean) \
20420 || exit 1
20421
85bfb75e 20422@endif libcpp
e69bf64b
PB
20423
20424
20425
85bfb75e
JM
20426.PHONY: configure-libdecnumber maybe-configure-libdecnumber
20427maybe-configure-libdecnumber:
f61428ed 20428@if gcc-bootstrap
85bfb75e 20429configure-libdecnumber: stage_current
f61428ed 20430@endif gcc-bootstrap
85bfb75e
JM
20431@if libdecnumber
20432maybe-configure-libdecnumber: configure-libdecnumber
20433configure-libdecnumber:
f61428ed
AO
20434 @r=`${PWD_COMMAND}`; export r; \
20435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
20436 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
20437 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
f61428ed 20438 $(HOST_EXPORTS) \
85bfb75e
JM
20439 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
20440 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
f61428ed
AO
20441 case $(srcdir) in \
20442 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20443 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20444 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20445 esac; \
85bfb75e
JM
20446 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20447 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20448 $(SHELL) $${libsrcdir}/configure \
20449 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 20450 --target=${target_alias} $${srcdiroption} \
f61428ed 20451 || exit 1
85bfb75e 20452@endif libdecnumber
f61428ed
AO
20453
20454
20455
85bfb75e
JM
20456.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
20457maybe-configure-stage1-libdecnumber:
20458@if libdecnumber-bootstrap
20459maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
20460configure-stage1-libdecnumber:
f61428ed 20461 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 20462 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20463 @r=`${PWD_COMMAND}`; export r; \
20464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20465 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 20466 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20467 $(HOST_EXPORTS) \
20468 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
20469 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
20470 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20471 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
20472 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20473 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20474 case $(srcdir) in \
20475 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20476 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20477 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20478 esac; \
85bfb75e
JM
20479 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20480 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20481 $(SHELL) $${libsrcdir}/configure \
20482 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20483 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
20484 $(STAGE1_CONFIGURE_FLAGS)
20485@endif libdecnumber-bootstrap
f61428ed 20486
85bfb75e
JM
20487.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
20488maybe-configure-stage2-libdecnumber:
20489@if libdecnumber-bootstrap
20490maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
20491configure-stage2-libdecnumber:
f61428ed 20492 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 20493 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20494 @r=`${PWD_COMMAND}`; export r; \
20495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20496 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 20497 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20498 $(HOST_EXPORTS) \
20499 $(POSTSTAGE1_HOST_EXPORTS) \
20500 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
20501 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
20502 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20503 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
20504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20505 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20506 case $(srcdir) in \
20507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20508 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20510 esac; \
85bfb75e
JM
20511 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20512 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20513 $(SHELL) $${libsrcdir}/configure \
20514 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20515 --target=${target_alias} $${srcdiroption} \
20516 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
20517 $(STAGE2_CONFIGURE_FLAGS)
20518@endif libdecnumber-bootstrap
f61428ed 20519
85bfb75e
JM
20520.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
20521maybe-configure-stage3-libdecnumber:
20522@if libdecnumber-bootstrap
20523maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
20524configure-stage3-libdecnumber:
f61428ed 20525 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 20526 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20527 @r=`${PWD_COMMAND}`; export r; \
20528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20529 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 20530 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20531 $(HOST_EXPORTS) \
20532 $(POSTSTAGE1_HOST_EXPORTS) \
20533 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
20534 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
20535 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20536 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
20537 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20538 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20539 case $(srcdir) in \
20540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20541 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20543 esac; \
85bfb75e
JM
20544 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20545 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20546 $(SHELL) $${libsrcdir}/configure \
20547 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20548 --target=${target_alias} $${srcdiroption} \
20549 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
20550 $(STAGE3_CONFIGURE_FLAGS)
20551@endif libdecnumber-bootstrap
f61428ed 20552
85bfb75e
JM
20553.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
20554maybe-configure-stage4-libdecnumber:
20555@if libdecnumber-bootstrap
20556maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
20557configure-stage4-libdecnumber:
f61428ed 20558 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 20559 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20560 @r=`${PWD_COMMAND}`; export r; \
20561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20562 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 20563 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20564 $(HOST_EXPORTS) \
20565 $(POSTSTAGE1_HOST_EXPORTS) \
20566 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
20567 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
20568 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20569 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
20570 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20571 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20572 case $(srcdir) in \
20573 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20574 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20575 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20576 esac; \
85bfb75e
JM
20577 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20578 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20579 $(SHELL) $${libsrcdir}/configure \
20580 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20581 --target=${target_alias} $${srcdiroption} \
20582 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
20583 $(STAGE4_CONFIGURE_FLAGS)
20584@endif libdecnumber-bootstrap
f61428ed 20585
85bfb75e
JM
20586.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
20587maybe-configure-stageprofile-libdecnumber:
20588@if libdecnumber-bootstrap
20589maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
20590configure-stageprofile-libdecnumber:
f61428ed 20591 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 20592 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20593 @r=`${PWD_COMMAND}`; export r; \
20594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20595 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 20596 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20597 $(HOST_EXPORTS) \
20598 $(POSTSTAGE1_HOST_EXPORTS) \
20599 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
20600 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
20601 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20602 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
20603 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20604 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20605 case $(srcdir) in \
20606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20607 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20609 esac; \
85bfb75e
JM
20610 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20611 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20612 $(SHELL) $${libsrcdir}/configure \
20613 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20614 --target=${target_alias} $${srcdiroption} \
20615 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
20616 $(STAGEprofile_CONFIGURE_FLAGS)
20617@endif libdecnumber-bootstrap
f61428ed 20618
85bfb75e
JM
20619.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
20620maybe-configure-stagefeedback-libdecnumber:
20621@if libdecnumber-bootstrap
20622maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
20623configure-stagefeedback-libdecnumber:
f61428ed 20624 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 20625 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
f61428ed
AO
20626 @r=`${PWD_COMMAND}`; export r; \
20627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20628 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 20629 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
f61428ed
AO
20630 $(HOST_EXPORTS) \
20631 $(POSTSTAGE1_HOST_EXPORTS) \
20632 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
20633 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
20634 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
20635 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
20636 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
20637 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
f61428ed
AO
20638 case $(srcdir) in \
20639 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 20640 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
f61428ed
AO
20641 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20642 esac; \
85bfb75e
JM
20643 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
20644 libsrcdir="$$s/libdecnumber"; \
f61428ed
AO
20645 $(SHELL) $${libsrcdir}/configure \
20646 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20647 --target=${target_alias} $${srcdiroption} \
20648 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
20649 $(STAGEfeedback_CONFIGURE_FLAGS)
20650@endif libdecnumber-bootstrap
f61428ed
AO
20651
20652
20653
20654
20655
85bfb75e
JM
20656.PHONY: all-libdecnumber maybe-all-libdecnumber
20657maybe-all-libdecnumber:
f61428ed 20658@if gcc-bootstrap
85bfb75e 20659all-libdecnumber: stage_current
f61428ed 20660@endif gcc-bootstrap
85bfb75e
JM
20661@if libdecnumber
20662TARGET-libdecnumber=all
20663maybe-all-libdecnumber: all-libdecnumber
20664all-libdecnumber: configure-libdecnumber
f61428ed
AO
20665 @r=`${PWD_COMMAND}`; export r; \
20666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20667 $(HOST_EXPORTS) \
85bfb75e 20668 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed 20669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
20670 $(TARGET-libdecnumber))
20671@endif libdecnumber
f61428ed
AO
20672
20673
20674
85bfb75e
JM
20675.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
20676.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
20677maybe-all-stage1-libdecnumber:
20678maybe-clean-stage1-libdecnumber:
20679@if libdecnumber-bootstrap
20680maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
20681all-stage1: all-stage1-libdecnumber
20682TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
20683all-stage1-libdecnumber: configure-stage1-libdecnumber
f61428ed
AO
20684 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20685 @r=`${PWD_COMMAND}`; export r; \
20686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20687 TFLAGS="$(STAGE1_TFLAGS)"; \
20688 $(HOST_EXPORTS) \
85bfb75e 20689 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20690 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20691 CFLAGS="$(STAGE1_CFLAGS)" \
20692 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
20693 LIBCFLAGS="$(LIBCFLAGS)" \
20694 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20695 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20696 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20697 $(EXTRA_HOST_FLAGS) \
20698 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 20699 $(TARGET-stage1-libdecnumber)
f61428ed 20700
85bfb75e
JM
20701maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
20702clean-stage1: clean-stage1-libdecnumber
20703clean-stage1-libdecnumber:
f61428ed 20704 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 20705 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20706 else \
85bfb75e 20707 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20708 $(MAKE) stage1-start; \
20709 fi; \
85bfb75e 20710 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20711 $(MAKE) $(EXTRA_HOST_FLAGS) \
20712 clean
85bfb75e 20713@endif libdecnumber-bootstrap
f61428ed
AO
20714
20715
85bfb75e
JM
20716.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
20717.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
20718maybe-all-stage2-libdecnumber:
20719maybe-clean-stage2-libdecnumber:
20720@if libdecnumber-bootstrap
20721maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
20722all-stage2: all-stage2-libdecnumber
20723TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
20724all-stage2-libdecnumber: configure-stage2-libdecnumber
f61428ed
AO
20725 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20726 @r=`${PWD_COMMAND}`; export r; \
20727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20728 TFLAGS="$(STAGE2_TFLAGS)"; \
20729 $(HOST_EXPORTS) \
20730 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 20731 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20732 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20733 CFLAGS="$(STAGE2_CFLAGS)" \
20734 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
20735 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20736 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20737 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20738 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20739 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20740 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 20741 $(TARGET-stage2-libdecnumber)
f61428ed 20742
85bfb75e
JM
20743maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
20744clean-stage2: clean-stage2-libdecnumber
20745clean-stage2-libdecnumber:
f61428ed 20746 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 20747 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20748 else \
85bfb75e 20749 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20750 $(MAKE) stage2-start; \
20751 fi; \
85bfb75e 20752 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20753 $(MAKE) $(EXTRA_HOST_FLAGS) \
20754 $(POSTSTAGE1_FLAGS_TO_PASS) \
20755 clean
85bfb75e 20756@endif libdecnumber-bootstrap
f61428ed
AO
20757
20758
85bfb75e
JM
20759.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
20760.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
20761maybe-all-stage3-libdecnumber:
20762maybe-clean-stage3-libdecnumber:
20763@if libdecnumber-bootstrap
20764maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
20765all-stage3: all-stage3-libdecnumber
20766TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
20767all-stage3-libdecnumber: configure-stage3-libdecnumber
f61428ed
AO
20768 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20769 @r=`${PWD_COMMAND}`; export r; \
20770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20771 TFLAGS="$(STAGE3_TFLAGS)"; \
20772 $(HOST_EXPORTS) \
20773 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 20774 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20775 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20776 CFLAGS="$(STAGE3_CFLAGS)" \
20777 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
20778 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20779 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20780 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20781 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20782 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20783 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 20784 $(TARGET-stage3-libdecnumber)
f61428ed 20785
85bfb75e
JM
20786maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
20787clean-stage3: clean-stage3-libdecnumber
20788clean-stage3-libdecnumber:
f61428ed 20789 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 20790 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20791 else \
85bfb75e 20792 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20793 $(MAKE) stage3-start; \
20794 fi; \
85bfb75e 20795 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20796 $(MAKE) $(EXTRA_HOST_FLAGS) \
20797 $(POSTSTAGE1_FLAGS_TO_PASS) \
20798 clean
85bfb75e 20799@endif libdecnumber-bootstrap
f61428ed
AO
20800
20801
85bfb75e
JM
20802.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
20803.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
20804maybe-all-stage4-libdecnumber:
20805maybe-clean-stage4-libdecnumber:
20806@if libdecnumber-bootstrap
20807maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
20808all-stage4: all-stage4-libdecnumber
20809TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
20810all-stage4-libdecnumber: configure-stage4-libdecnumber
f61428ed
AO
20811 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20812 @r=`${PWD_COMMAND}`; export r; \
20813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20814 TFLAGS="$(STAGE4_TFLAGS)"; \
20815 $(HOST_EXPORTS) \
20816 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 20817 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20818 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20819 CFLAGS="$(STAGE4_CFLAGS)" \
20820 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
20821 LIBCFLAGS="$(STAGE4_CFLAGS)" \
20822 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20823 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20824 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20825 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20826 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 20827 $(TARGET-stage4-libdecnumber)
f61428ed 20828
85bfb75e
JM
20829maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
20830clean-stage4: clean-stage4-libdecnumber
20831clean-stage4-libdecnumber:
f61428ed 20832 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 20833 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20834 else \
85bfb75e 20835 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20836 $(MAKE) stage4-start; \
20837 fi; \
85bfb75e 20838 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20839 $(MAKE) $(EXTRA_HOST_FLAGS) \
20840 $(POSTSTAGE1_FLAGS_TO_PASS) \
20841 clean
85bfb75e 20842@endif libdecnumber-bootstrap
f61428ed
AO
20843
20844
85bfb75e
JM
20845.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
20846.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
20847maybe-all-stageprofile-libdecnumber:
20848maybe-clean-stageprofile-libdecnumber:
20849@if libdecnumber-bootstrap
20850maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
20851all-stageprofile: all-stageprofile-libdecnumber
20852TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
20853all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
f61428ed
AO
20854 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20855 @r=`${PWD_COMMAND}`; export r; \
20856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20857 TFLAGS="$(STAGEprofile_TFLAGS)"; \
20858 $(HOST_EXPORTS) \
20859 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 20860 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20861 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20862 CFLAGS="$(STAGEprofile_CFLAGS)" \
20863 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
20864 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20865 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20866 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20867 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20868 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20869 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 20870 $(TARGET-stageprofile-libdecnumber)
f61428ed 20871
85bfb75e
JM
20872maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
20873clean-stageprofile: clean-stageprofile-libdecnumber
20874clean-stageprofile-libdecnumber:
f61428ed 20875 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 20876 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20877 else \
85bfb75e 20878 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20879 $(MAKE) stageprofile-start; \
20880 fi; \
85bfb75e 20881 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20882 $(MAKE) $(EXTRA_HOST_FLAGS) \
20883 $(POSTSTAGE1_FLAGS_TO_PASS) \
20884 clean
85bfb75e 20885@endif libdecnumber-bootstrap
f61428ed
AO
20886
20887
85bfb75e
JM
20888.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
20889.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
20890maybe-all-stagefeedback-libdecnumber:
20891maybe-clean-stagefeedback-libdecnumber:
20892@if libdecnumber-bootstrap
20893maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
20894all-stagefeedback: all-stagefeedback-libdecnumber
20895TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
20896all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
f61428ed
AO
20897 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20898 @r=`${PWD_COMMAND}`; export r; \
20899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20900 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
20901 $(HOST_EXPORTS) \
20902 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 20903 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20904 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20905 CFLAGS="$(STAGEfeedback_CFLAGS)" \
20906 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
20907 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20908 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20909 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20910 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20911 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20912 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 20913 $(TARGET-stagefeedback-libdecnumber)
f61428ed 20914
85bfb75e
JM
20915maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
20916clean-stagefeedback: clean-stagefeedback-libdecnumber
20917clean-stagefeedback-libdecnumber:
f61428ed 20918 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 20919 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
f61428ed 20920 else \
85bfb75e 20921 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20922 $(MAKE) stagefeedback-start; \
20923 fi; \
85bfb75e 20924 cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20925 $(MAKE) $(EXTRA_HOST_FLAGS) \
20926 $(POSTSTAGE1_FLAGS_TO_PASS) \
20927 clean
85bfb75e 20928@endif libdecnumber-bootstrap
f61428ed
AO
20929
20930
20931
20932
20933
85bfb75e
JM
20934.PHONY: check-libdecnumber maybe-check-libdecnumber
20935maybe-check-libdecnumber:
20936@if libdecnumber
20937maybe-check-libdecnumber: check-libdecnumber
f61428ed 20938
85bfb75e 20939check-libdecnumber:
f61428ed
AO
20940 @: $(MAKE); $(unstage)
20941 @r=`${PWD_COMMAND}`; export r; \
20942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20943 $(HOST_EXPORTS) \
85bfb75e 20944 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20945 $(MAKE) $(FLAGS_TO_PASS) check)
20946
85bfb75e 20947@endif libdecnumber
f61428ed 20948
85bfb75e
JM
20949.PHONY: install-libdecnumber maybe-install-libdecnumber
20950maybe-install-libdecnumber:
20951@if libdecnumber
20952maybe-install-libdecnumber: install-libdecnumber
f61428ed 20953
85bfb75e
JM
20954install-libdecnumber: installdirs
20955 @: $(MAKE); $(unstage)
20956 @r=`${PWD_COMMAND}`; export r; \
20957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20958 $(HOST_EXPORTS) \
20959 (cd $(HOST_SUBDIR)/libdecnumber && \
20960 $(MAKE) $(FLAGS_TO_PASS) install)
f61428ed 20961
85bfb75e 20962@endif libdecnumber
f61428ed 20963
85bfb75e
JM
20964.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
20965maybe-install-strip-libdecnumber:
20966@if libdecnumber
20967maybe-install-strip-libdecnumber: install-strip-libdecnumber
455c8f48 20968
85bfb75e
JM
20969install-strip-libdecnumber: installdirs
20970 @: $(MAKE); $(unstage)
20971 @r=`${PWD_COMMAND}`; export r; \
20972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20973 $(HOST_EXPORTS) \
20974 (cd $(HOST_SUBDIR)/libdecnumber && \
20975 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 20976
85bfb75e 20977@endif libdecnumber
455c8f48 20978
f61428ed
AO
20979# Other targets (info, dvi, pdf, etc.)
20980
85bfb75e
JM
20981.PHONY: maybe-info-libdecnumber info-libdecnumber
20982maybe-info-libdecnumber:
20983@if libdecnumber
20984maybe-info-libdecnumber: info-libdecnumber
f61428ed 20985
85bfb75e
JM
20986info-libdecnumber: \
20987 configure-libdecnumber
20988 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
20989 r=`${PWD_COMMAND}`; export r; \
20990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20991 $(HOST_EXPORTS) \
20992 for flag in $(EXTRA_HOST_FLAGS) ; do \
20993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20994 done; \
85bfb75e
JM
20995 echo "Doing info in libdecnumber" ; \
20996 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
20997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20999 "RANLIB=$${RANLIB}" \
21000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21001 info) \
21002 || exit 1
21003
85bfb75e 21004@endif libdecnumber
f61428ed 21005
85bfb75e
JM
21006.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21007maybe-dvi-libdecnumber:
21008@if libdecnumber
21009maybe-dvi-libdecnumber: dvi-libdecnumber
f61428ed 21010
85bfb75e
JM
21011dvi-libdecnumber: \
21012 configure-libdecnumber
21013 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21014 r=`${PWD_COMMAND}`; export r; \
21015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21016 $(HOST_EXPORTS) \
21017 for flag in $(EXTRA_HOST_FLAGS) ; do \
21018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21019 done; \
85bfb75e
JM
21020 echo "Doing dvi in libdecnumber" ; \
21021 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21024 "RANLIB=$${RANLIB}" \
21025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21026 dvi) \
21027 || exit 1
21028
85bfb75e 21029@endif libdecnumber
f61428ed 21030
85bfb75e
JM
21031.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21032maybe-pdf-libdecnumber:
21033@if libdecnumber
21034maybe-pdf-libdecnumber: pdf-libdecnumber
f61428ed 21035
85bfb75e
JM
21036pdf-libdecnumber: \
21037 configure-libdecnumber
21038 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21039 r=`${PWD_COMMAND}`; export r; \
21040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21041 $(HOST_EXPORTS) \
21042 for flag in $(EXTRA_HOST_FLAGS) ; do \
21043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21044 done; \
85bfb75e
JM
21045 echo "Doing pdf in libdecnumber" ; \
21046 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21049 "RANLIB=$${RANLIB}" \
21050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21051 pdf) \
21052 || exit 1
21053
85bfb75e 21054@endif libdecnumber
f61428ed 21055
85bfb75e
JM
21056.PHONY: maybe-html-libdecnumber html-libdecnumber
21057maybe-html-libdecnumber:
21058@if libdecnumber
21059maybe-html-libdecnumber: html-libdecnumber
f61428ed 21060
85bfb75e
JM
21061html-libdecnumber: \
21062 configure-libdecnumber
21063 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21064 r=`${PWD_COMMAND}`; export r; \
21065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21066 $(HOST_EXPORTS) \
21067 for flag in $(EXTRA_HOST_FLAGS) ; do \
21068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21069 done; \
85bfb75e
JM
21070 echo "Doing html in libdecnumber" ; \
21071 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21074 "RANLIB=$${RANLIB}" \
21075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21076 html) \
21077 || exit 1
21078
85bfb75e 21079@endif libdecnumber
f61428ed 21080
85bfb75e
JM
21081.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21082maybe-TAGS-libdecnumber:
21083@if libdecnumber
21084maybe-TAGS-libdecnumber: TAGS-libdecnumber
f61428ed 21085
85bfb75e
JM
21086TAGS-libdecnumber: \
21087 configure-libdecnumber
21088 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21089 r=`${PWD_COMMAND}`; export r; \
21090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21091 $(HOST_EXPORTS) \
21092 for flag in $(EXTRA_HOST_FLAGS) ; do \
21093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21094 done; \
85bfb75e
JM
21095 echo "Doing TAGS in libdecnumber" ; \
21096 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21099 "RANLIB=$${RANLIB}" \
21100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21101 TAGS) \
21102 || exit 1
21103
85bfb75e 21104@endif libdecnumber
f61428ed 21105
85bfb75e
JM
21106.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21107maybe-install-info-libdecnumber:
21108@if libdecnumber
21109maybe-install-info-libdecnumber: install-info-libdecnumber
f61428ed 21110
85bfb75e
JM
21111install-info-libdecnumber: \
21112 configure-libdecnumber \
21113 info-libdecnumber
21114 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21115 r=`${PWD_COMMAND}`; export r; \
21116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21117 $(HOST_EXPORTS) \
21118 for flag in $(EXTRA_HOST_FLAGS) ; do \
21119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21120 done; \
85bfb75e
JM
21121 echo "Doing install-info in libdecnumber" ; \
21122 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21125 "RANLIB=$${RANLIB}" \
21126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21127 install-info) \
21128 || exit 1
21129
85bfb75e 21130@endif libdecnumber
f61428ed 21131
85bfb75e
JM
21132.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21133maybe-install-pdf-libdecnumber:
21134@if libdecnumber
21135maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
f61428ed 21136
85bfb75e
JM
21137install-pdf-libdecnumber: \
21138 configure-libdecnumber \
21139 pdf-libdecnumber
21140 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21141 r=`${PWD_COMMAND}`; export r; \
21142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21143 $(HOST_EXPORTS) \
21144 for flag in $(EXTRA_HOST_FLAGS) ; do \
21145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21146 done; \
85bfb75e
JM
21147 echo "Doing install-pdf in libdecnumber" ; \
21148 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21151 "RANLIB=$${RANLIB}" \
21152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21153 install-pdf) \
21154 || exit 1
21155
85bfb75e 21156@endif libdecnumber
f61428ed 21157
85bfb75e
JM
21158.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21159maybe-install-html-libdecnumber:
21160@if libdecnumber
21161maybe-install-html-libdecnumber: install-html-libdecnumber
f61428ed 21162
85bfb75e
JM
21163install-html-libdecnumber: \
21164 configure-libdecnumber \
21165 html-libdecnumber
21166 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21167 r=`${PWD_COMMAND}`; export r; \
21168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21169 $(HOST_EXPORTS) \
21170 for flag in $(EXTRA_HOST_FLAGS) ; do \
21171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21172 done; \
85bfb75e
JM
21173 echo "Doing install-html in libdecnumber" ; \
21174 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21177 "RANLIB=$${RANLIB}" \
21178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21179 install-html) \
21180 || exit 1
21181
85bfb75e 21182@endif libdecnumber
f61428ed 21183
85bfb75e
JM
21184.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21185maybe-installcheck-libdecnumber:
21186@if libdecnumber
21187maybe-installcheck-libdecnumber: installcheck-libdecnumber
f61428ed 21188
85bfb75e
JM
21189installcheck-libdecnumber: \
21190 configure-libdecnumber
21191 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21192 r=`${PWD_COMMAND}`; export r; \
21193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21194 $(HOST_EXPORTS) \
21195 for flag in $(EXTRA_HOST_FLAGS) ; do \
21196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21197 done; \
85bfb75e
JM
21198 echo "Doing installcheck in libdecnumber" ; \
21199 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21202 "RANLIB=$${RANLIB}" \
21203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21204 installcheck) \
21205 || exit 1
21206
85bfb75e 21207@endif libdecnumber
f61428ed 21208
85bfb75e
JM
21209.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21210maybe-mostlyclean-libdecnumber:
21211@if libdecnumber
21212maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
f61428ed 21213
85bfb75e
JM
21214mostlyclean-libdecnumber:
21215 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21216 r=`${PWD_COMMAND}`; export r; \
21217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21218 $(HOST_EXPORTS) \
21219 for flag in $(EXTRA_HOST_FLAGS) ; do \
21220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21221 done; \
85bfb75e
JM
21222 echo "Doing mostlyclean in libdecnumber" ; \
21223 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21226 "RANLIB=$${RANLIB}" \
21227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21228 mostlyclean) \
21229 || exit 1
21230
85bfb75e 21231@endif libdecnumber
f61428ed 21232
85bfb75e
JM
21233.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21234maybe-clean-libdecnumber:
21235@if libdecnumber
21236maybe-clean-libdecnumber: clean-libdecnumber
f61428ed 21237
85bfb75e
JM
21238clean-libdecnumber:
21239 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21240 r=`${PWD_COMMAND}`; export r; \
21241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21242 $(HOST_EXPORTS) \
21243 for flag in $(EXTRA_HOST_FLAGS) ; do \
21244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21245 done; \
85bfb75e
JM
21246 echo "Doing clean in libdecnumber" ; \
21247 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21250 "RANLIB=$${RANLIB}" \
21251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21252 clean) \
21253 || exit 1
21254
85bfb75e 21255@endif libdecnumber
f61428ed 21256
85bfb75e
JM
21257.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21258maybe-distclean-libdecnumber:
21259@if libdecnumber
21260maybe-distclean-libdecnumber: distclean-libdecnumber
f61428ed 21261
85bfb75e
JM
21262distclean-libdecnumber:
21263 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21264 r=`${PWD_COMMAND}`; export r; \
21265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21266 $(HOST_EXPORTS) \
21267 for flag in $(EXTRA_HOST_FLAGS) ; do \
21268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21269 done; \
85bfb75e
JM
21270 echo "Doing distclean in libdecnumber" ; \
21271 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21274 "RANLIB=$${RANLIB}" \
21275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21276 distclean) \
21277 || exit 1
21278
85bfb75e 21279@endif libdecnumber
f61428ed 21280
85bfb75e
JM
21281.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21282maybe-maintainer-clean-libdecnumber:
21283@if libdecnumber
21284maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
f61428ed 21285
85bfb75e
JM
21286maintainer-clean-libdecnumber:
21287 @[ -f ./libdecnumber/Makefile ] || exit 0; \
f61428ed
AO
21288 r=`${PWD_COMMAND}`; export r; \
21289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21290 $(HOST_EXPORTS) \
21291 for flag in $(EXTRA_HOST_FLAGS) ; do \
21292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21293 done; \
85bfb75e
JM
21294 echo "Doing maintainer-clean in libdecnumber" ; \
21295 (cd $(HOST_SUBDIR)/libdecnumber && \
f61428ed
AO
21296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21298 "RANLIB=$${RANLIB}" \
21299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21300 maintainer-clean) \
21301 || exit 1
21302
85bfb75e 21303@endif libdecnumber
f61428ed
AO
21304
21305
21306
85bfb75e
JM
21307.PHONY: configure-libgui maybe-configure-libgui
21308maybe-configure-libgui:
3ff3adad 21309@if gcc-bootstrap
85bfb75e 21310configure-libgui: stage_current
3ff3adad 21311@endif gcc-bootstrap
85bfb75e
JM
21312@if libgui
21313maybe-configure-libgui: configure-libgui
21314configure-libgui:
f41d6665 21315 @: $(MAKE); $(unstage)
cc11cc9b 21316 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
21318 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
21319 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
f61428ed 21320 $(HOST_EXPORTS) \
85bfb75e
JM
21321 echo Configuring in $(HOST_SUBDIR)/libgui; \
21322 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
295f4e42 21323 case $(srcdir) in \
215c351a 21324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21325 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
215c351a 21326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 21327 esac; \
85bfb75e
JM
21328 srcdiroption="--srcdir=$${topdir}/libgui"; \
21329 libsrcdir="$$s/libgui"; \
295f4e42 21330 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
21331 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21332 --target=${target_alias} $${srcdiroption} \
1358ccea 21333 || exit 1
85bfb75e 21334@endif libgui
1358ccea 21335
25b42232
PB
21336
21337
ce406537
PB
21338
21339
85bfb75e
JM
21340.PHONY: all-libgui maybe-all-libgui
21341maybe-all-libgui:
3ff3adad 21342@if gcc-bootstrap
85bfb75e 21343all-libgui: stage_current
3ff3adad 21344@endif gcc-bootstrap
85bfb75e
JM
21345@if libgui
21346TARGET-libgui=all
21347maybe-all-libgui: all-libgui
21348all-libgui: configure-libgui
f41d6665 21349 @: $(MAKE); $(unstage)
295f4e42
NN
21350 @r=`${PWD_COMMAND}`; export r; \
21351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 21352 $(HOST_EXPORTS) \
85bfb75e 21353 (cd $(HOST_SUBDIR)/libgui && \
1c8bd6a3 21354 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
21355 $(TARGET-libgui))
21356@endif libgui
1358ccea 21357
25b42232 21358
ce406537
PB
21359
21360
85bfb75e
JM
21361.PHONY: check-libgui maybe-check-libgui
21362maybe-check-libgui:
21363@if libgui
21364maybe-check-libgui: check-libgui
1358ccea 21365
85bfb75e 21366check-libgui:
f41d6665 21367 @: $(MAKE); $(unstage)
295f4e42 21368 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21370 $(HOST_EXPORTS) \
85bfb75e 21371 (cd $(HOST_SUBDIR)/libgui && \
215c351a 21372 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 21373
85bfb75e 21374@endif libgui
1358ccea 21375
85bfb75e
JM
21376.PHONY: install-libgui maybe-install-libgui
21377maybe-install-libgui:
21378@if libgui
21379maybe-install-libgui: install-libgui
1358ccea 21380
85bfb75e 21381install-libgui: installdirs
f41d6665 21382 @: $(MAKE); $(unstage)
295f4e42
NN
21383 @r=`${PWD_COMMAND}`; export r; \
21384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21385 $(HOST_EXPORTS) \
85bfb75e 21386 (cd $(HOST_SUBDIR)/libgui && \
ace9ac7b 21387 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 21388
85bfb75e 21389@endif libgui
295f4e42 21390
85bfb75e
JM
21391.PHONY: install-strip-libgui maybe-install-strip-libgui
21392maybe-install-strip-libgui:
21393@if libgui
21394maybe-install-strip-libgui: install-strip-libgui
455c8f48 21395
85bfb75e 21396install-strip-libgui: installdirs
455c8f48
RW
21397 @: $(MAKE); $(unstage)
21398 @r=`${PWD_COMMAND}`; export r; \
21399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21400 $(HOST_EXPORTS) \
85bfb75e 21401 (cd $(HOST_SUBDIR)/libgui && \
455c8f48
RW
21402 $(MAKE) $(FLAGS_TO_PASS) install-strip)
21403
85bfb75e 21404@endif libgui
455c8f48 21405
b5422ad7 21406# Other targets (info, dvi, pdf, etc.)
295f4e42 21407
85bfb75e
JM
21408.PHONY: maybe-info-libgui info-libgui
21409maybe-info-libgui:
21410@if libgui
21411maybe-info-libgui: info-libgui
295f4e42 21412
85bfb75e
JM
21413info-libgui: \
21414 configure-libgui
f41d6665 21415 @: $(MAKE); $(unstage)
85bfb75e 21416 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21417 r=`${PWD_COMMAND}`; export r; \
21418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21419 $(HOST_EXPORTS) \
d32ab992 21420 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21422 done; \
85bfb75e
JM
21423 echo "Doing info in libgui" ; \
21424 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21427 "RANLIB=$${RANLIB}" \
901119ae 21428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21429 info) \
1358ccea
NN
21430 || exit 1
21431
85bfb75e 21432@endif libgui
1358ccea 21433
85bfb75e
JM
21434.PHONY: maybe-dvi-libgui dvi-libgui
21435maybe-dvi-libgui:
21436@if libgui
21437maybe-dvi-libgui: dvi-libgui
1358ccea 21438
85bfb75e
JM
21439dvi-libgui: \
21440 configure-libgui
f41d6665 21441 @: $(MAKE); $(unstage)
85bfb75e 21442 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21443 r=`${PWD_COMMAND}`; export r; \
21444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21445 $(HOST_EXPORTS) \
d32ab992 21446 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21448 done; \
85bfb75e
JM
21449 echo "Doing dvi in libgui" ; \
21450 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21453 "RANLIB=$${RANLIB}" \
901119ae 21454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21455 dvi) \
1358ccea
NN
21456 || exit 1
21457
85bfb75e 21458@endif libgui
1358ccea 21459
85bfb75e
JM
21460.PHONY: maybe-pdf-libgui pdf-libgui
21461maybe-pdf-libgui:
21462@if libgui
21463maybe-pdf-libgui: pdf-libgui
b5422ad7 21464
85bfb75e
JM
21465pdf-libgui: \
21466 configure-libgui
b5422ad7 21467 @: $(MAKE); $(unstage)
85bfb75e 21468 @[ -f ./libgui/Makefile ] || exit 0; \
b5422ad7
BM
21469 r=`${PWD_COMMAND}`; export r; \
21470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21471 $(HOST_EXPORTS) \
21472 for flag in $(EXTRA_HOST_FLAGS) ; do \
21473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21474 done; \
85bfb75e
JM
21475 echo "Doing pdf in libgui" ; \
21476 (cd $(HOST_SUBDIR)/libgui && \
b5422ad7
BM
21477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21479 "RANLIB=$${RANLIB}" \
901119ae 21480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
21481 pdf) \
21482 || exit 1
21483
85bfb75e 21484@endif libgui
b5422ad7 21485
85bfb75e
JM
21486.PHONY: maybe-html-libgui html-libgui
21487maybe-html-libgui:
21488@if libgui
21489maybe-html-libgui: html-libgui
f87a2b2e 21490
85bfb75e
JM
21491html-libgui: \
21492 configure-libgui
f41d6665 21493 @: $(MAKE); $(unstage)
85bfb75e 21494 @[ -f ./libgui/Makefile ] || exit 0; \
f87a2b2e
MS
21495 r=`${PWD_COMMAND}`; export r; \
21496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21497 $(HOST_EXPORTS) \
21498 for flag in $(EXTRA_HOST_FLAGS) ; do \
21499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21500 done; \
85bfb75e
JM
21501 echo "Doing html in libgui" ; \
21502 (cd $(HOST_SUBDIR)/libgui && \
f87a2b2e
MS
21503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21505 "RANLIB=$${RANLIB}" \
901119ae 21506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
21507 html) \
21508 || exit 1
21509
85bfb75e 21510@endif libgui
f87a2b2e 21511
85bfb75e
JM
21512.PHONY: maybe-TAGS-libgui TAGS-libgui
21513maybe-TAGS-libgui:
21514@if libgui
21515maybe-TAGS-libgui: TAGS-libgui
1358ccea 21516
85bfb75e
JM
21517TAGS-libgui: \
21518 configure-libgui
f41d6665 21519 @: $(MAKE); $(unstage)
85bfb75e 21520 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21521 r=`${PWD_COMMAND}`; export r; \
21522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21523 $(HOST_EXPORTS) \
d32ab992 21524 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21526 done; \
85bfb75e
JM
21527 echo "Doing TAGS in libgui" ; \
21528 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21531 "RANLIB=$${RANLIB}" \
901119ae 21532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21533 TAGS) \
1358ccea
NN
21534 || exit 1
21535
85bfb75e 21536@endif libgui
1358ccea 21537
85bfb75e
JM
21538.PHONY: maybe-install-info-libgui install-info-libgui
21539maybe-install-info-libgui:
21540@if libgui
21541maybe-install-info-libgui: install-info-libgui
1358ccea 21542
85bfb75e
JM
21543install-info-libgui: \
21544 configure-libgui \
21545 info-libgui
f41d6665 21546 @: $(MAKE); $(unstage)
85bfb75e 21547 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21548 r=`${PWD_COMMAND}`; export r; \
21549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21550 $(HOST_EXPORTS) \
d32ab992 21551 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21553 done; \
85bfb75e
JM
21554 echo "Doing install-info in libgui" ; \
21555 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21558 "RANLIB=$${RANLIB}" \
901119ae 21559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21560 install-info) \
1358ccea
NN
21561 || exit 1
21562
85bfb75e 21563@endif libgui
1358ccea 21564
85bfb75e
JM
21565.PHONY: maybe-install-pdf-libgui install-pdf-libgui
21566maybe-install-pdf-libgui:
21567@if libgui
21568maybe-install-pdf-libgui: install-pdf-libgui
9c4d2493 21569
85bfb75e
JM
21570install-pdf-libgui: \
21571 configure-libgui \
21572 pdf-libgui
9c4d2493 21573 @: $(MAKE); $(unstage)
85bfb75e 21574 @[ -f ./libgui/Makefile ] || exit 0; \
9c4d2493
BM
21575 r=`${PWD_COMMAND}`; export r; \
21576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21577 $(HOST_EXPORTS) \
21578 for flag in $(EXTRA_HOST_FLAGS) ; do \
21579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21580 done; \
85bfb75e
JM
21581 echo "Doing install-pdf in libgui" ; \
21582 (cd $(HOST_SUBDIR)/libgui && \
9c4d2493
BM
21583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21585 "RANLIB=$${RANLIB}" \
901119ae 21586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
21587 install-pdf) \
21588 || exit 1
21589
85bfb75e 21590@endif libgui
9c4d2493 21591
85bfb75e
JM
21592.PHONY: maybe-install-html-libgui install-html-libgui
21593maybe-install-html-libgui:
21594@if libgui
21595maybe-install-html-libgui: install-html-libgui
65d6e994 21596
85bfb75e
JM
21597install-html-libgui: \
21598 configure-libgui \
21599 html-libgui
65d6e994 21600 @: $(MAKE); $(unstage)
85bfb75e 21601 @[ -f ./libgui/Makefile ] || exit 0; \
65d6e994
CD
21602 r=`${PWD_COMMAND}`; export r; \
21603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21604 $(HOST_EXPORTS) \
21605 for flag in $(EXTRA_HOST_FLAGS) ; do \
21606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21607 done; \
85bfb75e
JM
21608 echo "Doing install-html in libgui" ; \
21609 (cd $(HOST_SUBDIR)/libgui && \
65d6e994
CD
21610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21612 "RANLIB=$${RANLIB}" \
901119ae 21613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
21614 install-html) \
21615 || exit 1
21616
85bfb75e 21617@endif libgui
65d6e994 21618
85bfb75e
JM
21619.PHONY: maybe-installcheck-libgui installcheck-libgui
21620maybe-installcheck-libgui:
21621@if libgui
21622maybe-installcheck-libgui: installcheck-libgui
1358ccea 21623
85bfb75e
JM
21624installcheck-libgui: \
21625 configure-libgui
f41d6665 21626 @: $(MAKE); $(unstage)
85bfb75e 21627 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21628 r=`${PWD_COMMAND}`; export r; \
21629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21630 $(HOST_EXPORTS) \
d32ab992 21631 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21633 done; \
85bfb75e
JM
21634 echo "Doing installcheck in libgui" ; \
21635 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21638 "RANLIB=$${RANLIB}" \
901119ae 21639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21640 installcheck) \
1358ccea
NN
21641 || exit 1
21642
85bfb75e 21643@endif libgui
1358ccea 21644
85bfb75e
JM
21645.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
21646maybe-mostlyclean-libgui:
21647@if libgui
21648maybe-mostlyclean-libgui: mostlyclean-libgui
1358ccea 21649
85bfb75e 21650mostlyclean-libgui:
f41d6665 21651 @: $(MAKE); $(unstage)
85bfb75e 21652 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21653 r=`${PWD_COMMAND}`; export r; \
21654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21655 $(HOST_EXPORTS) \
d32ab992 21656 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21658 done; \
85bfb75e
JM
21659 echo "Doing mostlyclean in libgui" ; \
21660 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21663 "RANLIB=$${RANLIB}" \
901119ae 21664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21665 mostlyclean) \
1358ccea
NN
21666 || exit 1
21667
85bfb75e 21668@endif libgui
1358ccea 21669
85bfb75e
JM
21670.PHONY: maybe-clean-libgui clean-libgui
21671maybe-clean-libgui:
21672@if libgui
21673maybe-clean-libgui: clean-libgui
1358ccea 21674
85bfb75e 21675clean-libgui:
f41d6665 21676 @: $(MAKE); $(unstage)
85bfb75e 21677 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21678 r=`${PWD_COMMAND}`; export r; \
21679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21680 $(HOST_EXPORTS) \
d32ab992 21681 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21683 done; \
85bfb75e
JM
21684 echo "Doing clean in libgui" ; \
21685 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21688 "RANLIB=$${RANLIB}" \
901119ae 21689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21690 clean) \
1358ccea
NN
21691 || exit 1
21692
85bfb75e 21693@endif libgui
1358ccea 21694
85bfb75e
JM
21695.PHONY: maybe-distclean-libgui distclean-libgui
21696maybe-distclean-libgui:
21697@if libgui
21698maybe-distclean-libgui: distclean-libgui
1358ccea 21699
85bfb75e 21700distclean-libgui:
f41d6665 21701 @: $(MAKE); $(unstage)
85bfb75e 21702 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21703 r=`${PWD_COMMAND}`; export r; \
21704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21705 $(HOST_EXPORTS) \
d32ab992 21706 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21708 done; \
85bfb75e
JM
21709 echo "Doing distclean in libgui" ; \
21710 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21713 "RANLIB=$${RANLIB}" \
901119ae 21714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21715 distclean) \
1358ccea
NN
21716 || exit 1
21717
85bfb75e 21718@endif libgui
1358ccea 21719
85bfb75e
JM
21720.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
21721maybe-maintainer-clean-libgui:
21722@if libgui
21723maybe-maintainer-clean-libgui: maintainer-clean-libgui
1358ccea 21724
85bfb75e 21725maintainer-clean-libgui:
f41d6665 21726 @: $(MAKE); $(unstage)
85bfb75e 21727 @[ -f ./libgui/Makefile ] || exit 0; \
8c90b13a
L
21728 r=`${PWD_COMMAND}`; export r; \
21729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21730 $(HOST_EXPORTS) \
d32ab992 21731 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21733 done; \
85bfb75e
JM
21734 echo "Doing maintainer-clean in libgui" ; \
21735 (cd $(HOST_SUBDIR)/libgui && \
1358ccea
NN
21736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21738 "RANLIB=$${RANLIB}" \
901119ae 21739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 21740 maintainer-clean) \
1358ccea
NN
21741 || exit 1
21742
85bfb75e 21743@endif libgui
1358ccea 21744
1358ccea 21745
25b42232 21746
85bfb75e
JM
21747.PHONY: configure-libiberty maybe-configure-libiberty
21748maybe-configure-libiberty:
5afab7ad 21749@if gcc-bootstrap
85bfb75e 21750configure-libiberty: stage_current
5afab7ad 21751@endif gcc-bootstrap
85bfb75e
JM
21752@if libiberty
21753maybe-configure-libiberty: configure-libiberty
21754configure-libiberty:
5afab7ad
ILT
21755 @r=`${PWD_COMMAND}`; export r; \
21756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
21757 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
21758 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
f61428ed 21759 $(HOST_EXPORTS) \
85bfb75e
JM
21760 echo Configuring in $(HOST_SUBDIR)/libiberty; \
21761 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
5afab7ad
ILT
21762 case $(srcdir) in \
21763 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21764 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21765 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21766 esac; \
85bfb75e
JM
21767 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21768 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21769 $(SHELL) $${libsrcdir}/configure \
21770 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 21771 --target=${target_alias} $${srcdiroption} @extra_host_libiberty_configure_flags@ \
5afab7ad 21772 || exit 1
85bfb75e 21773@endif libiberty
5afab7ad
ILT
21774
21775
21776
85bfb75e
JM
21777.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
21778maybe-configure-stage1-libiberty:
21779@if libiberty-bootstrap
21780maybe-configure-stage1-libiberty: configure-stage1-libiberty
21781configure-stage1-libiberty:
5afab7ad 21782 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 21783 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21784 @r=`${PWD_COMMAND}`; export r; \
21785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21786 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 21787 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
4a4a4e99 21788 $(HOST_EXPORTS) \
5afab7ad 21789 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21790 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21791 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21792 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
21793 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21794 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21795 case $(srcdir) in \
21796 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21797 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21798 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21799 esac; \
85bfb75e
JM
21800 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21801 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21802 $(SHELL) $${libsrcdir}/configure \
21803 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21804 --target=${target_alias} $${srcdiroption} \
85bfb75e
JM
21805 $(STAGE1_CONFIGURE_FLAGS) \
21806 @extra_host_libiberty_configure_flags@
21807@endif libiberty-bootstrap
5afab7ad 21808
85bfb75e
JM
21809.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
21810maybe-configure-stage2-libiberty:
21811@if libiberty-bootstrap
21812maybe-configure-stage2-libiberty: configure-stage2-libiberty
21813configure-stage2-libiberty:
5afab7ad 21814 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 21815 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21816 @r=`${PWD_COMMAND}`; export r; \
21817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21818 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 21819 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
5afab7ad 21820 $(HOST_EXPORTS) \
4a4a4e99 21821 $(POSTSTAGE1_HOST_EXPORTS) \
5afab7ad 21822 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21823 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21824 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21825 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
21826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21827 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21828 case $(srcdir) in \
21829 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21830 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21831 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21832 esac; \
85bfb75e
JM
21833 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21834 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21835 $(SHELL) $${libsrcdir}/configure \
21836 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21837 --target=${target_alias} $${srcdiroption} \
21838 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
21839 $(STAGE2_CONFIGURE_FLAGS) \
21840 @extra_host_libiberty_configure_flags@
21841@endif libiberty-bootstrap
5afab7ad 21842
85bfb75e
JM
21843.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
21844maybe-configure-stage3-libiberty:
21845@if libiberty-bootstrap
21846maybe-configure-stage3-libiberty: configure-stage3-libiberty
21847configure-stage3-libiberty:
5afab7ad 21848 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 21849 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21850 @r=`${PWD_COMMAND}`; export r; \
21851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21852 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 21853 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
5afab7ad 21854 $(HOST_EXPORTS) \
4a4a4e99 21855 $(POSTSTAGE1_HOST_EXPORTS) \
5afab7ad 21856 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21857 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21858 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21859 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
21860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21861 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21862 case $(srcdir) in \
21863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21864 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21866 esac; \
85bfb75e
JM
21867 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21868 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21869 $(SHELL) $${libsrcdir}/configure \
21870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21871 --target=${target_alias} $${srcdiroption} \
21872 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
21873 $(STAGE3_CONFIGURE_FLAGS) \
21874 @extra_host_libiberty_configure_flags@
21875@endif libiberty-bootstrap
5afab7ad 21876
85bfb75e
JM
21877.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
21878maybe-configure-stage4-libiberty:
21879@if libiberty-bootstrap
21880maybe-configure-stage4-libiberty: configure-stage4-libiberty
21881configure-stage4-libiberty:
5afab7ad 21882 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 21883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21884 @r=`${PWD_COMMAND}`; export r; \
21885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21886 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 21887 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
5afab7ad 21888 $(HOST_EXPORTS) \
4a4a4e99 21889 $(POSTSTAGE1_HOST_EXPORTS) \
5afab7ad 21890 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21891 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21892 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21893 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
21894 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21895 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21896 case $(srcdir) in \
21897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21898 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21900 esac; \
85bfb75e
JM
21901 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21902 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21903 $(SHELL) $${libsrcdir}/configure \
21904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21905 --target=${target_alias} $${srcdiroption} \
21906 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
21907 $(STAGE4_CONFIGURE_FLAGS) \
21908 @extra_host_libiberty_configure_flags@
21909@endif libiberty-bootstrap
5afab7ad 21910
85bfb75e
JM
21911.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
21912maybe-configure-stageprofile-libiberty:
21913@if libiberty-bootstrap
21914maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
21915configure-stageprofile-libiberty:
5afab7ad 21916 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 21917 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21918 @r=`${PWD_COMMAND}`; export r; \
21919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21920 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 21921 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
5afab7ad 21922 $(HOST_EXPORTS) \
4a4a4e99
AO
21923 $(POSTSTAGE1_HOST_EXPORTS) \
21924 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21925 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21926 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21927 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
21928 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21929 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21930 case $(srcdir) in \
21931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21932 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21934 esac; \
85bfb75e
JM
21935 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21936 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21937 $(SHELL) $${libsrcdir}/configure \
21938 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21939 --target=${target_alias} $${srcdiroption} \
21940 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
21941 $(STAGEprofile_CONFIGURE_FLAGS) \
21942 @extra_host_libiberty_configure_flags@
21943@endif libiberty-bootstrap
5afab7ad 21944
85bfb75e
JM
21945.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
21946maybe-configure-stagefeedback-libiberty:
21947@if libiberty-bootstrap
21948maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
21949configure-stagefeedback-libiberty:
5afab7ad 21950 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 21951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
5afab7ad
ILT
21952 @r=`${PWD_COMMAND}`; export r; \
21953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 21954 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 21955 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
5afab7ad 21956 $(HOST_EXPORTS) \
4a4a4e99
AO
21957 $(POSTSTAGE1_HOST_EXPORTS) \
21958 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
21959 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21960 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
21961 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
21962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
21963 cd $(HOST_SUBDIR)/libiberty || exit 1; \
5afab7ad
ILT
21964 case $(srcdir) in \
21965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 21966 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
5afab7ad
ILT
21967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21968 esac; \
85bfb75e
JM
21969 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21970 libsrcdir="$$s/libiberty"; \
5afab7ad
ILT
21971 $(SHELL) $${libsrcdir}/configure \
21972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21973 --target=${target_alias} $${srcdiroption} \
21974 --with-build-libsubdir=$(HOST_SUBDIR) \
85bfb75e
JM
21975 $(STAGEfeedback_CONFIGURE_FLAGS) \
21976 @extra_host_libiberty_configure_flags@
21977@endif libiberty-bootstrap
5afab7ad
ILT
21978
21979
21980
21981
21982
85bfb75e
JM
21983.PHONY: all-libiberty maybe-all-libiberty
21984maybe-all-libiberty:
5afab7ad 21985@if gcc-bootstrap
85bfb75e 21986all-libiberty: stage_current
5afab7ad 21987@endif gcc-bootstrap
85bfb75e
JM
21988@if libiberty
21989TARGET-libiberty=all
21990maybe-all-libiberty: all-libiberty
21991all-libiberty: configure-libiberty
5afab7ad
ILT
21992 @r=`${PWD_COMMAND}`; export r; \
21993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 21994 $(HOST_EXPORTS) \
85bfb75e 21995 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 21996 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
21997 $(TARGET-libiberty))
21998@endif libiberty
5afab7ad
ILT
21999
22000
22001
85bfb75e
JM
22002.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22003.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22004maybe-all-stage1-libiberty:
22005maybe-clean-stage1-libiberty:
22006@if libiberty-bootstrap
22007maybe-all-stage1-libiberty: all-stage1-libiberty
22008all-stage1: all-stage1-libiberty
22009TARGET-stage1-libiberty = $(TARGET-libiberty)
22010all-stage1-libiberty: configure-stage1-libiberty
5afab7ad
ILT
22011 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22012 @r=`${PWD_COMMAND}`; export r; \
22013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22014 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 22015 $(HOST_EXPORTS) \
85bfb75e 22016 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22017 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22018 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 22019 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
22020 LIBCFLAGS="$(LIBCFLAGS)" \
22021 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22022 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22023 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22024 $(EXTRA_HOST_FLAGS) \
22025 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 22026 $(TARGET-stage1-libiberty)
5afab7ad 22027
85bfb75e
JM
22028maybe-clean-stage1-libiberty: clean-stage1-libiberty
22029clean-stage1: clean-stage1-libiberty
22030clean-stage1-libiberty:
5afab7ad 22031 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 22032 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22033 else \
85bfb75e 22034 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22035 $(MAKE) stage1-start; \
22036 fi; \
85bfb75e 22037 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22038 $(MAKE) $(EXTRA_HOST_FLAGS) \
22039 clean
85bfb75e 22040@endif libiberty-bootstrap
5afab7ad
ILT
22041
22042
85bfb75e
JM
22043.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22044.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22045maybe-all-stage2-libiberty:
22046maybe-clean-stage2-libiberty:
22047@if libiberty-bootstrap
22048maybe-all-stage2-libiberty: all-stage2-libiberty
22049all-stage2: all-stage2-libiberty
22050TARGET-stage2-libiberty = $(TARGET-libiberty)
22051all-stage2-libiberty: configure-stage2-libiberty
5afab7ad
ILT
22052 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22053 @r=`${PWD_COMMAND}`; export r; \
22054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22055 TFLAGS="$(STAGE2_TFLAGS)"; \
5afab7ad 22056 $(HOST_EXPORTS) \
f61428ed 22057 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 22058 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22059 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22060 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 22061 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
22062 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22063 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22064 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22065 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22066 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22067 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 22068 $(TARGET-stage2-libiberty)
5afab7ad 22069
85bfb75e
JM
22070maybe-clean-stage2-libiberty: clean-stage2-libiberty
22071clean-stage2: clean-stage2-libiberty
22072clean-stage2-libiberty:
5afab7ad 22073 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 22074 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22075 else \
85bfb75e 22076 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22077 $(MAKE) stage2-start; \
22078 fi; \
85bfb75e 22079 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22080 $(MAKE) $(EXTRA_HOST_FLAGS) \
22081 $(POSTSTAGE1_FLAGS_TO_PASS) \
22082 clean
85bfb75e 22083@endif libiberty-bootstrap
5afab7ad
ILT
22084
22085
85bfb75e
JM
22086.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22087.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22088maybe-all-stage3-libiberty:
22089maybe-clean-stage3-libiberty:
22090@if libiberty-bootstrap
22091maybe-all-stage3-libiberty: all-stage3-libiberty
22092all-stage3: all-stage3-libiberty
22093TARGET-stage3-libiberty = $(TARGET-libiberty)
22094all-stage3-libiberty: configure-stage3-libiberty
5afab7ad
ILT
22095 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22096 @r=`${PWD_COMMAND}`; export r; \
22097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22098 TFLAGS="$(STAGE3_TFLAGS)"; \
5afab7ad 22099 $(HOST_EXPORTS) \
f61428ed 22100 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 22101 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22102 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22103 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 22104 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
22105 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22106 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22107 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22108 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22109 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22110 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 22111 $(TARGET-stage3-libiberty)
5afab7ad 22112
85bfb75e
JM
22113maybe-clean-stage3-libiberty: clean-stage3-libiberty
22114clean-stage3: clean-stage3-libiberty
22115clean-stage3-libiberty:
5afab7ad 22116 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 22117 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22118 else \
85bfb75e 22119 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22120 $(MAKE) stage3-start; \
22121 fi; \
85bfb75e 22122 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22123 $(MAKE) $(EXTRA_HOST_FLAGS) \
22124 $(POSTSTAGE1_FLAGS_TO_PASS) \
22125 clean
85bfb75e 22126@endif libiberty-bootstrap
5afab7ad
ILT
22127
22128
85bfb75e
JM
22129.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22130.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22131maybe-all-stage4-libiberty:
22132maybe-clean-stage4-libiberty:
22133@if libiberty-bootstrap
22134maybe-all-stage4-libiberty: all-stage4-libiberty
22135all-stage4: all-stage4-libiberty
22136TARGET-stage4-libiberty = $(TARGET-libiberty)
22137all-stage4-libiberty: configure-stage4-libiberty
5afab7ad
ILT
22138 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22139 @r=`${PWD_COMMAND}`; export r; \
22140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22141 TFLAGS="$(STAGE4_TFLAGS)"; \
5afab7ad 22142 $(HOST_EXPORTS) \
f61428ed 22143 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 22144 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22145 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22146 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 22147 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
5afab7ad 22148 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
22149 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22150 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22151 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22152 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22153 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 22154 $(TARGET-stage4-libiberty)
5afab7ad 22155
85bfb75e
JM
22156maybe-clean-stage4-libiberty: clean-stage4-libiberty
22157clean-stage4: clean-stage4-libiberty
22158clean-stage4-libiberty:
5afab7ad 22159 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 22160 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22161 else \
85bfb75e 22162 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22163 $(MAKE) stage4-start; \
22164 fi; \
85bfb75e 22165 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22166 $(MAKE) $(EXTRA_HOST_FLAGS) \
22167 $(POSTSTAGE1_FLAGS_TO_PASS) \
22168 clean
85bfb75e 22169@endif libiberty-bootstrap
5afab7ad
ILT
22170
22171
85bfb75e
JM
22172.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22173.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22174maybe-all-stageprofile-libiberty:
22175maybe-clean-stageprofile-libiberty:
22176@if libiberty-bootstrap
22177maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22178all-stageprofile: all-stageprofile-libiberty
22179TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22180all-stageprofile-libiberty: configure-stageprofile-libiberty
5afab7ad
ILT
22181 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22182 @r=`${PWD_COMMAND}`; export r; \
22183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22184 TFLAGS="$(STAGEprofile_TFLAGS)"; \
5afab7ad 22185 $(HOST_EXPORTS) \
f61428ed 22186 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 22187 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22188 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22189 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 22190 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
22191 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22192 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22193 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22194 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22195 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22196 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 22197 $(TARGET-stageprofile-libiberty)
5afab7ad 22198
85bfb75e
JM
22199maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22200clean-stageprofile: clean-stageprofile-libiberty
22201clean-stageprofile-libiberty:
5afab7ad 22202 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 22203 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22204 else \
85bfb75e 22205 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22206 $(MAKE) stageprofile-start; \
22207 fi; \
85bfb75e 22208 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22209 $(MAKE) $(EXTRA_HOST_FLAGS) \
22210 $(POSTSTAGE1_FLAGS_TO_PASS) \
22211 clean
85bfb75e 22212@endif libiberty-bootstrap
5afab7ad
ILT
22213
22214
85bfb75e
JM
22215.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22216.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22217maybe-all-stagefeedback-libiberty:
22218maybe-clean-stagefeedback-libiberty:
22219@if libiberty-bootstrap
22220maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22221all-stagefeedback: all-stagefeedback-libiberty
22222TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22223all-stagefeedback-libiberty: configure-stagefeedback-libiberty
5afab7ad
ILT
22224 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22225 @r=`${PWD_COMMAND}`; export r; \
22226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 22227 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
5afab7ad 22228 $(HOST_EXPORTS) \
f61428ed 22229 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 22230 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad 22231 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 22232 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 22233 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
22234 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22235 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22236 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22237 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22238 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22239 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 22240 $(TARGET-stagefeedback-libiberty)
5afab7ad 22241
85bfb75e
JM
22242maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22243clean-stagefeedback: clean-stagefeedback-libiberty
22244clean-stagefeedback-libiberty:
5afab7ad 22245 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 22246 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
5afab7ad 22247 else \
85bfb75e 22248 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22249 $(MAKE) stagefeedback-start; \
22250 fi; \
85bfb75e 22251 cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22252 $(MAKE) $(EXTRA_HOST_FLAGS) \
22253 $(POSTSTAGE1_FLAGS_TO_PASS) \
22254 clean
85bfb75e 22255@endif libiberty-bootstrap
5afab7ad
ILT
22256
22257
22258
22259
22260
85bfb75e
JM
22261.PHONY: check-libiberty maybe-check-libiberty
22262maybe-check-libiberty:
22263@if libiberty
22264maybe-check-libiberty: check-libiberty
5afab7ad 22265
85bfb75e 22266check-libiberty:
5afab7ad
ILT
22267 @: $(MAKE); $(unstage)
22268 @r=`${PWD_COMMAND}`; export r; \
22269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22270 $(HOST_EXPORTS) \
85bfb75e 22271 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22272 $(MAKE) $(FLAGS_TO_PASS) check)
22273
85bfb75e 22274@endif libiberty
5afab7ad 22275
85bfb75e
JM
22276.PHONY: install-libiberty maybe-install-libiberty
22277maybe-install-libiberty:
22278@if libiberty
22279maybe-install-libiberty: install-libiberty
5afab7ad 22280
85bfb75e 22281install-libiberty: installdirs
5afab7ad
ILT
22282 @: $(MAKE); $(unstage)
22283 @r=`${PWD_COMMAND}`; export r; \
22284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22285 $(HOST_EXPORTS) \
85bfb75e 22286 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22287 $(MAKE) $(FLAGS_TO_PASS) install)
22288
85bfb75e 22289@endif libiberty
5afab7ad 22290
85bfb75e
JM
22291.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22292maybe-install-strip-libiberty:
22293@if libiberty
22294maybe-install-strip-libiberty: install-strip-libiberty
455c8f48 22295
85bfb75e 22296install-strip-libiberty: installdirs
455c8f48
RW
22297 @: $(MAKE); $(unstage)
22298 @r=`${PWD_COMMAND}`; export r; \
22299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22300 $(HOST_EXPORTS) \
85bfb75e 22301 (cd $(HOST_SUBDIR)/libiberty && \
455c8f48
RW
22302 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22303
85bfb75e 22304@endif libiberty
455c8f48 22305
5afab7ad
ILT
22306# Other targets (info, dvi, pdf, etc.)
22307
85bfb75e
JM
22308.PHONY: maybe-info-libiberty info-libiberty
22309maybe-info-libiberty:
22310@if libiberty
22311maybe-info-libiberty: info-libiberty
5afab7ad 22312
85bfb75e
JM
22313info-libiberty: \
22314 configure-libiberty
22315 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22316 r=`${PWD_COMMAND}`; export r; \
22317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22318 $(HOST_EXPORTS) \
22319 for flag in $(EXTRA_HOST_FLAGS) ; do \
22320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22321 done; \
85bfb75e
JM
22322 echo "Doing info in libiberty" ; \
22323 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22326 "RANLIB=$${RANLIB}" \
22327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22328 info) \
22329 || exit 1
22330
85bfb75e 22331@endif libiberty
5afab7ad 22332
85bfb75e
JM
22333.PHONY: maybe-dvi-libiberty dvi-libiberty
22334maybe-dvi-libiberty:
22335@if libiberty
22336maybe-dvi-libiberty: dvi-libiberty
5afab7ad 22337
85bfb75e
JM
22338dvi-libiberty: \
22339 configure-libiberty
22340 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22341 r=`${PWD_COMMAND}`; export r; \
22342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22343 $(HOST_EXPORTS) \
22344 for flag in $(EXTRA_HOST_FLAGS) ; do \
22345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22346 done; \
85bfb75e
JM
22347 echo "Doing dvi in libiberty" ; \
22348 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22351 "RANLIB=$${RANLIB}" \
22352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22353 dvi) \
22354 || exit 1
22355
85bfb75e 22356@endif libiberty
5afab7ad 22357
85bfb75e
JM
22358.PHONY: maybe-pdf-libiberty pdf-libiberty
22359maybe-pdf-libiberty:
22360@if libiberty
22361maybe-pdf-libiberty: pdf-libiberty
5afab7ad 22362
85bfb75e
JM
22363pdf-libiberty: \
22364 configure-libiberty
22365 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22366 r=`${PWD_COMMAND}`; export r; \
22367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22368 $(HOST_EXPORTS) \
22369 for flag in $(EXTRA_HOST_FLAGS) ; do \
22370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22371 done; \
85bfb75e
JM
22372 echo "Doing pdf in libiberty" ; \
22373 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22376 "RANLIB=$${RANLIB}" \
22377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22378 pdf) \
22379 || exit 1
22380
85bfb75e 22381@endif libiberty
5afab7ad 22382
85bfb75e
JM
22383.PHONY: maybe-html-libiberty html-libiberty
22384maybe-html-libiberty:
22385@if libiberty
22386maybe-html-libiberty: html-libiberty
5afab7ad 22387
85bfb75e
JM
22388html-libiberty: \
22389 configure-libiberty
22390 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22391 r=`${PWD_COMMAND}`; export r; \
22392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22393 $(HOST_EXPORTS) \
22394 for flag in $(EXTRA_HOST_FLAGS) ; do \
22395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22396 done; \
85bfb75e
JM
22397 echo "Doing html in libiberty" ; \
22398 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22401 "RANLIB=$${RANLIB}" \
22402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22403 html) \
22404 || exit 1
22405
85bfb75e 22406@endif libiberty
5afab7ad 22407
85bfb75e
JM
22408.PHONY: maybe-TAGS-libiberty TAGS-libiberty
22409maybe-TAGS-libiberty:
22410@if libiberty
22411maybe-TAGS-libiberty: TAGS-libiberty
5afab7ad 22412
85bfb75e
JM
22413TAGS-libiberty: \
22414 configure-libiberty
22415 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22416 r=`${PWD_COMMAND}`; export r; \
22417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22418 $(HOST_EXPORTS) \
22419 for flag in $(EXTRA_HOST_FLAGS) ; do \
22420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22421 done; \
85bfb75e
JM
22422 echo "Doing TAGS in libiberty" ; \
22423 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22426 "RANLIB=$${RANLIB}" \
22427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22428 TAGS) \
22429 || exit 1
22430
85bfb75e 22431@endif libiberty
5afab7ad 22432
85bfb75e
JM
22433.PHONY: maybe-install-info-libiberty install-info-libiberty
22434maybe-install-info-libiberty:
22435@if libiberty
22436maybe-install-info-libiberty: install-info-libiberty
5afab7ad 22437
85bfb75e
JM
22438install-info-libiberty: \
22439 configure-libiberty \
22440 info-libiberty
22441 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22442 r=`${PWD_COMMAND}`; export r; \
22443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22444 $(HOST_EXPORTS) \
22445 for flag in $(EXTRA_HOST_FLAGS) ; do \
22446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22447 done; \
85bfb75e
JM
22448 echo "Doing install-info in libiberty" ; \
22449 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22452 "RANLIB=$${RANLIB}" \
22453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22454 install-info) \
22455 || exit 1
22456
85bfb75e 22457@endif libiberty
5afab7ad 22458
85bfb75e
JM
22459.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
22460maybe-install-pdf-libiberty:
22461@if libiberty
22462maybe-install-pdf-libiberty: install-pdf-libiberty
5afab7ad 22463
85bfb75e
JM
22464install-pdf-libiberty: \
22465 configure-libiberty \
22466 pdf-libiberty
22467 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22468 r=`${PWD_COMMAND}`; export r; \
22469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22470 $(HOST_EXPORTS) \
22471 for flag in $(EXTRA_HOST_FLAGS) ; do \
22472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22473 done; \
85bfb75e
JM
22474 echo "Doing install-pdf in libiberty" ; \
22475 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22478 "RANLIB=$${RANLIB}" \
22479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22480 install-pdf) \
22481 || exit 1
22482
85bfb75e 22483@endif libiberty
5afab7ad 22484
85bfb75e
JM
22485.PHONY: maybe-install-html-libiberty install-html-libiberty
22486maybe-install-html-libiberty:
22487@if libiberty
22488maybe-install-html-libiberty: install-html-libiberty
5afab7ad 22489
85bfb75e
JM
22490install-html-libiberty: \
22491 configure-libiberty \
22492 html-libiberty
22493 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22494 r=`${PWD_COMMAND}`; export r; \
22495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22496 $(HOST_EXPORTS) \
22497 for flag in $(EXTRA_HOST_FLAGS) ; do \
22498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22499 done; \
85bfb75e
JM
22500 echo "Doing install-html in libiberty" ; \
22501 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22504 "RANLIB=$${RANLIB}" \
22505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22506 install-html) \
22507 || exit 1
22508
85bfb75e 22509@endif libiberty
5afab7ad 22510
85bfb75e
JM
22511.PHONY: maybe-installcheck-libiberty installcheck-libiberty
22512maybe-installcheck-libiberty:
22513@if libiberty
22514maybe-installcheck-libiberty: installcheck-libiberty
5afab7ad 22515
85bfb75e
JM
22516installcheck-libiberty: \
22517 configure-libiberty
22518 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22519 r=`${PWD_COMMAND}`; export r; \
22520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22521 $(HOST_EXPORTS) \
22522 for flag in $(EXTRA_HOST_FLAGS) ; do \
22523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22524 done; \
85bfb75e
JM
22525 echo "Doing installcheck in libiberty" ; \
22526 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22529 "RANLIB=$${RANLIB}" \
22530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22531 installcheck) \
22532 || exit 1
22533
85bfb75e 22534@endif libiberty
5afab7ad 22535
85bfb75e
JM
22536.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
22537maybe-mostlyclean-libiberty:
22538@if libiberty
22539maybe-mostlyclean-libiberty: mostlyclean-libiberty
5afab7ad 22540
85bfb75e
JM
22541mostlyclean-libiberty:
22542 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22543 r=`${PWD_COMMAND}`; export r; \
22544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22545 $(HOST_EXPORTS) \
22546 for flag in $(EXTRA_HOST_FLAGS) ; do \
22547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22548 done; \
85bfb75e
JM
22549 echo "Doing mostlyclean in libiberty" ; \
22550 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22553 "RANLIB=$${RANLIB}" \
22554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22555 mostlyclean) \
22556 || exit 1
22557
85bfb75e 22558@endif libiberty
5afab7ad 22559
85bfb75e
JM
22560.PHONY: maybe-clean-libiberty clean-libiberty
22561maybe-clean-libiberty:
22562@if libiberty
22563maybe-clean-libiberty: clean-libiberty
5afab7ad 22564
85bfb75e
JM
22565clean-libiberty:
22566 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22567 r=`${PWD_COMMAND}`; export r; \
22568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22569 $(HOST_EXPORTS) \
22570 for flag in $(EXTRA_HOST_FLAGS) ; do \
22571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22572 done; \
85bfb75e
JM
22573 echo "Doing clean in libiberty" ; \
22574 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22577 "RANLIB=$${RANLIB}" \
22578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22579 clean) \
22580 || exit 1
22581
85bfb75e 22582@endif libiberty
5afab7ad 22583
85bfb75e
JM
22584.PHONY: maybe-distclean-libiberty distclean-libiberty
22585maybe-distclean-libiberty:
22586@if libiberty
22587maybe-distclean-libiberty: distclean-libiberty
5afab7ad 22588
85bfb75e
JM
22589distclean-libiberty:
22590 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22591 r=`${PWD_COMMAND}`; export r; \
22592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22593 $(HOST_EXPORTS) \
22594 for flag in $(EXTRA_HOST_FLAGS) ; do \
22595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22596 done; \
85bfb75e
JM
22597 echo "Doing distclean in libiberty" ; \
22598 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22601 "RANLIB=$${RANLIB}" \
22602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22603 distclean) \
22604 || exit 1
22605
85bfb75e 22606@endif libiberty
5afab7ad 22607
85bfb75e
JM
22608.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
22609maybe-maintainer-clean-libiberty:
22610@if libiberty
22611maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
5afab7ad 22612
85bfb75e
JM
22613maintainer-clean-libiberty:
22614 @[ -f ./libiberty/Makefile ] || exit 0; \
5afab7ad
ILT
22615 r=`${PWD_COMMAND}`; export r; \
22616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22617 $(HOST_EXPORTS) \
22618 for flag in $(EXTRA_HOST_FLAGS) ; do \
22619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22620 done; \
85bfb75e
JM
22621 echo "Doing maintainer-clean in libiberty" ; \
22622 (cd $(HOST_SUBDIR)/libiberty && \
5afab7ad
ILT
22623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22625 "RANLIB=$${RANLIB}" \
22626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22627 maintainer-clean) \
22628 || exit 1
22629
85bfb75e 22630@endif libiberty
5afab7ad
ILT
22631
22632
22633
85bfb75e
JM
22634.PHONY: configure-libiconv maybe-configure-libiconv
22635maybe-configure-libiconv:
3ff3adad 22636@if gcc-bootstrap
85bfb75e 22637configure-libiconv: stage_current
3ff3adad 22638@endif gcc-bootstrap
85bfb75e
JM
22639@if libiconv
22640maybe-configure-libiconv: configure-libiconv
22641configure-libiconv:
f41d6665 22642 @: $(MAKE); $(unstage)
cc11cc9b 22643 @r=`${PWD_COMMAND}`; export r; \
295f4e42 22644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
22645 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22646 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
f61428ed 22647 $(HOST_EXPORTS) \
85bfb75e
JM
22648 echo Configuring in $(HOST_SUBDIR)/libiconv; \
22649 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
295f4e42 22650 case $(srcdir) in \
215c351a 22651 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 22652 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
215c351a 22653 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 22654 esac; \
85bfb75e
JM
22655 srcdiroption="--srcdir=$${topdir}/libiconv"; \
22656 libsrcdir="$$s/libiconv"; \
295f4e42 22657 $(SHELL) $${libsrcdir}/configure \
e69bf64b 22658 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 22659 --target=${target_alias} $${srcdiroption} --disable-shared \
295f4e42 22660 || exit 1
85bfb75e 22661@endif libiconv
295f4e42 22662
25b42232
PB
22663
22664
ce406537
PB
22665
22666
85bfb75e
JM
22667.PHONY: all-libiconv maybe-all-libiconv
22668maybe-all-libiconv:
3ff3adad 22669@if gcc-bootstrap
85bfb75e 22670all-libiconv: stage_current
3ff3adad 22671@endif gcc-bootstrap
85bfb75e
JM
22672@if libiconv
22673TARGET-libiconv=all
22674maybe-all-libiconv: all-libiconv
22675all-libiconv: configure-libiconv
f41d6665 22676 @: $(MAKE); $(unstage)
295f4e42
NN
22677 @r=`${PWD_COMMAND}`; export r; \
22678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 22679 $(HOST_EXPORTS) \
85bfb75e 22680 (cd $(HOST_SUBDIR)/libiconv && \
1c8bd6a3 22681 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
22682 $(TARGET-libiconv))
22683@endif libiconv
295f4e42 22684
25b42232 22685
ce406537
PB
22686
22687
85bfb75e
JM
22688.PHONY: check-libiconv maybe-check-libiconv
22689maybe-check-libiconv:
22690@if libiconv
22691maybe-check-libiconv: check-libiconv
295f4e42 22692
85bfb75e 22693check-libiconv:
f41d6665 22694 @: $(MAKE); $(unstage)
295f4e42
NN
22695 @r=`${PWD_COMMAND}`; export r; \
22696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22697 $(HOST_EXPORTS) \
85bfb75e 22698 (cd $(HOST_SUBDIR)/libiconv && \
215c351a 22699 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 22700
85bfb75e 22701@endif libiconv
295f4e42 22702
85bfb75e
JM
22703.PHONY: install-libiconv maybe-install-libiconv
22704maybe-install-libiconv:
22705@if libiconv
22706maybe-install-libiconv: install-libiconv
295f4e42 22707
85bfb75e 22708install-libiconv:
295f4e42 22709
85bfb75e 22710@endif libiconv
455c8f48 22711
85bfb75e
JM
22712.PHONY: install-strip-libiconv maybe-install-strip-libiconv
22713maybe-install-strip-libiconv:
22714@if libiconv
22715maybe-install-strip-libiconv: install-strip-libiconv
455c8f48 22716
85bfb75e
JM
22717install-strip-libiconv:
22718
22719@endif libiconv
455c8f48 22720
b5422ad7 22721# Other targets (info, dvi, pdf, etc.)
295f4e42 22722
85bfb75e
JM
22723.PHONY: maybe-info-libiconv info-libiconv
22724maybe-info-libiconv:
22725@if libiconv
22726maybe-info-libiconv: info-libiconv
295f4e42 22727
85bfb75e
JM
22728info-libiconv: \
22729 configure-libiconv
f41d6665 22730 @: $(MAKE); $(unstage)
85bfb75e 22731 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22732 r=`${PWD_COMMAND}`; export r; \
22733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22734 $(HOST_EXPORTS) \
d32ab992 22735 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22737 done; \
85bfb75e
JM
22738 echo "Doing info in libiconv" ; \
22739 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22742 "RANLIB=$${RANLIB}" \
901119ae 22743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22744 info) \
1358ccea
NN
22745 || exit 1
22746
85bfb75e 22747@endif libiconv
1358ccea 22748
85bfb75e
JM
22749.PHONY: maybe-dvi-libiconv dvi-libiconv
22750maybe-dvi-libiconv:
22751@if libiconv
22752maybe-dvi-libiconv: dvi-libiconv
1358ccea 22753
85bfb75e
JM
22754dvi-libiconv: \
22755 configure-libiconv
f41d6665 22756 @: $(MAKE); $(unstage)
85bfb75e 22757 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22758 r=`${PWD_COMMAND}`; export r; \
22759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22760 $(HOST_EXPORTS) \
d32ab992 22761 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22763 done; \
85bfb75e
JM
22764 echo "Doing dvi in libiconv" ; \
22765 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22768 "RANLIB=$${RANLIB}" \
901119ae 22769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22770 dvi) \
1358ccea
NN
22771 || exit 1
22772
85bfb75e 22773@endif libiconv
1358ccea 22774
85bfb75e
JM
22775.PHONY: maybe-pdf-libiconv pdf-libiconv
22776maybe-pdf-libiconv:
22777@if libiconv
22778maybe-pdf-libiconv: pdf-libiconv
b5422ad7 22779
85bfb75e
JM
22780pdf-libiconv: \
22781 configure-libiconv
b5422ad7 22782 @: $(MAKE); $(unstage)
85bfb75e 22783 @[ -f ./libiconv/Makefile ] || exit 0; \
b5422ad7
BM
22784 r=`${PWD_COMMAND}`; export r; \
22785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22786 $(HOST_EXPORTS) \
22787 for flag in $(EXTRA_HOST_FLAGS) ; do \
22788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22789 done; \
85bfb75e
JM
22790 echo "Doing pdf in libiconv" ; \
22791 (cd $(HOST_SUBDIR)/libiconv && \
b5422ad7
BM
22792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22794 "RANLIB=$${RANLIB}" \
901119ae 22795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
22796 pdf) \
22797 || exit 1
22798
85bfb75e 22799@endif libiconv
b5422ad7 22800
85bfb75e
JM
22801.PHONY: maybe-html-libiconv html-libiconv
22802maybe-html-libiconv:
22803@if libiconv
22804maybe-html-libiconv: html-libiconv
f87a2b2e 22805
85bfb75e
JM
22806html-libiconv: \
22807 configure-libiconv
f41d6665 22808 @: $(MAKE); $(unstage)
85bfb75e 22809 @[ -f ./libiconv/Makefile ] || exit 0; \
f87a2b2e
MS
22810 r=`${PWD_COMMAND}`; export r; \
22811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22812 $(HOST_EXPORTS) \
22813 for flag in $(EXTRA_HOST_FLAGS) ; do \
22814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22815 done; \
85bfb75e
JM
22816 echo "Doing html in libiconv" ; \
22817 (cd $(HOST_SUBDIR)/libiconv && \
f87a2b2e
MS
22818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22820 "RANLIB=$${RANLIB}" \
901119ae 22821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
22822 html) \
22823 || exit 1
22824
85bfb75e 22825@endif libiconv
f87a2b2e 22826
85bfb75e
JM
22827.PHONY: maybe-TAGS-libiconv TAGS-libiconv
22828maybe-TAGS-libiconv:
22829@if libiconv
22830maybe-TAGS-libiconv: TAGS-libiconv
1358ccea 22831
85bfb75e
JM
22832TAGS-libiconv: \
22833 configure-libiconv
f41d6665 22834 @: $(MAKE); $(unstage)
85bfb75e 22835 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22836 r=`${PWD_COMMAND}`; export r; \
22837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22838 $(HOST_EXPORTS) \
d32ab992 22839 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22841 done; \
85bfb75e
JM
22842 echo "Doing TAGS in libiconv" ; \
22843 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22846 "RANLIB=$${RANLIB}" \
901119ae 22847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22848 TAGS) \
1358ccea
NN
22849 || exit 1
22850
85bfb75e 22851@endif libiconv
1358ccea 22852
85bfb75e
JM
22853.PHONY: maybe-install-info-libiconv install-info-libiconv
22854maybe-install-info-libiconv:
22855@if libiconv
22856maybe-install-info-libiconv: install-info-libiconv
1358ccea 22857
85bfb75e
JM
22858# libiconv doesn't support install-info.
22859install-info-libiconv:
1358ccea 22860
85bfb75e 22861@endif libiconv
1358ccea 22862
85bfb75e
JM
22863.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
22864maybe-install-pdf-libiconv:
22865@if libiconv
22866maybe-install-pdf-libiconv: install-pdf-libiconv
9c4d2493 22867
85bfb75e
JM
22868# libiconv doesn't support install-pdf.
22869install-pdf-libiconv:
9c4d2493 22870
85bfb75e 22871@endif libiconv
9c4d2493 22872
85bfb75e
JM
22873.PHONY: maybe-install-html-libiconv install-html-libiconv
22874maybe-install-html-libiconv:
22875@if libiconv
22876maybe-install-html-libiconv: install-html-libiconv
65d6e994 22877
85bfb75e
JM
22878# libiconv doesn't support install-html.
22879install-html-libiconv:
65d6e994 22880
85bfb75e 22881@endif libiconv
65d6e994 22882
85bfb75e
JM
22883.PHONY: maybe-installcheck-libiconv installcheck-libiconv
22884maybe-installcheck-libiconv:
22885@if libiconv
22886maybe-installcheck-libiconv: installcheck-libiconv
1358ccea 22887
85bfb75e
JM
22888installcheck-libiconv: \
22889 configure-libiconv
f41d6665 22890 @: $(MAKE); $(unstage)
85bfb75e 22891 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22892 r=`${PWD_COMMAND}`; export r; \
22893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22894 $(HOST_EXPORTS) \
d32ab992 22895 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22897 done; \
85bfb75e
JM
22898 echo "Doing installcheck in libiconv" ; \
22899 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22902 "RANLIB=$${RANLIB}" \
901119ae 22903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22904 installcheck) \
1358ccea
NN
22905 || exit 1
22906
85bfb75e 22907@endif libiconv
1358ccea 22908
85bfb75e
JM
22909.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
22910maybe-mostlyclean-libiconv:
22911@if libiconv
22912maybe-mostlyclean-libiconv: mostlyclean-libiconv
1358ccea 22913
85bfb75e 22914mostlyclean-libiconv:
f41d6665 22915 @: $(MAKE); $(unstage)
85bfb75e 22916 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22917 r=`${PWD_COMMAND}`; export r; \
22918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22919 $(HOST_EXPORTS) \
d32ab992 22920 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22922 done; \
85bfb75e
JM
22923 echo "Doing mostlyclean in libiconv" ; \
22924 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22927 "RANLIB=$${RANLIB}" \
901119ae 22928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22929 mostlyclean) \
1358ccea
NN
22930 || exit 1
22931
85bfb75e 22932@endif libiconv
1358ccea 22933
85bfb75e
JM
22934.PHONY: maybe-clean-libiconv clean-libiconv
22935maybe-clean-libiconv:
22936@if libiconv
22937maybe-clean-libiconv: clean-libiconv
1358ccea 22938
85bfb75e 22939clean-libiconv:
f41d6665 22940 @: $(MAKE); $(unstage)
85bfb75e 22941 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22942 r=`${PWD_COMMAND}`; export r; \
22943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22944 $(HOST_EXPORTS) \
d32ab992 22945 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22947 done; \
85bfb75e
JM
22948 echo "Doing clean in libiconv" ; \
22949 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22952 "RANLIB=$${RANLIB}" \
901119ae 22953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22954 clean) \
1358ccea
NN
22955 || exit 1
22956
85bfb75e 22957@endif libiconv
1358ccea 22958
85bfb75e
JM
22959.PHONY: maybe-distclean-libiconv distclean-libiconv
22960maybe-distclean-libiconv:
22961@if libiconv
22962maybe-distclean-libiconv: distclean-libiconv
1358ccea 22963
85bfb75e 22964distclean-libiconv:
f41d6665 22965 @: $(MAKE); $(unstage)
85bfb75e 22966 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22967 r=`${PWD_COMMAND}`; export r; \
22968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22969 $(HOST_EXPORTS) \
d32ab992 22970 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22972 done; \
85bfb75e
JM
22973 echo "Doing distclean in libiconv" ; \
22974 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
22975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22977 "RANLIB=$${RANLIB}" \
901119ae 22978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 22979 distclean) \
1358ccea
NN
22980 || exit 1
22981
85bfb75e 22982@endif libiconv
1358ccea 22983
85bfb75e
JM
22984.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
22985maybe-maintainer-clean-libiconv:
22986@if libiconv
22987maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
1358ccea 22988
85bfb75e 22989maintainer-clean-libiconv:
f41d6665 22990 @: $(MAKE); $(unstage)
85bfb75e 22991 @[ -f ./libiconv/Makefile ] || exit 0; \
8c90b13a
L
22992 r=`${PWD_COMMAND}`; export r; \
22993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22994 $(HOST_EXPORTS) \
d32ab992 22995 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
22996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22997 done; \
85bfb75e
JM
22998 echo "Doing maintainer-clean in libiconv" ; \
22999 (cd $(HOST_SUBDIR)/libiconv && \
1358ccea
NN
23000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23002 "RANLIB=$${RANLIB}" \
901119ae 23003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23004 maintainer-clean) \
1358ccea
NN
23005 || exit 1
23006
85bfb75e 23007@endif libiconv
1358ccea 23008
1358ccea 23009
25b42232 23010
85bfb75e
JM
23011.PHONY: configure-m4 maybe-configure-m4
23012maybe-configure-m4:
3ff3adad 23013@if gcc-bootstrap
85bfb75e 23014configure-m4: stage_current
3ff3adad 23015@endif gcc-bootstrap
85bfb75e
JM
23016@if m4
23017maybe-configure-m4: configure-m4
23018configure-m4:
f41d6665 23019 @: $(MAKE); $(unstage)
cc11cc9b 23020 @r=`${PWD_COMMAND}`; export r; \
295f4e42 23021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
23022 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
23023 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
f61428ed 23024 $(HOST_EXPORTS) \
85bfb75e
JM
23025 echo Configuring in $(HOST_SUBDIR)/m4; \
23026 cd "$(HOST_SUBDIR)/m4" || exit 1; \
295f4e42 23027 case $(srcdir) in \
215c351a 23028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 23029 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
215c351a 23030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 23031 esac; \
85bfb75e
JM
23032 srcdiroption="--srcdir=$${topdir}/m4"; \
23033 libsrcdir="$$s/m4"; \
295f4e42 23034 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
23035 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23036 --target=${target_alias} $${srcdiroption} \
295f4e42 23037 || exit 1
85bfb75e 23038@endif m4
295f4e42 23039
25b42232
PB
23040
23041
ce406537
PB
23042
23043
85bfb75e
JM
23044.PHONY: all-m4 maybe-all-m4
23045maybe-all-m4:
3ff3adad 23046@if gcc-bootstrap
85bfb75e 23047all-m4: stage_current
3ff3adad 23048@endif gcc-bootstrap
85bfb75e
JM
23049@if m4
23050TARGET-m4=all
23051maybe-all-m4: all-m4
23052all-m4: configure-m4
f41d6665 23053 @: $(MAKE); $(unstage)
295f4e42
NN
23054 @r=`${PWD_COMMAND}`; export r; \
23055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 23056 $(HOST_EXPORTS) \
85bfb75e 23057 (cd $(HOST_SUBDIR)/m4 && \
1c8bd6a3 23058 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
23059 $(TARGET-m4))
23060@endif m4
295f4e42 23061
25b42232 23062
ce406537
PB
23063
23064
85bfb75e
JM
23065.PHONY: check-m4 maybe-check-m4
23066maybe-check-m4:
23067@if m4
23068maybe-check-m4: check-m4
295f4e42 23069
85bfb75e 23070check-m4:
f41d6665 23071 @: $(MAKE); $(unstage)
295f4e42
NN
23072 @r=`${PWD_COMMAND}`; export r; \
23073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23074 $(HOST_EXPORTS) \
85bfb75e 23075 (cd $(HOST_SUBDIR)/m4 && \
215c351a 23076 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 23077
85bfb75e 23078@endif m4
295f4e42 23079
85bfb75e
JM
23080.PHONY: install-m4 maybe-install-m4
23081maybe-install-m4:
23082@if m4
23083maybe-install-m4: install-m4
295f4e42 23084
85bfb75e 23085install-m4: installdirs
f41d6665 23086 @: $(MAKE); $(unstage)
295f4e42
NN
23087 @r=`${PWD_COMMAND}`; export r; \
23088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23089 $(HOST_EXPORTS) \
85bfb75e 23090 (cd $(HOST_SUBDIR)/m4 && \
ace9ac7b 23091 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23092
85bfb75e 23093@endif m4
295f4e42 23094
85bfb75e
JM
23095.PHONY: install-strip-m4 maybe-install-strip-m4
23096maybe-install-strip-m4:
23097@if m4
23098maybe-install-strip-m4: install-strip-m4
455c8f48 23099
85bfb75e 23100install-strip-m4: installdirs
455c8f48
RW
23101 @: $(MAKE); $(unstage)
23102 @r=`${PWD_COMMAND}`; export r; \
23103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23104 $(HOST_EXPORTS) \
85bfb75e 23105 (cd $(HOST_SUBDIR)/m4 && \
455c8f48
RW
23106 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23107
85bfb75e 23108@endif m4
455c8f48 23109
b5422ad7 23110# Other targets (info, dvi, pdf, etc.)
295f4e42 23111
85bfb75e
JM
23112.PHONY: maybe-info-m4 info-m4
23113maybe-info-m4:
23114@if m4
23115maybe-info-m4: info-m4
295f4e42 23116
85bfb75e
JM
23117info-m4: \
23118 configure-m4
f41d6665 23119 @: $(MAKE); $(unstage)
85bfb75e 23120 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23121 r=`${PWD_COMMAND}`; export r; \
23122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23123 $(HOST_EXPORTS) \
d32ab992 23124 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23126 done; \
85bfb75e
JM
23127 echo "Doing info in m4" ; \
23128 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23131 "RANLIB=$${RANLIB}" \
901119ae 23132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23133 info) \
1358ccea
NN
23134 || exit 1
23135
85bfb75e 23136@endif m4
1358ccea 23137
85bfb75e
JM
23138.PHONY: maybe-dvi-m4 dvi-m4
23139maybe-dvi-m4:
23140@if m4
23141maybe-dvi-m4: dvi-m4
1358ccea 23142
85bfb75e
JM
23143dvi-m4: \
23144 configure-m4
f41d6665 23145 @: $(MAKE); $(unstage)
85bfb75e 23146 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23147 r=`${PWD_COMMAND}`; export r; \
23148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23149 $(HOST_EXPORTS) \
d32ab992 23150 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23152 done; \
85bfb75e
JM
23153 echo "Doing dvi in m4" ; \
23154 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23157 "RANLIB=$${RANLIB}" \
901119ae 23158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23159 dvi) \
1358ccea
NN
23160 || exit 1
23161
85bfb75e 23162@endif m4
1358ccea 23163
85bfb75e
JM
23164.PHONY: maybe-pdf-m4 pdf-m4
23165maybe-pdf-m4:
23166@if m4
23167maybe-pdf-m4: pdf-m4
b5422ad7 23168
85bfb75e
JM
23169pdf-m4: \
23170 configure-m4
b5422ad7 23171 @: $(MAKE); $(unstage)
85bfb75e 23172 @[ -f ./m4/Makefile ] || exit 0; \
b5422ad7
BM
23173 r=`${PWD_COMMAND}`; export r; \
23174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23175 $(HOST_EXPORTS) \
23176 for flag in $(EXTRA_HOST_FLAGS) ; do \
23177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23178 done; \
85bfb75e
JM
23179 echo "Doing pdf in m4" ; \
23180 (cd $(HOST_SUBDIR)/m4 && \
b5422ad7
BM
23181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23183 "RANLIB=$${RANLIB}" \
901119ae 23184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
23185 pdf) \
23186 || exit 1
23187
85bfb75e 23188@endif m4
b5422ad7 23189
85bfb75e
JM
23190.PHONY: maybe-html-m4 html-m4
23191maybe-html-m4:
23192@if m4
23193maybe-html-m4: html-m4
f87a2b2e 23194
85bfb75e
JM
23195html-m4: \
23196 configure-m4
f41d6665 23197 @: $(MAKE); $(unstage)
85bfb75e 23198 @[ -f ./m4/Makefile ] || exit 0; \
f87a2b2e
MS
23199 r=`${PWD_COMMAND}`; export r; \
23200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23201 $(HOST_EXPORTS) \
23202 for flag in $(EXTRA_HOST_FLAGS) ; do \
23203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23204 done; \
85bfb75e
JM
23205 echo "Doing html in m4" ; \
23206 (cd $(HOST_SUBDIR)/m4 && \
f87a2b2e
MS
23207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23209 "RANLIB=$${RANLIB}" \
901119ae 23210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
23211 html) \
23212 || exit 1
23213
85bfb75e 23214@endif m4
f87a2b2e 23215
85bfb75e
JM
23216.PHONY: maybe-TAGS-m4 TAGS-m4
23217maybe-TAGS-m4:
23218@if m4
23219maybe-TAGS-m4: TAGS-m4
1358ccea 23220
85bfb75e
JM
23221TAGS-m4: \
23222 configure-m4
f41d6665 23223 @: $(MAKE); $(unstage)
85bfb75e 23224 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23225 r=`${PWD_COMMAND}`; export r; \
23226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23227 $(HOST_EXPORTS) \
d32ab992 23228 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23230 done; \
85bfb75e
JM
23231 echo "Doing TAGS in m4" ; \
23232 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23235 "RANLIB=$${RANLIB}" \
901119ae 23236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23237 TAGS) \
1358ccea
NN
23238 || exit 1
23239
85bfb75e 23240@endif m4
1358ccea 23241
85bfb75e
JM
23242.PHONY: maybe-install-info-m4 install-info-m4
23243maybe-install-info-m4:
23244@if m4
23245maybe-install-info-m4: install-info-m4
1358ccea 23246
85bfb75e
JM
23247install-info-m4: \
23248 configure-m4 \
23249 info-m4
f41d6665 23250 @: $(MAKE); $(unstage)
85bfb75e 23251 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23252 r=`${PWD_COMMAND}`; export r; \
23253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23254 $(HOST_EXPORTS) \
d32ab992 23255 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23257 done; \
85bfb75e
JM
23258 echo "Doing install-info in m4" ; \
23259 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23262 "RANLIB=$${RANLIB}" \
901119ae 23263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23264 install-info) \
1358ccea
NN
23265 || exit 1
23266
85bfb75e 23267@endif m4
1358ccea 23268
85bfb75e
JM
23269.PHONY: maybe-install-pdf-m4 install-pdf-m4
23270maybe-install-pdf-m4:
23271@if m4
23272maybe-install-pdf-m4: install-pdf-m4
9c4d2493 23273
85bfb75e
JM
23274install-pdf-m4: \
23275 configure-m4 \
23276 pdf-m4
9c4d2493 23277 @: $(MAKE); $(unstage)
85bfb75e 23278 @[ -f ./m4/Makefile ] || exit 0; \
9c4d2493
BM
23279 r=`${PWD_COMMAND}`; export r; \
23280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23281 $(HOST_EXPORTS) \
23282 for flag in $(EXTRA_HOST_FLAGS) ; do \
23283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23284 done; \
85bfb75e
JM
23285 echo "Doing install-pdf in m4" ; \
23286 (cd $(HOST_SUBDIR)/m4 && \
9c4d2493
BM
23287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23289 "RANLIB=$${RANLIB}" \
901119ae 23290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
23291 install-pdf) \
23292 || exit 1
23293
85bfb75e 23294@endif m4
9c4d2493 23295
85bfb75e
JM
23296.PHONY: maybe-install-html-m4 install-html-m4
23297maybe-install-html-m4:
23298@if m4
23299maybe-install-html-m4: install-html-m4
65d6e994 23300
85bfb75e
JM
23301install-html-m4: \
23302 configure-m4 \
23303 html-m4
65d6e994 23304 @: $(MAKE); $(unstage)
85bfb75e 23305 @[ -f ./m4/Makefile ] || exit 0; \
65d6e994
CD
23306 r=`${PWD_COMMAND}`; export r; \
23307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23308 $(HOST_EXPORTS) \
23309 for flag in $(EXTRA_HOST_FLAGS) ; do \
23310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23311 done; \
85bfb75e
JM
23312 echo "Doing install-html in m4" ; \
23313 (cd $(HOST_SUBDIR)/m4 && \
65d6e994
CD
23314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23316 "RANLIB=$${RANLIB}" \
901119ae 23317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
23318 install-html) \
23319 || exit 1
23320
85bfb75e 23321@endif m4
65d6e994 23322
85bfb75e
JM
23323.PHONY: maybe-installcheck-m4 installcheck-m4
23324maybe-installcheck-m4:
23325@if m4
23326maybe-installcheck-m4: installcheck-m4
1358ccea 23327
85bfb75e
JM
23328installcheck-m4: \
23329 configure-m4
f41d6665 23330 @: $(MAKE); $(unstage)
85bfb75e 23331 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23332 r=`${PWD_COMMAND}`; export r; \
23333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23334 $(HOST_EXPORTS) \
d32ab992 23335 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23337 done; \
85bfb75e
JM
23338 echo "Doing installcheck in m4" ; \
23339 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23342 "RANLIB=$${RANLIB}" \
901119ae 23343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23344 installcheck) \
1358ccea
NN
23345 || exit 1
23346
85bfb75e 23347@endif m4
1358ccea 23348
85bfb75e
JM
23349.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
23350maybe-mostlyclean-m4:
23351@if m4
23352maybe-mostlyclean-m4: mostlyclean-m4
1358ccea 23353
85bfb75e 23354mostlyclean-m4:
f41d6665 23355 @: $(MAKE); $(unstage)
85bfb75e 23356 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23357 r=`${PWD_COMMAND}`; export r; \
23358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23359 $(HOST_EXPORTS) \
d32ab992 23360 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23362 done; \
85bfb75e
JM
23363 echo "Doing mostlyclean in m4" ; \
23364 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23367 "RANLIB=$${RANLIB}" \
901119ae 23368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23369 mostlyclean) \
1358ccea
NN
23370 || exit 1
23371
85bfb75e 23372@endif m4
1358ccea 23373
85bfb75e
JM
23374.PHONY: maybe-clean-m4 clean-m4
23375maybe-clean-m4:
23376@if m4
23377maybe-clean-m4: clean-m4
1358ccea 23378
85bfb75e 23379clean-m4:
f41d6665 23380 @: $(MAKE); $(unstage)
85bfb75e 23381 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23382 r=`${PWD_COMMAND}`; export r; \
23383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23384 $(HOST_EXPORTS) \
d32ab992 23385 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23387 done; \
85bfb75e
JM
23388 echo "Doing clean in m4" ; \
23389 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23392 "RANLIB=$${RANLIB}" \
901119ae 23393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23394 clean) \
1358ccea
NN
23395 || exit 1
23396
85bfb75e 23397@endif m4
1358ccea 23398
85bfb75e
JM
23399.PHONY: maybe-distclean-m4 distclean-m4
23400maybe-distclean-m4:
23401@if m4
23402maybe-distclean-m4: distclean-m4
1358ccea 23403
85bfb75e 23404distclean-m4:
f41d6665 23405 @: $(MAKE); $(unstage)
85bfb75e 23406 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23407 r=`${PWD_COMMAND}`; export r; \
23408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23409 $(HOST_EXPORTS) \
d32ab992 23410 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23412 done; \
85bfb75e
JM
23413 echo "Doing distclean in m4" ; \
23414 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23417 "RANLIB=$${RANLIB}" \
901119ae 23418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23419 distclean) \
1358ccea
NN
23420 || exit 1
23421
85bfb75e 23422@endif m4
1358ccea 23423
85bfb75e
JM
23424.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
23425maybe-maintainer-clean-m4:
23426@if m4
23427maybe-maintainer-clean-m4: maintainer-clean-m4
1358ccea 23428
85bfb75e 23429maintainer-clean-m4:
f41d6665 23430 @: $(MAKE); $(unstage)
85bfb75e 23431 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
23432 r=`${PWD_COMMAND}`; export r; \
23433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23434 $(HOST_EXPORTS) \
d32ab992 23435 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23437 done; \
85bfb75e
JM
23438 echo "Doing maintainer-clean in m4" ; \
23439 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
23440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23442 "RANLIB=$${RANLIB}" \
901119ae 23443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23444 maintainer-clean) \
295f4e42
NN
23445 || exit 1
23446
85bfb75e 23447@endif m4
295f4e42
NN
23448
23449
25b42232 23450
85bfb75e
JM
23451.PHONY: configure-readline maybe-configure-readline
23452maybe-configure-readline:
3ff3adad 23453@if gcc-bootstrap
85bfb75e 23454configure-readline: stage_current
3ff3adad 23455@endif gcc-bootstrap
85bfb75e
JM
23456@if readline
23457maybe-configure-readline: configure-readline
23458configure-readline:
f41d6665 23459 @: $(MAKE); $(unstage)
cc11cc9b 23460 @r=`${PWD_COMMAND}`; export r; \
295f4e42 23461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
23462 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
23463 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
f61428ed 23464 $(HOST_EXPORTS) \
85bfb75e
JM
23465 echo Configuring in $(HOST_SUBDIR)/readline; \
23466 cd "$(HOST_SUBDIR)/readline" || exit 1; \
295f4e42 23467 case $(srcdir) in \
215c351a 23468 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 23469 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
215c351a 23470 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 23471 esac; \
85bfb75e
JM
23472 srcdiroption="--srcdir=$${topdir}/readline"; \
23473 libsrcdir="$$s/readline"; \
295f4e42 23474 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
23475 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23476 --target=${target_alias} $${srcdiroption} \
1358ccea 23477 || exit 1
85bfb75e 23478@endif readline
1358ccea 23479
25b42232
PB
23480
23481
ce406537
PB
23482
23483
85bfb75e
JM
23484.PHONY: all-readline maybe-all-readline
23485maybe-all-readline:
3ff3adad 23486@if gcc-bootstrap
85bfb75e 23487all-readline: stage_current
3ff3adad 23488@endif gcc-bootstrap
85bfb75e
JM
23489@if readline
23490TARGET-readline=all
23491maybe-all-readline: all-readline
23492all-readline: configure-readline
f41d6665 23493 @: $(MAKE); $(unstage)
295f4e42 23494 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 23496 $(HOST_EXPORTS) \
85bfb75e 23497 (cd $(HOST_SUBDIR)/readline && \
1c8bd6a3 23498 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
23499 $(TARGET-readline))
23500@endif readline
1358ccea 23501
25b42232 23502
ce406537
PB
23503
23504
85bfb75e
JM
23505.PHONY: check-readline maybe-check-readline
23506maybe-check-readline:
23507@if readline
23508maybe-check-readline: check-readline
1358ccea 23509
85bfb75e 23510check-readline:
f41d6665 23511 @: $(MAKE); $(unstage)
295f4e42 23512 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23514 $(HOST_EXPORTS) \
85bfb75e 23515 (cd $(HOST_SUBDIR)/readline && \
215c351a 23516 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 23517
85bfb75e 23518@endif readline
1358ccea 23519
85bfb75e
JM
23520.PHONY: install-readline maybe-install-readline
23521maybe-install-readline:
23522@if readline
23523maybe-install-readline: install-readline
1358ccea 23524
85bfb75e 23525install-readline: installdirs
f41d6665 23526 @: $(MAKE); $(unstage)
295f4e42 23527 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23529 $(HOST_EXPORTS) \
85bfb75e 23530 (cd $(HOST_SUBDIR)/readline && \
ace9ac7b 23531 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 23532
85bfb75e 23533@endif readline
455c8f48 23534
85bfb75e
JM
23535.PHONY: install-strip-readline maybe-install-strip-readline
23536maybe-install-strip-readline:
23537@if readline
23538maybe-install-strip-readline: install-strip-readline
23539
23540install-strip-readline: installdirs
455c8f48
RW
23541 @: $(MAKE); $(unstage)
23542 @r=`${PWD_COMMAND}`; export r; \
23543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23544 $(HOST_EXPORTS) \
85bfb75e 23545 (cd $(HOST_SUBDIR)/readline && \
455c8f48
RW
23546 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23547
85bfb75e 23548@endif readline
455c8f48 23549
b5422ad7 23550# Other targets (info, dvi, pdf, etc.)
1358ccea 23551
85bfb75e
JM
23552.PHONY: maybe-info-readline info-readline
23553maybe-info-readline:
23554@if readline
23555maybe-info-readline: info-readline
295f4e42 23556
85bfb75e
JM
23557info-readline: \
23558 configure-readline
f41d6665 23559 @: $(MAKE); $(unstage)
85bfb75e 23560 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23561 r=`${PWD_COMMAND}`; export r; \
23562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23563 $(HOST_EXPORTS) \
d32ab992 23564 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23566 done; \
85bfb75e
JM
23567 echo "Doing info in readline" ; \
23568 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23571 "RANLIB=$${RANLIB}" \
901119ae 23572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23573 info) \
1358ccea
NN
23574 || exit 1
23575
85bfb75e 23576@endif readline
1358ccea 23577
85bfb75e
JM
23578.PHONY: maybe-dvi-readline dvi-readline
23579maybe-dvi-readline:
23580@if readline
23581maybe-dvi-readline: dvi-readline
1358ccea 23582
85bfb75e
JM
23583dvi-readline: \
23584 configure-readline
f41d6665 23585 @: $(MAKE); $(unstage)
85bfb75e 23586 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23587 r=`${PWD_COMMAND}`; export r; \
23588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23589 $(HOST_EXPORTS) \
d32ab992 23590 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23592 done; \
85bfb75e
JM
23593 echo "Doing dvi in readline" ; \
23594 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23597 "RANLIB=$${RANLIB}" \
901119ae 23598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23599 dvi) \
1358ccea
NN
23600 || exit 1
23601
85bfb75e 23602@endif readline
1358ccea 23603
85bfb75e
JM
23604.PHONY: maybe-pdf-readline pdf-readline
23605maybe-pdf-readline:
23606@if readline
23607maybe-pdf-readline: pdf-readline
b5422ad7 23608
85bfb75e
JM
23609pdf-readline: \
23610 configure-readline
b5422ad7 23611 @: $(MAKE); $(unstage)
85bfb75e 23612 @[ -f ./readline/Makefile ] || exit 0; \
b5422ad7
BM
23613 r=`${PWD_COMMAND}`; export r; \
23614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23615 $(HOST_EXPORTS) \
23616 for flag in $(EXTRA_HOST_FLAGS) ; do \
23617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23618 done; \
85bfb75e
JM
23619 echo "Doing pdf in readline" ; \
23620 (cd $(HOST_SUBDIR)/readline && \
b5422ad7
BM
23621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23623 "RANLIB=$${RANLIB}" \
901119ae 23624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
23625 pdf) \
23626 || exit 1
23627
85bfb75e 23628@endif readline
b5422ad7 23629
85bfb75e
JM
23630.PHONY: maybe-html-readline html-readline
23631maybe-html-readline:
23632@if readline
23633maybe-html-readline: html-readline
f87a2b2e 23634
85bfb75e
JM
23635html-readline: \
23636 configure-readline
f41d6665 23637 @: $(MAKE); $(unstage)
85bfb75e 23638 @[ -f ./readline/Makefile ] || exit 0; \
f87a2b2e
MS
23639 r=`${PWD_COMMAND}`; export r; \
23640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23641 $(HOST_EXPORTS) \
23642 for flag in $(EXTRA_HOST_FLAGS) ; do \
23643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23644 done; \
85bfb75e
JM
23645 echo "Doing html in readline" ; \
23646 (cd $(HOST_SUBDIR)/readline && \
f87a2b2e
MS
23647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23649 "RANLIB=$${RANLIB}" \
901119ae 23650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
23651 html) \
23652 || exit 1
23653
85bfb75e 23654@endif readline
f87a2b2e 23655
85bfb75e
JM
23656.PHONY: maybe-TAGS-readline TAGS-readline
23657maybe-TAGS-readline:
23658@if readline
23659maybe-TAGS-readline: TAGS-readline
1358ccea 23660
85bfb75e
JM
23661TAGS-readline: \
23662 configure-readline
f41d6665 23663 @: $(MAKE); $(unstage)
85bfb75e 23664 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23665 r=`${PWD_COMMAND}`; export r; \
23666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23667 $(HOST_EXPORTS) \
d32ab992 23668 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23670 done; \
85bfb75e
JM
23671 echo "Doing TAGS in readline" ; \
23672 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23675 "RANLIB=$${RANLIB}" \
901119ae 23676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23677 TAGS) \
1358ccea
NN
23678 || exit 1
23679
85bfb75e 23680@endif readline
1358ccea 23681
85bfb75e
JM
23682.PHONY: maybe-install-info-readline install-info-readline
23683maybe-install-info-readline:
23684@if readline
23685maybe-install-info-readline: install-info-readline
1358ccea 23686
85bfb75e
JM
23687install-info-readline: \
23688 configure-readline \
23689 info-readline
f41d6665 23690 @: $(MAKE); $(unstage)
85bfb75e 23691 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23692 r=`${PWD_COMMAND}`; export r; \
23693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23694 $(HOST_EXPORTS) \
d32ab992 23695 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23697 done; \
85bfb75e
JM
23698 echo "Doing install-info in readline" ; \
23699 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23702 "RANLIB=$${RANLIB}" \
901119ae 23703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23704 install-info) \
1358ccea
NN
23705 || exit 1
23706
85bfb75e 23707@endif readline
1358ccea 23708
85bfb75e
JM
23709.PHONY: maybe-install-pdf-readline install-pdf-readline
23710maybe-install-pdf-readline:
23711@if readline
23712maybe-install-pdf-readline: install-pdf-readline
9c4d2493 23713
85bfb75e
JM
23714install-pdf-readline: \
23715 configure-readline \
23716 pdf-readline
9c4d2493 23717 @: $(MAKE); $(unstage)
85bfb75e 23718 @[ -f ./readline/Makefile ] || exit 0; \
9c4d2493
BM
23719 r=`${PWD_COMMAND}`; export r; \
23720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23721 $(HOST_EXPORTS) \
23722 for flag in $(EXTRA_HOST_FLAGS) ; do \
23723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23724 done; \
85bfb75e
JM
23725 echo "Doing install-pdf in readline" ; \
23726 (cd $(HOST_SUBDIR)/readline && \
9c4d2493
BM
23727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23729 "RANLIB=$${RANLIB}" \
901119ae 23730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
23731 install-pdf) \
23732 || exit 1
23733
85bfb75e 23734@endif readline
9c4d2493 23735
85bfb75e
JM
23736.PHONY: maybe-install-html-readline install-html-readline
23737maybe-install-html-readline:
23738@if readline
23739maybe-install-html-readline: install-html-readline
65d6e994 23740
85bfb75e
JM
23741install-html-readline: \
23742 configure-readline \
23743 html-readline
65d6e994 23744 @: $(MAKE); $(unstage)
85bfb75e 23745 @[ -f ./readline/Makefile ] || exit 0; \
65d6e994
CD
23746 r=`${PWD_COMMAND}`; export r; \
23747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23748 $(HOST_EXPORTS) \
23749 for flag in $(EXTRA_HOST_FLAGS) ; do \
23750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23751 done; \
85bfb75e
JM
23752 echo "Doing install-html in readline" ; \
23753 (cd $(HOST_SUBDIR)/readline && \
65d6e994
CD
23754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23756 "RANLIB=$${RANLIB}" \
901119ae 23757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
23758 install-html) \
23759 || exit 1
23760
85bfb75e 23761@endif readline
65d6e994 23762
85bfb75e
JM
23763.PHONY: maybe-installcheck-readline installcheck-readline
23764maybe-installcheck-readline:
23765@if readline
23766maybe-installcheck-readline: installcheck-readline
1358ccea 23767
85bfb75e
JM
23768installcheck-readline: \
23769 configure-readline
f41d6665 23770 @: $(MAKE); $(unstage)
85bfb75e 23771 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23772 r=`${PWD_COMMAND}`; export r; \
23773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23774 $(HOST_EXPORTS) \
d32ab992 23775 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23777 done; \
85bfb75e
JM
23778 echo "Doing installcheck in readline" ; \
23779 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23782 "RANLIB=$${RANLIB}" \
901119ae 23783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23784 installcheck) \
1358ccea
NN
23785 || exit 1
23786
85bfb75e 23787@endif readline
1358ccea 23788
85bfb75e
JM
23789.PHONY: maybe-mostlyclean-readline mostlyclean-readline
23790maybe-mostlyclean-readline:
23791@if readline
23792maybe-mostlyclean-readline: mostlyclean-readline
1358ccea 23793
85bfb75e 23794mostlyclean-readline:
f41d6665 23795 @: $(MAKE); $(unstage)
85bfb75e 23796 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23797 r=`${PWD_COMMAND}`; export r; \
23798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23799 $(HOST_EXPORTS) \
d32ab992 23800 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23802 done; \
85bfb75e
JM
23803 echo "Doing mostlyclean in readline" ; \
23804 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23807 "RANLIB=$${RANLIB}" \
901119ae 23808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23809 mostlyclean) \
1358ccea
NN
23810 || exit 1
23811
85bfb75e 23812@endif readline
1358ccea 23813
85bfb75e
JM
23814.PHONY: maybe-clean-readline clean-readline
23815maybe-clean-readline:
23816@if readline
23817maybe-clean-readline: clean-readline
1358ccea 23818
85bfb75e 23819clean-readline:
f41d6665 23820 @: $(MAKE); $(unstage)
85bfb75e 23821 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23822 r=`${PWD_COMMAND}`; export r; \
23823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23824 $(HOST_EXPORTS) \
d32ab992 23825 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23827 done; \
85bfb75e
JM
23828 echo "Doing clean in readline" ; \
23829 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23832 "RANLIB=$${RANLIB}" \
901119ae 23833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23834 clean) \
1358ccea
NN
23835 || exit 1
23836
85bfb75e 23837@endif readline
1358ccea 23838
85bfb75e
JM
23839.PHONY: maybe-distclean-readline distclean-readline
23840maybe-distclean-readline:
23841@if readline
23842maybe-distclean-readline: distclean-readline
1358ccea 23843
85bfb75e 23844distclean-readline:
f41d6665 23845 @: $(MAKE); $(unstage)
85bfb75e 23846 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23847 r=`${PWD_COMMAND}`; export r; \
23848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23849 $(HOST_EXPORTS) \
d32ab992 23850 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23852 done; \
85bfb75e
JM
23853 echo "Doing distclean in readline" ; \
23854 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23857 "RANLIB=$${RANLIB}" \
901119ae 23858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23859 distclean) \
1358ccea
NN
23860 || exit 1
23861
85bfb75e 23862@endif readline
1358ccea 23863
85bfb75e
JM
23864.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
23865maybe-maintainer-clean-readline:
23866@if readline
23867maybe-maintainer-clean-readline: maintainer-clean-readline
1358ccea 23868
85bfb75e 23869maintainer-clean-readline:
f41d6665 23870 @: $(MAKE); $(unstage)
85bfb75e 23871 @[ -f ./readline/Makefile ] || exit 0; \
8c90b13a
L
23872 r=`${PWD_COMMAND}`; export r; \
23873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23874 $(HOST_EXPORTS) \
d32ab992 23875 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
23876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23877 done; \
85bfb75e
JM
23878 echo "Doing maintainer-clean in readline" ; \
23879 (cd $(HOST_SUBDIR)/readline && \
1358ccea
NN
23880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23882 "RANLIB=$${RANLIB}" \
901119ae 23883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 23884 maintainer-clean) \
1358ccea
NN
23885 || exit 1
23886
85bfb75e 23887@endif readline
1358ccea 23888
1358ccea 23889
25b42232 23890
85bfb75e
JM
23891.PHONY: configure-sid maybe-configure-sid
23892maybe-configure-sid:
3ff3adad 23893@if gcc-bootstrap
85bfb75e 23894configure-sid: stage_current
3ff3adad 23895@endif gcc-bootstrap
85bfb75e
JM
23896@if sid
23897maybe-configure-sid: configure-sid
23898configure-sid:
f41d6665 23899 @: $(MAKE); $(unstage)
cc11cc9b 23900 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
23902 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
23903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
f61428ed 23904 $(HOST_EXPORTS) \
85bfb75e
JM
23905 echo Configuring in $(HOST_SUBDIR)/sid; \
23906 cd "$(HOST_SUBDIR)/sid" || exit 1; \
295f4e42 23907 case $(srcdir) in \
215c351a 23908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 23909 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
215c351a 23910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 23911 esac; \
85bfb75e
JM
23912 srcdiroption="--srcdir=$${topdir}/sid"; \
23913 libsrcdir="$$s/sid"; \
295f4e42 23914 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
23915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23916 --target=${target_alias} $${srcdiroption} \
1358ccea 23917 || exit 1
85bfb75e 23918@endif sid
1358ccea 23919
25b42232
PB
23920
23921
ce406537
PB
23922
23923
85bfb75e
JM
23924.PHONY: all-sid maybe-all-sid
23925maybe-all-sid:
3ff3adad 23926@if gcc-bootstrap
85bfb75e 23927all-sid: stage_current
3ff3adad 23928@endif gcc-bootstrap
85bfb75e
JM
23929@if sid
23930TARGET-sid=all
23931maybe-all-sid: all-sid
23932all-sid: configure-sid
f41d6665 23933 @: $(MAKE); $(unstage)
295f4e42
NN
23934 @r=`${PWD_COMMAND}`; export r; \
23935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 23936 $(HOST_EXPORTS) \
85bfb75e 23937 (cd $(HOST_SUBDIR)/sid && \
1c8bd6a3 23938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
23939 $(TARGET-sid))
23940@endif sid
1358ccea 23941
25b42232 23942
ce406537
PB
23943
23944
85bfb75e
JM
23945.PHONY: check-sid maybe-check-sid
23946maybe-check-sid:
23947@if sid
23948maybe-check-sid: check-sid
1358ccea 23949
85bfb75e 23950check-sid:
f41d6665 23951 @: $(MAKE); $(unstage)
295f4e42 23952 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23954 $(HOST_EXPORTS) \
85bfb75e 23955 (cd $(HOST_SUBDIR)/sid && \
215c351a 23956 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 23957
85bfb75e 23958@endif sid
1358ccea 23959
85bfb75e
JM
23960.PHONY: install-sid maybe-install-sid
23961maybe-install-sid:
23962@if sid
23963maybe-install-sid: install-sid
1358ccea 23964
85bfb75e 23965install-sid: installdirs
f41d6665 23966 @: $(MAKE); $(unstage)
295f4e42 23967 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23969 $(HOST_EXPORTS) \
85bfb75e 23970 (cd $(HOST_SUBDIR)/sid && \
ace9ac7b 23971 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 23972
85bfb75e 23973@endif sid
1358ccea 23974
85bfb75e
JM
23975.PHONY: install-strip-sid maybe-install-strip-sid
23976maybe-install-strip-sid:
23977@if sid
23978maybe-install-strip-sid: install-strip-sid
455c8f48 23979
85bfb75e 23980install-strip-sid: installdirs
455c8f48
RW
23981 @: $(MAKE); $(unstage)
23982 @r=`${PWD_COMMAND}`; export r; \
23983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23984 $(HOST_EXPORTS) \
85bfb75e 23985 (cd $(HOST_SUBDIR)/sid && \
455c8f48
RW
23986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23987
85bfb75e 23988@endif sid
455c8f48 23989
b5422ad7 23990# Other targets (info, dvi, pdf, etc.)
1358ccea 23991
85bfb75e
JM
23992.PHONY: maybe-info-sid info-sid
23993maybe-info-sid:
23994@if sid
23995maybe-info-sid: info-sid
295f4e42 23996
85bfb75e
JM
23997info-sid: \
23998 configure-sid
f41d6665 23999 @: $(MAKE); $(unstage)
85bfb75e 24000 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24001 r=`${PWD_COMMAND}`; export r; \
24002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24003 $(HOST_EXPORTS) \
d32ab992 24004 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24006 done; \
85bfb75e
JM
24007 echo "Doing info in sid" ; \
24008 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24011 "RANLIB=$${RANLIB}" \
901119ae 24012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24013 info) \
1358ccea
NN
24014 || exit 1
24015
85bfb75e 24016@endif sid
1358ccea 24017
85bfb75e
JM
24018.PHONY: maybe-dvi-sid dvi-sid
24019maybe-dvi-sid:
24020@if sid
24021maybe-dvi-sid: dvi-sid
1358ccea 24022
85bfb75e
JM
24023dvi-sid: \
24024 configure-sid
f41d6665 24025 @: $(MAKE); $(unstage)
85bfb75e 24026 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24027 r=`${PWD_COMMAND}`; export r; \
24028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24029 $(HOST_EXPORTS) \
d32ab992 24030 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24032 done; \
85bfb75e
JM
24033 echo "Doing dvi in sid" ; \
24034 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24037 "RANLIB=$${RANLIB}" \
901119ae 24038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24039 dvi) \
1358ccea
NN
24040 || exit 1
24041
85bfb75e 24042@endif sid
1358ccea 24043
85bfb75e
JM
24044.PHONY: maybe-pdf-sid pdf-sid
24045maybe-pdf-sid:
24046@if sid
24047maybe-pdf-sid: pdf-sid
b5422ad7 24048
85bfb75e
JM
24049pdf-sid: \
24050 configure-sid
b5422ad7 24051 @: $(MAKE); $(unstage)
85bfb75e 24052 @[ -f ./sid/Makefile ] || exit 0; \
b5422ad7
BM
24053 r=`${PWD_COMMAND}`; export r; \
24054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24055 $(HOST_EXPORTS) \
24056 for flag in $(EXTRA_HOST_FLAGS) ; do \
24057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24058 done; \
85bfb75e
JM
24059 echo "Doing pdf in sid" ; \
24060 (cd $(HOST_SUBDIR)/sid && \
b5422ad7
BM
24061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24063 "RANLIB=$${RANLIB}" \
901119ae 24064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
24065 pdf) \
24066 || exit 1
24067
85bfb75e 24068@endif sid
b5422ad7 24069
85bfb75e
JM
24070.PHONY: maybe-html-sid html-sid
24071maybe-html-sid:
24072@if sid
24073maybe-html-sid: html-sid
f87a2b2e 24074
85bfb75e
JM
24075html-sid: \
24076 configure-sid
f41d6665 24077 @: $(MAKE); $(unstage)
85bfb75e 24078 @[ -f ./sid/Makefile ] || exit 0; \
f87a2b2e
MS
24079 r=`${PWD_COMMAND}`; export r; \
24080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24081 $(HOST_EXPORTS) \
24082 for flag in $(EXTRA_HOST_FLAGS) ; do \
24083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24084 done; \
85bfb75e
JM
24085 echo "Doing html in sid" ; \
24086 (cd $(HOST_SUBDIR)/sid && \
f87a2b2e
MS
24087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24089 "RANLIB=$${RANLIB}" \
901119ae 24090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
24091 html) \
24092 || exit 1
24093
85bfb75e 24094@endif sid
f87a2b2e 24095
85bfb75e
JM
24096.PHONY: maybe-TAGS-sid TAGS-sid
24097maybe-TAGS-sid:
24098@if sid
24099maybe-TAGS-sid: TAGS-sid
1358ccea 24100
85bfb75e
JM
24101TAGS-sid: \
24102 configure-sid
f41d6665 24103 @: $(MAKE); $(unstage)
85bfb75e 24104 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24105 r=`${PWD_COMMAND}`; export r; \
24106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24107 $(HOST_EXPORTS) \
d32ab992 24108 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24110 done; \
85bfb75e
JM
24111 echo "Doing TAGS in sid" ; \
24112 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24115 "RANLIB=$${RANLIB}" \
901119ae 24116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24117 TAGS) \
1358ccea
NN
24118 || exit 1
24119
85bfb75e 24120@endif sid
1358ccea 24121
85bfb75e
JM
24122.PHONY: maybe-install-info-sid install-info-sid
24123maybe-install-info-sid:
24124@if sid
24125maybe-install-info-sid: install-info-sid
1358ccea 24126
85bfb75e
JM
24127install-info-sid: \
24128 configure-sid \
24129 info-sid
f41d6665 24130 @: $(MAKE); $(unstage)
85bfb75e 24131 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24132 r=`${PWD_COMMAND}`; export r; \
24133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24134 $(HOST_EXPORTS) \
d32ab992 24135 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24137 done; \
85bfb75e
JM
24138 echo "Doing install-info in sid" ; \
24139 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24142 "RANLIB=$${RANLIB}" \
901119ae 24143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24144 install-info) \
1358ccea
NN
24145 || exit 1
24146
85bfb75e 24147@endif sid
1358ccea 24148
85bfb75e
JM
24149.PHONY: maybe-install-pdf-sid install-pdf-sid
24150maybe-install-pdf-sid:
24151@if sid
24152maybe-install-pdf-sid: install-pdf-sid
9c4d2493 24153
85bfb75e
JM
24154install-pdf-sid: \
24155 configure-sid \
24156 pdf-sid
9c4d2493 24157 @: $(MAKE); $(unstage)
85bfb75e 24158 @[ -f ./sid/Makefile ] || exit 0; \
9c4d2493
BM
24159 r=`${PWD_COMMAND}`; export r; \
24160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24161 $(HOST_EXPORTS) \
24162 for flag in $(EXTRA_HOST_FLAGS) ; do \
24163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24164 done; \
85bfb75e
JM
24165 echo "Doing install-pdf in sid" ; \
24166 (cd $(HOST_SUBDIR)/sid && \
9c4d2493
BM
24167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24169 "RANLIB=$${RANLIB}" \
901119ae 24170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
24171 install-pdf) \
24172 || exit 1
24173
85bfb75e 24174@endif sid
9c4d2493 24175
85bfb75e
JM
24176.PHONY: maybe-install-html-sid install-html-sid
24177maybe-install-html-sid:
24178@if sid
24179maybe-install-html-sid: install-html-sid
65d6e994 24180
85bfb75e
JM
24181install-html-sid: \
24182 configure-sid \
24183 html-sid
65d6e994 24184 @: $(MAKE); $(unstage)
85bfb75e 24185 @[ -f ./sid/Makefile ] || exit 0; \
65d6e994
CD
24186 r=`${PWD_COMMAND}`; export r; \
24187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24188 $(HOST_EXPORTS) \
24189 for flag in $(EXTRA_HOST_FLAGS) ; do \
24190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24191 done; \
85bfb75e
JM
24192 echo "Doing install-html in sid" ; \
24193 (cd $(HOST_SUBDIR)/sid && \
65d6e994
CD
24194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24196 "RANLIB=$${RANLIB}" \
901119ae 24197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
24198 install-html) \
24199 || exit 1
24200
85bfb75e 24201@endif sid
65d6e994 24202
85bfb75e
JM
24203.PHONY: maybe-installcheck-sid installcheck-sid
24204maybe-installcheck-sid:
24205@if sid
24206maybe-installcheck-sid: installcheck-sid
1358ccea 24207
85bfb75e
JM
24208installcheck-sid: \
24209 configure-sid
f41d6665 24210 @: $(MAKE); $(unstage)
85bfb75e 24211 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24212 r=`${PWD_COMMAND}`; export r; \
24213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24214 $(HOST_EXPORTS) \
d32ab992 24215 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24217 done; \
85bfb75e
JM
24218 echo "Doing installcheck in sid" ; \
24219 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24222 "RANLIB=$${RANLIB}" \
901119ae 24223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24224 installcheck) \
1358ccea
NN
24225 || exit 1
24226
85bfb75e 24227@endif sid
1358ccea 24228
85bfb75e
JM
24229.PHONY: maybe-mostlyclean-sid mostlyclean-sid
24230maybe-mostlyclean-sid:
24231@if sid
24232maybe-mostlyclean-sid: mostlyclean-sid
1358ccea 24233
85bfb75e 24234mostlyclean-sid:
f41d6665 24235 @: $(MAKE); $(unstage)
85bfb75e 24236 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24237 r=`${PWD_COMMAND}`; export r; \
24238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24239 $(HOST_EXPORTS) \
d32ab992 24240 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24242 done; \
85bfb75e
JM
24243 echo "Doing mostlyclean in sid" ; \
24244 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24247 "RANLIB=$${RANLIB}" \
901119ae 24248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24249 mostlyclean) \
1358ccea
NN
24250 || exit 1
24251
85bfb75e 24252@endif sid
1358ccea 24253
85bfb75e
JM
24254.PHONY: maybe-clean-sid clean-sid
24255maybe-clean-sid:
24256@if sid
24257maybe-clean-sid: clean-sid
1358ccea 24258
85bfb75e 24259clean-sid:
f41d6665 24260 @: $(MAKE); $(unstage)
85bfb75e 24261 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24262 r=`${PWD_COMMAND}`; export r; \
24263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24264 $(HOST_EXPORTS) \
d32ab992 24265 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24267 done; \
85bfb75e
JM
24268 echo "Doing clean in sid" ; \
24269 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24272 "RANLIB=$${RANLIB}" \
901119ae 24273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24274 clean) \
1358ccea
NN
24275 || exit 1
24276
85bfb75e 24277@endif sid
1358ccea 24278
85bfb75e
JM
24279.PHONY: maybe-distclean-sid distclean-sid
24280maybe-distclean-sid:
24281@if sid
24282maybe-distclean-sid: distclean-sid
1358ccea 24283
85bfb75e 24284distclean-sid:
f41d6665 24285 @: $(MAKE); $(unstage)
85bfb75e 24286 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24287 r=`${PWD_COMMAND}`; export r; \
24288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24289 $(HOST_EXPORTS) \
d32ab992 24290 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24292 done; \
85bfb75e
JM
24293 echo "Doing distclean in sid" ; \
24294 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24297 "RANLIB=$${RANLIB}" \
901119ae 24298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24299 distclean) \
1358ccea
NN
24300 || exit 1
24301
85bfb75e 24302@endif sid
1358ccea 24303
85bfb75e
JM
24304.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
24305maybe-maintainer-clean-sid:
24306@if sid
24307maybe-maintainer-clean-sid: maintainer-clean-sid
1358ccea 24308
85bfb75e 24309maintainer-clean-sid:
f41d6665 24310 @: $(MAKE); $(unstage)
85bfb75e 24311 @[ -f ./sid/Makefile ] || exit 0; \
8c90b13a
L
24312 r=`${PWD_COMMAND}`; export r; \
24313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24314 $(HOST_EXPORTS) \
d32ab992 24315 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24317 done; \
85bfb75e
JM
24318 echo "Doing maintainer-clean in sid" ; \
24319 (cd $(HOST_SUBDIR)/sid && \
1358ccea
NN
24320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24322 "RANLIB=$${RANLIB}" \
901119ae 24323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24324 maintainer-clean) \
1358ccea
NN
24325 || exit 1
24326
85bfb75e 24327@endif sid
1358ccea 24328
1358ccea 24329
25b42232 24330
85bfb75e
JM
24331.PHONY: configure-sim maybe-configure-sim
24332maybe-configure-sim:
3ff3adad 24333@if gcc-bootstrap
85bfb75e 24334configure-sim: stage_current
3ff3adad 24335@endif gcc-bootstrap
85bfb75e
JM
24336@if sim
24337maybe-configure-sim: configure-sim
24338configure-sim:
24339 @: $(MAKE); $(unstage)
cc11cc9b
PB
24340 @r=`${PWD_COMMAND}`; export r; \
24341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
24342 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
24343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
f61428ed 24344 $(HOST_EXPORTS) \
85bfb75e
JM
24345 echo Configuring in $(HOST_SUBDIR)/sim; \
24346 cd "$(HOST_SUBDIR)/sim" || exit 1; \
295f4e42 24347 case $(srcdir) in \
215c351a 24348 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 24349 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
215c351a 24350 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 24351 esac; \
85bfb75e
JM
24352 srcdiroption="--srcdir=$${topdir}/sim"; \
24353 libsrcdir="$$s/sim"; \
295f4e42 24354 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
24355 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24356 --target=${target_alias} $${srcdiroption} \
1358ccea 24357 || exit 1
85bfb75e 24358@endif sim
1358ccea 24359
25b42232
PB
24360
24361
85bfb75e
JM
24362
24363
24364.PHONY: all-sim maybe-all-sim
24365maybe-all-sim:
24366@if gcc-bootstrap
24367all-sim: stage_current
24368@endif gcc-bootstrap
24369@if sim
24370TARGET-sim=all
24371maybe-all-sim: all-sim
24372all-sim: configure-sim
24373 @: $(MAKE); $(unstage)
cc11cc9b
PB
24374 @r=`${PWD_COMMAND}`; export r; \
24375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
24376 $(HOST_EXPORTS) \
24377 (cd $(HOST_SUBDIR)/sim && \
24378 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
24379 $(TARGET-sim))
24380@endif sim
ce406537 24381
85bfb75e
JM
24382
24383
24384
24385.PHONY: check-sim maybe-check-sim
24386maybe-check-sim:
24387@if sim
24388maybe-check-sim: check-sim
24389
24390check-sim:
24391 @: $(MAKE); $(unstage)
cc11cc9b
PB
24392 @r=`${PWD_COMMAND}`; export r; \
24393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 24394 $(HOST_EXPORTS) \
85bfb75e
JM
24395 (cd $(HOST_SUBDIR)/sim && \
24396 $(MAKE) $(FLAGS_TO_PASS) check)
bb286d71 24397
85bfb75e
JM
24398@endif sim
24399
24400.PHONY: install-sim maybe-install-sim
24401maybe-install-sim:
24402@if sim
24403maybe-install-sim: install-sim
24404
24405install-sim: installdirs
24406 @: $(MAKE); $(unstage)
cc11cc9b
PB
24407 @r=`${PWD_COMMAND}`; export r; \
24408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 24409 $(HOST_EXPORTS) \
85bfb75e
JM
24410 (cd $(HOST_SUBDIR)/sim && \
24411 $(MAKE) $(FLAGS_TO_PASS) install)
bb286d71 24412
85bfb75e
JM
24413@endif sim
24414
24415.PHONY: install-strip-sim maybe-install-strip-sim
24416maybe-install-strip-sim:
24417@if sim
24418maybe-install-strip-sim: install-strip-sim
24419
24420install-strip-sim: installdirs
24421 @: $(MAKE); $(unstage)
cc11cc9b
PB
24422 @r=`${PWD_COMMAND}`; export r; \
24423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 24424 $(HOST_EXPORTS) \
85bfb75e
JM
24425 (cd $(HOST_SUBDIR)/sim && \
24426 $(MAKE) $(FLAGS_TO_PASS) install-strip)
ce406537 24427
85bfb75e 24428@endif sim
455c8f48 24429
b5422ad7 24430# Other targets (info, dvi, pdf, etc.)
1358ccea 24431
85bfb75e
JM
24432.PHONY: maybe-info-sim info-sim
24433maybe-info-sim:
24434@if sim
24435maybe-info-sim: info-sim
295f4e42 24436
85bfb75e
JM
24437info-sim: \
24438 configure-sim
24439 @: $(MAKE); $(unstage)
24440 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24441 r=`${PWD_COMMAND}`; export r; \
24442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24443 $(HOST_EXPORTS) \
d32ab992 24444 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24446 done; \
85bfb75e
JM
24447 echo "Doing info in sim" ; \
24448 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24451 "RANLIB=$${RANLIB}" \
901119ae 24452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24453 info) \
1358ccea
NN
24454 || exit 1
24455
85bfb75e 24456@endif sim
1358ccea 24457
85bfb75e
JM
24458.PHONY: maybe-dvi-sim dvi-sim
24459maybe-dvi-sim:
24460@if sim
24461maybe-dvi-sim: dvi-sim
1358ccea 24462
85bfb75e
JM
24463dvi-sim: \
24464 configure-sim
24465 @: $(MAKE); $(unstage)
24466 @[ -f ./sim/Makefile ] || exit 0; \
d32ab992 24467 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24469 $(HOST_EXPORTS) \
d32ab992 24470 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24472 done; \
85bfb75e
JM
24473 echo "Doing dvi in sim" ; \
24474 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24477 "RANLIB=$${RANLIB}" \
901119ae 24478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24479 dvi) \
1358ccea
NN
24480 || exit 1
24481
85bfb75e 24482@endif sim
1358ccea 24483
85bfb75e
JM
24484.PHONY: maybe-pdf-sim pdf-sim
24485maybe-pdf-sim:
24486@if sim
24487maybe-pdf-sim: pdf-sim
b5422ad7 24488
85bfb75e
JM
24489pdf-sim: \
24490 configure-sim
24491 @: $(MAKE); $(unstage)
24492 @[ -f ./sim/Makefile ] || exit 0; \
b5422ad7
BM
24493 r=`${PWD_COMMAND}`; export r; \
24494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24495 $(HOST_EXPORTS) \
24496 for flag in $(EXTRA_HOST_FLAGS) ; do \
24497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24498 done; \
85bfb75e
JM
24499 echo "Doing pdf in sim" ; \
24500 (cd $(HOST_SUBDIR)/sim && \
b5422ad7
BM
24501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24503 "RANLIB=$${RANLIB}" \
901119ae 24504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
24505 pdf) \
24506 || exit 1
24507
85bfb75e 24508@endif sim
b5422ad7 24509
85bfb75e
JM
24510.PHONY: maybe-html-sim html-sim
24511maybe-html-sim:
24512@if sim
24513maybe-html-sim: html-sim
f87a2b2e 24514
85bfb75e
JM
24515html-sim: \
24516 configure-sim
24517 @: $(MAKE); $(unstage)
24518 @[ -f ./sim/Makefile ] || exit 0; \
f87a2b2e
MS
24519 r=`${PWD_COMMAND}`; export r; \
24520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24521 $(HOST_EXPORTS) \
24522 for flag in $(EXTRA_HOST_FLAGS) ; do \
24523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24524 done; \
85bfb75e
JM
24525 echo "Doing html in sim" ; \
24526 (cd $(HOST_SUBDIR)/sim && \
f87a2b2e
MS
24527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24529 "RANLIB=$${RANLIB}" \
901119ae 24530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
24531 html) \
24532 || exit 1
24533
85bfb75e 24534@endif sim
f87a2b2e 24535
85bfb75e
JM
24536.PHONY: maybe-TAGS-sim TAGS-sim
24537maybe-TAGS-sim:
24538@if sim
24539maybe-TAGS-sim: TAGS-sim
1358ccea 24540
85bfb75e
JM
24541TAGS-sim: \
24542 configure-sim
24543 @: $(MAKE); $(unstage)
24544 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24545 r=`${PWD_COMMAND}`; export r; \
24546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24547 $(HOST_EXPORTS) \
d32ab992 24548 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24550 done; \
85bfb75e
JM
24551 echo "Doing TAGS in sim" ; \
24552 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24555 "RANLIB=$${RANLIB}" \
901119ae 24556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24557 TAGS) \
1358ccea
NN
24558 || exit 1
24559
85bfb75e 24560@endif sim
1358ccea 24561
85bfb75e
JM
24562.PHONY: maybe-install-info-sim install-info-sim
24563maybe-install-info-sim:
24564@if sim
24565maybe-install-info-sim: install-info-sim
1358ccea 24566
85bfb75e
JM
24567install-info-sim: \
24568 configure-sim \
24569 info-sim
24570 @: $(MAKE); $(unstage)
24571 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24572 r=`${PWD_COMMAND}`; export r; \
24573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24574 $(HOST_EXPORTS) \
d32ab992 24575 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24577 done; \
85bfb75e
JM
24578 echo "Doing install-info in sim" ; \
24579 (cd $(HOST_SUBDIR)/sim && \
24580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1358ccea
NN
24581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24582 "RANLIB=$${RANLIB}" \
901119ae 24583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24584 install-info) \
1358ccea
NN
24585 || exit 1
24586
85bfb75e 24587@endif sim
1358ccea 24588
85bfb75e
JM
24589.PHONY: maybe-install-pdf-sim install-pdf-sim
24590maybe-install-pdf-sim:
24591@if sim
24592maybe-install-pdf-sim: install-pdf-sim
9c4d2493 24593
85bfb75e
JM
24594install-pdf-sim: \
24595 configure-sim \
24596 pdf-sim
24597 @: $(MAKE); $(unstage)
24598 @[ -f ./sim/Makefile ] || exit 0; \
9c4d2493
BM
24599 r=`${PWD_COMMAND}`; export r; \
24600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24601 $(HOST_EXPORTS) \
24602 for flag in $(EXTRA_HOST_FLAGS) ; do \
24603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24604 done; \
85bfb75e
JM
24605 echo "Doing install-pdf in sim" ; \
24606 (cd $(HOST_SUBDIR)/sim && \
9c4d2493
BM
24607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24609 "RANLIB=$${RANLIB}" \
901119ae 24610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
24611 install-pdf) \
24612 || exit 1
24613
85bfb75e 24614@endif sim
9c4d2493 24615
85bfb75e
JM
24616.PHONY: maybe-install-html-sim install-html-sim
24617maybe-install-html-sim:
24618@if sim
24619maybe-install-html-sim: install-html-sim
65d6e994 24620
85bfb75e
JM
24621install-html-sim: \
24622 configure-sim \
24623 html-sim
24624 @: $(MAKE); $(unstage)
24625 @[ -f ./sim/Makefile ] || exit 0; \
65d6e994
CD
24626 r=`${PWD_COMMAND}`; export r; \
24627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24628 $(HOST_EXPORTS) \
24629 for flag in $(EXTRA_HOST_FLAGS) ; do \
24630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24631 done; \
85bfb75e
JM
24632 echo "Doing install-html in sim" ; \
24633 (cd $(HOST_SUBDIR)/sim && \
65d6e994
CD
24634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24636 "RANLIB=$${RANLIB}" \
901119ae 24637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
24638 install-html) \
24639 || exit 1
24640
85bfb75e 24641@endif sim
65d6e994 24642
85bfb75e
JM
24643.PHONY: maybe-installcheck-sim installcheck-sim
24644maybe-installcheck-sim:
24645@if sim
24646maybe-installcheck-sim: installcheck-sim
1358ccea 24647
85bfb75e
JM
24648installcheck-sim: \
24649 configure-sim
24650 @: $(MAKE); $(unstage)
24651 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24652 r=`${PWD_COMMAND}`; export r; \
24653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24654 $(HOST_EXPORTS) \
d32ab992 24655 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24657 done; \
85bfb75e
JM
24658 echo "Doing installcheck in sim" ; \
24659 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24662 "RANLIB=$${RANLIB}" \
901119ae 24663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24664 installcheck) \
1358ccea
NN
24665 || exit 1
24666
85bfb75e 24667@endif sim
1358ccea 24668
85bfb75e
JM
24669.PHONY: maybe-mostlyclean-sim mostlyclean-sim
24670maybe-mostlyclean-sim:
24671@if sim
24672maybe-mostlyclean-sim: mostlyclean-sim
1358ccea 24673
85bfb75e
JM
24674mostlyclean-sim:
24675 @: $(MAKE); $(unstage)
24676 @[ -f ./sim/Makefile ] || exit 0; \
d32ab992
PB
24677 r=`${PWD_COMMAND}`; export r; \
24678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992
PB
24679 $(HOST_EXPORTS) \
24680 for flag in $(EXTRA_HOST_FLAGS) ; do \
24681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24682 done; \
85bfb75e
JM
24683 echo "Doing mostlyclean in sim" ; \
24684 (cd $(HOST_SUBDIR)/sim && \
d32ab992
PB
24685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24687 "RANLIB=$${RANLIB}" \
901119ae 24688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992
PB
24689 mostlyclean) \
24690 || exit 1
295f4e42 24691
85bfb75e 24692@endif sim
295f4e42 24693
85bfb75e
JM
24694.PHONY: maybe-clean-sim clean-sim
24695maybe-clean-sim:
24696@if sim
24697maybe-clean-sim: clean-sim
295f4e42 24698
85bfb75e
JM
24699clean-sim:
24700 @: $(MAKE); $(unstage)
24701 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24702 r=`${PWD_COMMAND}`; export r; \
24703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24704 $(HOST_EXPORTS) \
d32ab992 24705 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24707 done; \
85bfb75e
JM
24708 echo "Doing clean in sim" ; \
24709 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24712 "RANLIB=$${RANLIB}" \
901119ae 24713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24714 clean) \
1358ccea
NN
24715 || exit 1
24716
85bfb75e 24717@endif sim
1358ccea 24718
85bfb75e
JM
24719.PHONY: maybe-distclean-sim distclean-sim
24720maybe-distclean-sim:
24721@if sim
24722maybe-distclean-sim: distclean-sim
1358ccea 24723
85bfb75e
JM
24724distclean-sim:
24725 @: $(MAKE); $(unstage)
24726 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24727 r=`${PWD_COMMAND}`; export r; \
24728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24729 $(HOST_EXPORTS) \
d32ab992 24730 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24732 done; \
85bfb75e
JM
24733 echo "Doing distclean in sim" ; \
24734 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24737 "RANLIB=$${RANLIB}" \
901119ae 24738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24739 distclean) \
1358ccea
NN
24740 || exit 1
24741
85bfb75e 24742@endif sim
1358ccea 24743
85bfb75e
JM
24744.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
24745maybe-maintainer-clean-sim:
24746@if sim
24747maybe-maintainer-clean-sim: maintainer-clean-sim
1358ccea 24748
85bfb75e
JM
24749maintainer-clean-sim:
24750 @: $(MAKE); $(unstage)
24751 @[ -f ./sim/Makefile ] || exit 0; \
8c90b13a
L
24752 r=`${PWD_COMMAND}`; export r; \
24753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24754 $(HOST_EXPORTS) \
d32ab992 24755 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24757 done; \
85bfb75e
JM
24758 echo "Doing maintainer-clean in sim" ; \
24759 (cd $(HOST_SUBDIR)/sim && \
1358ccea
NN
24760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24762 "RANLIB=$${RANLIB}" \
901119ae 24763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24764 maintainer-clean) \
1358ccea
NN
24765 || exit 1
24766
85bfb75e 24767@endif sim
1358ccea 24768
1358ccea 24769
25b42232 24770
85bfb75e
JM
24771.PHONY: configure-texinfo maybe-configure-texinfo
24772maybe-configure-texinfo:
3ff3adad 24773@if gcc-bootstrap
85bfb75e 24774configure-texinfo: stage_current
3ff3adad 24775@endif gcc-bootstrap
85bfb75e
JM
24776@if texinfo
24777maybe-configure-texinfo: configure-texinfo
24778configure-texinfo:
f41d6665 24779 @: $(MAKE); $(unstage)
cc11cc9b 24780 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
24782 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
24783 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
f61428ed 24784 $(HOST_EXPORTS) \
85bfb75e
JM
24785 echo Configuring in $(HOST_SUBDIR)/texinfo; \
24786 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
295f4e42 24787 case $(srcdir) in \
215c351a 24788 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 24789 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
215c351a 24790 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 24791 esac; \
85bfb75e
JM
24792 srcdiroption="--srcdir=$${topdir}/texinfo"; \
24793 libsrcdir="$$s/texinfo"; \
295f4e42 24794 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
24795 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24796 --target=${target_alias} $${srcdiroption} \
1358ccea 24797 || exit 1
85bfb75e 24798@endif texinfo
1358ccea 24799
25b42232
PB
24800
24801
ce406537
PB
24802
24803
85bfb75e
JM
24804.PHONY: all-texinfo maybe-all-texinfo
24805maybe-all-texinfo:
3ff3adad 24806@if gcc-bootstrap
85bfb75e 24807all-texinfo: stage_current
3ff3adad 24808@endif gcc-bootstrap
85bfb75e
JM
24809@if texinfo
24810TARGET-texinfo=all
24811maybe-all-texinfo: all-texinfo
24812all-texinfo: configure-texinfo
f41d6665 24813 @: $(MAKE); $(unstage)
295f4e42
NN
24814 @r=`${PWD_COMMAND}`; export r; \
24815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 24816 $(HOST_EXPORTS) \
85bfb75e 24817 (cd $(HOST_SUBDIR)/texinfo && \
1c8bd6a3 24818 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
24819 $(TARGET-texinfo))
24820@endif texinfo
1358ccea 24821
25b42232 24822
ce406537
PB
24823
24824
85bfb75e
JM
24825.PHONY: check-texinfo maybe-check-texinfo
24826maybe-check-texinfo:
24827@if texinfo
24828maybe-check-texinfo: check-texinfo
d9cdb878 24829
85bfb75e 24830check-texinfo:
f41d6665 24831 @: $(MAKE); $(unstage)
295f4e42 24832 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 24833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24834 $(HOST_EXPORTS) \
85bfb75e 24835 (cd $(HOST_SUBDIR)/texinfo && \
215c351a 24836 $(MAKE) $(FLAGS_TO_PASS) check)
d9cdb878 24837
85bfb75e 24838@endif texinfo
d9cdb878 24839
85bfb75e
JM
24840.PHONY: install-texinfo maybe-install-texinfo
24841maybe-install-texinfo:
24842@if texinfo
24843maybe-install-texinfo: install-texinfo
1358ccea 24844
85bfb75e 24845install-texinfo:
1358ccea 24846
85bfb75e 24847@endif texinfo
1358ccea 24848
85bfb75e
JM
24849.PHONY: install-strip-texinfo maybe-install-strip-texinfo
24850maybe-install-strip-texinfo:
24851@if texinfo
24852maybe-install-strip-texinfo: install-strip-texinfo
455c8f48 24853
85bfb75e 24854install-strip-texinfo:
455c8f48 24855
85bfb75e 24856@endif texinfo
455c8f48 24857
b5422ad7 24858# Other targets (info, dvi, pdf, etc.)
1358ccea 24859
85bfb75e
JM
24860.PHONY: maybe-info-texinfo info-texinfo
24861maybe-info-texinfo:
24862@if texinfo
24863maybe-info-texinfo: info-texinfo
295f4e42 24864
85bfb75e
JM
24865info-texinfo: \
24866 configure-texinfo
f41d6665 24867 @: $(MAKE); $(unstage)
85bfb75e 24868 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
24869 r=`${PWD_COMMAND}`; export r; \
24870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24871 $(HOST_EXPORTS) \
d32ab992 24872 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24874 done; \
85bfb75e
JM
24875 echo "Doing info in texinfo" ; \
24876 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
24877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24879 "RANLIB=$${RANLIB}" \
901119ae 24880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24881 info) \
1358ccea
NN
24882 || exit 1
24883
85bfb75e 24884@endif texinfo
1358ccea 24885
85bfb75e
JM
24886.PHONY: maybe-dvi-texinfo dvi-texinfo
24887maybe-dvi-texinfo:
24888@if texinfo
24889maybe-dvi-texinfo: dvi-texinfo
1358ccea 24890
85bfb75e
JM
24891dvi-texinfo: \
24892 configure-texinfo
f41d6665 24893 @: $(MAKE); $(unstage)
85bfb75e 24894 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
24895 r=`${PWD_COMMAND}`; export r; \
24896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24897 $(HOST_EXPORTS) \
d32ab992 24898 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24900 done; \
85bfb75e
JM
24901 echo "Doing dvi in texinfo" ; \
24902 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
24903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24905 "RANLIB=$${RANLIB}" \
901119ae 24906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24907 dvi) \
1358ccea
NN
24908 || exit 1
24909
85bfb75e 24910@endif texinfo
1358ccea 24911
85bfb75e
JM
24912.PHONY: maybe-pdf-texinfo pdf-texinfo
24913maybe-pdf-texinfo:
24914@if texinfo
24915maybe-pdf-texinfo: pdf-texinfo
b5422ad7 24916
85bfb75e
JM
24917pdf-texinfo: \
24918 configure-texinfo
b5422ad7 24919 @: $(MAKE); $(unstage)
85bfb75e 24920 @[ -f ./texinfo/Makefile ] || exit 0; \
b5422ad7
BM
24921 r=`${PWD_COMMAND}`; export r; \
24922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24923 $(HOST_EXPORTS) \
24924 for flag in $(EXTRA_HOST_FLAGS) ; do \
24925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24926 done; \
85bfb75e
JM
24927 echo "Doing pdf in texinfo" ; \
24928 (cd $(HOST_SUBDIR)/texinfo && \
b5422ad7
BM
24929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24931 "RANLIB=$${RANLIB}" \
901119ae 24932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
24933 pdf) \
24934 || exit 1
24935
85bfb75e 24936@endif texinfo
b5422ad7 24937
85bfb75e
JM
24938.PHONY: maybe-html-texinfo html-texinfo
24939maybe-html-texinfo:
24940@if texinfo
24941maybe-html-texinfo: html-texinfo
f87a2b2e 24942
85bfb75e
JM
24943html-texinfo: \
24944 configure-texinfo
f41d6665 24945 @: $(MAKE); $(unstage)
85bfb75e 24946 @[ -f ./texinfo/Makefile ] || exit 0; \
f87a2b2e
MS
24947 r=`${PWD_COMMAND}`; export r; \
24948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24949 $(HOST_EXPORTS) \
24950 for flag in $(EXTRA_HOST_FLAGS) ; do \
24951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24952 done; \
85bfb75e
JM
24953 echo "Doing html in texinfo" ; \
24954 (cd $(HOST_SUBDIR)/texinfo && \
f87a2b2e
MS
24955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24957 "RANLIB=$${RANLIB}" \
901119ae 24958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
24959 html) \
24960 || exit 1
24961
85bfb75e 24962@endif texinfo
f87a2b2e 24963
85bfb75e
JM
24964.PHONY: maybe-TAGS-texinfo TAGS-texinfo
24965maybe-TAGS-texinfo:
24966@if texinfo
24967maybe-TAGS-texinfo: TAGS-texinfo
1358ccea 24968
85bfb75e
JM
24969TAGS-texinfo: \
24970 configure-texinfo
f41d6665 24971 @: $(MAKE); $(unstage)
85bfb75e 24972 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
24973 r=`${PWD_COMMAND}`; export r; \
24974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24975 $(HOST_EXPORTS) \
d32ab992 24976 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
24977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24978 done; \
85bfb75e
JM
24979 echo "Doing TAGS in texinfo" ; \
24980 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
24981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24983 "RANLIB=$${RANLIB}" \
901119ae 24984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 24985 TAGS) \
1358ccea
NN
24986 || exit 1
24987
85bfb75e 24988@endif texinfo
1358ccea 24989
85bfb75e
JM
24990.PHONY: maybe-install-info-texinfo install-info-texinfo
24991maybe-install-info-texinfo:
24992@if texinfo
24993maybe-install-info-texinfo: install-info-texinfo
1358ccea 24994
85bfb75e
JM
24995install-info-texinfo: \
24996 configure-texinfo \
24997 info-texinfo
f41d6665 24998 @: $(MAKE); $(unstage)
85bfb75e 24999 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25000 r=`${PWD_COMMAND}`; export r; \
25001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25002 $(HOST_EXPORTS) \
d32ab992 25003 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25005 done; \
85bfb75e
JM
25006 echo "Doing install-info in texinfo" ; \
25007 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25010 "RANLIB=$${RANLIB}" \
901119ae 25011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25012 install-info) \
1358ccea
NN
25013 || exit 1
25014
85bfb75e 25015@endif texinfo
1358ccea 25016
85bfb75e
JM
25017.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
25018maybe-install-pdf-texinfo:
25019@if texinfo
25020maybe-install-pdf-texinfo: install-pdf-texinfo
9c4d2493 25021
85bfb75e
JM
25022install-pdf-texinfo: \
25023 configure-texinfo \
25024 pdf-texinfo
9c4d2493 25025 @: $(MAKE); $(unstage)
85bfb75e 25026 @[ -f ./texinfo/Makefile ] || exit 0; \
9c4d2493
BM
25027 r=`${PWD_COMMAND}`; export r; \
25028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25029 $(HOST_EXPORTS) \
25030 for flag in $(EXTRA_HOST_FLAGS) ; do \
25031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25032 done; \
85bfb75e
JM
25033 echo "Doing install-pdf in texinfo" ; \
25034 (cd $(HOST_SUBDIR)/texinfo && \
9c4d2493
BM
25035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25037 "RANLIB=$${RANLIB}" \
901119ae 25038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
25039 install-pdf) \
25040 || exit 1
25041
85bfb75e 25042@endif texinfo
9c4d2493 25043
85bfb75e
JM
25044.PHONY: maybe-install-html-texinfo install-html-texinfo
25045maybe-install-html-texinfo:
25046@if texinfo
25047maybe-install-html-texinfo: install-html-texinfo
65d6e994 25048
85bfb75e
JM
25049install-html-texinfo: \
25050 configure-texinfo \
25051 html-texinfo
65d6e994 25052 @: $(MAKE); $(unstage)
85bfb75e 25053 @[ -f ./texinfo/Makefile ] || exit 0; \
65d6e994
CD
25054 r=`${PWD_COMMAND}`; export r; \
25055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25056 $(HOST_EXPORTS) \
25057 for flag in $(EXTRA_HOST_FLAGS) ; do \
25058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25059 done; \
85bfb75e
JM
25060 echo "Doing install-html in texinfo" ; \
25061 (cd $(HOST_SUBDIR)/texinfo && \
65d6e994
CD
25062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25064 "RANLIB=$${RANLIB}" \
901119ae 25065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
25066 install-html) \
25067 || exit 1
25068
85bfb75e 25069@endif texinfo
65d6e994 25070
85bfb75e
JM
25071.PHONY: maybe-installcheck-texinfo installcheck-texinfo
25072maybe-installcheck-texinfo:
25073@if texinfo
25074maybe-installcheck-texinfo: installcheck-texinfo
1358ccea 25075
85bfb75e
JM
25076installcheck-texinfo: \
25077 configure-texinfo
f41d6665 25078 @: $(MAKE); $(unstage)
85bfb75e 25079 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25080 r=`${PWD_COMMAND}`; export r; \
25081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25082 $(HOST_EXPORTS) \
d32ab992 25083 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25085 done; \
85bfb75e
JM
25086 echo "Doing installcheck in texinfo" ; \
25087 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25090 "RANLIB=$${RANLIB}" \
901119ae 25091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25092 installcheck) \
1358ccea
NN
25093 || exit 1
25094
85bfb75e 25095@endif texinfo
1358ccea 25096
85bfb75e
JM
25097.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
25098maybe-mostlyclean-texinfo:
25099@if texinfo
25100maybe-mostlyclean-texinfo: mostlyclean-texinfo
1358ccea 25101
85bfb75e 25102mostlyclean-texinfo:
f41d6665 25103 @: $(MAKE); $(unstage)
85bfb75e 25104 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25105 r=`${PWD_COMMAND}`; export r; \
25106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25107 $(HOST_EXPORTS) \
d32ab992 25108 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25110 done; \
85bfb75e
JM
25111 echo "Doing mostlyclean in texinfo" ; \
25112 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25115 "RANLIB=$${RANLIB}" \
901119ae 25116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 25117 mostlyclean) \
1358ccea
NN
25118 || exit 1
25119
85bfb75e 25120@endif texinfo
1358ccea 25121
85bfb75e
JM
25122.PHONY: maybe-clean-texinfo clean-texinfo
25123maybe-clean-texinfo:
25124@if texinfo
25125maybe-clean-texinfo: clean-texinfo
1358ccea 25126
85bfb75e 25127clean-texinfo:
f41d6665 25128 @: $(MAKE); $(unstage)
85bfb75e 25129 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25130 r=`${PWD_COMMAND}`; export r; \
25131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25132 $(HOST_EXPORTS) \
d32ab992 25133 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25135 done; \
85bfb75e
JM
25136 echo "Doing clean in texinfo" ; \
25137 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25140 "RANLIB=$${RANLIB}" \
901119ae 25141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 25142 clean) \
1358ccea
NN
25143 || exit 1
25144
85bfb75e 25145@endif texinfo
1358ccea 25146
85bfb75e
JM
25147.PHONY: maybe-distclean-texinfo distclean-texinfo
25148maybe-distclean-texinfo:
25149@if texinfo
25150maybe-distclean-texinfo: distclean-texinfo
1358ccea 25151
85bfb75e 25152distclean-texinfo:
f41d6665 25153 @: $(MAKE); $(unstage)
85bfb75e 25154 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25155 r=`${PWD_COMMAND}`; export r; \
25156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25157 $(HOST_EXPORTS) \
d32ab992 25158 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25160 done; \
85bfb75e
JM
25161 echo "Doing distclean in texinfo" ; \
25162 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25165 "RANLIB=$${RANLIB}" \
901119ae 25166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 25167 distclean) \
1358ccea
NN
25168 || exit 1
25169
85bfb75e 25170@endif texinfo
295f4e42 25171
85bfb75e
JM
25172.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
25173maybe-maintainer-clean-texinfo:
25174@if texinfo
25175maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
25b42232 25176
85bfb75e 25177maintainer-clean-texinfo:
f41d6665 25178 @: $(MAKE); $(unstage)
85bfb75e 25179 @[ -f ./texinfo/Makefile ] || exit 0; \
8c90b13a
L
25180 r=`${PWD_COMMAND}`; export r; \
25181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25182 $(HOST_EXPORTS) \
d32ab992 25183 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
25184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25185 done; \
85bfb75e
JM
25186 echo "Doing maintainer-clean in texinfo" ; \
25187 (cd $(HOST_SUBDIR)/texinfo && \
1358ccea
NN
25188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25190 "RANLIB=$${RANLIB}" \
901119ae 25191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25192 maintainer-clean) \
1358ccea
NN
25193 || exit 1
25194
85bfb75e 25195@endif texinfo
1358ccea 25196
1358ccea 25197
25b42232 25198
85bfb75e
JM
25199.PHONY: configure-zlib maybe-configure-zlib
25200maybe-configure-zlib:
3ff3adad 25201@if gcc-bootstrap
85bfb75e 25202configure-zlib: stage_current
3ff3adad 25203@endif gcc-bootstrap
85bfb75e
JM
25204@if zlib
25205maybe-configure-zlib: configure-zlib
25206configure-zlib:
cc11cc9b
PB
25207 @r=`${PWD_COMMAND}`; export r; \
25208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
25209 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
25210 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
f61428ed 25211 $(HOST_EXPORTS) \
85bfb75e
JM
25212 echo Configuring in $(HOST_SUBDIR)/zlib; \
25213 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
4f4e53dd 25214 case $(srcdir) in \
215c351a 25215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25216 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
215c351a 25217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4f4e53dd 25218 esac; \
85bfb75e
JM
25219 srcdiroption="--srcdir=$${topdir}/zlib"; \
25220 libsrcdir="$$s/zlib"; \
4f4e53dd 25221 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25222 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25223 --target=${target_alias} $${srcdiroption} \
4f4e53dd 25224 || exit 1
85bfb75e 25225@endif zlib
4f4e53dd 25226
25b42232
PB
25227
25228
85bfb75e
JM
25229.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
25230maybe-configure-stage1-zlib:
25231@if zlib-bootstrap
25232maybe-configure-stage1-zlib: configure-stage1-zlib
25233configure-stage1-zlib:
cc11cc9b 25234 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
85bfb75e 25235 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25236 @r=`${PWD_COMMAND}`; export r; \
25237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25238 TFLAGS="$(STAGE1_TFLAGS)"; \
85bfb75e 25239 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
4a4a4e99 25240 $(HOST_EXPORTS) \
342b9200 25241 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25242 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
25243 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25244 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
25245 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25246 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25247 case $(srcdir) in \
25248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25249 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25251 esac; \
85bfb75e
JM
25252 srcdiroption="--srcdir=$${topdir}/zlib"; \
25253 libsrcdir="$$s/zlib"; \
ce406537 25254 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25255 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25256 --target=${target_alias} $${srcdiroption} \
4a4a4e99 25257 $(STAGE1_CONFIGURE_FLAGS)
85bfb75e 25258@endif zlib-bootstrap
ce406537 25259
85bfb75e
JM
25260.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
25261maybe-configure-stage2-zlib:
25262@if zlib-bootstrap
25263maybe-configure-stage2-zlib: configure-stage2-zlib
25264configure-stage2-zlib:
cc11cc9b 25265 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
85bfb75e 25266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25267 @r=`${PWD_COMMAND}`; export r; \
25268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25269 TFLAGS="$(STAGE2_TFLAGS)"; \
85bfb75e 25270 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537 25271 $(HOST_EXPORTS) \
4a4a4e99 25272 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 25273 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25274 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
25275 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25276 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
25277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25278 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25279 case $(srcdir) in \
25280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25281 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25283 esac; \
85bfb75e
JM
25284 srcdiroption="--srcdir=$${topdir}/zlib"; \
25285 libsrcdir="$$s/zlib"; \
ce406537 25286 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25288 --target=${target_alias} $${srcdiroption} \
57255173 25289 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 25290 $(STAGE2_CONFIGURE_FLAGS)
85bfb75e 25291@endif zlib-bootstrap
bb286d71 25292
85bfb75e
JM
25293.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
25294maybe-configure-stage3-zlib:
25295@if zlib-bootstrap
25296maybe-configure-stage3-zlib: configure-stage3-zlib
25297configure-stage3-zlib:
cc11cc9b 25298 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
85bfb75e 25299 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25300 @r=`${PWD_COMMAND}`; export r; \
25301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25302 TFLAGS="$(STAGE3_TFLAGS)"; \
85bfb75e 25303 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537 25304 $(HOST_EXPORTS) \
4a4a4e99 25305 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 25306 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25307 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
25308 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25309 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
25310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25311 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25312 case $(srcdir) in \
25313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25314 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25316 esac; \
85bfb75e
JM
25317 srcdiroption="--srcdir=$${topdir}/zlib"; \
25318 libsrcdir="$$s/zlib"; \
ce406537 25319 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25321 --target=${target_alias} $${srcdiroption} \
57255173 25322 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 25323 $(STAGE3_CONFIGURE_FLAGS)
85bfb75e 25324@endif zlib-bootstrap
bb286d71 25325
85bfb75e
JM
25326.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
25327maybe-configure-stage4-zlib:
25328@if zlib-bootstrap
25329maybe-configure-stage4-zlib: configure-stage4-zlib
25330configure-stage4-zlib:
cc11cc9b 25331 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
85bfb75e 25332 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25333 @r=`${PWD_COMMAND}`; export r; \
25334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25335 TFLAGS="$(STAGE4_TFLAGS)"; \
85bfb75e 25336 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537 25337 $(HOST_EXPORTS) \
4a4a4e99 25338 $(POSTSTAGE1_HOST_EXPORTS) \
bb286d71 25339 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25340 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
25341 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25342 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
25343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25344 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25345 case $(srcdir) in \
25346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25347 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25349 esac; \
85bfb75e
JM
25350 srcdiroption="--srcdir=$${topdir}/zlib"; \
25351 libsrcdir="$$s/zlib"; \
ce406537 25352 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25353 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25354 --target=${target_alias} $${srcdiroption} \
57255173 25355 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 25356 $(STAGE4_CONFIGURE_FLAGS)
85bfb75e 25357@endif zlib-bootstrap
ce406537 25358
85bfb75e
JM
25359.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
25360maybe-configure-stageprofile-zlib:
25361@if zlib-bootstrap
25362maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
25363configure-stageprofile-zlib:
cc11cc9b 25364 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
85bfb75e 25365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25366 @r=`${PWD_COMMAND}`; export r; \
25367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25368 TFLAGS="$(STAGEprofile_TFLAGS)"; \
85bfb75e 25369 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537 25370 $(HOST_EXPORTS) \
4a4a4e99
AO
25371 $(POSTSTAGE1_HOST_EXPORTS) \
25372 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25373 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
25374 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25375 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
25376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25377 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25378 case $(srcdir) in \
25379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25380 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25382 esac; \
85bfb75e
JM
25383 srcdiroption="--srcdir=$${topdir}/zlib"; \
25384 libsrcdir="$$s/zlib"; \
ce406537 25385 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25387 --target=${target_alias} $${srcdiroption} \
57255173 25388 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 25389 $(STAGEprofile_CONFIGURE_FLAGS)
85bfb75e 25390@endif zlib-bootstrap
ce406537 25391
85bfb75e
JM
25392.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
25393maybe-configure-stagefeedback-zlib:
25394@if zlib-bootstrap
25395maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
25396configure-stagefeedback-zlib:
cc11cc9b 25397 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
85bfb75e 25398 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
25399 @r=`${PWD_COMMAND}`; export r; \
25400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25401 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
85bfb75e 25402 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537 25403 $(HOST_EXPORTS) \
4a4a4e99
AO
25404 $(POSTSTAGE1_HOST_EXPORTS) \
25405 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
f61428ed
AO
25406 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
25407 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
85bfb75e
JM
25408 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
25409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
25410 cd $(HOST_SUBDIR)/zlib || exit 1; \
ce406537
PB
25411 case $(srcdir) in \
25412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 25413 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
ce406537
PB
25414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25415 esac; \
85bfb75e
JM
25416 srcdiroption="--srcdir=$${topdir}/zlib"; \
25417 libsrcdir="$$s/zlib"; \
ce406537 25418 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
25419 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25420 --target=${target_alias} $${srcdiroption} \
57255173 25421 --with-build-libsubdir=$(HOST_SUBDIR) \
4a4a4e99 25422 $(STAGEfeedback_CONFIGURE_FLAGS)
85bfb75e 25423@endif zlib-bootstrap
ce406537
PB
25424
25425
25426
25427
25428
85bfb75e
JM
25429.PHONY: all-zlib maybe-all-zlib
25430maybe-all-zlib:
3ff3adad 25431@if gcc-bootstrap
85bfb75e 25432all-zlib: stage_current
3ff3adad 25433@endif gcc-bootstrap
85bfb75e
JM
25434@if zlib
25435TARGET-zlib=all
25436maybe-all-zlib: all-zlib
25437all-zlib: configure-zlib
cc11cc9b 25438 @r=`${PWD_COMMAND}`; export r; \
4f4e53dd 25439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 25440 $(HOST_EXPORTS) \
85bfb75e 25441 (cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25442 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
25443 $(TARGET-zlib))
25444@endif zlib
4f4e53dd 25445
25b42232 25446
ce406537 25447
85bfb75e
JM
25448.PHONY: all-stage1-zlib maybe-all-stage1-zlib
25449.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
25450maybe-all-stage1-zlib:
25451maybe-clean-stage1-zlib:
25452@if zlib-bootstrap
25453maybe-all-stage1-zlib: all-stage1-zlib
25454all-stage1: all-stage1-zlib
25455TARGET-stage1-zlib = $(TARGET-zlib)
25456all-stage1-zlib: configure-stage1-zlib
cc11cc9b 25457 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
25458 @r=`${PWD_COMMAND}`; export r; \
25459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25460 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 25461 $(HOST_EXPORTS) \
85bfb75e 25462 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25464 CFLAGS="$(STAGE1_CFLAGS)" \
f61428ed 25465 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4a4a4e99
AO
25466 LIBCFLAGS="$(LIBCFLAGS)" \
25467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25470 $(EXTRA_HOST_FLAGS) \
25471 TFLAGS="$(STAGE1_TFLAGS)" \
85bfb75e 25472 $(TARGET-stage1-zlib)
ce406537 25473
85bfb75e
JM
25474maybe-clean-stage1-zlib: clean-stage1-zlib
25475clean-stage1: clean-stage1-zlib
25476clean-stage1-zlib:
995a5697 25477 @if [ $(current_stage) = stage1 ]; then \
85bfb75e 25478 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25479 else \
85bfb75e 25480 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
995a5697
PB
25481 $(MAKE) stage1-start; \
25482 fi; \
85bfb75e 25483 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25484 $(MAKE) $(EXTRA_HOST_FLAGS) \
342b9200 25485 clean
85bfb75e 25486@endif zlib-bootstrap
ce406537
PB
25487
25488
85bfb75e
JM
25489.PHONY: all-stage2-zlib maybe-all-stage2-zlib
25490.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
25491maybe-all-stage2-zlib:
25492maybe-clean-stage2-zlib:
25493@if zlib-bootstrap
25494maybe-all-stage2-zlib: all-stage2-zlib
25495all-stage2: all-stage2-zlib
25496TARGET-stage2-zlib = $(TARGET-zlib)
25497all-stage2-zlib: configure-stage2-zlib
cc11cc9b 25498 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
25499 @r=`${PWD_COMMAND}`; export r; \
25500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25501 TFLAGS="$(STAGE2_TFLAGS)"; \
ce406537 25502 $(HOST_EXPORTS) \
f61428ed 25503 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 25504 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25505 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25506 CFLAGS="$(STAGE2_CFLAGS)" \
f61428ed 25507 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4a4a4e99
AO
25508 LIBCFLAGS="$(STAGE2_CFLAGS)" \
25509 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25510 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25511 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25512 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25513 TFLAGS="$(STAGE2_TFLAGS)" \
85bfb75e 25514 $(TARGET-stage2-zlib)
ce406537 25515
85bfb75e
JM
25516maybe-clean-stage2-zlib: clean-stage2-zlib
25517clean-stage2: clean-stage2-zlib
25518clean-stage2-zlib:
995a5697 25519 @if [ $(current_stage) = stage2 ]; then \
85bfb75e 25520 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25521 else \
85bfb75e 25522 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
995a5697
PB
25523 $(MAKE) stage2-start; \
25524 fi; \
85bfb75e 25525 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25526 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 25527 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 25528 clean
85bfb75e 25529@endif zlib-bootstrap
ce406537
PB
25530
25531
85bfb75e
JM
25532.PHONY: all-stage3-zlib maybe-all-stage3-zlib
25533.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
25534maybe-all-stage3-zlib:
25535maybe-clean-stage3-zlib:
25536@if zlib-bootstrap
25537maybe-all-stage3-zlib: all-stage3-zlib
25538all-stage3: all-stage3-zlib
25539TARGET-stage3-zlib = $(TARGET-zlib)
25540all-stage3-zlib: configure-stage3-zlib
cc11cc9b 25541 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
25542 @r=`${PWD_COMMAND}`; export r; \
25543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25544 TFLAGS="$(STAGE3_TFLAGS)"; \
ce406537 25545 $(HOST_EXPORTS) \
f61428ed 25546 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 25547 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25548 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25549 CFLAGS="$(STAGE3_CFLAGS)" \
f61428ed 25550 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4a4a4e99
AO
25551 LIBCFLAGS="$(STAGE3_CFLAGS)" \
25552 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25553 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25554 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25555 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25556 TFLAGS="$(STAGE3_TFLAGS)" \
85bfb75e 25557 $(TARGET-stage3-zlib)
ce406537 25558
85bfb75e
JM
25559maybe-clean-stage3-zlib: clean-stage3-zlib
25560clean-stage3: clean-stage3-zlib
25561clean-stage3-zlib:
995a5697 25562 @if [ $(current_stage) = stage3 ]; then \
85bfb75e 25563 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25564 else \
85bfb75e 25565 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
995a5697
PB
25566 $(MAKE) stage3-start; \
25567 fi; \
85bfb75e 25568 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25569 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 25570 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 25571 clean
85bfb75e 25572@endif zlib-bootstrap
ce406537
PB
25573
25574
85bfb75e
JM
25575.PHONY: all-stage4-zlib maybe-all-stage4-zlib
25576.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
25577maybe-all-stage4-zlib:
25578maybe-clean-stage4-zlib:
25579@if zlib-bootstrap
25580maybe-all-stage4-zlib: all-stage4-zlib
25581all-stage4: all-stage4-zlib
25582TARGET-stage4-zlib = $(TARGET-zlib)
25583all-stage4-zlib: configure-stage4-zlib
cc11cc9b 25584 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
25585 @r=`${PWD_COMMAND}`; export r; \
25586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25587 TFLAGS="$(STAGE4_TFLAGS)"; \
ce406537 25588 $(HOST_EXPORTS) \
f61428ed 25589 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 25590 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25591 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25592 CFLAGS="$(STAGE4_CFLAGS)" \
f61428ed 25593 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
1c8bd6a3 25594 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4a4a4e99
AO
25595 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25596 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25597 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25598 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25599 TFLAGS="$(STAGE4_TFLAGS)" \
85bfb75e 25600 $(TARGET-stage4-zlib)
ce406537 25601
85bfb75e
JM
25602maybe-clean-stage4-zlib: clean-stage4-zlib
25603clean-stage4: clean-stage4-zlib
25604clean-stage4-zlib:
995a5697 25605 @if [ $(current_stage) = stage4 ]; then \
85bfb75e 25606 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25607 else \
85bfb75e 25608 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
995a5697
PB
25609 $(MAKE) stage4-start; \
25610 fi; \
85bfb75e 25611 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25612 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 25613 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 25614 clean
85bfb75e 25615@endif zlib-bootstrap
ce406537
PB
25616
25617
85bfb75e
JM
25618.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
25619.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
25620maybe-all-stageprofile-zlib:
25621maybe-clean-stageprofile-zlib:
25622@if zlib-bootstrap
25623maybe-all-stageprofile-zlib: all-stageprofile-zlib
25624all-stageprofile: all-stageprofile-zlib
25625TARGET-stageprofile-zlib = $(TARGET-zlib)
25626all-stageprofile-zlib: configure-stageprofile-zlib
cc11cc9b 25627 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
25628 @r=`${PWD_COMMAND}`; export r; \
25629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25630 TFLAGS="$(STAGEprofile_TFLAGS)"; \
ce406537 25631 $(HOST_EXPORTS) \
f61428ed 25632 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 25633 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25634 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25635 CFLAGS="$(STAGEprofile_CFLAGS)" \
f61428ed 25636 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4a4a4e99
AO
25637 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
25638 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25639 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25640 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25641 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25642 TFLAGS="$(STAGEprofile_TFLAGS)" \
85bfb75e 25643 $(TARGET-stageprofile-zlib)
ce406537 25644
85bfb75e
JM
25645maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
25646clean-stageprofile: clean-stageprofile-zlib
25647clean-stageprofile-zlib:
995a5697 25648 @if [ $(current_stage) = stageprofile ]; then \
85bfb75e 25649 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25650 else \
85bfb75e 25651 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
995a5697
PB
25652 $(MAKE) stageprofile-start; \
25653 fi; \
85bfb75e 25654 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25655 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 25656 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 25657 clean
85bfb75e 25658@endif zlib-bootstrap
ce406537
PB
25659
25660
85bfb75e
JM
25661.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
25662.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
25663maybe-all-stagefeedback-zlib:
25664maybe-clean-stagefeedback-zlib:
25665@if zlib-bootstrap
25666maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
25667all-stagefeedback: all-stagefeedback-zlib
25668TARGET-stagefeedback-zlib = $(TARGET-zlib)
25669all-stagefeedback-zlib: configure-stagefeedback-zlib
cc11cc9b 25670 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
25671 @r=`${PWD_COMMAND}`; export r; \
25672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 25673 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
ce406537 25674 $(HOST_EXPORTS) \
f61428ed 25675 $(POSTSTAGE1_HOST_EXPORTS) \
85bfb75e 25676 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25677 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4a4a4e99 25678 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f61428ed 25679 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4a4a4e99
AO
25680 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
25681 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25682 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25683 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25684 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25685 TFLAGS="$(STAGEfeedback_TFLAGS)" \
85bfb75e 25686 $(TARGET-stagefeedback-zlib)
ce406537 25687
85bfb75e
JM
25688maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
25689clean-stagefeedback: clean-stagefeedback-zlib
25690clean-stagefeedback-zlib:
995a5697 25691 @if [ $(current_stage) = stagefeedback ]; then \
85bfb75e 25692 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
995a5697 25693 else \
85bfb75e 25694 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
995a5697
PB
25695 $(MAKE) stagefeedback-start; \
25696 fi; \
85bfb75e 25697 cd $(HOST_SUBDIR)/zlib && \
1c8bd6a3 25698 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce406537 25699 $(POSTSTAGE1_FLAGS_TO_PASS) \
342b9200 25700 clean
85bfb75e 25701@endif zlib-bootstrap
ce406537
PB
25702
25703
25704
25705
25706
85bfb75e
JM
25707.PHONY: check-zlib maybe-check-zlib
25708maybe-check-zlib:
25709@if zlib
25710maybe-check-zlib: check-zlib
4f4e53dd 25711
85bfb75e 25712check-zlib:
4f4e53dd 25713
85bfb75e 25714@endif zlib
4f4e53dd 25715
85bfb75e
JM
25716.PHONY: install-zlib maybe-install-zlib
25717maybe-install-zlib:
25718@if zlib
25719maybe-install-zlib: install-zlib
4f4e53dd 25720
85bfb75e 25721install-zlib:
4f4e53dd 25722
85bfb75e 25723@endif zlib
4f4e53dd 25724
85bfb75e
JM
25725.PHONY: install-strip-zlib maybe-install-strip-zlib
25726maybe-install-strip-zlib:
25727@if zlib
25728maybe-install-strip-zlib: install-strip-zlib
455c8f48 25729
85bfb75e 25730install-strip-zlib:
455c8f48 25731
85bfb75e 25732@endif zlib
455c8f48 25733
b5422ad7 25734# Other targets (info, dvi, pdf, etc.)
4f4e53dd 25735
85bfb75e
JM
25736.PHONY: maybe-info-zlib info-zlib
25737maybe-info-zlib:
25738@if zlib
25739maybe-info-zlib: info-zlib
4f4e53dd 25740
85bfb75e
JM
25741info-zlib: \
25742 configure-zlib
25743 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25744 r=`${PWD_COMMAND}`; export r; \
25745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25746 $(HOST_EXPORTS) \
d32ab992 25747 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25749 done; \
85bfb75e
JM
25750 echo "Doing info in zlib" ; \
25751 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25754 "RANLIB=$${RANLIB}" \
901119ae 25755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25756 info) \
4f4e53dd
PB
25757 || exit 1
25758
85bfb75e 25759@endif zlib
4f4e53dd 25760
85bfb75e
JM
25761.PHONY: maybe-dvi-zlib dvi-zlib
25762maybe-dvi-zlib:
25763@if zlib
25764maybe-dvi-zlib: dvi-zlib
4f4e53dd 25765
85bfb75e
JM
25766dvi-zlib: \
25767 configure-zlib
25768 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25769 r=`${PWD_COMMAND}`; export r; \
25770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25771 $(HOST_EXPORTS) \
d32ab992 25772 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25774 done; \
85bfb75e
JM
25775 echo "Doing dvi in zlib" ; \
25776 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25779 "RANLIB=$${RANLIB}" \
901119ae 25780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25781 dvi) \
4f4e53dd
PB
25782 || exit 1
25783
85bfb75e 25784@endif zlib
4f4e53dd 25785
85bfb75e
JM
25786.PHONY: maybe-pdf-zlib pdf-zlib
25787maybe-pdf-zlib:
25788@if zlib
25789maybe-pdf-zlib: pdf-zlib
b5422ad7 25790
85bfb75e
JM
25791pdf-zlib: \
25792 configure-zlib
25793 @[ -f ./zlib/Makefile ] || exit 0; \
b5422ad7
BM
25794 r=`${PWD_COMMAND}`; export r; \
25795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25796 $(HOST_EXPORTS) \
25797 for flag in $(EXTRA_HOST_FLAGS) ; do \
25798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25799 done; \
85bfb75e
JM
25800 echo "Doing pdf in zlib" ; \
25801 (cd $(HOST_SUBDIR)/zlib && \
b5422ad7
BM
25802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25804 "RANLIB=$${RANLIB}" \
901119ae 25805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
25806 pdf) \
25807 || exit 1
25808
85bfb75e 25809@endif zlib
b5422ad7 25810
85bfb75e
JM
25811.PHONY: maybe-html-zlib html-zlib
25812maybe-html-zlib:
25813@if zlib
25814maybe-html-zlib: html-zlib
f87a2b2e 25815
85bfb75e
JM
25816html-zlib: \
25817 configure-zlib
25818 @[ -f ./zlib/Makefile ] || exit 0; \
f87a2b2e
MS
25819 r=`${PWD_COMMAND}`; export r; \
25820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25821 $(HOST_EXPORTS) \
25822 for flag in $(EXTRA_HOST_FLAGS) ; do \
25823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25824 done; \
85bfb75e
JM
25825 echo "Doing html in zlib" ; \
25826 (cd $(HOST_SUBDIR)/zlib && \
f87a2b2e
MS
25827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25829 "RANLIB=$${RANLIB}" \
901119ae 25830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
25831 html) \
25832 || exit 1
25833
85bfb75e 25834@endif zlib
f87a2b2e 25835
85bfb75e
JM
25836.PHONY: maybe-TAGS-zlib TAGS-zlib
25837maybe-TAGS-zlib:
25838@if zlib
25839maybe-TAGS-zlib: TAGS-zlib
4f4e53dd 25840
85bfb75e
JM
25841TAGS-zlib: \
25842 configure-zlib
25843 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25844 r=`${PWD_COMMAND}`; export r; \
25845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25846 $(HOST_EXPORTS) \
d32ab992 25847 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25849 done; \
85bfb75e
JM
25850 echo "Doing TAGS in zlib" ; \
25851 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25854 "RANLIB=$${RANLIB}" \
901119ae 25855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25856 TAGS) \
4f4e53dd
PB
25857 || exit 1
25858
85bfb75e 25859@endif zlib
4f4e53dd 25860
85bfb75e
JM
25861.PHONY: maybe-install-info-zlib install-info-zlib
25862maybe-install-info-zlib:
25863@if zlib
25864maybe-install-info-zlib: install-info-zlib
4f4e53dd 25865
85bfb75e
JM
25866install-info-zlib: \
25867 configure-zlib \
25868 info-zlib
25869 @[ -f ./zlib/Makefile ] || exit 0; \
25870 r=`${PWD_COMMAND}`; export r; \
25871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25872 $(HOST_EXPORTS) \
d32ab992 25873 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25875 done; \
85bfb75e
JM
25876 echo "Doing install-info in zlib" ; \
25877 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25880 "RANLIB=$${RANLIB}" \
901119ae 25881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25882 install-info) \
4f4e53dd
PB
25883 || exit 1
25884
85bfb75e 25885@endif zlib
4f4e53dd 25886
85bfb75e
JM
25887.PHONY: maybe-install-pdf-zlib install-pdf-zlib
25888maybe-install-pdf-zlib:
25889@if zlib
25890maybe-install-pdf-zlib: install-pdf-zlib
9c4d2493 25891
85bfb75e
JM
25892install-pdf-zlib: \
25893 configure-zlib \
25894 pdf-zlib
25895 @[ -f ./zlib/Makefile ] || exit 0; \
9c4d2493
BM
25896 r=`${PWD_COMMAND}`; export r; \
25897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25898 $(HOST_EXPORTS) \
25899 for flag in $(EXTRA_HOST_FLAGS) ; do \
25900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25901 done; \
85bfb75e
JM
25902 echo "Doing install-pdf in zlib" ; \
25903 (cd $(HOST_SUBDIR)/zlib && \
9c4d2493
BM
25904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25906 "RANLIB=$${RANLIB}" \
901119ae 25907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
25908 install-pdf) \
25909 || exit 1
25910
85bfb75e 25911@endif zlib
9c4d2493 25912
85bfb75e
JM
25913.PHONY: maybe-install-html-zlib install-html-zlib
25914maybe-install-html-zlib:
25915@if zlib
25916maybe-install-html-zlib: install-html-zlib
65d6e994 25917
85bfb75e
JM
25918install-html-zlib: \
25919 configure-zlib \
25920 html-zlib
25921 @[ -f ./zlib/Makefile ] || exit 0; \
65d6e994
CD
25922 r=`${PWD_COMMAND}`; export r; \
25923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25924 $(HOST_EXPORTS) \
25925 for flag in $(EXTRA_HOST_FLAGS) ; do \
25926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25927 done; \
85bfb75e
JM
25928 echo "Doing install-html in zlib" ; \
25929 (cd $(HOST_SUBDIR)/zlib && \
65d6e994
CD
25930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25932 "RANLIB=$${RANLIB}" \
901119ae 25933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
25934 install-html) \
25935 || exit 1
25936
85bfb75e 25937@endif zlib
65d6e994 25938
85bfb75e
JM
25939.PHONY: maybe-installcheck-zlib installcheck-zlib
25940maybe-installcheck-zlib:
25941@if zlib
25942maybe-installcheck-zlib: installcheck-zlib
4f4e53dd 25943
85bfb75e
JM
25944installcheck-zlib: \
25945 configure-zlib
25946 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25947 r=`${PWD_COMMAND}`; export r; \
25948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25949 $(HOST_EXPORTS) \
d32ab992 25950 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25952 done; \
85bfb75e
JM
25953 echo "Doing installcheck in zlib" ; \
25954 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25957 "RANLIB=$${RANLIB}" \
901119ae 25958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25959 installcheck) \
4f4e53dd
PB
25960 || exit 1
25961
85bfb75e 25962@endif zlib
4f4e53dd 25963
85bfb75e
JM
25964.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
25965maybe-mostlyclean-zlib:
25966@if zlib
25967maybe-mostlyclean-zlib: mostlyclean-zlib
4f4e53dd 25968
85bfb75e
JM
25969mostlyclean-zlib:
25970 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25971 r=`${PWD_COMMAND}`; export r; \
25972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25973 $(HOST_EXPORTS) \
d32ab992 25974 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25976 done; \
85bfb75e
JM
25977 echo "Doing mostlyclean in zlib" ; \
25978 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
25979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25981 "RANLIB=$${RANLIB}" \
901119ae 25982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 25983 mostlyclean) \
4f4e53dd
PB
25984 || exit 1
25985
85bfb75e 25986@endif zlib
4f4e53dd 25987
85bfb75e
JM
25988.PHONY: maybe-clean-zlib clean-zlib
25989maybe-clean-zlib:
25990@if zlib
25991maybe-clean-zlib: clean-zlib
4f4e53dd 25992
85bfb75e
JM
25993clean-zlib:
25994 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
25995 r=`${PWD_COMMAND}`; export r; \
25996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25997 $(HOST_EXPORTS) \
d32ab992 25998 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
25999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26000 done; \
85bfb75e
JM
26001 echo "Doing clean in zlib" ; \
26002 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
26003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26005 "RANLIB=$${RANLIB}" \
901119ae 26006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 26007 clean) \
4f4e53dd
PB
26008 || exit 1
26009
85bfb75e 26010@endif zlib
4f4e53dd 26011
85bfb75e
JM
26012.PHONY: maybe-distclean-zlib distclean-zlib
26013maybe-distclean-zlib:
26014@if zlib
26015maybe-distclean-zlib: distclean-zlib
4f4e53dd 26016
85bfb75e
JM
26017distclean-zlib:
26018 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
26019 r=`${PWD_COMMAND}`; export r; \
26020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26021 $(HOST_EXPORTS) \
d32ab992 26022 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
26023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26024 done; \
85bfb75e
JM
26025 echo "Doing distclean in zlib" ; \
26026 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
26027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26029 "RANLIB=$${RANLIB}" \
901119ae 26030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 26031 distclean) \
4f4e53dd
PB
26032 || exit 1
26033
85bfb75e 26034@endif zlib
4f4e53dd 26035
85bfb75e
JM
26036.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
26037maybe-maintainer-clean-zlib:
26038@if zlib
26039maybe-maintainer-clean-zlib: maintainer-clean-zlib
4f4e53dd 26040
85bfb75e
JM
26041maintainer-clean-zlib:
26042 @[ -f ./zlib/Makefile ] || exit 0; \
4f4e53dd
PB
26043 r=`${PWD_COMMAND}`; export r; \
26044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26045 $(HOST_EXPORTS) \
d32ab992 26046 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
26047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26048 done; \
85bfb75e
JM
26049 echo "Doing maintainer-clean in zlib" ; \
26050 (cd $(HOST_SUBDIR)/zlib && \
4f4e53dd
PB
26051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26053 "RANLIB=$${RANLIB}" \
901119ae 26054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 26055 maintainer-clean) \
4f4e53dd
PB
26056 || exit 1
26057
85bfb75e 26058@endif zlib
4f4e53dd
PB
26059
26060
25b42232 26061
85bfb75e
JM
26062.PHONY: configure-gdb maybe-configure-gdb
26063maybe-configure-gdb:
3ff3adad 26064@if gcc-bootstrap
85bfb75e 26065configure-gdb: stage_current
3ff3adad 26066@endif gcc-bootstrap
85bfb75e
JM
26067@if gdb
26068maybe-configure-gdb: configure-gdb
26069configure-gdb:
26070 @: $(MAKE); $(unstage)
cc11cc9b
PB
26071 @r=`${PWD_COMMAND}`; export r; \
26072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26073 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
26074 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
f61428ed 26075 $(HOST_EXPORTS) \
85bfb75e
JM
26076 echo Configuring in $(HOST_SUBDIR)/gdb; \
26077 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
295f4e42 26078 case $(srcdir) in \
215c351a 26079 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 26080 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
215c351a 26081 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 26082 esac; \
85bfb75e
JM
26083 srcdiroption="--srcdir=$${topdir}/gdb"; \
26084 libsrcdir="$$s/gdb"; \
295f4e42 26085 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
26086 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26087 --target=${target_alias} $${srcdiroption} \
1358ccea 26088 || exit 1
85bfb75e 26089@endif gdb
1358ccea 26090
25b42232
PB
26091
26092
ce406537 26093
bb286d71 26094
85bfb75e
JM
26095.PHONY: all-gdb maybe-all-gdb
26096maybe-all-gdb:
26097@if gcc-bootstrap
26098all-gdb: stage_current
26099@endif gcc-bootstrap
26100@if gdb
26101TARGET-gdb=all
26102maybe-all-gdb: all-gdb
26103all-gdb: configure-gdb
26104 @: $(MAKE); $(unstage)
cc11cc9b
PB
26105 @r=`${PWD_COMMAND}`; export r; \
26106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26107 $(HOST_EXPORTS) \
26108 (cd $(HOST_SUBDIR)/gdb && \
26109 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
26110 $(TARGET-gdb))
26111@endif gdb
bb286d71 26112
85bfb75e
JM
26113
26114
26115
26116.PHONY: check-gdb maybe-check-gdb
26117maybe-check-gdb:
26118@if gdb
26119maybe-check-gdb: check-gdb
26120
26121check-gdb:
26122 @: $(MAKE); $(unstage)
cc11cc9b
PB
26123 @r=`${PWD_COMMAND}`; export r; \
26124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 26125 $(HOST_EXPORTS) \
85bfb75e
JM
26126 (cd $(HOST_SUBDIR)/gdb && \
26127 $(MAKE) $(FLAGS_TO_PASS) check)
ce406537 26128
85bfb75e
JM
26129@endif gdb
26130
26131.PHONY: install-gdb maybe-install-gdb
26132maybe-install-gdb:
26133@if gdb
26134maybe-install-gdb: install-gdb
26135
26136install-gdb: installdirs
26137 @: $(MAKE); $(unstage)
cc11cc9b
PB
26138 @r=`${PWD_COMMAND}`; export r; \
26139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 26140 $(HOST_EXPORTS) \
85bfb75e
JM
26141 (cd $(HOST_SUBDIR)/gdb && \
26142 $(MAKE) $(FLAGS_TO_PASS) install)
ce406537 26143
85bfb75e
JM
26144@endif gdb
26145
26146.PHONY: install-strip-gdb maybe-install-strip-gdb
26147maybe-install-strip-gdb:
26148@if gdb
26149maybe-install-strip-gdb: install-strip-gdb
26150
26151install-strip-gdb: installdirs
26152 @: $(MAKE); $(unstage)
cc11cc9b
PB
26153 @r=`${PWD_COMMAND}`; export r; \
26154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 26155 $(HOST_EXPORTS) \
85bfb75e
JM
26156 (cd $(HOST_SUBDIR)/gdb && \
26157 $(MAKE) $(FLAGS_TO_PASS) install-strip)
ce406537 26158
85bfb75e 26159@endif gdb
ce406537 26160
85bfb75e 26161# Other targets (info, dvi, pdf, etc.)
ce406537 26162
85bfb75e
JM
26163.PHONY: maybe-info-gdb info-gdb
26164maybe-info-gdb:
26165@if gdb
26166maybe-info-gdb: info-gdb
ce406537 26167
85bfb75e
JM
26168info-gdb: \
26169 configure-gdb
26170 @: $(MAKE); $(unstage)
26171 @[ -f ./gdb/Makefile ] || exit 0; \
26172 r=`${PWD_COMMAND}`; export r; \
295f4e42 26173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26174 $(HOST_EXPORTS) \
26175 for flag in $(EXTRA_HOST_FLAGS) ; do \
26176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26177 done; \
26178 echo "Doing info in gdb" ; \
26179 (cd $(HOST_SUBDIR)/gdb && \
26180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26182 "RANLIB=$${RANLIB}" \
26183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26184 info) \
26185 || exit 1
1358ccea 26186
85bfb75e 26187@endif gdb
25b42232 26188
85bfb75e
JM
26189.PHONY: maybe-dvi-gdb dvi-gdb
26190maybe-dvi-gdb:
26191@if gdb
26192maybe-dvi-gdb: dvi-gdb
ce406537 26193
85bfb75e
JM
26194dvi-gdb: \
26195 configure-gdb
26196 @: $(MAKE); $(unstage)
26197 @[ -f ./gdb/Makefile ] || exit 0; \
26198 r=`${PWD_COMMAND}`; export r; \
ce406537 26199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26200 $(HOST_EXPORTS) \
26201 for flag in $(EXTRA_HOST_FLAGS) ; do \
26202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26203 done; \
26204 echo "Doing dvi in gdb" ; \
26205 (cd $(HOST_SUBDIR)/gdb && \
26206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26208 "RANLIB=$${RANLIB}" \
26209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26210 dvi) \
26211 || exit 1
ce406537 26212
85bfb75e 26213@endif gdb
ce406537 26214
85bfb75e
JM
26215.PHONY: maybe-pdf-gdb pdf-gdb
26216maybe-pdf-gdb:
26217@if gdb
26218maybe-pdf-gdb: pdf-gdb
ce406537 26219
85bfb75e
JM
26220pdf-gdb: \
26221 configure-gdb
455c8f48 26222 @: $(MAKE); $(unstage)
85bfb75e 26223 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26224 r=`${PWD_COMMAND}`; export r; \
26225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26226 $(HOST_EXPORTS) \
d32ab992 26227 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26229 done; \
85bfb75e
JM
26230 echo "Doing pdf in gdb" ; \
26231 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26234 "RANLIB=$${RANLIB}" \
901119ae 26235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26236 pdf) \
1358ccea
NN
26237 || exit 1
26238
85bfb75e 26239@endif gdb
1358ccea 26240
85bfb75e
JM
26241.PHONY: maybe-html-gdb html-gdb
26242maybe-html-gdb:
26243@if gdb
26244maybe-html-gdb: html-gdb
1358ccea 26245
85bfb75e
JM
26246html-gdb: \
26247 configure-gdb
26248 @: $(MAKE); $(unstage)
26249 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26250 r=`${PWD_COMMAND}`; export r; \
26251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26252 $(HOST_EXPORTS) \
d32ab992 26253 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26255 done; \
85bfb75e
JM
26256 echo "Doing html in gdb" ; \
26257 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26260 "RANLIB=$${RANLIB}" \
901119ae 26261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26262 html) \
1358ccea
NN
26263 || exit 1
26264
85bfb75e 26265@endif gdb
1358ccea 26266
85bfb75e
JM
26267.PHONY: maybe-TAGS-gdb TAGS-gdb
26268maybe-TAGS-gdb:
26269@if gdb
26270maybe-TAGS-gdb: TAGS-gdb
b5422ad7 26271
85bfb75e
JM
26272TAGS-gdb: \
26273 configure-gdb
26274 @: $(MAKE); $(unstage)
26275 @[ -f ./gdb/Makefile ] || exit 0; \
b5422ad7
BM
26276 r=`${PWD_COMMAND}`; export r; \
26277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26278 $(HOST_EXPORTS) \
26279 for flag in $(EXTRA_HOST_FLAGS) ; do \
26280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26281 done; \
85bfb75e
JM
26282 echo "Doing TAGS in gdb" ; \
26283 (cd $(HOST_SUBDIR)/gdb && \
b5422ad7
BM
26284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26286 "RANLIB=$${RANLIB}" \
901119ae 26287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26288 TAGS) \
b5422ad7
BM
26289 || exit 1
26290
85bfb75e 26291@endif gdb
b5422ad7 26292
85bfb75e
JM
26293.PHONY: maybe-install-info-gdb install-info-gdb
26294maybe-install-info-gdb:
26295@if gdb
26296maybe-install-info-gdb: install-info-gdb
f87a2b2e 26297
85bfb75e
JM
26298install-info-gdb: \
26299 configure-gdb \
26300 info-gdb
26301 @: $(MAKE); $(unstage)
26302 @[ -f ./gdb/Makefile ] || exit 0; \
f87a2b2e
MS
26303 r=`${PWD_COMMAND}`; export r; \
26304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26305 $(HOST_EXPORTS) \
26306 for flag in $(EXTRA_HOST_FLAGS) ; do \
26307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26308 done; \
85bfb75e
JM
26309 echo "Doing install-info in gdb" ; \
26310 (cd $(HOST_SUBDIR)/gdb && \
f87a2b2e
MS
26311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26313 "RANLIB=$${RANLIB}" \
901119ae 26314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26315 install-info) \
f87a2b2e
MS
26316 || exit 1
26317
85bfb75e 26318@endif gdb
f87a2b2e 26319
85bfb75e
JM
26320.PHONY: maybe-install-pdf-gdb install-pdf-gdb
26321maybe-install-pdf-gdb:
26322@if gdb
26323maybe-install-pdf-gdb: install-pdf-gdb
1358ccea 26324
85bfb75e
JM
26325install-pdf-gdb: \
26326 configure-gdb \
26327 pdf-gdb
26328 @: $(MAKE); $(unstage)
26329 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26330 r=`${PWD_COMMAND}`; export r; \
26331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26332 $(HOST_EXPORTS) \
d32ab992 26333 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26335 done; \
85bfb75e
JM
26336 echo "Doing install-pdf in gdb" ; \
26337 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26340 "RANLIB=$${RANLIB}" \
901119ae 26341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26342 install-pdf) \
1358ccea
NN
26343 || exit 1
26344
85bfb75e 26345@endif gdb
1358ccea 26346
85bfb75e
JM
26347.PHONY: maybe-install-html-gdb install-html-gdb
26348maybe-install-html-gdb:
26349@if gdb
26350maybe-install-html-gdb: install-html-gdb
1358ccea 26351
85bfb75e
JM
26352install-html-gdb: \
26353 configure-gdb \
26354 html-gdb
26355 @: $(MAKE); $(unstage)
26356 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26357 r=`${PWD_COMMAND}`; export r; \
26358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26359 $(HOST_EXPORTS) \
d32ab992 26360 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26362 done; \
85bfb75e
JM
26363 echo "Doing install-html in gdb" ; \
26364 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26367 "RANLIB=$${RANLIB}" \
901119ae 26368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26369 install-html) \
1358ccea
NN
26370 || exit 1
26371
85bfb75e 26372@endif gdb
1358ccea 26373
85bfb75e
JM
26374.PHONY: maybe-installcheck-gdb installcheck-gdb
26375maybe-installcheck-gdb:
26376@if gdb
26377maybe-installcheck-gdb: installcheck-gdb
9c4d2493 26378
85bfb75e
JM
26379installcheck-gdb: \
26380 configure-gdb
26381 @: $(MAKE); $(unstage)
26382 @[ -f ./gdb/Makefile ] || exit 0; \
9c4d2493
BM
26383 r=`${PWD_COMMAND}`; export r; \
26384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26385 $(HOST_EXPORTS) \
26386 for flag in $(EXTRA_HOST_FLAGS) ; do \
26387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26388 done; \
85bfb75e
JM
26389 echo "Doing installcheck in gdb" ; \
26390 (cd $(HOST_SUBDIR)/gdb && \
9c4d2493
BM
26391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26393 "RANLIB=$${RANLIB}" \
901119ae 26394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26395 installcheck) \
9c4d2493
BM
26396 || exit 1
26397
85bfb75e 26398@endif gdb
9c4d2493 26399
85bfb75e
JM
26400.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
26401maybe-mostlyclean-gdb:
26402@if gdb
26403maybe-mostlyclean-gdb: mostlyclean-gdb
65d6e994 26404
85bfb75e
JM
26405mostlyclean-gdb:
26406 @: $(MAKE); $(unstage)
26407 @[ -f ./gdb/Makefile ] || exit 0; \
65d6e994
CD
26408 r=`${PWD_COMMAND}`; export r; \
26409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26410 $(HOST_EXPORTS) \
26411 for flag in $(EXTRA_HOST_FLAGS) ; do \
26412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26413 done; \
85bfb75e
JM
26414 echo "Doing mostlyclean in gdb" ; \
26415 (cd $(HOST_SUBDIR)/gdb && \
65d6e994
CD
26416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26418 "RANLIB=$${RANLIB}" \
901119ae 26419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26420 mostlyclean) \
65d6e994
CD
26421 || exit 1
26422
85bfb75e 26423@endif gdb
65d6e994 26424
85bfb75e
JM
26425.PHONY: maybe-clean-gdb clean-gdb
26426maybe-clean-gdb:
26427@if gdb
26428maybe-clean-gdb: clean-gdb
1358ccea 26429
85bfb75e
JM
26430clean-gdb:
26431 @: $(MAKE); $(unstage)
26432 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26433 r=`${PWD_COMMAND}`; export r; \
26434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26435 $(HOST_EXPORTS) \
d32ab992 26436 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26438 done; \
85bfb75e
JM
26439 echo "Doing clean in gdb" ; \
26440 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26443 "RANLIB=$${RANLIB}" \
901119ae 26444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26445 clean) \
1358ccea
NN
26446 || exit 1
26447
85bfb75e 26448@endif gdb
1358ccea 26449
85bfb75e
JM
26450.PHONY: maybe-distclean-gdb distclean-gdb
26451maybe-distclean-gdb:
26452@if gdb
26453maybe-distclean-gdb: distclean-gdb
1358ccea 26454
85bfb75e
JM
26455distclean-gdb:
26456 @: $(MAKE); $(unstage)
26457 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26458 r=`${PWD_COMMAND}`; export r; \
26459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26460 $(HOST_EXPORTS) \
d32ab992 26461 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26463 done; \
85bfb75e
JM
26464 echo "Doing distclean in gdb" ; \
26465 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26468 "RANLIB=$${RANLIB}" \
901119ae 26469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26470 distclean) \
1358ccea
NN
26471 || exit 1
26472
85bfb75e 26473@endif gdb
1358ccea 26474
85bfb75e
JM
26475.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
26476maybe-maintainer-clean-gdb:
26477@if gdb
26478maybe-maintainer-clean-gdb: maintainer-clean-gdb
1358ccea 26479
85bfb75e
JM
26480maintainer-clean-gdb:
26481 @: $(MAKE); $(unstage)
26482 @[ -f ./gdb/Makefile ] || exit 0; \
8c90b13a
L
26483 r=`${PWD_COMMAND}`; export r; \
26484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26485 $(HOST_EXPORTS) \
d32ab992 26486 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
26487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26488 done; \
85bfb75e
JM
26489 echo "Doing maintainer-clean in gdb" ; \
26490 (cd $(HOST_SUBDIR)/gdb && \
1358ccea
NN
26491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26493 "RANLIB=$${RANLIB}" \
901119ae 26494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 26495 maintainer-clean) \
1358ccea
NN
26496 || exit 1
26497
85bfb75e 26498@endif gdb
1358ccea 26499
1358ccea 26500
25b42232 26501
85bfb75e
JM
26502.PHONY: configure-expect maybe-configure-expect
26503maybe-configure-expect:
3ff3adad 26504@if gcc-bootstrap
85bfb75e 26505configure-expect: stage_current
3ff3adad 26506@endif gcc-bootstrap
85bfb75e
JM
26507@if expect
26508maybe-configure-expect: configure-expect
26509configure-expect:
26510 @: $(MAKE); $(unstage)
cc11cc9b
PB
26511 @r=`${PWD_COMMAND}`; export r; \
26512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26513 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
26514 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
f61428ed 26515 $(HOST_EXPORTS) \
85bfb75e
JM
26516 echo Configuring in $(HOST_SUBDIR)/expect; \
26517 cd "$(HOST_SUBDIR)/expect" || exit 1; \
a4b6c45a
BE
26518 case $(srcdir) in \
26519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 26520 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
a4b6c45a
BE
26521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26522 esac; \
85bfb75e
JM
26523 srcdiroption="--srcdir=$${topdir}/expect"; \
26524 libsrcdir="$$s/expect"; \
a4b6c45a 26525 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
26526 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26527 --target=${target_alias} $${srcdiroption} \
a4b6c45a 26528 || exit 1
85bfb75e 26529@endif expect
a4b6c45a
BE
26530
26531
26532
a4b6c45a 26533
bb286d71 26534
85bfb75e
JM
26535.PHONY: all-expect maybe-all-expect
26536maybe-all-expect:
26537@if gcc-bootstrap
26538all-expect: stage_current
26539@endif gcc-bootstrap
26540@if expect
26541TARGET-expect=all
26542maybe-all-expect: all-expect
26543all-expect: configure-expect
26544 @: $(MAKE); $(unstage)
cc11cc9b
PB
26545 @r=`${PWD_COMMAND}`; export r; \
26546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26547 $(HOST_EXPORTS) \
26548 (cd $(HOST_SUBDIR)/expect && \
26549 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
26550 $(TARGET-expect))
26551@endif expect
bb286d71 26552
85bfb75e
JM
26553
26554
26555
26556.PHONY: check-expect maybe-check-expect
26557maybe-check-expect:
26558@if expect
26559maybe-check-expect: check-expect
26560
26561check-expect:
26562 @: $(MAKE); $(unstage)
cc11cc9b
PB
26563 @r=`${PWD_COMMAND}`; export r; \
26564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a 26565 $(HOST_EXPORTS) \
85bfb75e
JM
26566 (cd $(HOST_SUBDIR)/expect && \
26567 $(MAKE) $(FLAGS_TO_PASS) check)
a4b6c45a 26568
85bfb75e
JM
26569@endif expect
26570
26571.PHONY: install-expect maybe-install-expect
26572maybe-install-expect:
26573@if expect
26574maybe-install-expect: install-expect
26575
26576install-expect: installdirs
26577 @: $(MAKE); $(unstage)
cc11cc9b
PB
26578 @r=`${PWD_COMMAND}`; export r; \
26579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a 26580 $(HOST_EXPORTS) \
85bfb75e
JM
26581 (cd $(HOST_SUBDIR)/expect && \
26582 $(MAKE) $(FLAGS_TO_PASS) install)
a4b6c45a 26583
85bfb75e
JM
26584@endif expect
26585
26586.PHONY: install-strip-expect maybe-install-strip-expect
26587maybe-install-strip-expect:
26588@if expect
26589maybe-install-strip-expect: install-strip-expect
26590
26591install-strip-expect: installdirs
26592 @: $(MAKE); $(unstage)
cc11cc9b
PB
26593 @r=`${PWD_COMMAND}`; export r; \
26594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a 26595 $(HOST_EXPORTS) \
85bfb75e
JM
26596 (cd $(HOST_SUBDIR)/expect && \
26597 $(MAKE) $(FLAGS_TO_PASS) install-strip)
a4b6c45a 26598
85bfb75e 26599@endif expect
a4b6c45a 26600
85bfb75e 26601# Other targets (info, dvi, pdf, etc.)
a4b6c45a 26602
85bfb75e
JM
26603.PHONY: maybe-info-expect info-expect
26604maybe-info-expect:
26605@if expect
26606maybe-info-expect: info-expect
a4b6c45a 26607
85bfb75e
JM
26608info-expect: \
26609 configure-expect
26610 @: $(MAKE); $(unstage)
26611 @[ -f ./expect/Makefile ] || exit 0; \
26612 r=`${PWD_COMMAND}`; export r; \
a4b6c45a 26613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26614 $(HOST_EXPORTS) \
26615 for flag in $(EXTRA_HOST_FLAGS) ; do \
26616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26617 done; \
26618 echo "Doing info in expect" ; \
26619 (cd $(HOST_SUBDIR)/expect && \
26620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26622 "RANLIB=$${RANLIB}" \
26623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26624 info) \
26625 || exit 1
a4b6c45a 26626
85bfb75e 26627@endif expect
a4b6c45a 26628
85bfb75e
JM
26629.PHONY: maybe-dvi-expect dvi-expect
26630maybe-dvi-expect:
26631@if expect
26632maybe-dvi-expect: dvi-expect
a4b6c45a 26633
85bfb75e
JM
26634dvi-expect: \
26635 configure-expect
26636 @: $(MAKE); $(unstage)
26637 @[ -f ./expect/Makefile ] || exit 0; \
26638 r=`${PWD_COMMAND}`; export r; \
a4b6c45a 26639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26640 $(HOST_EXPORTS) \
26641 for flag in $(EXTRA_HOST_FLAGS) ; do \
26642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26643 done; \
26644 echo "Doing dvi in expect" ; \
26645 (cd $(HOST_SUBDIR)/expect && \
26646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26648 "RANLIB=$${RANLIB}" \
26649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26650 dvi) \
26651 || exit 1
a4b6c45a 26652
85bfb75e 26653@endif expect
a4b6c45a 26654
85bfb75e
JM
26655.PHONY: maybe-pdf-expect pdf-expect
26656maybe-pdf-expect:
26657@if expect
26658maybe-pdf-expect: pdf-expect
a4b6c45a 26659
85bfb75e
JM
26660pdf-expect: \
26661 configure-expect
26662 @: $(MAKE); $(unstage)
26663 @[ -f ./expect/Makefile ] || exit 0; \
26664 r=`${PWD_COMMAND}`; export r; \
a4b6c45a
BE
26665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26666 $(HOST_EXPORTS) \
85bfb75e
JM
26667 for flag in $(EXTRA_HOST_FLAGS) ; do \
26668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26669 done; \
26670 echo "Doing pdf in expect" ; \
26671 (cd $(HOST_SUBDIR)/expect && \
26672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26674 "RANLIB=$${RANLIB}" \
26675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26676 pdf) \
26677 || exit 1
a4b6c45a 26678
85bfb75e 26679@endif expect
a4b6c45a 26680
85bfb75e
JM
26681.PHONY: maybe-html-expect html-expect
26682maybe-html-expect:
26683@if expect
26684maybe-html-expect: html-expect
a4b6c45a 26685
85bfb75e
JM
26686html-expect: \
26687 configure-expect
26688 @: $(MAKE); $(unstage)
26689 @[ -f ./expect/Makefile ] || exit 0; \
26690 r=`${PWD_COMMAND}`; export r; \
a4b6c45a
BE
26691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26692 $(HOST_EXPORTS) \
85bfb75e
JM
26693 for flag in $(EXTRA_HOST_FLAGS) ; do \
26694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26695 done; \
26696 echo "Doing html in expect" ; \
26697 (cd $(HOST_SUBDIR)/expect && \
26698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26700 "RANLIB=$${RANLIB}" \
26701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26702 html) \
26703 || exit 1
a4b6c45a 26704
85bfb75e 26705@endif expect
a4b6c45a 26706
85bfb75e
JM
26707.PHONY: maybe-TAGS-expect TAGS-expect
26708maybe-TAGS-expect:
26709@if expect
26710maybe-TAGS-expect: TAGS-expect
455c8f48 26711
85bfb75e
JM
26712TAGS-expect: \
26713 configure-expect
455c8f48 26714 @: $(MAKE); $(unstage)
85bfb75e 26715 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26716 r=`${PWD_COMMAND}`; export r; \
26717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26718 $(HOST_EXPORTS) \
26719 for flag in $(EXTRA_HOST_FLAGS) ; do \
26720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26721 done; \
85bfb75e
JM
26722 echo "Doing TAGS in expect" ; \
26723 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26726 "RANLIB=$${RANLIB}" \
901119ae 26727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26728 TAGS) \
26729 || exit 1
26730
85bfb75e 26731@endif expect
a4b6c45a 26732
85bfb75e
JM
26733.PHONY: maybe-install-info-expect install-info-expect
26734maybe-install-info-expect:
26735@if expect
26736maybe-install-info-expect: install-info-expect
a4b6c45a 26737
85bfb75e
JM
26738install-info-expect: \
26739 configure-expect \
26740 info-expect
26741 @: $(MAKE); $(unstage)
26742 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26743 r=`${PWD_COMMAND}`; export r; \
26744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26745 $(HOST_EXPORTS) \
26746 for flag in $(EXTRA_HOST_FLAGS) ; do \
26747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26748 done; \
85bfb75e
JM
26749 echo "Doing install-info in expect" ; \
26750 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26753 "RANLIB=$${RANLIB}" \
901119ae 26754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26755 install-info) \
26756 || exit 1
26757
85bfb75e 26758@endif expect
a4b6c45a 26759
85bfb75e
JM
26760.PHONY: maybe-install-pdf-expect install-pdf-expect
26761maybe-install-pdf-expect:
26762@if expect
26763maybe-install-pdf-expect: install-pdf-expect
9c4d2493 26764
85bfb75e
JM
26765install-pdf-expect: \
26766 configure-expect \
26767 pdf-expect
26768 @: $(MAKE); $(unstage)
26769 @[ -f ./expect/Makefile ] || exit 0; \
9c4d2493
BM
26770 r=`${PWD_COMMAND}`; export r; \
26771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26772 $(HOST_EXPORTS) \
26773 for flag in $(EXTRA_HOST_FLAGS) ; do \
26774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26775 done; \
85bfb75e
JM
26776 echo "Doing install-pdf in expect" ; \
26777 (cd $(HOST_SUBDIR)/expect && \
9c4d2493
BM
26778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26780 "RANLIB=$${RANLIB}" \
901119ae 26781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
26782 install-pdf) \
26783 || exit 1
26784
85bfb75e 26785@endif expect
9c4d2493 26786
85bfb75e
JM
26787.PHONY: maybe-install-html-expect install-html-expect
26788maybe-install-html-expect:
26789@if expect
26790maybe-install-html-expect: install-html-expect
65d6e994 26791
85bfb75e
JM
26792install-html-expect: \
26793 configure-expect \
26794 html-expect
26795 @: $(MAKE); $(unstage)
26796 @[ -f ./expect/Makefile ] || exit 0; \
65d6e994
CD
26797 r=`${PWD_COMMAND}`; export r; \
26798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26799 $(HOST_EXPORTS) \
26800 for flag in $(EXTRA_HOST_FLAGS) ; do \
26801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26802 done; \
85bfb75e
JM
26803 echo "Doing install-html in expect" ; \
26804 (cd $(HOST_SUBDIR)/expect && \
65d6e994
CD
26805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26807 "RANLIB=$${RANLIB}" \
901119ae 26808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
26809 install-html) \
26810 || exit 1
26811
85bfb75e 26812@endif expect
65d6e994 26813
85bfb75e
JM
26814.PHONY: maybe-installcheck-expect installcheck-expect
26815maybe-installcheck-expect:
26816@if expect
26817maybe-installcheck-expect: installcheck-expect
a4b6c45a 26818
85bfb75e
JM
26819installcheck-expect: \
26820 configure-expect
26821 @: $(MAKE); $(unstage)
26822 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26823 r=`${PWD_COMMAND}`; export r; \
26824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26825 $(HOST_EXPORTS) \
26826 for flag in $(EXTRA_HOST_FLAGS) ; do \
26827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26828 done; \
85bfb75e
JM
26829 echo "Doing installcheck in expect" ; \
26830 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26833 "RANLIB=$${RANLIB}" \
901119ae 26834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26835 installcheck) \
26836 || exit 1
26837
85bfb75e 26838@endif expect
a4b6c45a 26839
85bfb75e
JM
26840.PHONY: maybe-mostlyclean-expect mostlyclean-expect
26841maybe-mostlyclean-expect:
26842@if expect
26843maybe-mostlyclean-expect: mostlyclean-expect
a4b6c45a 26844
85bfb75e
JM
26845mostlyclean-expect:
26846 @: $(MAKE); $(unstage)
26847 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26848 r=`${PWD_COMMAND}`; export r; \
26849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26850 $(HOST_EXPORTS) \
26851 for flag in $(EXTRA_HOST_FLAGS) ; do \
26852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26853 done; \
85bfb75e
JM
26854 echo "Doing mostlyclean in expect" ; \
26855 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26858 "RANLIB=$${RANLIB}" \
901119ae 26859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26860 mostlyclean) \
26861 || exit 1
26862
85bfb75e 26863@endif expect
a4b6c45a 26864
85bfb75e
JM
26865.PHONY: maybe-clean-expect clean-expect
26866maybe-clean-expect:
26867@if expect
26868maybe-clean-expect: clean-expect
a4b6c45a 26869
85bfb75e
JM
26870clean-expect:
26871 @: $(MAKE); $(unstage)
26872 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26873 r=`${PWD_COMMAND}`; export r; \
26874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26875 $(HOST_EXPORTS) \
26876 for flag in $(EXTRA_HOST_FLAGS) ; do \
26877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26878 done; \
85bfb75e
JM
26879 echo "Doing clean in expect" ; \
26880 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26883 "RANLIB=$${RANLIB}" \
901119ae 26884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26885 clean) \
26886 || exit 1
26887
85bfb75e 26888@endif expect
a4b6c45a 26889
85bfb75e
JM
26890.PHONY: maybe-distclean-expect distclean-expect
26891maybe-distclean-expect:
26892@if expect
26893maybe-distclean-expect: distclean-expect
a4b6c45a 26894
85bfb75e
JM
26895distclean-expect:
26896 @: $(MAKE); $(unstage)
26897 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26898 r=`${PWD_COMMAND}`; export r; \
26899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26900 $(HOST_EXPORTS) \
26901 for flag in $(EXTRA_HOST_FLAGS) ; do \
26902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26903 done; \
85bfb75e
JM
26904 echo "Doing distclean in expect" ; \
26905 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26908 "RANLIB=$${RANLIB}" \
901119ae 26909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26910 distclean) \
26911 || exit 1
26912
85bfb75e 26913@endif expect
a4b6c45a 26914
85bfb75e
JM
26915.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
26916maybe-maintainer-clean-expect:
26917@if expect
26918maybe-maintainer-clean-expect: maintainer-clean-expect
a4b6c45a 26919
85bfb75e
JM
26920maintainer-clean-expect:
26921 @: $(MAKE); $(unstage)
26922 @[ -f ./expect/Makefile ] || exit 0; \
a4b6c45a
BE
26923 r=`${PWD_COMMAND}`; export r; \
26924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26925 $(HOST_EXPORTS) \
26926 for flag in $(EXTRA_HOST_FLAGS) ; do \
26927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26928 done; \
85bfb75e
JM
26929 echo "Doing maintainer-clean in expect" ; \
26930 (cd $(HOST_SUBDIR)/expect && \
a4b6c45a
BE
26931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26933 "RANLIB=$${RANLIB}" \
901119ae 26934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4b6c45a
BE
26935 maintainer-clean) \
26936 || exit 1
26937
85bfb75e 26938@endif expect
a4b6c45a
BE
26939
26940
26941
85bfb75e
JM
26942.PHONY: configure-guile maybe-configure-guile
26943maybe-configure-guile:
3ff3adad 26944@if gcc-bootstrap
85bfb75e 26945configure-guile: stage_current
3ff3adad 26946@endif gcc-bootstrap
85bfb75e
JM
26947@if guile
26948maybe-configure-guile: configure-guile
26949configure-guile:
f41d6665 26950 @: $(MAKE); $(unstage)
cc11cc9b 26951 @r=`${PWD_COMMAND}`; export r; \
6de9cd9a 26952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
26953 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
26954 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
f61428ed 26955 $(HOST_EXPORTS) \
85bfb75e
JM
26956 echo Configuring in $(HOST_SUBDIR)/guile; \
26957 cd "$(HOST_SUBDIR)/guile" || exit 1; \
6de9cd9a 26958 case $(srcdir) in \
215c351a 26959 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 26960 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
215c351a 26961 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 26962 esac; \
85bfb75e
JM
26963 srcdiroption="--srcdir=$${topdir}/guile"; \
26964 libsrcdir="$$s/guile"; \
6de9cd9a 26965 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
26966 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26967 --target=${target_alias} $${srcdiroption} \
6de9cd9a 26968 || exit 1
85bfb75e 26969@endif guile
6de9cd9a 26970
25b42232
PB
26971
26972
ce406537
PB
26973
26974
85bfb75e
JM
26975.PHONY: all-guile maybe-all-guile
26976maybe-all-guile:
3ff3adad 26977@if gcc-bootstrap
85bfb75e 26978all-guile: stage_current
3ff3adad 26979@endif gcc-bootstrap
85bfb75e
JM
26980@if guile
26981TARGET-guile=all
26982maybe-all-guile: all-guile
26983all-guile: configure-guile
26984 @: $(MAKE); $(unstage)
6de9cd9a
DN
26985 @r=`${PWD_COMMAND}`; export r; \
26986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 26987 $(HOST_EXPORTS) \
85bfb75e 26988 (cd $(HOST_SUBDIR)/guile && \
1c8bd6a3 26989 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
26990 $(TARGET-guile))
26991@endif guile
6de9cd9a 26992
25b42232 26993
ce406537
PB
26994
26995
85bfb75e
JM
26996.PHONY: check-guile maybe-check-guile
26997maybe-check-guile:
26998@if guile
26999maybe-check-guile: check-guile
6de9cd9a 27000
85bfb75e 27001check-guile:
f41d6665 27002 @: $(MAKE); $(unstage)
6de9cd9a
DN
27003 @r=`${PWD_COMMAND}`; export r; \
27004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27005 $(HOST_EXPORTS) \
85bfb75e 27006 (cd $(HOST_SUBDIR)/guile && \
215c351a 27007 $(MAKE) $(FLAGS_TO_PASS) check)
6de9cd9a 27008
85bfb75e 27009@endif guile
6de9cd9a 27010
85bfb75e
JM
27011.PHONY: install-guile maybe-install-guile
27012maybe-install-guile:
27013@if guile
27014maybe-install-guile: install-guile
6de9cd9a 27015
85bfb75e 27016install-guile: installdirs
f41d6665 27017 @: $(MAKE); $(unstage)
d32ab992
PB
27018 @r=`${PWD_COMMAND}`; export r; \
27019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27020 $(HOST_EXPORTS) \
85bfb75e 27021 (cd $(HOST_SUBDIR)/guile && \
ace9ac7b 27022 $(MAKE) $(FLAGS_TO_PASS) install)
6de9cd9a 27023
85bfb75e 27024@endif guile
6de9cd9a 27025
85bfb75e
JM
27026.PHONY: install-strip-guile maybe-install-strip-guile
27027maybe-install-strip-guile:
27028@if guile
27029maybe-install-strip-guile: install-strip-guile
455c8f48 27030
85bfb75e 27031install-strip-guile: installdirs
455c8f48
RW
27032 @: $(MAKE); $(unstage)
27033 @r=`${PWD_COMMAND}`; export r; \
27034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27035 $(HOST_EXPORTS) \
85bfb75e 27036 (cd $(HOST_SUBDIR)/guile && \
455c8f48
RW
27037 $(MAKE) $(FLAGS_TO_PASS) install-strip)
27038
85bfb75e 27039@endif guile
455c8f48 27040
b5422ad7 27041# Other targets (info, dvi, pdf, etc.)
6de9cd9a 27042
85bfb75e
JM
27043.PHONY: maybe-info-guile info-guile
27044maybe-info-guile:
27045@if guile
27046maybe-info-guile: info-guile
6de9cd9a 27047
85bfb75e
JM
27048info-guile: \
27049 configure-guile
f41d6665 27050 @: $(MAKE); $(unstage)
85bfb75e 27051 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27052 r=`${PWD_COMMAND}`; export r; \
27053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27054 $(HOST_EXPORTS) \
d32ab992 27055 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27057 done; \
85bfb75e
JM
27058 echo "Doing info in guile" ; \
27059 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27062 "RANLIB=$${RANLIB}" \
901119ae 27063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27064 info) \
6de9cd9a
DN
27065 || exit 1
27066
85bfb75e 27067@endif guile
6de9cd9a 27068
85bfb75e
JM
27069.PHONY: maybe-dvi-guile dvi-guile
27070maybe-dvi-guile:
27071@if guile
27072maybe-dvi-guile: dvi-guile
6de9cd9a 27073
85bfb75e
JM
27074dvi-guile: \
27075 configure-guile
f41d6665 27076 @: $(MAKE); $(unstage)
85bfb75e 27077 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27078 r=`${PWD_COMMAND}`; export r; \
27079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27080 $(HOST_EXPORTS) \
d32ab992 27081 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27083 done; \
85bfb75e
JM
27084 echo "Doing dvi in guile" ; \
27085 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27088 "RANLIB=$${RANLIB}" \
901119ae 27089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27090 dvi) \
6de9cd9a
DN
27091 || exit 1
27092
85bfb75e 27093@endif guile
6de9cd9a 27094
85bfb75e
JM
27095.PHONY: maybe-pdf-guile pdf-guile
27096maybe-pdf-guile:
27097@if guile
27098maybe-pdf-guile: pdf-guile
b5422ad7 27099
85bfb75e
JM
27100pdf-guile: \
27101 configure-guile
b5422ad7 27102 @: $(MAKE); $(unstage)
85bfb75e 27103 @[ -f ./guile/Makefile ] || exit 0; \
b5422ad7
BM
27104 r=`${PWD_COMMAND}`; export r; \
27105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27106 $(HOST_EXPORTS) \
27107 for flag in $(EXTRA_HOST_FLAGS) ; do \
27108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27109 done; \
85bfb75e
JM
27110 echo "Doing pdf in guile" ; \
27111 (cd $(HOST_SUBDIR)/guile && \
b5422ad7
BM
27112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27114 "RANLIB=$${RANLIB}" \
901119ae 27115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
27116 pdf) \
27117 || exit 1
27118
85bfb75e 27119@endif guile
b5422ad7 27120
85bfb75e
JM
27121.PHONY: maybe-html-guile html-guile
27122maybe-html-guile:
27123@if guile
27124maybe-html-guile: html-guile
f87a2b2e 27125
85bfb75e
JM
27126html-guile: \
27127 configure-guile
f41d6665 27128 @: $(MAKE); $(unstage)
85bfb75e 27129 @[ -f ./guile/Makefile ] || exit 0; \
f87a2b2e
MS
27130 r=`${PWD_COMMAND}`; export r; \
27131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27132 $(HOST_EXPORTS) \
27133 for flag in $(EXTRA_HOST_FLAGS) ; do \
27134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27135 done; \
85bfb75e
JM
27136 echo "Doing html in guile" ; \
27137 (cd $(HOST_SUBDIR)/guile && \
f87a2b2e
MS
27138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27140 "RANLIB=$${RANLIB}" \
901119ae 27141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
27142 html) \
27143 || exit 1
27144
85bfb75e 27145@endif guile
f87a2b2e 27146
85bfb75e
JM
27147.PHONY: maybe-TAGS-guile TAGS-guile
27148maybe-TAGS-guile:
27149@if guile
27150maybe-TAGS-guile: TAGS-guile
6de9cd9a 27151
85bfb75e
JM
27152TAGS-guile: \
27153 configure-guile
f41d6665 27154 @: $(MAKE); $(unstage)
85bfb75e 27155 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27156 r=`${PWD_COMMAND}`; export r; \
27157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27158 $(HOST_EXPORTS) \
d32ab992 27159 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27161 done; \
85bfb75e
JM
27162 echo "Doing TAGS in guile" ; \
27163 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27166 "RANLIB=$${RANLIB}" \
901119ae 27167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27168 TAGS) \
6de9cd9a
DN
27169 || exit 1
27170
85bfb75e 27171@endif guile
6de9cd9a 27172
85bfb75e
JM
27173.PHONY: maybe-install-info-guile install-info-guile
27174maybe-install-info-guile:
27175@if guile
27176maybe-install-info-guile: install-info-guile
6de9cd9a 27177
85bfb75e
JM
27178install-info-guile: \
27179 configure-guile \
27180 info-guile
f41d6665 27181 @: $(MAKE); $(unstage)
85bfb75e 27182 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27183 r=`${PWD_COMMAND}`; export r; \
27184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27185 $(HOST_EXPORTS) \
d32ab992 27186 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27188 done; \
85bfb75e
JM
27189 echo "Doing install-info in guile" ; \
27190 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27193 "RANLIB=$${RANLIB}" \
901119ae 27194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27195 install-info) \
6de9cd9a
DN
27196 || exit 1
27197
85bfb75e 27198@endif guile
6de9cd9a 27199
85bfb75e
JM
27200.PHONY: maybe-install-pdf-guile install-pdf-guile
27201maybe-install-pdf-guile:
27202@if guile
27203maybe-install-pdf-guile: install-pdf-guile
9c4d2493 27204
85bfb75e
JM
27205install-pdf-guile: \
27206 configure-guile \
27207 pdf-guile
9c4d2493 27208 @: $(MAKE); $(unstage)
85bfb75e 27209 @[ -f ./guile/Makefile ] || exit 0; \
9c4d2493
BM
27210 r=`${PWD_COMMAND}`; export r; \
27211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27212 $(HOST_EXPORTS) \
27213 for flag in $(EXTRA_HOST_FLAGS) ; do \
27214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27215 done; \
85bfb75e
JM
27216 echo "Doing install-pdf in guile" ; \
27217 (cd $(HOST_SUBDIR)/guile && \
9c4d2493
BM
27218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27220 "RANLIB=$${RANLIB}" \
901119ae 27221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
27222 install-pdf) \
27223 || exit 1
27224
85bfb75e 27225@endif guile
9c4d2493 27226
85bfb75e
JM
27227.PHONY: maybe-install-html-guile install-html-guile
27228maybe-install-html-guile:
27229@if guile
27230maybe-install-html-guile: install-html-guile
65d6e994 27231
85bfb75e
JM
27232install-html-guile: \
27233 configure-guile \
27234 html-guile
65d6e994 27235 @: $(MAKE); $(unstage)
85bfb75e 27236 @[ -f ./guile/Makefile ] || exit 0; \
65d6e994
CD
27237 r=`${PWD_COMMAND}`; export r; \
27238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27239 $(HOST_EXPORTS) \
27240 for flag in $(EXTRA_HOST_FLAGS) ; do \
27241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27242 done; \
85bfb75e
JM
27243 echo "Doing install-html in guile" ; \
27244 (cd $(HOST_SUBDIR)/guile && \
65d6e994
CD
27245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27247 "RANLIB=$${RANLIB}" \
901119ae 27248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
27249 install-html) \
27250 || exit 1
27251
85bfb75e 27252@endif guile
65d6e994 27253
85bfb75e
JM
27254.PHONY: maybe-installcheck-guile installcheck-guile
27255maybe-installcheck-guile:
27256@if guile
27257maybe-installcheck-guile: installcheck-guile
6de9cd9a 27258
85bfb75e
JM
27259installcheck-guile: \
27260 configure-guile
f41d6665 27261 @: $(MAKE); $(unstage)
85bfb75e 27262 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27263 r=`${PWD_COMMAND}`; export r; \
27264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27265 $(HOST_EXPORTS) \
d32ab992 27266 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27268 done; \
85bfb75e
JM
27269 echo "Doing installcheck in guile" ; \
27270 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27273 "RANLIB=$${RANLIB}" \
901119ae 27274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27275 installcheck) \
6de9cd9a
DN
27276 || exit 1
27277
85bfb75e 27278@endif guile
6de9cd9a 27279
85bfb75e
JM
27280.PHONY: maybe-mostlyclean-guile mostlyclean-guile
27281maybe-mostlyclean-guile:
27282@if guile
27283maybe-mostlyclean-guile: mostlyclean-guile
6de9cd9a 27284
85bfb75e 27285mostlyclean-guile:
f41d6665 27286 @: $(MAKE); $(unstage)
85bfb75e 27287 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27288 r=`${PWD_COMMAND}`; export r; \
27289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27290 $(HOST_EXPORTS) \
d32ab992 27291 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27293 done; \
85bfb75e
JM
27294 echo "Doing mostlyclean in guile" ; \
27295 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27298 "RANLIB=$${RANLIB}" \
901119ae 27299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27300 mostlyclean) \
6de9cd9a
DN
27301 || exit 1
27302
85bfb75e 27303@endif guile
6de9cd9a 27304
85bfb75e
JM
27305.PHONY: maybe-clean-guile clean-guile
27306maybe-clean-guile:
27307@if guile
27308maybe-clean-guile: clean-guile
6de9cd9a 27309
85bfb75e 27310clean-guile:
f41d6665 27311 @: $(MAKE); $(unstage)
85bfb75e 27312 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27313 r=`${PWD_COMMAND}`; export r; \
27314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27315 $(HOST_EXPORTS) \
d32ab992 27316 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27318 done; \
85bfb75e
JM
27319 echo "Doing clean in guile" ; \
27320 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27323 "RANLIB=$${RANLIB}" \
901119ae 27324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27325 clean) \
6de9cd9a
DN
27326 || exit 1
27327
85bfb75e 27328@endif guile
6de9cd9a 27329
85bfb75e
JM
27330.PHONY: maybe-distclean-guile distclean-guile
27331maybe-distclean-guile:
27332@if guile
27333maybe-distclean-guile: distclean-guile
6de9cd9a 27334
85bfb75e 27335distclean-guile:
f41d6665 27336 @: $(MAKE); $(unstage)
85bfb75e 27337 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27338 r=`${PWD_COMMAND}`; export r; \
27339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27340 $(HOST_EXPORTS) \
d32ab992 27341 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27343 done; \
85bfb75e
JM
27344 echo "Doing distclean in guile" ; \
27345 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27348 "RANLIB=$${RANLIB}" \
901119ae 27349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27350 distclean) \
6de9cd9a
DN
27351 || exit 1
27352
85bfb75e 27353@endif guile
6de9cd9a 27354
85bfb75e
JM
27355.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
27356maybe-maintainer-clean-guile:
27357@if guile
27358maybe-maintainer-clean-guile: maintainer-clean-guile
6de9cd9a 27359
85bfb75e 27360maintainer-clean-guile:
f41d6665 27361 @: $(MAKE); $(unstage)
85bfb75e 27362 @[ -f ./guile/Makefile ] || exit 0; \
6de9cd9a
DN
27363 r=`${PWD_COMMAND}`; export r; \
27364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27365 $(HOST_EXPORTS) \
d32ab992 27366 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
27367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27368 done; \
85bfb75e
JM
27369 echo "Doing maintainer-clean in guile" ; \
27370 (cd $(HOST_SUBDIR)/guile && \
6de9cd9a
DN
27371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27373 "RANLIB=$${RANLIB}" \
901119ae 27374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27375 maintainer-clean) \
6de9cd9a
DN
27376 || exit 1
27377
85bfb75e 27378@endif guile
6de9cd9a
DN
27379
27380
25b42232 27381
85bfb75e
JM
27382.PHONY: configure-tk maybe-configure-tk
27383maybe-configure-tk:
3ff3adad 27384@if gcc-bootstrap
85bfb75e 27385configure-tk: stage_current
3ff3adad 27386@endif gcc-bootstrap
85bfb75e
JM
27387@if tk
27388maybe-configure-tk: configure-tk
27389configure-tk:
27390 @: $(MAKE); $(unstage)
cc11cc9b
PB
27391 @r=`${PWD_COMMAND}`; export r; \
27392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
27393 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
27394 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
f61428ed 27395 $(HOST_EXPORTS) \
85bfb75e
JM
27396 echo Configuring in $(HOST_SUBDIR)/tk; \
27397 cd "$(HOST_SUBDIR)/tk" || exit 1; \
295f4e42 27398 case $(srcdir) in \
215c351a 27399 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 27400 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
215c351a 27401 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 27402 esac; \
85bfb75e
JM
27403 srcdiroption="--srcdir=$${topdir}/tk"; \
27404 libsrcdir="$$s/tk"; \
295f4e42 27405 $(SHELL) $${libsrcdir}/configure \
e69bf64b 27406 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 27407 --target=${target_alias} $${srcdiroption} \
1358ccea 27408 || exit 1
85bfb75e 27409@endif tk
1358ccea 27410
25b42232
PB
27411
27412
85bfb75e
JM
27413
27414
27415.PHONY: all-tk maybe-all-tk
27416maybe-all-tk:
27417@if gcc-bootstrap
27418all-tk: stage_current
27419@endif gcc-bootstrap
27420@if tk
27421TARGET-tk=all
27422maybe-all-tk: all-tk
27423all-tk: configure-tk
27424 @: $(MAKE); $(unstage)
cc11cc9b
PB
27425 @r=`${PWD_COMMAND}`; export r; \
27426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
27427 $(HOST_EXPORTS) \
27428 (cd $(HOST_SUBDIR)/tk && \
27429 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
27430 $(TARGET-tk))
27431@endif tk
ce406537 27432
85bfb75e
JM
27433
27434
27435
27436.PHONY: check-tk maybe-check-tk
27437maybe-check-tk:
27438@if tk
27439maybe-check-tk: check-tk
27440
27441check-tk:
27442 @: $(MAKE); $(unstage)
cc11cc9b
PB
27443 @r=`${PWD_COMMAND}`; export r; \
27444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 27445 $(HOST_EXPORTS) \
85bfb75e
JM
27446 (cd $(HOST_SUBDIR)/tk && \
27447 $(MAKE) $(FLAGS_TO_PASS) check)
bb286d71 27448
85bfb75e
JM
27449@endif tk
27450
27451.PHONY: install-tk maybe-install-tk
27452maybe-install-tk:
27453@if tk
27454maybe-install-tk: install-tk
27455
27456install-tk: installdirs
27457 @: $(MAKE); $(unstage)
cc11cc9b
PB
27458 @r=`${PWD_COMMAND}`; export r; \
27459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 27460 $(HOST_EXPORTS) \
85bfb75e
JM
27461 (cd $(HOST_SUBDIR)/tk && \
27462 $(MAKE) $(FLAGS_TO_PASS) install)
bb286d71 27463
85bfb75e
JM
27464@endif tk
27465
27466.PHONY: install-strip-tk maybe-install-strip-tk
27467maybe-install-strip-tk:
27468@if tk
27469maybe-install-strip-tk: install-strip-tk
27470
27471install-strip-tk: installdirs
27472 @: $(MAKE); $(unstage)
cc11cc9b
PB
27473 @r=`${PWD_COMMAND}`; export r; \
27474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ce406537 27475 $(HOST_EXPORTS) \
85bfb75e
JM
27476 (cd $(HOST_SUBDIR)/tk && \
27477 $(MAKE) $(FLAGS_TO_PASS) install-strip)
ce406537 27478
85bfb75e 27479@endif tk
455c8f48 27480
b5422ad7 27481# Other targets (info, dvi, pdf, etc.)
1358ccea 27482
85bfb75e
JM
27483.PHONY: maybe-info-tk info-tk
27484maybe-info-tk:
27485@if tk
27486maybe-info-tk: info-tk
295f4e42 27487
85bfb75e
JM
27488info-tk: \
27489 configure-tk
27490 @: $(MAKE); $(unstage)
27491 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27492 r=`${PWD_COMMAND}`; export r; \
27493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27494 $(HOST_EXPORTS) \
d32ab992 27495 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27497 done; \
85bfb75e
JM
27498 echo "Doing info in tk" ; \
27499 (cd $(HOST_SUBDIR)/tk && \
f87a2b2e
MS
27500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27502 "RANLIB=$${RANLIB}" \
901119ae 27503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
27504 info) \
27505 || exit 1
27506
85bfb75e 27507@endif tk
f87a2b2e 27508
85bfb75e
JM
27509.PHONY: maybe-dvi-tk dvi-tk
27510maybe-dvi-tk:
27511@if tk
27512maybe-dvi-tk: dvi-tk
f87a2b2e 27513
85bfb75e
JM
27514dvi-tk: \
27515 configure-tk
27516 @: $(MAKE); $(unstage)
27517 @[ -f ./tk/Makefile ] || exit 0; \
f87a2b2e
MS
27518 r=`${PWD_COMMAND}`; export r; \
27519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27520 $(HOST_EXPORTS) \
27521 for flag in $(EXTRA_HOST_FLAGS) ; do \
27522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27523 done; \
85bfb75e
JM
27524 echo "Doing dvi in tk" ; \
27525 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27528 "RANLIB=$${RANLIB}" \
901119ae 27529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e 27530 dvi) \
1358ccea
NN
27531 || exit 1
27532
85bfb75e 27533@endif tk
1358ccea 27534
85bfb75e
JM
27535.PHONY: maybe-pdf-tk pdf-tk
27536maybe-pdf-tk:
27537@if tk
27538maybe-pdf-tk: pdf-tk
b5422ad7 27539
85bfb75e
JM
27540pdf-tk: \
27541 configure-tk
27542 @: $(MAKE); $(unstage)
27543 @[ -f ./tk/Makefile ] || exit 0; \
b5422ad7
BM
27544 r=`${PWD_COMMAND}`; export r; \
27545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27546 $(HOST_EXPORTS) \
27547 for flag in $(EXTRA_HOST_FLAGS) ; do \
27548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27549 done; \
85bfb75e
JM
27550 echo "Doing pdf in tk" ; \
27551 (cd $(HOST_SUBDIR)/tk && \
b5422ad7
BM
27552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27554 "RANLIB=$${RANLIB}" \
901119ae 27555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
27556 pdf) \
27557 || exit 1
27558
85bfb75e 27559@endif tk
b5422ad7 27560
85bfb75e
JM
27561.PHONY: maybe-html-tk html-tk
27562maybe-html-tk:
27563@if tk
27564maybe-html-tk: html-tk
1358ccea 27565
85bfb75e
JM
27566html-tk: \
27567 configure-tk
27568 @: $(MAKE); $(unstage)
27569 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27570 r=`${PWD_COMMAND}`; export r; \
27571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27572 $(HOST_EXPORTS) \
d32ab992 27573 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27575 done; \
85bfb75e
JM
27576 echo "Doing html in tk" ; \
27577 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27580 "RANLIB=$${RANLIB}" \
901119ae 27581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e 27582 html) \
1358ccea
NN
27583 || exit 1
27584
85bfb75e 27585@endif tk
1358ccea 27586
85bfb75e
JM
27587.PHONY: maybe-TAGS-tk TAGS-tk
27588maybe-TAGS-tk:
27589@if tk
27590maybe-TAGS-tk: TAGS-tk
1358ccea 27591
85bfb75e
JM
27592TAGS-tk: \
27593 configure-tk
27594 @: $(MAKE); $(unstage)
27595 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27596 r=`${PWD_COMMAND}`; export r; \
27597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27598 $(HOST_EXPORTS) \
d32ab992 27599 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27601 done; \
85bfb75e
JM
27602 echo "Doing TAGS in tk" ; \
27603 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27606 "RANLIB=$${RANLIB}" \
901119ae 27607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27608 TAGS) \
1358ccea
NN
27609 || exit 1
27610
85bfb75e 27611@endif tk
1358ccea 27612
85bfb75e
JM
27613.PHONY: maybe-install-info-tk install-info-tk
27614maybe-install-info-tk:
27615@if tk
27616maybe-install-info-tk: install-info-tk
1358ccea 27617
85bfb75e
JM
27618install-info-tk: \
27619 configure-tk \
27620 info-tk
27621 @: $(MAKE); $(unstage)
27622 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27623 r=`${PWD_COMMAND}`; export r; \
27624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27625 $(HOST_EXPORTS) \
d32ab992 27626 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27628 done; \
85bfb75e
JM
27629 echo "Doing install-info in tk" ; \
27630 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27633 "RANLIB=$${RANLIB}" \
901119ae 27634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27635 install-info) \
1358ccea
NN
27636 || exit 1
27637
85bfb75e 27638@endif tk
1358ccea 27639
85bfb75e
JM
27640.PHONY: maybe-install-pdf-tk install-pdf-tk
27641maybe-install-pdf-tk:
27642@if tk
27643maybe-install-pdf-tk: install-pdf-tk
9c4d2493 27644
85bfb75e
JM
27645install-pdf-tk: \
27646 configure-tk \
27647 pdf-tk
27648 @: $(MAKE); $(unstage)
27649 @[ -f ./tk/Makefile ] || exit 0; \
9c4d2493
BM
27650 r=`${PWD_COMMAND}`; export r; \
27651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27652 $(HOST_EXPORTS) \
27653 for flag in $(EXTRA_HOST_FLAGS) ; do \
27654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27655 done; \
85bfb75e
JM
27656 echo "Doing install-pdf in tk" ; \
27657 (cd $(HOST_SUBDIR)/tk && \
9c4d2493
BM
27658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27660 "RANLIB=$${RANLIB}" \
901119ae 27661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
27662 install-pdf) \
27663 || exit 1
27664
85bfb75e 27665@endif tk
9c4d2493 27666
85bfb75e
JM
27667.PHONY: maybe-install-html-tk install-html-tk
27668maybe-install-html-tk:
27669@if tk
27670maybe-install-html-tk: install-html-tk
65d6e994 27671
85bfb75e
JM
27672install-html-tk: \
27673 configure-tk \
27674 html-tk
27675 @: $(MAKE); $(unstage)
27676 @[ -f ./tk/Makefile ] || exit 0; \
65d6e994
CD
27677 r=`${PWD_COMMAND}`; export r; \
27678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27679 $(HOST_EXPORTS) \
27680 for flag in $(EXTRA_HOST_FLAGS) ; do \
27681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27682 done; \
85bfb75e
JM
27683 echo "Doing install-html in tk" ; \
27684 (cd $(HOST_SUBDIR)/tk && \
65d6e994
CD
27685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27687 "RANLIB=$${RANLIB}" \
901119ae 27688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
27689 install-html) \
27690 || exit 1
27691
85bfb75e 27692@endif tk
65d6e994 27693
85bfb75e
JM
27694.PHONY: maybe-installcheck-tk installcheck-tk
27695maybe-installcheck-tk:
27696@if tk
27697maybe-installcheck-tk: installcheck-tk
1358ccea 27698
85bfb75e
JM
27699installcheck-tk: \
27700 configure-tk
27701 @: $(MAKE); $(unstage)
27702 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27703 r=`${PWD_COMMAND}`; export r; \
27704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27705 $(HOST_EXPORTS) \
d32ab992 27706 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27708 done; \
85bfb75e
JM
27709 echo "Doing installcheck in tk" ; \
27710 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27713 "RANLIB=$${RANLIB}" \
901119ae 27714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27715 installcheck) \
1358ccea
NN
27716 || exit 1
27717
85bfb75e 27718@endif tk
1358ccea 27719
85bfb75e
JM
27720.PHONY: maybe-mostlyclean-tk mostlyclean-tk
27721maybe-mostlyclean-tk:
27722@if tk
27723maybe-mostlyclean-tk: mostlyclean-tk
1358ccea 27724
85bfb75e
JM
27725mostlyclean-tk:
27726 @: $(MAKE); $(unstage)
27727 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27728 r=`${PWD_COMMAND}`; export r; \
27729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27730 $(HOST_EXPORTS) \
d32ab992 27731 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27733 done; \
85bfb75e
JM
27734 echo "Doing mostlyclean in tk" ; \
27735 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27738 "RANLIB=$${RANLIB}" \
901119ae 27739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27740 mostlyclean) \
1358ccea
NN
27741 || exit 1
27742
85bfb75e 27743@endif tk
1358ccea 27744
85bfb75e
JM
27745.PHONY: maybe-clean-tk clean-tk
27746maybe-clean-tk:
27747@if tk
27748maybe-clean-tk: clean-tk
1358ccea 27749
85bfb75e
JM
27750clean-tk:
27751 @: $(MAKE); $(unstage)
27752 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27753 r=`${PWD_COMMAND}`; export r; \
27754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27755 $(HOST_EXPORTS) \
d32ab992 27756 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27758 done; \
85bfb75e
JM
27759 echo "Doing clean in tk" ; \
27760 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27763 "RANLIB=$${RANLIB}" \
901119ae 27764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27765 clean) \
1358ccea
NN
27766 || exit 1
27767
85bfb75e 27768@endif tk
1358ccea 27769
85bfb75e
JM
27770.PHONY: maybe-distclean-tk distclean-tk
27771maybe-distclean-tk:
27772@if tk
27773maybe-distclean-tk: distclean-tk
1358ccea 27774
85bfb75e
JM
27775distclean-tk:
27776 @: $(MAKE); $(unstage)
27777 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27778 r=`${PWD_COMMAND}`; export r; \
27779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27780 $(HOST_EXPORTS) \
d32ab992 27781 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27783 done; \
85bfb75e
JM
27784 echo "Doing distclean in tk" ; \
27785 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27788 "RANLIB=$${RANLIB}" \
901119ae 27789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27790 distclean) \
1358ccea
NN
27791 || exit 1
27792
85bfb75e 27793@endif tk
1358ccea 27794
85bfb75e
JM
27795.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
27796maybe-maintainer-clean-tk:
27797@if tk
27798maybe-maintainer-clean-tk: maintainer-clean-tk
1358ccea 27799
85bfb75e
JM
27800maintainer-clean-tk:
27801 @: $(MAKE); $(unstage)
27802 @[ -f ./tk/Makefile ] || exit 0; \
8c90b13a
L
27803 r=`${PWD_COMMAND}`; export r; \
27804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27805 $(HOST_EXPORTS) \
d32ab992 27806 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
27807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27808 done; \
85bfb75e
JM
27809 echo "Doing maintainer-clean in tk" ; \
27810 (cd $(HOST_SUBDIR)/tk && \
1358ccea
NN
27811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27813 "RANLIB=$${RANLIB}" \
901119ae 27814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 27815 maintainer-clean) \
1358ccea
NN
27816 || exit 1
27817
85bfb75e 27818@endif tk
1358ccea 27819
1358ccea 27820
25b42232 27821
85bfb75e
JM
27822.PHONY: configure-libtermcap maybe-configure-libtermcap
27823maybe-configure-libtermcap:
cfb1f59f 27824@if gcc-bootstrap
85bfb75e 27825configure-libtermcap: stage_current
cfb1f59f 27826@endif gcc-bootstrap
85bfb75e
JM
27827@if libtermcap
27828maybe-configure-libtermcap: configure-libtermcap
27829configure-libtermcap:
cfb1f59f
TT
27830 @: $(MAKE); $(unstage)
27831 @r=`${PWD_COMMAND}`; export r; \
27832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
27833 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
27834 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
f61428ed 27835 $(HOST_EXPORTS) \
85bfb75e
JM
27836 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
27837 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
cfb1f59f
TT
27838 case $(srcdir) in \
27839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 27840 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
cfb1f59f
TT
27841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27842 esac; \
85bfb75e
JM
27843 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
27844 libsrcdir="$$s/libtermcap"; \
cfb1f59f
TT
27845 $(SHELL) $${libsrcdir}/configure \
27846 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 27847 --target=${target_alias} $${srcdiroption} \
cfb1f59f 27848 || exit 1
85bfb75e 27849@endif libtermcap
cfb1f59f
TT
27850
27851
27852
27853
27854
85bfb75e
JM
27855.PHONY: all-libtermcap maybe-all-libtermcap
27856maybe-all-libtermcap:
cfb1f59f 27857@if gcc-bootstrap
85bfb75e 27858all-libtermcap: stage_current
cfb1f59f 27859@endif gcc-bootstrap
85bfb75e
JM
27860@if libtermcap
27861TARGET-libtermcap=all
27862maybe-all-libtermcap: all-libtermcap
27863all-libtermcap: configure-libtermcap
cfb1f59f
TT
27864 @: $(MAKE); $(unstage)
27865 @r=`${PWD_COMMAND}`; export r; \
27866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 27867 $(HOST_EXPORTS) \
85bfb75e 27868 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f 27869 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
27870 $(TARGET-libtermcap))
27871@endif libtermcap
cfb1f59f
TT
27872
27873
27874
27875
85bfb75e
JM
27876.PHONY: check-libtermcap maybe-check-libtermcap
27877maybe-check-libtermcap:
27878@if libtermcap
27879maybe-check-libtermcap: check-libtermcap
cfb1f59f 27880
85bfb75e
JM
27881check-libtermcap:
27882
27883@endif libtermcap
27884
27885.PHONY: install-libtermcap maybe-install-libtermcap
27886maybe-install-libtermcap:
27887@if libtermcap
27888maybe-install-libtermcap: install-libtermcap
27889
27890install-libtermcap: installdirs
cfb1f59f
TT
27891 @: $(MAKE); $(unstage)
27892 @r=`${PWD_COMMAND}`; export r; \
27893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27894 $(HOST_EXPORTS) \
85bfb75e
JM
27895 (cd $(HOST_SUBDIR)/libtermcap && \
27896 $(MAKE) $(FLAGS_TO_PASS) install)
cfb1f59f 27897
85bfb75e 27898@endif libtermcap
cfb1f59f 27899
85bfb75e
JM
27900.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
27901maybe-install-strip-libtermcap:
27902@if libtermcap
27903maybe-install-strip-libtermcap: install-strip-libtermcap
455c8f48 27904
85bfb75e
JM
27905install-strip-libtermcap: installdirs
27906 @: $(MAKE); $(unstage)
27907 @r=`${PWD_COMMAND}`; export r; \
27908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27909 $(HOST_EXPORTS) \
27910 (cd $(HOST_SUBDIR)/libtermcap && \
27911 $(MAKE) $(FLAGS_TO_PASS) install-strip)
455c8f48 27912
85bfb75e 27913@endif libtermcap
455c8f48 27914
cfb1f59f
TT
27915# Other targets (info, dvi, pdf, etc.)
27916
85bfb75e
JM
27917.PHONY: maybe-info-libtermcap info-libtermcap
27918maybe-info-libtermcap:
27919@if libtermcap
27920maybe-info-libtermcap: info-libtermcap
cfb1f59f 27921
85bfb75e
JM
27922info-libtermcap: \
27923 configure-libtermcap
cfb1f59f 27924 @: $(MAKE); $(unstage)
85bfb75e 27925 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
27926 r=`${PWD_COMMAND}`; export r; \
27927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27928 $(HOST_EXPORTS) \
27929 for flag in $(EXTRA_HOST_FLAGS) ; do \
27930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27931 done; \
85bfb75e
JM
27932 echo "Doing info in libtermcap" ; \
27933 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
27934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27936 "RANLIB=$${RANLIB}" \
27937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27938 info) \
27939 || exit 1
27940
85bfb75e 27941@endif libtermcap
cfb1f59f 27942
85bfb75e
JM
27943.PHONY: maybe-dvi-libtermcap dvi-libtermcap
27944maybe-dvi-libtermcap:
27945@if libtermcap
27946maybe-dvi-libtermcap: dvi-libtermcap
cfb1f59f 27947
85bfb75e
JM
27948dvi-libtermcap: \
27949 configure-libtermcap
cfb1f59f 27950 @: $(MAKE); $(unstage)
85bfb75e 27951 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
27952 r=`${PWD_COMMAND}`; export r; \
27953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27954 $(HOST_EXPORTS) \
27955 for flag in $(EXTRA_HOST_FLAGS) ; do \
27956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27957 done; \
85bfb75e
JM
27958 echo "Doing dvi in libtermcap" ; \
27959 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
27960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27962 "RANLIB=$${RANLIB}" \
27963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27964 dvi) \
27965 || exit 1
27966
85bfb75e 27967@endif libtermcap
cfb1f59f 27968
85bfb75e
JM
27969.PHONY: maybe-pdf-libtermcap pdf-libtermcap
27970maybe-pdf-libtermcap:
27971@if libtermcap
27972maybe-pdf-libtermcap: pdf-libtermcap
cfb1f59f 27973
85bfb75e
JM
27974pdf-libtermcap: \
27975 configure-libtermcap
cfb1f59f 27976 @: $(MAKE); $(unstage)
85bfb75e 27977 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
27978 r=`${PWD_COMMAND}`; export r; \
27979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27980 $(HOST_EXPORTS) \
27981 for flag in $(EXTRA_HOST_FLAGS) ; do \
27982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27983 done; \
85bfb75e
JM
27984 echo "Doing pdf in libtermcap" ; \
27985 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
27986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27988 "RANLIB=$${RANLIB}" \
27989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27990 pdf) \
27991 || exit 1
27992
85bfb75e 27993@endif libtermcap
cfb1f59f 27994
85bfb75e
JM
27995.PHONY: maybe-html-libtermcap html-libtermcap
27996maybe-html-libtermcap:
27997@if libtermcap
27998maybe-html-libtermcap: html-libtermcap
cfb1f59f 27999
85bfb75e
JM
28000html-libtermcap: \
28001 configure-libtermcap
cfb1f59f 28002 @: $(MAKE); $(unstage)
85bfb75e 28003 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28004 r=`${PWD_COMMAND}`; export r; \
28005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28006 $(HOST_EXPORTS) \
28007 for flag in $(EXTRA_HOST_FLAGS) ; do \
28008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28009 done; \
85bfb75e
JM
28010 echo "Doing html in libtermcap" ; \
28011 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28014 "RANLIB=$${RANLIB}" \
28015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28016 html) \
28017 || exit 1
28018
85bfb75e 28019@endif libtermcap
cfb1f59f 28020
85bfb75e
JM
28021.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
28022maybe-TAGS-libtermcap:
28023@if libtermcap
28024maybe-TAGS-libtermcap: TAGS-libtermcap
cfb1f59f 28025
85bfb75e
JM
28026TAGS-libtermcap: \
28027 configure-libtermcap
cfb1f59f 28028 @: $(MAKE); $(unstage)
85bfb75e 28029 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28030 r=`${PWD_COMMAND}`; export r; \
28031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28032 $(HOST_EXPORTS) \
28033 for flag in $(EXTRA_HOST_FLAGS) ; do \
28034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28035 done; \
85bfb75e
JM
28036 echo "Doing TAGS in libtermcap" ; \
28037 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28040 "RANLIB=$${RANLIB}" \
28041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28042 TAGS) \
28043 || exit 1
28044
85bfb75e 28045@endif libtermcap
cfb1f59f 28046
85bfb75e
JM
28047.PHONY: maybe-install-info-libtermcap install-info-libtermcap
28048maybe-install-info-libtermcap:
28049@if libtermcap
28050maybe-install-info-libtermcap: install-info-libtermcap
cfb1f59f 28051
85bfb75e
JM
28052install-info-libtermcap: \
28053 configure-libtermcap \
28054 info-libtermcap
cfb1f59f 28055 @: $(MAKE); $(unstage)
85bfb75e 28056 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28057 r=`${PWD_COMMAND}`; export r; \
28058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28059 $(HOST_EXPORTS) \
28060 for flag in $(EXTRA_HOST_FLAGS) ; do \
28061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28062 done; \
85bfb75e
JM
28063 echo "Doing install-info in libtermcap" ; \
28064 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28067 "RANLIB=$${RANLIB}" \
28068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 28069 install-info) \
cfb1f59f
TT
28070 || exit 1
28071
85bfb75e 28072@endif libtermcap
cfb1f59f 28073
85bfb75e
JM
28074.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
28075maybe-install-pdf-libtermcap:
28076@if libtermcap
28077maybe-install-pdf-libtermcap: install-pdf-libtermcap
cfb1f59f 28078
85bfb75e
JM
28079install-pdf-libtermcap: \
28080 configure-libtermcap \
28081 pdf-libtermcap
cfb1f59f 28082 @: $(MAKE); $(unstage)
85bfb75e 28083 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28084 r=`${PWD_COMMAND}`; export r; \
28085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28086 $(HOST_EXPORTS) \
28087 for flag in $(EXTRA_HOST_FLAGS) ; do \
28088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28089 done; \
85bfb75e
JM
28090 echo "Doing install-pdf in libtermcap" ; \
28091 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28094 "RANLIB=$${RANLIB}" \
28095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 28096 install-pdf) \
cfb1f59f
TT
28097 || exit 1
28098
85bfb75e 28099@endif libtermcap
cfb1f59f 28100
85bfb75e
JM
28101.PHONY: maybe-install-html-libtermcap install-html-libtermcap
28102maybe-install-html-libtermcap:
28103@if libtermcap
28104maybe-install-html-libtermcap: install-html-libtermcap
cfb1f59f 28105
85bfb75e
JM
28106install-html-libtermcap: \
28107 configure-libtermcap \
28108 html-libtermcap
cfb1f59f 28109 @: $(MAKE); $(unstage)
85bfb75e 28110 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28111 r=`${PWD_COMMAND}`; export r; \
28112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28113 $(HOST_EXPORTS) \
28114 for flag in $(EXTRA_HOST_FLAGS) ; do \
28115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28116 done; \
85bfb75e
JM
28117 echo "Doing install-html in libtermcap" ; \
28118 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28121 "RANLIB=$${RANLIB}" \
28122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 28123 install-html) \
cfb1f59f
TT
28124 || exit 1
28125
85bfb75e 28126@endif libtermcap
cfb1f59f 28127
85bfb75e
JM
28128.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
28129maybe-installcheck-libtermcap:
28130@if libtermcap
28131maybe-installcheck-libtermcap: installcheck-libtermcap
cfb1f59f 28132
85bfb75e
JM
28133installcheck-libtermcap: \
28134 configure-libtermcap
cfb1f59f 28135 @: $(MAKE); $(unstage)
85bfb75e 28136 @[ -f ./libtermcap/Makefile ] || exit 0; \
cfb1f59f
TT
28137 r=`${PWD_COMMAND}`; export r; \
28138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28139 $(HOST_EXPORTS) \
28140 for flag in $(EXTRA_HOST_FLAGS) ; do \
28141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28142 done; \
85bfb75e
JM
28143 echo "Doing installcheck in libtermcap" ; \
28144 (cd $(HOST_SUBDIR)/libtermcap && \
cfb1f59f
TT
28145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28147 "RANLIB=$${RANLIB}" \
28148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 28149 installcheck) \
cfb1f59f
TT
28150 || exit 1
28151
85bfb75e 28152@endif libtermcap
cfb1f59f 28153
85bfb75e
JM
28154.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
28155maybe-mostlyclean-libtermcap:
28156@if libtermcap
28157maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
cfb1f59f 28158
85bfb75e
JM
28159# libtermcap doesn't support mostlyclean.
28160mostlyclean-libtermcap:
cfb1f59f 28161
85bfb75e 28162@endif libtermcap
cfb1f59f 28163
85bfb75e
JM
28164.PHONY: maybe-clean-libtermcap clean-libtermcap
28165maybe-clean-libtermcap:
28166@if libtermcap
28167maybe-clean-libtermcap: clean-libtermcap
cfb1f59f 28168
85bfb75e
JM
28169# libtermcap doesn't support clean.
28170clean-libtermcap:
cfb1f59f 28171
85bfb75e
JM
28172@endif libtermcap
28173
28174.PHONY: maybe-distclean-libtermcap distclean-libtermcap
28175maybe-distclean-libtermcap:
28176@if libtermcap
28177maybe-distclean-libtermcap: distclean-libtermcap
28178
28179# libtermcap doesn't support distclean.
28180distclean-libtermcap:
28181
28182@endif libtermcap
28183
28184.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
28185maybe-maintainer-clean-libtermcap:
28186@if libtermcap
28187maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
28188
28189# libtermcap doesn't support maintainer-clean.
28190maintainer-clean-libtermcap:
28191
28192@endif libtermcap
28193
28194
28195
28196.PHONY: configure-utils maybe-configure-utils
28197maybe-configure-utils:
28198@if gcc-bootstrap
28199configure-utils: stage_current
28200@endif gcc-bootstrap
28201@if utils
28202maybe-configure-utils: configure-utils
28203configure-utils:
28204 @: $(MAKE); $(unstage)
cc11cc9b 28205 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
28207 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
28208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
f61428ed 28209 $(HOST_EXPORTS) \
85bfb75e
JM
28210 echo Configuring in $(HOST_SUBDIR)/utils; \
28211 cd "$(HOST_SUBDIR)/utils" || exit 1; \
295f4e42 28212 case $(srcdir) in \
215c351a 28213 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 28214 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
215c351a 28215 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 28216 esac; \
85bfb75e
JM
28217 srcdiroption="--srcdir=$${topdir}/utils"; \
28218 libsrcdir="$$s/utils"; \
295f4e42 28219 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
28220 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28221 --target=${target_alias} $${srcdiroption} \
1358ccea 28222 || exit 1
85bfb75e 28223@endif utils
1358ccea 28224
25b42232
PB
28225
28226
ce406537
PB
28227
28228
85bfb75e
JM
28229.PHONY: all-utils maybe-all-utils
28230maybe-all-utils:
3ff3adad 28231@if gcc-bootstrap
85bfb75e 28232all-utils: stage_current
3ff3adad 28233@endif gcc-bootstrap
85bfb75e
JM
28234@if utils
28235TARGET-utils=all
28236maybe-all-utils: all-utils
28237all-utils: configure-utils
f41d6665 28238 @: $(MAKE); $(unstage)
295f4e42
NN
28239 @r=`${PWD_COMMAND}`; export r; \
28240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 28241 $(HOST_EXPORTS) \
85bfb75e 28242 (cd $(HOST_SUBDIR)/utils && \
1c8bd6a3 28243 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
28244 $(TARGET-utils))
28245@endif utils
1358ccea 28246
25b42232 28247
ce406537
PB
28248
28249
85bfb75e
JM
28250.PHONY: check-utils maybe-check-utils
28251maybe-check-utils:
28252@if utils
28253maybe-check-utils: check-utils
1358ccea 28254
85bfb75e 28255check-utils:
1358ccea 28256
85bfb75e 28257@endif utils
1358ccea 28258
85bfb75e
JM
28259.PHONY: install-utils maybe-install-utils
28260maybe-install-utils:
28261@if utils
28262maybe-install-utils: install-utils
1358ccea 28263
85bfb75e 28264install-utils: installdirs
f41d6665 28265 @: $(MAKE); $(unstage)
295f4e42 28266 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28268 $(HOST_EXPORTS) \
85bfb75e 28269 (cd $(HOST_SUBDIR)/utils && \
ace9ac7b 28270 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 28271
85bfb75e 28272@endif utils
1358ccea 28273
85bfb75e
JM
28274.PHONY: install-strip-utils maybe-install-strip-utils
28275maybe-install-strip-utils:
28276@if utils
28277maybe-install-strip-utils: install-strip-utils
455c8f48 28278
85bfb75e 28279install-strip-utils: installdirs
455c8f48
RW
28280 @: $(MAKE); $(unstage)
28281 @r=`${PWD_COMMAND}`; export r; \
28282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28283 $(HOST_EXPORTS) \
85bfb75e 28284 (cd $(HOST_SUBDIR)/utils && \
455c8f48
RW
28285 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28286
85bfb75e 28287@endif utils
455c8f48 28288
b5422ad7 28289# Other targets (info, dvi, pdf, etc.)
1358ccea 28290
85bfb75e
JM
28291.PHONY: maybe-info-utils info-utils
28292maybe-info-utils:
28293@if utils
28294maybe-info-utils: info-utils
295f4e42 28295
85bfb75e
JM
28296info-utils: \
28297 configure-utils
f41d6665 28298 @: $(MAKE); $(unstage)
85bfb75e 28299 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28300 r=`${PWD_COMMAND}`; export r; \
28301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28302 $(HOST_EXPORTS) \
d32ab992 28303 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28305 done; \
85bfb75e
JM
28306 echo "Doing info in utils" ; \
28307 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28310 "RANLIB=$${RANLIB}" \
901119ae 28311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28312 info) \
1358ccea
NN
28313 || exit 1
28314
85bfb75e 28315@endif utils
1358ccea 28316
85bfb75e
JM
28317.PHONY: maybe-dvi-utils dvi-utils
28318maybe-dvi-utils:
28319@if utils
28320maybe-dvi-utils: dvi-utils
1358ccea 28321
85bfb75e
JM
28322dvi-utils: \
28323 configure-utils
f41d6665 28324 @: $(MAKE); $(unstage)
85bfb75e 28325 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28326 r=`${PWD_COMMAND}`; export r; \
28327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28328 $(HOST_EXPORTS) \
d32ab992 28329 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28331 done; \
85bfb75e
JM
28332 echo "Doing dvi in utils" ; \
28333 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28336 "RANLIB=$${RANLIB}" \
901119ae 28337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28338 dvi) \
1358ccea
NN
28339 || exit 1
28340
85bfb75e 28341@endif utils
1358ccea 28342
85bfb75e
JM
28343.PHONY: maybe-pdf-utils pdf-utils
28344maybe-pdf-utils:
28345@if utils
28346maybe-pdf-utils: pdf-utils
b5422ad7 28347
85bfb75e
JM
28348pdf-utils: \
28349 configure-utils
b5422ad7 28350 @: $(MAKE); $(unstage)
85bfb75e 28351 @[ -f ./utils/Makefile ] || exit 0; \
b5422ad7
BM
28352 r=`${PWD_COMMAND}`; export r; \
28353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28354 $(HOST_EXPORTS) \
28355 for flag in $(EXTRA_HOST_FLAGS) ; do \
28356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28357 done; \
85bfb75e
JM
28358 echo "Doing pdf in utils" ; \
28359 (cd $(HOST_SUBDIR)/utils && \
b5422ad7
BM
28360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28362 "RANLIB=$${RANLIB}" \
901119ae 28363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
28364 pdf) \
28365 || exit 1
28366
85bfb75e 28367@endif utils
b5422ad7 28368
85bfb75e
JM
28369.PHONY: maybe-html-utils html-utils
28370maybe-html-utils:
28371@if utils
28372maybe-html-utils: html-utils
f87a2b2e 28373
85bfb75e
JM
28374html-utils: \
28375 configure-utils
f41d6665 28376 @: $(MAKE); $(unstage)
85bfb75e 28377 @[ -f ./utils/Makefile ] || exit 0; \
f87a2b2e
MS
28378 r=`${PWD_COMMAND}`; export r; \
28379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28380 $(HOST_EXPORTS) \
28381 for flag in $(EXTRA_HOST_FLAGS) ; do \
28382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28383 done; \
85bfb75e
JM
28384 echo "Doing html in utils" ; \
28385 (cd $(HOST_SUBDIR)/utils && \
f87a2b2e
MS
28386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28388 "RANLIB=$${RANLIB}" \
901119ae 28389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
28390 html) \
28391 || exit 1
28392
85bfb75e 28393@endif utils
f87a2b2e 28394
85bfb75e
JM
28395.PHONY: maybe-TAGS-utils TAGS-utils
28396maybe-TAGS-utils:
28397@if utils
28398maybe-TAGS-utils: TAGS-utils
1358ccea 28399
85bfb75e
JM
28400TAGS-utils: \
28401 configure-utils
f41d6665 28402 @: $(MAKE); $(unstage)
85bfb75e 28403 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28404 r=`${PWD_COMMAND}`; export r; \
28405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28406 $(HOST_EXPORTS) \
d32ab992 28407 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28409 done; \
85bfb75e
JM
28410 echo "Doing TAGS in utils" ; \
28411 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28414 "RANLIB=$${RANLIB}" \
901119ae 28415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28416 TAGS) \
1358ccea
NN
28417 || exit 1
28418
85bfb75e 28419@endif utils
1358ccea 28420
85bfb75e
JM
28421.PHONY: maybe-install-info-utils install-info-utils
28422maybe-install-info-utils:
28423@if utils
28424maybe-install-info-utils: install-info-utils
1358ccea 28425
85bfb75e
JM
28426install-info-utils: \
28427 configure-utils \
28428 info-utils
f41d6665 28429 @: $(MAKE); $(unstage)
85bfb75e 28430 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28431 r=`${PWD_COMMAND}`; export r; \
28432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28433 $(HOST_EXPORTS) \
d32ab992 28434 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28436 done; \
85bfb75e
JM
28437 echo "Doing install-info in utils" ; \
28438 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28441 "RANLIB=$${RANLIB}" \
901119ae 28442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28443 install-info) \
1358ccea
NN
28444 || exit 1
28445
85bfb75e 28446@endif utils
1358ccea 28447
85bfb75e
JM
28448.PHONY: maybe-install-pdf-utils install-pdf-utils
28449maybe-install-pdf-utils:
28450@if utils
28451maybe-install-pdf-utils: install-pdf-utils
9c4d2493 28452
85bfb75e
JM
28453install-pdf-utils: \
28454 configure-utils \
28455 pdf-utils
9c4d2493 28456 @: $(MAKE); $(unstage)
85bfb75e 28457 @[ -f ./utils/Makefile ] || exit 0; \
9c4d2493
BM
28458 r=`${PWD_COMMAND}`; export r; \
28459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28460 $(HOST_EXPORTS) \
28461 for flag in $(EXTRA_HOST_FLAGS) ; do \
28462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28463 done; \
85bfb75e
JM
28464 echo "Doing install-pdf in utils" ; \
28465 (cd $(HOST_SUBDIR)/utils && \
9c4d2493
BM
28466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28468 "RANLIB=$${RANLIB}" \
901119ae 28469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
28470 install-pdf) \
28471 || exit 1
28472
85bfb75e 28473@endif utils
9c4d2493 28474
85bfb75e
JM
28475.PHONY: maybe-install-html-utils install-html-utils
28476maybe-install-html-utils:
28477@if utils
28478maybe-install-html-utils: install-html-utils
65d6e994 28479
85bfb75e
JM
28480install-html-utils: \
28481 configure-utils \
28482 html-utils
65d6e994 28483 @: $(MAKE); $(unstage)
85bfb75e 28484 @[ -f ./utils/Makefile ] || exit 0; \
65d6e994
CD
28485 r=`${PWD_COMMAND}`; export r; \
28486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28487 $(HOST_EXPORTS) \
28488 for flag in $(EXTRA_HOST_FLAGS) ; do \
28489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28490 done; \
85bfb75e
JM
28491 echo "Doing install-html in utils" ; \
28492 (cd $(HOST_SUBDIR)/utils && \
65d6e994
CD
28493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28495 "RANLIB=$${RANLIB}" \
901119ae 28496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
28497 install-html) \
28498 || exit 1
28499
85bfb75e 28500@endif utils
65d6e994 28501
85bfb75e
JM
28502.PHONY: maybe-installcheck-utils installcheck-utils
28503maybe-installcheck-utils:
28504@if utils
28505maybe-installcheck-utils: installcheck-utils
1358ccea 28506
85bfb75e
JM
28507installcheck-utils: \
28508 configure-utils
f41d6665 28509 @: $(MAKE); $(unstage)
85bfb75e 28510 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28511 r=`${PWD_COMMAND}`; export r; \
28512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28513 $(HOST_EXPORTS) \
d32ab992 28514 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28516 done; \
85bfb75e
JM
28517 echo "Doing installcheck in utils" ; \
28518 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28521 "RANLIB=$${RANLIB}" \
901119ae 28522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28523 installcheck) \
1358ccea
NN
28524 || exit 1
28525
85bfb75e 28526@endif utils
1358ccea 28527
85bfb75e
JM
28528.PHONY: maybe-mostlyclean-utils mostlyclean-utils
28529maybe-mostlyclean-utils:
28530@if utils
28531maybe-mostlyclean-utils: mostlyclean-utils
1358ccea 28532
85bfb75e 28533mostlyclean-utils:
f41d6665 28534 @: $(MAKE); $(unstage)
85bfb75e 28535 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28536 r=`${PWD_COMMAND}`; export r; \
28537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28538 $(HOST_EXPORTS) \
d32ab992 28539 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28541 done; \
85bfb75e
JM
28542 echo "Doing mostlyclean in utils" ; \
28543 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28546 "RANLIB=$${RANLIB}" \
901119ae 28547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28548 mostlyclean) \
1358ccea
NN
28549 || exit 1
28550
85bfb75e 28551@endif utils
1358ccea 28552
85bfb75e
JM
28553.PHONY: maybe-clean-utils clean-utils
28554maybe-clean-utils:
28555@if utils
28556maybe-clean-utils: clean-utils
1358ccea 28557
85bfb75e 28558clean-utils:
f41d6665 28559 @: $(MAKE); $(unstage)
85bfb75e 28560 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28561 r=`${PWD_COMMAND}`; export r; \
28562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28563 $(HOST_EXPORTS) \
d32ab992 28564 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28566 done; \
85bfb75e
JM
28567 echo "Doing clean in utils" ; \
28568 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28571 "RANLIB=$${RANLIB}" \
901119ae 28572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28573 clean) \
1358ccea
NN
28574 || exit 1
28575
85bfb75e 28576@endif utils
1358ccea 28577
85bfb75e
JM
28578.PHONY: maybe-distclean-utils distclean-utils
28579maybe-distclean-utils:
28580@if utils
28581maybe-distclean-utils: distclean-utils
1358ccea 28582
85bfb75e 28583distclean-utils:
f41d6665 28584 @: $(MAKE); $(unstage)
85bfb75e 28585 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28586 r=`${PWD_COMMAND}`; export r; \
28587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28588 $(HOST_EXPORTS) \
d32ab992 28589 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28591 done; \
85bfb75e
JM
28592 echo "Doing distclean in utils" ; \
28593 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28596 "RANLIB=$${RANLIB}" \
901119ae 28597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28598 distclean) \
1358ccea
NN
28599 || exit 1
28600
85bfb75e 28601@endif utils
1358ccea 28602
85bfb75e
JM
28603.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
28604maybe-maintainer-clean-utils:
28605@if utils
28606maybe-maintainer-clean-utils: maintainer-clean-utils
1358ccea 28607
85bfb75e 28608maintainer-clean-utils:
f41d6665 28609 @: $(MAKE); $(unstage)
85bfb75e 28610 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
28611 r=`${PWD_COMMAND}`; export r; \
28612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28613 $(HOST_EXPORTS) \
d32ab992 28614 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28616 done; \
85bfb75e
JM
28617 echo "Doing maintainer-clean in utils" ; \
28618 (cd $(HOST_SUBDIR)/utils && \
1358ccea
NN
28619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28621 "RANLIB=$${RANLIB}" \
901119ae 28622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28623 maintainer-clean) \
1358ccea
NN
28624 || exit 1
28625
85bfb75e 28626@endif utils
1358ccea 28627
1358ccea 28628
25b42232 28629
85bfb75e
JM
28630.PHONY: configure-gnattools maybe-configure-gnattools
28631maybe-configure-gnattools:
3ff3adad 28632@if gcc-bootstrap
85bfb75e 28633configure-gnattools: stage_current
3ff3adad 28634@endif gcc-bootstrap
85bfb75e
JM
28635@if gnattools
28636maybe-configure-gnattools: configure-gnattools
28637configure-gnattools:
f41d6665 28638 @: $(MAKE); $(unstage)
cc11cc9b 28639 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
28641 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
28642 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
f61428ed 28643 $(HOST_EXPORTS) \
85bfb75e
JM
28644 echo Configuring in $(HOST_SUBDIR)/gnattools; \
28645 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
295f4e42 28646 case $(srcdir) in \
215c351a 28647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 28648 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
215c351a 28649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 28650 esac; \
85bfb75e
JM
28651 srcdiroption="--srcdir=$${topdir}/gnattools"; \
28652 libsrcdir="$$s/gnattools"; \
295f4e42 28653 $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
28654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28655 --target=${target_alias} $${srcdiroption} \
1358ccea 28656 || exit 1
85bfb75e 28657@endif gnattools
1358ccea 28658
25b42232
PB
28659
28660
ce406537
PB
28661
28662
85bfb75e
JM
28663.PHONY: all-gnattools maybe-all-gnattools
28664maybe-all-gnattools:
3ff3adad 28665@if gcc-bootstrap
85bfb75e 28666all-gnattools: stage_current
3ff3adad 28667@endif gcc-bootstrap
85bfb75e
JM
28668@if gnattools
28669TARGET-gnattools=all
28670maybe-all-gnattools: all-gnattools
28671all-gnattools: configure-gnattools
f41d6665 28672 @: $(MAKE); $(unstage)
295f4e42
NN
28673 @r=`${PWD_COMMAND}`; export r; \
28674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 28675 $(HOST_EXPORTS) \
85bfb75e 28676 (cd $(HOST_SUBDIR)/gnattools && \
1c8bd6a3 28677 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
85bfb75e
JM
28678 $(TARGET-gnattools))
28679@endif gnattools
295f4e42 28680
25b42232 28681
ce406537
PB
28682
28683
85bfb75e
JM
28684.PHONY: check-gnattools maybe-check-gnattools
28685maybe-check-gnattools:
28686@if gnattools
28687maybe-check-gnattools: check-gnattools
1358ccea 28688
85bfb75e 28689check-gnattools:
f41d6665 28690 @: $(MAKE); $(unstage)
295f4e42
NN
28691 @r=`${PWD_COMMAND}`; export r; \
28692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28693 $(HOST_EXPORTS) \
85bfb75e 28694 (cd $(HOST_SUBDIR)/gnattools && \
215c351a 28695 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 28696
85bfb75e 28697@endif gnattools
295f4e42 28698
85bfb75e
JM
28699.PHONY: install-gnattools maybe-install-gnattools
28700maybe-install-gnattools:
28701@if gnattools
28702maybe-install-gnattools: install-gnattools
295f4e42 28703
85bfb75e 28704install-gnattools: installdirs
f41d6665 28705 @: $(MAKE); $(unstage)
295f4e42
NN
28706 @r=`${PWD_COMMAND}`; export r; \
28707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28708 $(HOST_EXPORTS) \
85bfb75e 28709 (cd $(HOST_SUBDIR)/gnattools && \
ace9ac7b 28710 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 28711
85bfb75e 28712@endif gnattools
295f4e42 28713
85bfb75e
JM
28714.PHONY: install-strip-gnattools maybe-install-strip-gnattools
28715maybe-install-strip-gnattools:
28716@if gnattools
28717maybe-install-strip-gnattools: install-strip-gnattools
455c8f48 28718
85bfb75e 28719install-strip-gnattools: installdirs
455c8f48
RW
28720 @: $(MAKE); $(unstage)
28721 @r=`${PWD_COMMAND}`; export r; \
28722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28723 $(HOST_EXPORTS) \
85bfb75e 28724 (cd $(HOST_SUBDIR)/gnattools && \
455c8f48
RW
28725 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28726
85bfb75e 28727@endif gnattools
455c8f48 28728
b5422ad7 28729# Other targets (info, dvi, pdf, etc.)
295f4e42 28730
85bfb75e
JM
28731.PHONY: maybe-info-gnattools info-gnattools
28732maybe-info-gnattools:
28733@if gnattools
28734maybe-info-gnattools: info-gnattools
295f4e42 28735
85bfb75e
JM
28736info-gnattools: \
28737 configure-gnattools
f41d6665 28738 @: $(MAKE); $(unstage)
85bfb75e 28739 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28740 r=`${PWD_COMMAND}`; export r; \
28741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28742 $(HOST_EXPORTS) \
d32ab992 28743 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28745 done; \
85bfb75e
JM
28746 echo "Doing info in gnattools" ; \
28747 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28750 "RANLIB=$${RANLIB}" \
901119ae 28751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28752 info) \
1358ccea
NN
28753 || exit 1
28754
85bfb75e 28755@endif gnattools
1358ccea 28756
85bfb75e
JM
28757.PHONY: maybe-dvi-gnattools dvi-gnattools
28758maybe-dvi-gnattools:
28759@if gnattools
28760maybe-dvi-gnattools: dvi-gnattools
1358ccea 28761
85bfb75e
JM
28762dvi-gnattools: \
28763 configure-gnattools
f41d6665 28764 @: $(MAKE); $(unstage)
85bfb75e 28765 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28766 r=`${PWD_COMMAND}`; export r; \
28767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28768 $(HOST_EXPORTS) \
d32ab992 28769 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28771 done; \
85bfb75e
JM
28772 echo "Doing dvi in gnattools" ; \
28773 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28776 "RANLIB=$${RANLIB}" \
901119ae 28777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28778 dvi) \
1358ccea
NN
28779 || exit 1
28780
85bfb75e 28781@endif gnattools
1358ccea 28782
85bfb75e
JM
28783.PHONY: maybe-pdf-gnattools pdf-gnattools
28784maybe-pdf-gnattools:
28785@if gnattools
28786maybe-pdf-gnattools: pdf-gnattools
b5422ad7 28787
85bfb75e
JM
28788pdf-gnattools: \
28789 configure-gnattools
b5422ad7 28790 @: $(MAKE); $(unstage)
85bfb75e 28791 @[ -f ./gnattools/Makefile ] || exit 0; \
b5422ad7
BM
28792 r=`${PWD_COMMAND}`; export r; \
28793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28794 $(HOST_EXPORTS) \
28795 for flag in $(EXTRA_HOST_FLAGS) ; do \
28796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28797 done; \
85bfb75e
JM
28798 echo "Doing pdf in gnattools" ; \
28799 (cd $(HOST_SUBDIR)/gnattools && \
b5422ad7
BM
28800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28802 "RANLIB=$${RANLIB}" \
901119ae 28803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
28804 pdf) \
28805 || exit 1
28806
85bfb75e 28807@endif gnattools
b5422ad7 28808
85bfb75e
JM
28809.PHONY: maybe-html-gnattools html-gnattools
28810maybe-html-gnattools:
28811@if gnattools
28812maybe-html-gnattools: html-gnattools
f87a2b2e 28813
85bfb75e
JM
28814html-gnattools: \
28815 configure-gnattools
f41d6665 28816 @: $(MAKE); $(unstage)
85bfb75e 28817 @[ -f ./gnattools/Makefile ] || exit 0; \
f87a2b2e
MS
28818 r=`${PWD_COMMAND}`; export r; \
28819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28820 $(HOST_EXPORTS) \
28821 for flag in $(EXTRA_HOST_FLAGS) ; do \
28822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28823 done; \
85bfb75e
JM
28824 echo "Doing html in gnattools" ; \
28825 (cd $(HOST_SUBDIR)/gnattools && \
f87a2b2e
MS
28826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28828 "RANLIB=$${RANLIB}" \
901119ae 28829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
28830 html) \
28831 || exit 1
28832
85bfb75e 28833@endif gnattools
f87a2b2e 28834
85bfb75e
JM
28835.PHONY: maybe-TAGS-gnattools TAGS-gnattools
28836maybe-TAGS-gnattools:
28837@if gnattools
28838maybe-TAGS-gnattools: TAGS-gnattools
1358ccea 28839
85bfb75e
JM
28840TAGS-gnattools: \
28841 configure-gnattools
f41d6665 28842 @: $(MAKE); $(unstage)
85bfb75e 28843 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28844 r=`${PWD_COMMAND}`; export r; \
28845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28846 $(HOST_EXPORTS) \
d32ab992 28847 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28849 done; \
85bfb75e
JM
28850 echo "Doing TAGS in gnattools" ; \
28851 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28854 "RANLIB=$${RANLIB}" \
901119ae 28855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28856 TAGS) \
1358ccea
NN
28857 || exit 1
28858
85bfb75e 28859@endif gnattools
1358ccea 28860
85bfb75e
JM
28861.PHONY: maybe-install-info-gnattools install-info-gnattools
28862maybe-install-info-gnattools:
28863@if gnattools
28864maybe-install-info-gnattools: install-info-gnattools
1358ccea 28865
85bfb75e
JM
28866install-info-gnattools: \
28867 configure-gnattools \
28868 info-gnattools
f41d6665 28869 @: $(MAKE); $(unstage)
85bfb75e 28870 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28871 r=`${PWD_COMMAND}`; export r; \
28872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28873 $(HOST_EXPORTS) \
d32ab992 28874 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28876 done; \
85bfb75e
JM
28877 echo "Doing install-info in gnattools" ; \
28878 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28881 "RANLIB=$${RANLIB}" \
901119ae 28882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28883 install-info) \
1358ccea
NN
28884 || exit 1
28885
85bfb75e 28886@endif gnattools
1358ccea 28887
85bfb75e
JM
28888.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
28889maybe-install-pdf-gnattools:
28890@if gnattools
28891maybe-install-pdf-gnattools: install-pdf-gnattools
9c4d2493 28892
85bfb75e
JM
28893install-pdf-gnattools: \
28894 configure-gnattools \
28895 pdf-gnattools
9c4d2493 28896 @: $(MAKE); $(unstage)
85bfb75e 28897 @[ -f ./gnattools/Makefile ] || exit 0; \
9c4d2493
BM
28898 r=`${PWD_COMMAND}`; export r; \
28899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28900 $(HOST_EXPORTS) \
28901 for flag in $(EXTRA_HOST_FLAGS) ; do \
28902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28903 done; \
85bfb75e
JM
28904 echo "Doing install-pdf in gnattools" ; \
28905 (cd $(HOST_SUBDIR)/gnattools && \
9c4d2493
BM
28906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28908 "RANLIB=$${RANLIB}" \
901119ae 28909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
28910 install-pdf) \
28911 || exit 1
28912
85bfb75e 28913@endif gnattools
9c4d2493 28914
85bfb75e
JM
28915.PHONY: maybe-install-html-gnattools install-html-gnattools
28916maybe-install-html-gnattools:
28917@if gnattools
28918maybe-install-html-gnattools: install-html-gnattools
65d6e994 28919
85bfb75e
JM
28920install-html-gnattools: \
28921 configure-gnattools \
28922 html-gnattools
65d6e994 28923 @: $(MAKE); $(unstage)
85bfb75e 28924 @[ -f ./gnattools/Makefile ] || exit 0; \
65d6e994
CD
28925 r=`${PWD_COMMAND}`; export r; \
28926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28927 $(HOST_EXPORTS) \
28928 for flag in $(EXTRA_HOST_FLAGS) ; do \
28929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28930 done; \
85bfb75e
JM
28931 echo "Doing install-html in gnattools" ; \
28932 (cd $(HOST_SUBDIR)/gnattools && \
65d6e994
CD
28933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28935 "RANLIB=$${RANLIB}" \
901119ae 28936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
28937 install-html) \
28938 || exit 1
28939
85bfb75e 28940@endif gnattools
65d6e994 28941
85bfb75e
JM
28942.PHONY: maybe-installcheck-gnattools installcheck-gnattools
28943maybe-installcheck-gnattools:
28944@if gnattools
28945maybe-installcheck-gnattools: installcheck-gnattools
1358ccea 28946
85bfb75e
JM
28947installcheck-gnattools: \
28948 configure-gnattools
f41d6665 28949 @: $(MAKE); $(unstage)
85bfb75e 28950 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28951 r=`${PWD_COMMAND}`; export r; \
28952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28953 $(HOST_EXPORTS) \
d32ab992 28954 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28956 done; \
85bfb75e
JM
28957 echo "Doing installcheck in gnattools" ; \
28958 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28961 "RANLIB=$${RANLIB}" \
901119ae 28962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28963 installcheck) \
1358ccea
NN
28964 || exit 1
28965
85bfb75e 28966@endif gnattools
1358ccea 28967
85bfb75e
JM
28968.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
28969maybe-mostlyclean-gnattools:
28970@if gnattools
28971maybe-mostlyclean-gnattools: mostlyclean-gnattools
1358ccea 28972
85bfb75e 28973mostlyclean-gnattools:
f41d6665 28974 @: $(MAKE); $(unstage)
85bfb75e 28975 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
28976 r=`${PWD_COMMAND}`; export r; \
28977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28978 $(HOST_EXPORTS) \
d32ab992 28979 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
28980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28981 done; \
85bfb75e
JM
28982 echo "Doing mostlyclean in gnattools" ; \
28983 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
28984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28986 "RANLIB=$${RANLIB}" \
901119ae 28987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 28988 mostlyclean) \
1358ccea
NN
28989 || exit 1
28990
85bfb75e 28991@endif gnattools
1358ccea 28992
85bfb75e
JM
28993.PHONY: maybe-clean-gnattools clean-gnattools
28994maybe-clean-gnattools:
28995@if gnattools
28996maybe-clean-gnattools: clean-gnattools
1358ccea 28997
85bfb75e 28998clean-gnattools:
f41d6665 28999 @: $(MAKE); $(unstage)
85bfb75e 29000 @[ -f ./gnattools/Makefile ] || exit 0; \
8c90b13a
L
29001 r=`${PWD_COMMAND}`; export r; \
29002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29003 $(HOST_EXPORTS) \
d32ab992 29004 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
29005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29006 done; \
85bfb75e
JM
29007 echo "Doing clean in gnattools" ; \
29008 (cd $(HOST_SUBDIR)/gnattools && \
1358ccea
NN
29009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29011 "RANLIB=$${RANLIB}" \
901119ae 29012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29013 clean) \
1358ccea
NN
29014 || exit 1
29015
85bfb75e 29016@endif gnattools
1358ccea 29017
85bfb75e
JM
29018.PHONY: maybe-distclean-gnattools distclean-gnattools
29019maybe-distclean-gnattools:
29020@if gnattools
29021maybe-distclean-gnattools: distclean-gnattools
d9cdb878 29022
85bfb75e 29023distclean-gnattools:
f41d6665 29024 @: $(MAKE); $(unstage)
85bfb75e 29025 @[ -f ./gnattools/Makefile ] || exit 0; \
d9cdb878
AC
29026 r=`${PWD_COMMAND}`; export r; \
29027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29028 $(HOST_EXPORTS) \
d32ab992 29029 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
29030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29031 done; \
85bfb75e
JM
29032 echo "Doing distclean in gnattools" ; \
29033 (cd $(HOST_SUBDIR)/gnattools && \
d9cdb878
AC
29034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
295f4e42 29036 "RANLIB=$${RANLIB}" \
901119ae 29037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29038 distclean) \
295f4e42 29039 || exit 1
6599da04 29040
85bfb75e 29041@endif gnattools
c4137c50 29042
85bfb75e
JM
29043.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
29044maybe-maintainer-clean-gnattools:
29045@if gnattools
29046maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
c4137c50 29047
85bfb75e 29048maintainer-clean-gnattools:
f41d6665 29049 @: $(MAKE); $(unstage)
85bfb75e 29050 @[ -f ./gnattools/Makefile ] || exit 0; \
295f4e42
NN
29051 r=`${PWD_COMMAND}`; export r; \
29052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29053 $(HOST_EXPORTS) \
d32ab992 29054 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29056 done; \
85bfb75e
JM
29057 echo "Doing maintainer-clean in gnattools" ; \
29058 (cd $(HOST_SUBDIR)/gnattools && \
295f4e42
NN
29059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29061 "RANLIB=$${RANLIB}" \
901119ae 29062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29063 maintainer-clean) \
295f4e42 29064 || exit 1
c4137c50 29065
85bfb75e 29066@endif gnattools
c4137c50 29067
6599da04 29068
25b42232 29069
85bfb75e
JM
29070.PHONY: configure-lto-plugin maybe-configure-lto-plugin
29071maybe-configure-lto-plugin:
3ff3adad 29072@if gcc-bootstrap
85bfb75e 29073configure-lto-plugin: stage_current
3ff3adad 29074@endif gcc-bootstrap
85bfb75e
JM
29075@if lto-plugin
29076maybe-configure-lto-plugin: configure-lto-plugin
29077configure-lto-plugin:
cc11cc9b 29078 @r=`${PWD_COMMAND}`; export r; \
d32ab992 29079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29080 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
29081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
f61428ed 29082 $(HOST_EXPORTS) \
85bfb75e
JM
29083 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
29084 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
295f4e42 29085 case $(srcdir) in \
215c351a 29086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 29087 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
215c351a 29088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 29089 esac; \
85bfb75e
JM
29090 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29091 libsrcdir="$$s/lto-plugin"; \
295f4e42 29092 $(SHELL) $${libsrcdir}/configure \
e69bf64b 29093 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
85bfb75e 29094 --target=${target_alias} $${srcdiroption} --enable-shared \
295f4e42 29095 || exit 1
85bfb75e 29096@endif lto-plugin
25b42232 29097
ce406537
PB
29098
29099
85bfb75e
JM
29100.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
29101maybe-configure-stage1-lto-plugin:
29102@if lto-plugin-bootstrap
29103maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
29104configure-stage1-lto-plugin:
29105 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
29106 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
295f4e42
NN
29107 @r=`${PWD_COMMAND}`; export r; \
29108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29109 TFLAGS="$(STAGE1_TFLAGS)"; \
29110 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
29111 $(HOST_EXPORTS) \
29112 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
29113 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
29114 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
29115 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
29116 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29117 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29118 case $(srcdir) in \
29119 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29120 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29121 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29122 esac; \
29123 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29124 libsrcdir="$$s/lto-plugin"; \
29125 $(SHELL) $${libsrcdir}/configure \
29126 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29127 --target=${target_alias} $${srcdiroption} \
29128 $(STAGE1_CONFIGURE_FLAGS) \
29129 --enable-shared
29130@endif lto-plugin-bootstrap
295f4e42 29131
85bfb75e
JM
29132.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
29133maybe-configure-stage2-lto-plugin:
29134@if lto-plugin-bootstrap
29135maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
29136configure-stage2-lto-plugin:
29137 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
29138 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
d32ab992
PB
29139 @r=`${PWD_COMMAND}`; export r; \
29140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29141 TFLAGS="$(STAGE2_TFLAGS)"; \
29142 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
d32ab992 29143 $(HOST_EXPORTS) \
85bfb75e
JM
29144 $(POSTSTAGE1_HOST_EXPORTS) \
29145 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
29146 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
29147 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
29148 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
29149 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29150 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29151 case $(srcdir) in \
29152 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29153 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29154 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29155 esac; \
29156 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29157 libsrcdir="$$s/lto-plugin"; \
29158 $(SHELL) $${libsrcdir}/configure \
29159 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29160 --target=${target_alias} $${srcdiroption} \
29161 --with-build-libsubdir=$(HOST_SUBDIR) \
29162 $(STAGE2_CONFIGURE_FLAGS) \
29163 --enable-shared
29164@endif lto-plugin-bootstrap
295f4e42 29165
85bfb75e
JM
29166.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
29167maybe-configure-stage3-lto-plugin:
29168@if lto-plugin-bootstrap
29169maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
29170configure-stage3-lto-plugin:
29171 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
29172 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
295f4e42
NN
29173 @r=`${PWD_COMMAND}`; export r; \
29174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29175 TFLAGS="$(STAGE3_TFLAGS)"; \
29176 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
4fc4dd12 29177 $(HOST_EXPORTS) \
85bfb75e
JM
29178 $(POSTSTAGE1_HOST_EXPORTS) \
29179 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
29180 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
29181 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
29182 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
29183 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29184 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29185 case $(srcdir) in \
29186 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29187 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29188 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29189 esac; \
29190 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29191 libsrcdir="$$s/lto-plugin"; \
29192 $(SHELL) $${libsrcdir}/configure \
29193 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29194 --target=${target_alias} $${srcdiroption} \
29195 --with-build-libsubdir=$(HOST_SUBDIR) \
29196 $(STAGE3_CONFIGURE_FLAGS) \
29197 --enable-shared
29198@endif lto-plugin-bootstrap
455c8f48 29199
85bfb75e
JM
29200.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
29201maybe-configure-stage4-lto-plugin:
29202@if lto-plugin-bootstrap
29203maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
29204configure-stage4-lto-plugin:
29205 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
29206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
455c8f48
RW
29207 @r=`${PWD_COMMAND}`; export r; \
29208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29209 TFLAGS="$(STAGE4_TFLAGS)"; \
29210 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
455c8f48 29211 $(HOST_EXPORTS) \
85bfb75e
JM
29212 $(POSTSTAGE1_HOST_EXPORTS) \
29213 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
29214 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
29215 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
29216 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
29217 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29218 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29219 case $(srcdir) in \
29220 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29221 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29222 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29223 esac; \
29224 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29225 libsrcdir="$$s/lto-plugin"; \
29226 $(SHELL) $${libsrcdir}/configure \
29227 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29228 --target=${target_alias} $${srcdiroption} \
29229 --with-build-libsubdir=$(HOST_SUBDIR) \
29230 $(STAGE4_CONFIGURE_FLAGS) \
29231 --enable-shared
29232@endif lto-plugin-bootstrap
295f4e42 29233
85bfb75e
JM
29234.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
29235maybe-configure-stageprofile-lto-plugin:
29236@if lto-plugin-bootstrap
29237maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
29238configure-stageprofile-lto-plugin:
29239 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
29240 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
29241 @r=`${PWD_COMMAND}`; export r; \
295f4e42 29242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29243 TFLAGS="$(STAGEprofile_TFLAGS)"; \
29244 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
4fc4dd12 29245 $(HOST_EXPORTS) \
85bfb75e
JM
29246 $(POSTSTAGE1_HOST_EXPORTS) \
29247 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
29248 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
29249 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
29250 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
29251 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29252 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29253 case $(srcdir) in \
29254 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29255 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29256 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29257 esac; \
29258 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29259 libsrcdir="$$s/lto-plugin"; \
29260 $(SHELL) $${libsrcdir}/configure \
29261 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29262 --target=${target_alias} $${srcdiroption} \
29263 --with-build-libsubdir=$(HOST_SUBDIR) \
29264 $(STAGEprofile_CONFIGURE_FLAGS) \
29265 --enable-shared
29266@endif lto-plugin-bootstrap
6599da04 29267
85bfb75e
JM
29268.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
29269maybe-configure-stagefeedback-lto-plugin:
29270@if lto-plugin-bootstrap
29271maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
29272configure-stagefeedback-lto-plugin:
29273 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
29274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
29275 @r=`${PWD_COMMAND}`; export r; \
295f4e42 29276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29277 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
29278 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
4fc4dd12 29279 $(HOST_EXPORTS) \
85bfb75e
JM
29280 $(POSTSTAGE1_HOST_EXPORTS) \
29281 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
29282 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
29283 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
29284 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
29285 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29286 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29287 case $(srcdir) in \
29288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29289 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29291 esac; \
29292 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29293 libsrcdir="$$s/lto-plugin"; \
29294 $(SHELL) $${libsrcdir}/configure \
29295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29296 --target=${target_alias} $${srcdiroption} \
29297 --with-build-libsubdir=$(HOST_SUBDIR) \
29298 $(STAGEfeedback_CONFIGURE_FLAGS) \
29299 --enable-shared
29300@endif lto-plugin-bootstrap
6599da04 29301
b5422ad7 29302
b5422ad7 29303
b5422ad7 29304
f87a2b2e 29305
85bfb75e
JM
29306.PHONY: all-lto-plugin maybe-all-lto-plugin
29307maybe-all-lto-plugin:
29308@if gcc-bootstrap
29309all-lto-plugin: stage_current
29310@endif gcc-bootstrap
29311@if lto-plugin
29312TARGET-lto-plugin=all
29313maybe-all-lto-plugin: all-lto-plugin
29314all-lto-plugin: configure-lto-plugin
29315 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 29316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29317 $(HOST_EXPORTS) \
29318 (cd $(HOST_SUBDIR)/lto-plugin && \
29319 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
29320 $(TARGET-lto-plugin))
29321@endif lto-plugin
f87a2b2e 29322
f87a2b2e 29323
4977bab6 29324
85bfb75e
JM
29325.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
29326.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
29327maybe-all-stage1-lto-plugin:
29328maybe-clean-stage1-lto-plugin:
29329@if lto-plugin-bootstrap
29330maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
29331all-stage1: all-stage1-lto-plugin
29332TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
29333all-stage1-lto-plugin: configure-stage1-lto-plugin
29334 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
29335 @r=`${PWD_COMMAND}`; export r; \
295f4e42 29336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29337 TFLAGS="$(STAGE1_TFLAGS)"; \
29338 $(HOST_EXPORTS) \
29339 cd $(HOST_SUBDIR)/lto-plugin && \
29340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29341 CFLAGS="$(STAGE1_CFLAGS)" \
29342 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
29343 LIBCFLAGS="$(LIBCFLAGS)" \
29344 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29345 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29346 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29347 $(EXTRA_HOST_FLAGS) \
29348 TFLAGS="$(STAGE1_TFLAGS)" \
29349 $(TARGET-stage1-lto-plugin)
4977bab6 29350
85bfb75e
JM
29351maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
29352clean-stage1: clean-stage1-lto-plugin
29353clean-stage1-lto-plugin:
29354 @if [ $(current_stage) = stage1 ]; then \
29355 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29356 else \
29357 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
29358 $(MAKE) stage1-start; \
29359 fi; \
29360 cd $(HOST_SUBDIR)/lto-plugin && \
29361 $(MAKE) $(EXTRA_HOST_FLAGS) \
29362 clean
29363@endif lto-plugin-bootstrap
4977bab6 29364
4977bab6 29365
85bfb75e
JM
29366.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
29367.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
29368maybe-all-stage2-lto-plugin:
29369maybe-clean-stage2-lto-plugin:
29370@if lto-plugin-bootstrap
29371maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
29372all-stage2: all-stage2-lto-plugin
29373TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
29374all-stage2-lto-plugin: configure-stage2-lto-plugin
29375 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
29376 @r=`${PWD_COMMAND}`; export r; \
295f4e42 29377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 29378 TFLAGS="$(STAGE2_TFLAGS)"; \
4fc4dd12 29379 $(HOST_EXPORTS) \
85bfb75e
JM
29380 $(POSTSTAGE1_HOST_EXPORTS) \
29381 cd $(HOST_SUBDIR)/lto-plugin && \
29382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29383 CFLAGS="$(STAGE2_CFLAGS)" \
29384 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
29385 LIBCFLAGS="$(STAGE2_CFLAGS)" \
29386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29389 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29390 TFLAGS="$(STAGE2_TFLAGS)" \
29391 $(TARGET-stage2-lto-plugin)
4977bab6 29392
85bfb75e
JM
29393maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
29394clean-stage2: clean-stage2-lto-plugin
29395clean-stage2-lto-plugin:
29396 @if [ $(current_stage) = stage2 ]; then \
29397 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29398 else \
29399 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
29400 $(MAKE) stage2-start; \
29401 fi; \
29402 cd $(HOST_SUBDIR)/lto-plugin && \
29403 $(MAKE) $(EXTRA_HOST_FLAGS) \
29404 $(POSTSTAGE1_FLAGS_TO_PASS) \
29405 clean
29406@endif lto-plugin-bootstrap
4977bab6 29407
9c4d2493 29408
85bfb75e
JM
29409.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
29410.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
29411maybe-all-stage3-lto-plugin:
29412maybe-clean-stage3-lto-plugin:
29413@if lto-plugin-bootstrap
29414maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
29415all-stage3: all-stage3-lto-plugin
29416TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
29417all-stage3-lto-plugin: configure-stage3-lto-plugin
29418 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
29419 @r=`${PWD_COMMAND}`; export r; \
9c4d2493 29420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 29421 TFLAGS="$(STAGE3_TFLAGS)"; \
9c4d2493 29422 $(HOST_EXPORTS) \
85bfb75e
JM
29423 $(POSTSTAGE1_HOST_EXPORTS) \
29424 cd $(HOST_SUBDIR)/lto-plugin && \
29425 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29426 CFLAGS="$(STAGE3_CFLAGS)" \
29427 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
29428 LIBCFLAGS="$(STAGE3_CFLAGS)" \
29429 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29430 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29431 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29432 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29433 TFLAGS="$(STAGE3_TFLAGS)" \
29434 $(TARGET-stage3-lto-plugin)
9c4d2493 29435
85bfb75e
JM
29436maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
29437clean-stage3: clean-stage3-lto-plugin
29438clean-stage3-lto-plugin:
29439 @if [ $(current_stage) = stage3 ]; then \
29440 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29441 else \
29442 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
29443 $(MAKE) stage3-start; \
29444 fi; \
29445 cd $(HOST_SUBDIR)/lto-plugin && \
29446 $(MAKE) $(EXTRA_HOST_FLAGS) \
29447 $(POSTSTAGE1_FLAGS_TO_PASS) \
29448 clean
29449@endif lto-plugin-bootstrap
9c4d2493 29450
65d6e994 29451
85bfb75e
JM
29452.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
29453.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
29454maybe-all-stage4-lto-plugin:
29455maybe-clean-stage4-lto-plugin:
29456@if lto-plugin-bootstrap
29457maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
29458all-stage4: all-stage4-lto-plugin
29459TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
29460all-stage4-lto-plugin: configure-stage4-lto-plugin
29461 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
29462 @r=`${PWD_COMMAND}`; export r; \
65d6e994 29463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 29464 TFLAGS="$(STAGE4_TFLAGS)"; \
65d6e994 29465 $(HOST_EXPORTS) \
85bfb75e
JM
29466 $(POSTSTAGE1_HOST_EXPORTS) \
29467 cd $(HOST_SUBDIR)/lto-plugin && \
29468 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29469 CFLAGS="$(STAGE4_CFLAGS)" \
29470 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
29471 LIBCFLAGS="$(STAGE4_CFLAGS)" \
29472 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29473 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29474 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29475 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29476 TFLAGS="$(STAGE4_TFLAGS)" \
29477 $(TARGET-stage4-lto-plugin)
65d6e994 29478
85bfb75e
JM
29479maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
29480clean-stage4: clean-stage4-lto-plugin
29481clean-stage4-lto-plugin:
29482 @if [ $(current_stage) = stage4 ]; then \
29483 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29484 else \
29485 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
29486 $(MAKE) stage4-start; \
29487 fi; \
29488 cd $(HOST_SUBDIR)/lto-plugin && \
29489 $(MAKE) $(EXTRA_HOST_FLAGS) \
29490 $(POSTSTAGE1_FLAGS_TO_PASS) \
29491 clean
29492@endif lto-plugin-bootstrap
295f4e42 29493
295f4e42 29494
85bfb75e
JM
29495.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
29496.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
29497maybe-all-stageprofile-lto-plugin:
29498maybe-clean-stageprofile-lto-plugin:
29499@if lto-plugin-bootstrap
29500maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
29501all-stageprofile: all-stageprofile-lto-plugin
29502TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
29503all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
29504 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
29505 @r=`${PWD_COMMAND}`; export r; \
295f4e42 29506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 29507 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4fc4dd12 29508 $(HOST_EXPORTS) \
85bfb75e
JM
29509 $(POSTSTAGE1_HOST_EXPORTS) \
29510 cd $(HOST_SUBDIR)/lto-plugin && \
29511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29512 CFLAGS="$(STAGEprofile_CFLAGS)" \
29513 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
29514 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
29515 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29516 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29517 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29518 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29519 TFLAGS="$(STAGEprofile_TFLAGS)" \
29520 $(TARGET-stageprofile-lto-plugin)
4977bab6 29521
85bfb75e
JM
29522maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
29523clean-stageprofile: clean-stageprofile-lto-plugin
29524clean-stageprofile-lto-plugin:
29525 @if [ $(current_stage) = stageprofile ]; then \
29526 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29527 else \
29528 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
29529 $(MAKE) stageprofile-start; \
29530 fi; \
29531 cd $(HOST_SUBDIR)/lto-plugin && \
29532 $(MAKE) $(EXTRA_HOST_FLAGS) \
29533 $(POSTSTAGE1_FLAGS_TO_PASS) \
29534 clean
29535@endif lto-plugin-bootstrap
295f4e42 29536
295f4e42 29537
85bfb75e
JM
29538.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
29539.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
29540maybe-all-stagefeedback-lto-plugin:
29541maybe-clean-stagefeedback-lto-plugin:
29542@if lto-plugin-bootstrap
29543maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
29544all-stagefeedback: all-stagefeedback-lto-plugin
29545TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
29546all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
29547 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
29548 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 29550 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4fc4dd12 29551 $(HOST_EXPORTS) \
85bfb75e
JM
29552 $(POSTSTAGE1_HOST_EXPORTS) \
29553 cd $(HOST_SUBDIR)/lto-plugin && \
29554 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29555 CFLAGS="$(STAGEfeedback_CFLAGS)" \
29556 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
29557 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
29558 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29559 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29560 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29561 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29562 TFLAGS="$(STAGEfeedback_TFLAGS)" \
29563 $(TARGET-stagefeedback-lto-plugin)
4977bab6 29564
85bfb75e
JM
29565maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
29566clean-stagefeedback: clean-stagefeedback-lto-plugin
29567clean-stagefeedback-lto-plugin:
29568 @if [ $(current_stage) = stagefeedback ]; then \
29569 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
29570 else \
29571 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
29572 $(MAKE) stagefeedback-start; \
29573 fi; \
29574 cd $(HOST_SUBDIR)/lto-plugin && \
29575 $(MAKE) $(EXTRA_HOST_FLAGS) \
29576 $(POSTSTAGE1_FLAGS_TO_PASS) \
29577 clean
29578@endif lto-plugin-bootstrap
25b42232 29579
4977bab6 29580
25b42232
PB
29581
29582
ce406537 29583
85bfb75e
JM
29584.PHONY: check-lto-plugin maybe-check-lto-plugin
29585maybe-check-lto-plugin:
29586@if lto-plugin
29587maybe-check-lto-plugin: check-lto-plugin
ce406537 29588
85bfb75e 29589check-lto-plugin:
f41d6665 29590 @: $(MAKE); $(unstage)
8c90b13a
L
29591 @r=`${PWD_COMMAND}`; export r; \
29592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29593 $(HOST_EXPORTS) \
29594 (cd $(HOST_SUBDIR)/lto-plugin && \
29595 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 29596
85bfb75e 29597@endif lto-plugin
4977bab6 29598
85bfb75e
JM
29599.PHONY: install-lto-plugin maybe-install-lto-plugin
29600maybe-install-lto-plugin:
29601@if lto-plugin
29602maybe-install-lto-plugin: install-lto-plugin
7e2dbcef 29603
85bfb75e 29604install-lto-plugin: installdirs
f41d6665 29605 @: $(MAKE); $(unstage)
8c90b13a
L
29606 @r=`${PWD_COMMAND}`; export r; \
29607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29608 $(HOST_EXPORTS) \
85bfb75e 29609 (cd $(HOST_SUBDIR)/lto-plugin && \
ace9ac7b 29610 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 29611
85bfb75e 29612@endif lto-plugin
295f4e42 29613
85bfb75e
JM
29614.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
29615maybe-install-strip-lto-plugin:
29616@if lto-plugin
29617maybe-install-strip-lto-plugin: install-strip-lto-plugin
455c8f48 29618
85bfb75e 29619install-strip-lto-plugin: installdirs
455c8f48
RW
29620 @: $(MAKE); $(unstage)
29621 @r=`${PWD_COMMAND}`; export r; \
29622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29623 $(HOST_EXPORTS) \
85bfb75e 29624 (cd $(HOST_SUBDIR)/lto-plugin && \
455c8f48
RW
29625 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29626
85bfb75e 29627@endif lto-plugin
455c8f48 29628
b5422ad7 29629# Other targets (info, dvi, pdf, etc.)
295f4e42 29630
85bfb75e
JM
29631.PHONY: maybe-info-lto-plugin info-lto-plugin
29632maybe-info-lto-plugin:
29633@if lto-plugin
29634maybe-info-lto-plugin: info-lto-plugin
295f4e42 29635
85bfb75e
JM
29636info-lto-plugin: \
29637 configure-lto-plugin
29638 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29639 r=`${PWD_COMMAND}`; export r; \
29640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29641 $(HOST_EXPORTS) \
d32ab992 29642 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29644 done; \
85bfb75e
JM
29645 echo "Doing info in lto-plugin" ; \
29646 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29649 "RANLIB=$${RANLIB}" \
901119ae 29650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29651 info) \
295f4e42
NN
29652 || exit 1
29653
85bfb75e 29654@endif lto-plugin
295f4e42 29655
85bfb75e
JM
29656.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
29657maybe-dvi-lto-plugin:
29658@if lto-plugin
29659maybe-dvi-lto-plugin: dvi-lto-plugin
295f4e42 29660
85bfb75e
JM
29661dvi-lto-plugin: \
29662 configure-lto-plugin
29663 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29664 r=`${PWD_COMMAND}`; export r; \
29665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29666 $(HOST_EXPORTS) \
d32ab992 29667 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29669 done; \
85bfb75e
JM
29670 echo "Doing dvi in lto-plugin" ; \
29671 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29674 "RANLIB=$${RANLIB}" \
901119ae 29675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29676 dvi) \
295f4e42
NN
29677 || exit 1
29678
85bfb75e 29679@endif lto-plugin
295f4e42 29680
85bfb75e
JM
29681.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
29682maybe-pdf-lto-plugin:
29683@if lto-plugin
29684maybe-pdf-lto-plugin: pdf-lto-plugin
b5422ad7 29685
85bfb75e
JM
29686pdf-lto-plugin: \
29687 configure-lto-plugin
29688 @[ -f ./lto-plugin/Makefile ] || exit 0; \
b5422ad7
BM
29689 r=`${PWD_COMMAND}`; export r; \
29690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29691 $(HOST_EXPORTS) \
29692 for flag in $(EXTRA_HOST_FLAGS) ; do \
29693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29694 done; \
85bfb75e
JM
29695 echo "Doing pdf in lto-plugin" ; \
29696 (cd $(HOST_SUBDIR)/lto-plugin && \
b5422ad7
BM
29697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29699 "RANLIB=$${RANLIB}" \
901119ae 29700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
29701 pdf) \
29702 || exit 1
29703
85bfb75e 29704@endif lto-plugin
b5422ad7 29705
85bfb75e
JM
29706.PHONY: maybe-html-lto-plugin html-lto-plugin
29707maybe-html-lto-plugin:
29708@if lto-plugin
29709maybe-html-lto-plugin: html-lto-plugin
f87a2b2e 29710
85bfb75e
JM
29711html-lto-plugin: \
29712 configure-lto-plugin
29713 @[ -f ./lto-plugin/Makefile ] || exit 0; \
f87a2b2e
MS
29714 r=`${PWD_COMMAND}`; export r; \
29715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29716 $(HOST_EXPORTS) \
29717 for flag in $(EXTRA_HOST_FLAGS) ; do \
29718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29719 done; \
85bfb75e
JM
29720 echo "Doing html in lto-plugin" ; \
29721 (cd $(HOST_SUBDIR)/lto-plugin && \
f87a2b2e
MS
29722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29724 "RANLIB=$${RANLIB}" \
901119ae 29725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
29726 html) \
29727 || exit 1
29728
85bfb75e 29729@endif lto-plugin
f87a2b2e 29730
85bfb75e
JM
29731.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
29732maybe-TAGS-lto-plugin:
29733@if lto-plugin
29734maybe-TAGS-lto-plugin: TAGS-lto-plugin
295f4e42 29735
85bfb75e
JM
29736TAGS-lto-plugin: \
29737 configure-lto-plugin
29738 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29739 r=`${PWD_COMMAND}`; export r; \
29740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29741 $(HOST_EXPORTS) \
d32ab992 29742 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29744 done; \
85bfb75e
JM
29745 echo "Doing TAGS in lto-plugin" ; \
29746 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29749 "RANLIB=$${RANLIB}" \
901119ae 29750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29751 TAGS) \
295f4e42
NN
29752 || exit 1
29753
85bfb75e 29754@endif lto-plugin
295f4e42 29755
85bfb75e
JM
29756.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
29757maybe-install-info-lto-plugin:
29758@if lto-plugin
29759maybe-install-info-lto-plugin: install-info-lto-plugin
295f4e42 29760
85bfb75e
JM
29761install-info-lto-plugin: \
29762 configure-lto-plugin \
29763 info-lto-plugin
29764 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29765 r=`${PWD_COMMAND}`; export r; \
29766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29767 $(HOST_EXPORTS) \
d32ab992 29768 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29770 done; \
85bfb75e
JM
29771 echo "Doing install-info in lto-plugin" ; \
29772 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29775 "RANLIB=$${RANLIB}" \
901119ae 29776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29777 install-info) \
295f4e42
NN
29778 || exit 1
29779
85bfb75e 29780@endif lto-plugin
295f4e42 29781
85bfb75e
JM
29782.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
29783maybe-install-pdf-lto-plugin:
29784@if lto-plugin
29785maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
9c4d2493 29786
85bfb75e
JM
29787install-pdf-lto-plugin: \
29788 configure-lto-plugin \
29789 pdf-lto-plugin
29790 @[ -f ./lto-plugin/Makefile ] || exit 0; \
9c4d2493
BM
29791 r=`${PWD_COMMAND}`; export r; \
29792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29793 $(HOST_EXPORTS) \
29794 for flag in $(EXTRA_HOST_FLAGS) ; do \
29795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29796 done; \
85bfb75e
JM
29797 echo "Doing install-pdf in lto-plugin" ; \
29798 (cd $(HOST_SUBDIR)/lto-plugin && \
9c4d2493
BM
29799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29801 "RANLIB=$${RANLIB}" \
901119ae 29802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
29803 install-pdf) \
29804 || exit 1
29805
85bfb75e 29806@endif lto-plugin
9c4d2493 29807
85bfb75e
JM
29808.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
29809maybe-install-html-lto-plugin:
29810@if lto-plugin
29811maybe-install-html-lto-plugin: install-html-lto-plugin
65d6e994 29812
85bfb75e
JM
29813install-html-lto-plugin: \
29814 configure-lto-plugin \
29815 html-lto-plugin
29816 @[ -f ./lto-plugin/Makefile ] || exit 0; \
65d6e994
CD
29817 r=`${PWD_COMMAND}`; export r; \
29818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29819 $(HOST_EXPORTS) \
29820 for flag in $(EXTRA_HOST_FLAGS) ; do \
29821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29822 done; \
85bfb75e
JM
29823 echo "Doing install-html in lto-plugin" ; \
29824 (cd $(HOST_SUBDIR)/lto-plugin && \
65d6e994
CD
29825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29827 "RANLIB=$${RANLIB}" \
901119ae 29828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
29829 install-html) \
29830 || exit 1
29831
85bfb75e 29832@endif lto-plugin
65d6e994 29833
85bfb75e
JM
29834.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
29835maybe-installcheck-lto-plugin:
29836@if lto-plugin
29837maybe-installcheck-lto-plugin: installcheck-lto-plugin
295f4e42 29838
85bfb75e
JM
29839installcheck-lto-plugin: \
29840 configure-lto-plugin
29841 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29842 r=`${PWD_COMMAND}`; export r; \
29843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29844 $(HOST_EXPORTS) \
d32ab992 29845 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29847 done; \
85bfb75e
JM
29848 echo "Doing installcheck in lto-plugin" ; \
29849 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29852 "RANLIB=$${RANLIB}" \
901119ae 29853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29854 installcheck) \
295f4e42
NN
29855 || exit 1
29856
85bfb75e 29857@endif lto-plugin
295f4e42 29858
85bfb75e
JM
29859.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
29860maybe-mostlyclean-lto-plugin:
29861@if lto-plugin
29862maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
295f4e42 29863
85bfb75e
JM
29864mostlyclean-lto-plugin:
29865 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29866 r=`${PWD_COMMAND}`; export r; \
29867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29868 $(HOST_EXPORTS) \
d32ab992 29869 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29871 done; \
85bfb75e
JM
29872 echo "Doing mostlyclean in lto-plugin" ; \
29873 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29876 "RANLIB=$${RANLIB}" \
901119ae 29877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29878 mostlyclean) \
295f4e42
NN
29879 || exit 1
29880
85bfb75e 29881@endif lto-plugin
295f4e42 29882
85bfb75e
JM
29883.PHONY: maybe-clean-lto-plugin clean-lto-plugin
29884maybe-clean-lto-plugin:
29885@if lto-plugin
29886maybe-clean-lto-plugin: clean-lto-plugin
295f4e42 29887
85bfb75e
JM
29888clean-lto-plugin:
29889 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29890 r=`${PWD_COMMAND}`; export r; \
29891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29892 $(HOST_EXPORTS) \
d32ab992 29893 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29895 done; \
85bfb75e
JM
29896 echo "Doing clean in lto-plugin" ; \
29897 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29900 "RANLIB=$${RANLIB}" \
901119ae 29901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29902 clean) \
295f4e42
NN
29903 || exit 1
29904
85bfb75e 29905@endif lto-plugin
295f4e42 29906
85bfb75e
JM
29907.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
29908maybe-distclean-lto-plugin:
29909@if lto-plugin
29910maybe-distclean-lto-plugin: distclean-lto-plugin
295f4e42 29911
85bfb75e
JM
29912distclean-lto-plugin:
29913 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29914 r=`${PWD_COMMAND}`; export r; \
29915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29916 $(HOST_EXPORTS) \
d32ab992 29917 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29919 done; \
85bfb75e
JM
29920 echo "Doing distclean in lto-plugin" ; \
29921 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29924 "RANLIB=$${RANLIB}" \
901119ae 29925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29926 distclean) \
295f4e42
NN
29927 || exit 1
29928
85bfb75e 29929@endif lto-plugin
295f4e42 29930
85bfb75e
JM
29931.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
29932maybe-maintainer-clean-lto-plugin:
29933@if lto-plugin
29934maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
295f4e42 29935
85bfb75e
JM
29936maintainer-clean-lto-plugin:
29937 @[ -f ./lto-plugin/Makefile ] || exit 0; \
295f4e42
NN
29938 r=`${PWD_COMMAND}`; export r; \
29939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29940 $(HOST_EXPORTS) \
d32ab992 29941 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29943 done; \
85bfb75e
JM
29944 echo "Doing maintainer-clean in lto-plugin" ; \
29945 (cd $(HOST_SUBDIR)/lto-plugin && \
295f4e42
NN
29946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29948 "RANLIB=$${RANLIB}" \
901119ae 29949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d32ab992 29950 maintainer-clean) \
295f4e42 29951 || exit 1
4977bab6 29952
85bfb75e
JM
29953@endif lto-plugin
29954
29955
29956
29957# ---------------------------------------
29958# Modules which run on the target machine
29959# ---------------------------------------
29960
4977bab6 29961
295f4e42 29962
25b42232 29963
85bfb75e
JM
29964.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
29965maybe-configure-target-libstdc++-v3:
3ff3adad 29966@if gcc-bootstrap
85bfb75e 29967configure-target-libstdc++-v3: stage_current
3ff3adad 29968@endif gcc-bootstrap
85bfb75e
JM
29969@if target-libstdc++-v3
29970maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
29971configure-target-libstdc++-v3:
cc11cc9b 29972 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
29974 echo "Checking multilib configuration for libstdc++-v3..."; \
29975 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
29976 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
29977 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
29978 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
29979 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
29980 else \
29981 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
29982 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
29983 fi; \
29984 else \
29985 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
29986 fi; \
29987 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
29988 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
29989 $(RAW_CXX_TARGET_EXPORTS) \
29990 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
29991 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4977bab6 29992 case $(srcdir) in \
215c351a 29993 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 29994 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
215c351a 29995 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29996 esac; \
85bfb75e
JM
29997 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
29998 libsrcdir="$$s/libstdc++-v3"; \
29999 rm -f no-such-file || : ; \
30000 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
30001 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
e69bf64b 30002 --target=${target_alias} $${srcdiroption} \
4977bab6 30003 || exit 1
85bfb75e 30004@endif target-libstdc++-v3
ce406537
PB
30005
30006
4977bab6 30007
85bfb75e
JM
30008.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
30009maybe-configure-stage1-target-libstdc++-v3:
30010@if target-libstdc++-v3-bootstrap
30011maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
30012configure-stage1-target-libstdc++-v3:
30013 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30014 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
8c90b13a
L
30015 @r=`${PWD_COMMAND}`; export r; \
30016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
30017 TFLAGS="$(STAGE1_TFLAGS)"; \
30018 echo "Checking multilib configuration for libstdc++-v3..."; \
30019 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30020 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30021 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30022 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30023 else \
30024 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30025 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30026 fi; \
30027 else \
30028 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30029 fi; \
30030 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30031 $(RAW_CXX_TARGET_EXPORTS) \
30032 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30033 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
30034 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
30035 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30036 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30037 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30038 case $(srcdir) in \
30039 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30040 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30041 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30042 esac; \
30043 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30044 libsrcdir="$$s/libstdc++-v3"; \
30045 $(SHELL) $${libsrcdir}/configure \
30046 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30047 --target=${target_alias} $${srcdiroption} \
30048 $(STAGE1_CONFIGURE_FLAGS)
30049@endif target-libstdc++-v3-bootstrap
295f4e42 30050
85bfb75e
JM
30051.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
30052maybe-configure-stage2-target-libstdc++-v3:
30053@if target-libstdc++-v3-bootstrap
30054maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
30055configure-stage2-target-libstdc++-v3:
30056 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30057 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
295f4e42
NN
30058 @r=`${PWD_COMMAND}`; export r; \
30059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
30060 TFLAGS="$(STAGE2_TFLAGS)"; \
30061 echo "Checking multilib configuration for libstdc++-v3..."; \
30062 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30063 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30064 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30065 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30066 else \
30067 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30068 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30069 fi; \
30070 else \
30071 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30072 fi; \
30073 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30074 $(RAW_CXX_TARGET_EXPORTS) \
30075 \
30076 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30077 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
30078 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
30079 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30080 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30081 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30082 case $(srcdir) in \
30083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30084 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30086 esac; \
30087 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30088 libsrcdir="$$s/libstdc++-v3"; \
30089 $(SHELL) $${libsrcdir}/configure \
30090 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30091 --target=${target_alias} $${srcdiroption} \
30092 --with-build-libsubdir=$(HOST_SUBDIR) \
30093 $(STAGE2_CONFIGURE_FLAGS)
30094@endif target-libstdc++-v3-bootstrap
455c8f48 30095
85bfb75e
JM
30096.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
30097maybe-configure-stage3-target-libstdc++-v3:
30098@if target-libstdc++-v3-bootstrap
30099maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
30100configure-stage3-target-libstdc++-v3:
30101 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30102 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
00020c16
ILT
30103 @r=`${PWD_COMMAND}`; export r; \
30104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30105 TFLAGS="$(STAGE3_TFLAGS)"; \
30106 echo "Checking multilib configuration for libstdc++-v3..."; \
30107 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30108 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30109 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30110 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30111 else \
30112 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30113 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30114 fi; \
30115 else \
30116 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30117 fi; \
30118 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30119 $(RAW_CXX_TARGET_EXPORTS) \
30120 \
30121 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30122 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
f61428ed 30123 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
00020c16
ILT
30124 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30125 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30126 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30127 case $(srcdir) in \
30128 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30129 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30130 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30131 esac; \
30132 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30133 libsrcdir="$$s/libstdc++-v3"; \
30134 $(SHELL) $${libsrcdir}/configure \
30135 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30136 --target=${target_alias} $${srcdiroption} \
30137 --with-build-libsubdir=$(HOST_SUBDIR) \
30138 $(STAGE3_CONFIGURE_FLAGS)
30139@endif target-libstdc++-v3-bootstrap
30140
30141.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
30142maybe-configure-stage4-target-libstdc++-v3:
30143@if target-libstdc++-v3-bootstrap
30144maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
30145configure-stage4-target-libstdc++-v3:
30146 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30147 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
30148 @r=`${PWD_COMMAND}`; export r; \
30149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30150 TFLAGS="$(STAGE4_TFLAGS)"; \
30151 echo "Checking multilib configuration for libstdc++-v3..."; \
30152 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30153 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30154 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30155 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30156 else \
30157 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30158 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30159 fi; \
30160 else \
30161 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30162 fi; \
30163 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30164 $(RAW_CXX_TARGET_EXPORTS) \
30165 \
30166 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30167 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
f61428ed 30168 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
00020c16
ILT
30169 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30170 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30171 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30172 case $(srcdir) in \
30173 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30174 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30175 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30176 esac; \
30177 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30178 libsrcdir="$$s/libstdc++-v3"; \
30179 $(SHELL) $${libsrcdir}/configure \
30180 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30181 --target=${target_alias} $${srcdiroption} \
30182 --with-build-libsubdir=$(HOST_SUBDIR) \
30183 $(STAGE4_CONFIGURE_FLAGS)
30184@endif target-libstdc++-v3-bootstrap
30185
30186.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
30187maybe-configure-stageprofile-target-libstdc++-v3:
30188@if target-libstdc++-v3-bootstrap
30189maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
30190configure-stageprofile-target-libstdc++-v3:
30191 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30192 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
30193 @r=`${PWD_COMMAND}`; export r; \
30194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30195 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30196 echo "Checking multilib configuration for libstdc++-v3..."; \
30197 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30198 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30199 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30200 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30201 else \
30202 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30203 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30204 fi; \
30205 else \
30206 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30207 fi; \
30208 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30209 $(RAW_CXX_TARGET_EXPORTS) \
30210 \
30211 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30212 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
f61428ed 30213 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
00020c16
ILT
30214 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30215 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30216 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30217 case $(srcdir) in \
30218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30219 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30221 esac; \
30222 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30223 libsrcdir="$$s/libstdc++-v3"; \
30224 $(SHELL) $${libsrcdir}/configure \
30225 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30226 --target=${target_alias} $${srcdiroption} \
30227 --with-build-libsubdir=$(HOST_SUBDIR) \
30228 $(STAGEprofile_CONFIGURE_FLAGS)
30229@endif target-libstdc++-v3-bootstrap
30230
30231.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
30232maybe-configure-stagefeedback-target-libstdc++-v3:
30233@if target-libstdc++-v3-bootstrap
30234maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
30235configure-stagefeedback-target-libstdc++-v3:
30236 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30237 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
30238 @r=`${PWD_COMMAND}`; export r; \
30239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30240 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30241 echo "Checking multilib configuration for libstdc++-v3..."; \
30242 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30243 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30244 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30245 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30246 else \
30247 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30248 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30249 fi; \
30250 else \
30251 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30252 fi; \
30253 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30254 $(RAW_CXX_TARGET_EXPORTS) \
30255 \
30256 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30257 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
f61428ed 30258 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
00020c16
ILT
30259 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30260 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30261 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30262 case $(srcdir) in \
30263 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30264 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30265 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30266 esac; \
30267 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30268 libsrcdir="$$s/libstdc++-v3"; \
30269 $(SHELL) $${libsrcdir}/configure \
30270 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30271 --target=${target_alias} $${srcdiroption} \
30272 --with-build-libsubdir=$(HOST_SUBDIR) \
30273 $(STAGEfeedback_CONFIGURE_FLAGS)
30274@endif target-libstdc++-v3-bootstrap
30275
30276
30277
ce406537
PB
30278
30279
295f4e42
NN
30280.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
30281maybe-all-target-libstdc++-v3:
3ff3adad
PB
30282@if gcc-bootstrap
30283all-target-libstdc++-v3: stage_current
30284@endif gcc-bootstrap
60975492 30285@if target-libstdc++-v3
7c27e184 30286TARGET-target-libstdc++-v3=all
60975492 30287maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
295f4e42 30288all-target-libstdc++-v3: configure-target-libstdc++-v3
8c90b13a
L
30289 @r=`${PWD_COMMAND}`; export r; \
30290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 30291 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 30292 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
1c8bd6a3
PB
30293 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30294 $(TARGET-target-libstdc++-v3))
60975492 30295@endif target-libstdc++-v3
4977bab6 30296
25b42232
PB
30297
30298
00020c16
ILT
30299.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
30300.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
30301maybe-all-stage1-target-libstdc++-v3:
30302maybe-clean-stage1-target-libstdc++-v3:
30303@if target-libstdc++-v3-bootstrap
30304maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
30305all-stage1: all-stage1-target-libstdc++-v3
30306TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30307all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
30308 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30309 @r=`${PWD_COMMAND}`; export r; \
30310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30311 TFLAGS="$(STAGE1_TFLAGS)"; \
f61428ed 30312 $(RAW_CXX_TARGET_EXPORTS) \
00020c16
ILT
30313 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30314 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30315 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30316 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30317 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30318 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30319 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30320 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30321 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30322 TFLAGS="$(STAGE1_TFLAGS)" \
30323 $(TARGET-stage1-target-libstdc++-v3)
30324
30325maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
30326clean-stage1: clean-stage1-target-libstdc++-v3
30327clean-stage1-target-libstdc++-v3:
30328 @if [ $(current_stage) = stage1 ]; then \
30329 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30330 else \
30331 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
30332 $(MAKE) stage1-start; \
30333 fi; \
30334 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30335 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30336 clean
30337@endif target-libstdc++-v3-bootstrap
30338
30339
30340.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
30341.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
30342maybe-all-stage2-target-libstdc++-v3:
30343maybe-clean-stage2-target-libstdc++-v3:
30344@if target-libstdc++-v3-bootstrap
30345maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
30346all-stage2: all-stage2-target-libstdc++-v3
30347TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30348all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
30349 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30350 @r=`${PWD_COMMAND}`; export r; \
30351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30352 TFLAGS="$(STAGE2_TFLAGS)"; \
30353 $(RAW_CXX_TARGET_EXPORTS) \
f61428ed 30354 \
00020c16
ILT
30355 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30356 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30357 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30358 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30359 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30360 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30361 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30362 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30363 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30364 TFLAGS="$(STAGE2_TFLAGS)" \
30365 $(TARGET-stage2-target-libstdc++-v3)
30366
30367maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
30368clean-stage2: clean-stage2-target-libstdc++-v3
30369clean-stage2-target-libstdc++-v3:
30370 @if [ $(current_stage) = stage2 ]; then \
30371 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30372 else \
30373 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
30374 $(MAKE) stage2-start; \
30375 fi; \
30376 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30377 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30378 \
30379 clean
30380@endif target-libstdc++-v3-bootstrap
30381
30382
30383.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
30384.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
30385maybe-all-stage3-target-libstdc++-v3:
30386maybe-clean-stage3-target-libstdc++-v3:
30387@if target-libstdc++-v3-bootstrap
30388maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
30389all-stage3: all-stage3-target-libstdc++-v3
30390TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30391all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
30392 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30393 @r=`${PWD_COMMAND}`; export r; \
30394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30395 TFLAGS="$(STAGE3_TFLAGS)"; \
30396 $(RAW_CXX_TARGET_EXPORTS) \
f61428ed 30397 \
00020c16
ILT
30398 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30399 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30400 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30401 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30402 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30403 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30404 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30405 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30406 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30407 TFLAGS="$(STAGE3_TFLAGS)" \
30408 $(TARGET-stage3-target-libstdc++-v3)
30409
30410maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
30411clean-stage3: clean-stage3-target-libstdc++-v3
30412clean-stage3-target-libstdc++-v3:
30413 @if [ $(current_stage) = stage3 ]; then \
30414 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30415 else \
30416 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
30417 $(MAKE) stage3-start; \
30418 fi; \
30419 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30420 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30421 \
30422 clean
30423@endif target-libstdc++-v3-bootstrap
30424
30425
30426.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
30427.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
30428maybe-all-stage4-target-libstdc++-v3:
30429maybe-clean-stage4-target-libstdc++-v3:
30430@if target-libstdc++-v3-bootstrap
30431maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
30432all-stage4: all-stage4-target-libstdc++-v3
30433TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30434all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
30435 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30436 @r=`${PWD_COMMAND}`; export r; \
30437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30438 TFLAGS="$(STAGE4_TFLAGS)"; \
30439 $(RAW_CXX_TARGET_EXPORTS) \
f61428ed 30440 \
00020c16
ILT
30441 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30442 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30443 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30444 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30445 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30446 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30447 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30448 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30449 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30450 TFLAGS="$(STAGE4_TFLAGS)" \
30451 $(TARGET-stage4-target-libstdc++-v3)
30452
30453maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
30454clean-stage4: clean-stage4-target-libstdc++-v3
30455clean-stage4-target-libstdc++-v3:
30456 @if [ $(current_stage) = stage4 ]; then \
30457 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30458 else \
30459 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
30460 $(MAKE) stage4-start; \
30461 fi; \
30462 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30463 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30464 \
30465 clean
30466@endif target-libstdc++-v3-bootstrap
30467
30468
30469.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
30470.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
30471maybe-all-stageprofile-target-libstdc++-v3:
30472maybe-clean-stageprofile-target-libstdc++-v3:
30473@if target-libstdc++-v3-bootstrap
30474maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
30475all-stageprofile: all-stageprofile-target-libstdc++-v3
30476TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30477all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
30478 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30479 @r=`${PWD_COMMAND}`; export r; \
30480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30481 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30482 $(RAW_CXX_TARGET_EXPORTS) \
f61428ed 30483 \
00020c16
ILT
30484 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30486 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30487 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30488 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30489 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30490 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30491 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30492 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30493 TFLAGS="$(STAGEprofile_TFLAGS)" \
30494 $(TARGET-stageprofile-target-libstdc++-v3)
30495
30496maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
30497clean-stageprofile: clean-stageprofile-target-libstdc++-v3
30498clean-stageprofile-target-libstdc++-v3:
30499 @if [ $(current_stage) = stageprofile ]; then \
30500 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30501 else \
30502 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
30503 $(MAKE) stageprofile-start; \
30504 fi; \
30505 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30506 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30507 \
30508 clean
30509@endif target-libstdc++-v3-bootstrap
30510
30511
30512.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
30513.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
30514maybe-all-stagefeedback-target-libstdc++-v3:
30515maybe-clean-stagefeedback-target-libstdc++-v3:
30516@if target-libstdc++-v3-bootstrap
30517maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
30518all-stagefeedback: all-stagefeedback-target-libstdc++-v3
30519TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
30520all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
30521 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30522 @r=`${PWD_COMMAND}`; export r; \
30523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30524 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30525 $(RAW_CXX_TARGET_EXPORTS) \
f61428ed 30526 \
00020c16
ILT
30527 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30529 CFLAGS="$(CFLAGS_FOR_TARGET)" \
30530 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
30531 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
30532 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30533 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30534 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30535 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30536 TFLAGS="$(STAGEfeedback_TFLAGS)" \
30537 $(TARGET-stagefeedback-target-libstdc++-v3)
30538
30539maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
30540clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
30541clean-stagefeedback-target-libstdc++-v3:
30542 @if [ $(current_stage) = stagefeedback ]; then \
30543 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
30544 else \
30545 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
30546 $(MAKE) stagefeedback-start; \
30547 fi; \
30548 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30549 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
30550 \
30551 clean
30552@endif target-libstdc++-v3-bootstrap
30553
30554
30555
30556
ce406537
PB
30557
30558
295f4e42
NN
30559.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
30560maybe-check-target-libstdc++-v3:
60975492
PB
30561@if target-libstdc++-v3
30562maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
4977bab6 30563
295f4e42 30564check-target-libstdc++-v3:
f41d6665 30565 @: $(MAKE); $(unstage)
8c90b13a
L
30566 @r=`${PWD_COMMAND}`; export r; \
30567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30568 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 30569 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 30570 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 30571
60975492 30572@endif target-libstdc++-v3
4977bab6 30573
295f4e42
NN
30574.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
30575maybe-install-target-libstdc++-v3:
60975492
PB
30576@if target-libstdc++-v3
30577maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
7e2dbcef 30578
295f4e42 30579install-target-libstdc++-v3: installdirs
f41d6665 30580 @: $(MAKE); $(unstage)
8c90b13a
L
30581 @r=`${PWD_COMMAND}`; export r; \
30582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30583 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 30584 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 30585 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 30586
60975492 30587@endif target-libstdc++-v3
4977bab6 30588
455c8f48
RW
30589.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
30590maybe-install-strip-target-libstdc++-v3:
30591@if target-libstdc++-v3
30592maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
30593
30594install-strip-target-libstdc++-v3: installdirs
30595 @: $(MAKE); $(unstage)
30596 @r=`${PWD_COMMAND}`; export r; \
30597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30598 $(RAW_CXX_TARGET_EXPORTS) \
30599 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30600 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
30601
30602@endif target-libstdc++-v3
30603
b5422ad7 30604# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
30605
30606.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
30607maybe-info-target-libstdc++-v3:
60975492
PB
30608@if target-libstdc++-v3
30609maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
295f4e42
NN
30610
30611info-target-libstdc++-v3: \
05750653 30612 configure-target-libstdc++-v3
f41d6665 30613 @: $(MAKE); $(unstage)
295f4e42 30614 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
30615 r=`${PWD_COMMAND}`; export r; \
30616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30617 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30618 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30619 for flag in $(EXTRA_TARGET_FLAGS); do \
30620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30621 done; \
30622 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30625 "RANLIB=$${RANLIB}" \
901119ae 30626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30627 info) \
4977bab6
ZW
30628 || exit 1
30629
60975492 30630@endif target-libstdc++-v3
295f4e42
NN
30631
30632.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
30633maybe-dvi-target-libstdc++-v3:
60975492
PB
30634@if target-libstdc++-v3
30635maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
295f4e42
NN
30636
30637dvi-target-libstdc++-v3: \
05750653 30638 configure-target-libstdc++-v3
f41d6665 30639 @: $(MAKE); $(unstage)
295f4e42
NN
30640 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30641 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30643 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30644 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30645 for flag in $(EXTRA_TARGET_FLAGS); do \
30646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30647 done; \
30648 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30651 "RANLIB=$${RANLIB}" \
901119ae 30652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30653 dvi) \
295f4e42 30654 || exit 1
4977bab6 30655
60975492 30656@endif target-libstdc++-v3
4977bab6 30657
b5422ad7
BM
30658.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
30659maybe-pdf-target-libstdc++-v3:
30660@if target-libstdc++-v3
30661maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
30662
30663pdf-target-libstdc++-v3: \
30664 configure-target-libstdc++-v3
30665 @: $(MAKE); $(unstage)
30666 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30667 r=`${PWD_COMMAND}`; export r; \
30668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30669 $(RAW_CXX_TARGET_EXPORTS) \
30670 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30671 for flag in $(EXTRA_TARGET_FLAGS); do \
30672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30673 done; \
30674 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30677 "RANLIB=$${RANLIB}" \
901119ae 30678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
30679 pdf) \
30680 || exit 1
30681
30682@endif target-libstdc++-v3
30683
f87a2b2e
MS
30684.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
30685maybe-html-target-libstdc++-v3:
30686@if target-libstdc++-v3
30687maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
30688
30689html-target-libstdc++-v3: \
05750653 30690 configure-target-libstdc++-v3
f41d6665 30691 @: $(MAKE); $(unstage)
f87a2b2e
MS
30692 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30693 r=`${PWD_COMMAND}`; export r; \
30694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30695 $(RAW_CXX_TARGET_EXPORTS) \
30696 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30697 for flag in $(EXTRA_TARGET_FLAGS); do \
30698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30699 done; \
30700 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30703 "RANLIB=$${RANLIB}" \
901119ae 30704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
30705 html) \
30706 || exit 1
30707
30708@endif target-libstdc++-v3
30709
295f4e42
NN
30710.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
30711maybe-TAGS-target-libstdc++-v3:
60975492
PB
30712@if target-libstdc++-v3
30713maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
295f4e42
NN
30714
30715TAGS-target-libstdc++-v3: \
05750653 30716 configure-target-libstdc++-v3
f41d6665 30717 @: $(MAKE); $(unstage)
295f4e42
NN
30718 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30719 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30721 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30722 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30723 for flag in $(EXTRA_TARGET_FLAGS); do \
30724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30725 done; \
30726 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30729 "RANLIB=$${RANLIB}" \
901119ae 30730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30731 TAGS) \
295f4e42 30732 || exit 1
4977bab6 30733
60975492 30734@endif target-libstdc++-v3
4977bab6 30735
295f4e42
NN
30736.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
30737maybe-install-info-target-libstdc++-v3:
60975492
PB
30738@if target-libstdc++-v3
30739maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
7e2dbcef 30740
295f4e42
NN
30741install-info-target-libstdc++-v3: \
30742 configure-target-libstdc++-v3 \
05750653 30743 info-target-libstdc++-v3
f41d6665 30744 @: $(MAKE); $(unstage)
295f4e42
NN
30745 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30746 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30748 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30749 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30750 for flag in $(EXTRA_TARGET_FLAGS); do \
30751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30752 done; \
30753 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30756 "RANLIB=$${RANLIB}" \
901119ae 30757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30758 install-info) \
295f4e42 30759 || exit 1
4977bab6 30760
60975492 30761@endif target-libstdc++-v3
4977bab6 30762
9c4d2493
BM
30763.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
30764maybe-install-pdf-target-libstdc++-v3:
30765@if target-libstdc++-v3
30766maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
30767
30768install-pdf-target-libstdc++-v3: \
30769 configure-target-libstdc++-v3 \
30770 pdf-target-libstdc++-v3
30771 @: $(MAKE); $(unstage)
30772 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30773 r=`${PWD_COMMAND}`; export r; \
30774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30775 $(RAW_CXX_TARGET_EXPORTS) \
30776 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30777 for flag in $(EXTRA_TARGET_FLAGS); do \
30778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30779 done; \
30780 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30783 "RANLIB=$${RANLIB}" \
901119ae 30784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
30785 install-pdf) \
30786 || exit 1
30787
30788@endif target-libstdc++-v3
30789
65d6e994
CD
30790.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
30791maybe-install-html-target-libstdc++-v3:
30792@if target-libstdc++-v3
30793maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
30794
30795install-html-target-libstdc++-v3: \
30796 configure-target-libstdc++-v3 \
30797 html-target-libstdc++-v3
30798 @: $(MAKE); $(unstage)
30799 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30800 r=`${PWD_COMMAND}`; export r; \
30801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30802 $(RAW_CXX_TARGET_EXPORTS) \
30803 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30804 for flag in $(EXTRA_TARGET_FLAGS); do \
30805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30806 done; \
30807 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30810 "RANLIB=$${RANLIB}" \
901119ae 30811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
30812 install-html) \
30813 || exit 1
30814
30815@endif target-libstdc++-v3
30816
295f4e42
NN
30817.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
30818maybe-installcheck-target-libstdc++-v3:
60975492
PB
30819@if target-libstdc++-v3
30820maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
295f4e42
NN
30821
30822installcheck-target-libstdc++-v3: \
05750653 30823 configure-target-libstdc++-v3
f41d6665 30824 @: $(MAKE); $(unstage)
295f4e42 30825 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
30826 r=`${PWD_COMMAND}`; export r; \
30827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30828 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30829 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30830 for flag in $(EXTRA_TARGET_FLAGS); do \
30831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30832 done; \
30833 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30836 "RANLIB=$${RANLIB}" \
901119ae 30837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30838 installcheck) \
4977bab6
ZW
30839 || exit 1
30840
60975492 30841@endif target-libstdc++-v3
4977bab6 30842
295f4e42
NN
30843.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
30844maybe-mostlyclean-target-libstdc++-v3:
60975492
PB
30845@if target-libstdc++-v3
30846maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4977bab6 30847
05750653 30848mostlyclean-target-libstdc++-v3:
f41d6665 30849 @: $(MAKE); $(unstage)
295f4e42
NN
30850 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30851 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30853 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30854 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30855 for flag in $(EXTRA_TARGET_FLAGS); do \
30856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30857 done; \
30858 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30861 "RANLIB=$${RANLIB}" \
901119ae 30862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30863 mostlyclean) \
295f4e42 30864 || exit 1
4977bab6 30865
60975492 30866@endif target-libstdc++-v3
4977bab6 30867
295f4e42
NN
30868.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
30869maybe-clean-target-libstdc++-v3:
60975492
PB
30870@if target-libstdc++-v3
30871maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
7e2dbcef 30872
05750653 30873clean-target-libstdc++-v3:
f41d6665 30874 @: $(MAKE); $(unstage)
295f4e42
NN
30875 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30876 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30878 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30879 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30880 for flag in $(EXTRA_TARGET_FLAGS); do \
30881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30882 done; \
30883 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30886 "RANLIB=$${RANLIB}" \
901119ae 30887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30888 clean) \
295f4e42 30889 || exit 1
4977bab6 30890
60975492 30891@endif target-libstdc++-v3
4977bab6 30892
295f4e42
NN
30893.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
30894maybe-distclean-target-libstdc++-v3:
60975492
PB
30895@if target-libstdc++-v3
30896maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
295f4e42 30897
05750653 30898distclean-target-libstdc++-v3:
f41d6665 30899 @: $(MAKE); $(unstage)
295f4e42 30900 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
30901 r=`${PWD_COMMAND}`; export r; \
30902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30903 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30904 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30905 for flag in $(EXTRA_TARGET_FLAGS); do \
30906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30907 done; \
30908 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30911 "RANLIB=$${RANLIB}" \
901119ae 30912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30913 distclean) \
4977bab6
ZW
30914 || exit 1
30915
60975492 30916@endif target-libstdc++-v3
4977bab6 30917
295f4e42
NN
30918.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
30919maybe-maintainer-clean-target-libstdc++-v3:
60975492
PB
30920@if target-libstdc++-v3
30921maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
4977bab6 30922
05750653 30923maintainer-clean-target-libstdc++-v3:
f41d6665 30924 @: $(MAKE); $(unstage)
295f4e42
NN
30925 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
30926 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30928 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
30929 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
30930 for flag in $(EXTRA_TARGET_FLAGS); do \
30931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30932 done; \
30933 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
30934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30936 "RANLIB=$${RANLIB}" \
901119ae 30937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 30938 maintainer-clean) \
295f4e42 30939 || exit 1
4977bab6 30940
60975492 30941@endif target-libstdc++-v3
4977bab6 30942
7e2dbcef 30943
4977bab6 30944
25b42232
PB
30945
30946
30947.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
30948maybe-configure-target-libmudflap:
3ff3adad
PB
30949@if gcc-bootstrap
30950configure-target-libmudflap: stage_current
30951@endif gcc-bootstrap
25b42232
PB
30952@if target-libmudflap
30953maybe-configure-target-libmudflap: configure-target-libmudflap
cc11cc9b 30954configure-target-libmudflap:
f41d6665
DJ
30955 @: $(MAKE); $(unstage)
30956 @r=`${PWD_COMMAND}`; export r; \
30957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30958 echo "Checking multilib configuration for libmudflap..."; \
30959 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
30960 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
30961 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
30962 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
30963 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
30964 else \
30965 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
30966 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
30967 fi; \
30968 else \
30969 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
cc11cc9b
PB
30970 fi; \
30971 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
6de9cd9a 30972 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
f61428ed 30973 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
30974 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
30975 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
4977bab6 30976 case $(srcdir) in \
215c351a
PB
30977 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30978 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
30979 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30980 esac; \
215c351a
PB
30981 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
30982 libsrcdir="$$s/libmudflap"; \
295f4e42
NN
30983 rm -f no-such-file || : ; \
30984 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
30985 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30986 --target=${target_alias} $${srcdiroption} \
4977bab6 30987 || exit 1
60975492 30988@endif target-libmudflap
4977bab6 30989
25b42232
PB
30990
30991
ce406537
PB
30992
30993
6de9cd9a
DN
30994.PHONY: all-target-libmudflap maybe-all-target-libmudflap
30995maybe-all-target-libmudflap:
3ff3adad
PB
30996@if gcc-bootstrap
30997all-target-libmudflap: stage_current
30998@endif gcc-bootstrap
60975492 30999@if target-libmudflap
7c27e184 31000TARGET-target-libmudflap=all
60975492 31001maybe-all-target-libmudflap: all-target-libmudflap
6de9cd9a 31002all-target-libmudflap: configure-target-libmudflap
f41d6665 31003 @: $(MAKE); $(unstage)
8c90b13a
L
31004 @r=`${PWD_COMMAND}`; export r; \
31005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 31006 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31007 (cd $(TARGET_SUBDIR)/libmudflap && \
1c8bd6a3
PB
31008 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
31009 $(TARGET-target-libmudflap))
60975492 31010@endif target-libmudflap
4977bab6 31011
25b42232
PB
31012
31013
ce406537
PB
31014
31015
6de9cd9a
DN
31016.PHONY: check-target-libmudflap maybe-check-target-libmudflap
31017maybe-check-target-libmudflap:
60975492
PB
31018@if target-libmudflap
31019maybe-check-target-libmudflap: check-target-libmudflap
4977bab6 31020
6de9cd9a 31021check-target-libmudflap:
f41d6665 31022 @: $(MAKE); $(unstage)
6de9cd9a
DN
31023 @r=`${PWD_COMMAND}`; export r; \
31024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31025 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31026 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31027 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 31028
60975492 31029@endif target-libmudflap
6de9cd9a
DN
31030
31031.PHONY: install-target-libmudflap maybe-install-target-libmudflap
31032maybe-install-target-libmudflap:
60975492
PB
31033@if target-libmudflap
31034maybe-install-target-libmudflap: install-target-libmudflap
6de9cd9a
DN
31035
31036install-target-libmudflap: installdirs
f41d6665 31037 @: $(MAKE); $(unstage)
6de9cd9a
DN
31038 @r=`${PWD_COMMAND}`; export r; \
31039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31040 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31041 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31042 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 31043
60975492 31044@endif target-libmudflap
6de9cd9a 31045
455c8f48
RW
31046.PHONY: install-strip-target-libmudflap maybe-install-strip-target-libmudflap
31047maybe-install-strip-target-libmudflap:
31048@if target-libmudflap
31049maybe-install-strip-target-libmudflap: install-strip-target-libmudflap
31050
31051install-strip-target-libmudflap: installdirs
31052 @: $(MAKE); $(unstage)
31053 @r=`${PWD_COMMAND}`; export r; \
31054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31055 $(NORMAL_TARGET_EXPORTS) \
31056 (cd $(TARGET_SUBDIR)/libmudflap && \
31057 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
31058
31059@endif target-libmudflap
31060
b5422ad7 31061# Other targets (info, dvi, pdf, etc.)
6de9cd9a
DN
31062
31063.PHONY: maybe-info-target-libmudflap info-target-libmudflap
31064maybe-info-target-libmudflap:
60975492
PB
31065@if target-libmudflap
31066maybe-info-target-libmudflap: info-target-libmudflap
6de9cd9a
DN
31067
31068info-target-libmudflap: \
05750653 31069 configure-target-libmudflap
f41d6665 31070 @: $(MAKE); $(unstage)
6de9cd9a
DN
31071 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31072 r=`${PWD_COMMAND}`; export r; \
31073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31074 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31075 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
31076 for flag in $(EXTRA_TARGET_FLAGS); do \
31077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31078 done; \
31079 (cd $(TARGET_SUBDIR)/libmudflap && \
31080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31082 "RANLIB=$${RANLIB}" \
901119ae 31083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 31084 info) \
6de9cd9a
DN
31085 || exit 1
31086
60975492 31087@endif target-libmudflap
6de9cd9a
DN
31088
31089.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
31090maybe-dvi-target-libmudflap:
60975492
PB
31091@if target-libmudflap
31092maybe-dvi-target-libmudflap: dvi-target-libmudflap
6de9cd9a
DN
31093
31094dvi-target-libmudflap: \
05750653 31095 configure-target-libmudflap
f41d6665 31096 @: $(MAKE); $(unstage)
6de9cd9a
DN
31097 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31098 r=`${PWD_COMMAND}`; export r; \
31099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31100 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31101 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
31102 for flag in $(EXTRA_TARGET_FLAGS); do \
31103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31104 done; \
85bfb75e 31105 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31108 "RANLIB=$${RANLIB}" \
901119ae 31109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31110 dvi) \
31111 || exit 1
31112
85bfb75e 31113@endif target-libmudflap
77008252 31114
85bfb75e
JM
31115.PHONY: maybe-pdf-target-libmudflap pdf-target-libmudflap
31116maybe-pdf-target-libmudflap:
31117@if target-libmudflap
31118maybe-pdf-target-libmudflap: pdf-target-libmudflap
b5422ad7 31119
85bfb75e
JM
31120pdf-target-libmudflap: \
31121 configure-target-libmudflap
b5422ad7 31122 @: $(MAKE); $(unstage)
85bfb75e 31123 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
b5422ad7
BM
31124 r=`${PWD_COMMAND}`; export r; \
31125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31126 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31127 echo "Doing pdf in $(TARGET_SUBDIR)/libmudflap" ; \
b5422ad7
BM
31128 for flag in $(EXTRA_TARGET_FLAGS); do \
31129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31130 done; \
85bfb75e 31131 (cd $(TARGET_SUBDIR)/libmudflap && \
b5422ad7
BM
31132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31134 "RANLIB=$${RANLIB}" \
901119ae 31135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
31136 pdf) \
31137 || exit 1
31138
85bfb75e 31139@endif target-libmudflap
b5422ad7 31140
85bfb75e
JM
31141.PHONY: maybe-html-target-libmudflap html-target-libmudflap
31142maybe-html-target-libmudflap:
31143@if target-libmudflap
31144maybe-html-target-libmudflap: html-target-libmudflap
77008252 31145
85bfb75e
JM
31146html-target-libmudflap: \
31147 configure-target-libmudflap
f41d6665 31148 @: $(MAKE); $(unstage)
85bfb75e 31149 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31150 r=`${PWD_COMMAND}`; export r; \
31151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31152 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31153 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31154 for flag in $(EXTRA_TARGET_FLAGS); do \
31155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31156 done; \
85bfb75e 31157 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31160 "RANLIB=$${RANLIB}" \
901119ae 31161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31162 html) \
31163 || exit 1
31164
85bfb75e 31165@endif target-libmudflap
77008252 31166
85bfb75e
JM
31167.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
31168maybe-TAGS-target-libmudflap:
31169@if target-libmudflap
31170maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
77008252 31171
85bfb75e
JM
31172TAGS-target-libmudflap: \
31173 configure-target-libmudflap
f41d6665 31174 @: $(MAKE); $(unstage)
85bfb75e 31175 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31176 r=`${PWD_COMMAND}`; export r; \
31177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31178 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31179 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31180 for flag in $(EXTRA_TARGET_FLAGS); do \
31181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31182 done; \
85bfb75e 31183 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31186 "RANLIB=$${RANLIB}" \
901119ae 31187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31188 TAGS) \
31189 || exit 1
31190
85bfb75e 31191@endif target-libmudflap
77008252 31192
85bfb75e
JM
31193.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
31194maybe-install-info-target-libmudflap:
31195@if target-libmudflap
31196maybe-install-info-target-libmudflap: install-info-target-libmudflap
77008252 31197
85bfb75e
JM
31198install-info-target-libmudflap: \
31199 configure-target-libmudflap \
31200 info-target-libmudflap
f41d6665 31201 @: $(MAKE); $(unstage)
85bfb75e 31202 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31203 r=`${PWD_COMMAND}`; export r; \
31204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31205 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31206 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31207 for flag in $(EXTRA_TARGET_FLAGS); do \
31208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31209 done; \
85bfb75e 31210 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31213 "RANLIB=$${RANLIB}" \
901119ae 31214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31215 install-info) \
31216 || exit 1
31217
85bfb75e 31218@endif target-libmudflap
77008252 31219
85bfb75e
JM
31220.PHONY: maybe-install-pdf-target-libmudflap install-pdf-target-libmudflap
31221maybe-install-pdf-target-libmudflap:
31222@if target-libmudflap
31223maybe-install-pdf-target-libmudflap: install-pdf-target-libmudflap
9c4d2493 31224
85bfb75e
JM
31225install-pdf-target-libmudflap: \
31226 configure-target-libmudflap \
31227 pdf-target-libmudflap
9c4d2493 31228 @: $(MAKE); $(unstage)
85bfb75e 31229 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
9c4d2493
BM
31230 r=`${PWD_COMMAND}`; export r; \
31231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31232 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31233 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmudflap" ; \
9c4d2493
BM
31234 for flag in $(EXTRA_TARGET_FLAGS); do \
31235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31236 done; \
85bfb75e 31237 (cd $(TARGET_SUBDIR)/libmudflap && \
9c4d2493
BM
31238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31240 "RANLIB=$${RANLIB}" \
901119ae 31241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
31242 install-pdf) \
31243 || exit 1
31244
85bfb75e 31245@endif target-libmudflap
9c4d2493 31246
85bfb75e
JM
31247.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
31248maybe-install-html-target-libmudflap:
31249@if target-libmudflap
31250maybe-install-html-target-libmudflap: install-html-target-libmudflap
65d6e994 31251
85bfb75e
JM
31252install-html-target-libmudflap: \
31253 configure-target-libmudflap \
31254 html-target-libmudflap
65d6e994 31255 @: $(MAKE); $(unstage)
85bfb75e 31256 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
65d6e994
CD
31257 r=`${PWD_COMMAND}`; export r; \
31258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31259 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31260 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
65d6e994
CD
31261 for flag in $(EXTRA_TARGET_FLAGS); do \
31262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31263 done; \
85bfb75e 31264 (cd $(TARGET_SUBDIR)/libmudflap && \
65d6e994
CD
31265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31267 "RANLIB=$${RANLIB}" \
901119ae 31268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
31269 install-html) \
31270 || exit 1
31271
85bfb75e 31272@endif target-libmudflap
65d6e994 31273
85bfb75e
JM
31274.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
31275maybe-installcheck-target-libmudflap:
31276@if target-libmudflap
31277maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
77008252 31278
85bfb75e
JM
31279installcheck-target-libmudflap: \
31280 configure-target-libmudflap
f41d6665 31281 @: $(MAKE); $(unstage)
85bfb75e 31282 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31283 r=`${PWD_COMMAND}`; export r; \
31284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31285 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31286 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31287 for flag in $(EXTRA_TARGET_FLAGS); do \
31288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31289 done; \
85bfb75e 31290 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31293 "RANLIB=$${RANLIB}" \
901119ae 31294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31295 installcheck) \
31296 || exit 1
31297
85bfb75e 31298@endif target-libmudflap
77008252 31299
85bfb75e
JM
31300.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
31301maybe-mostlyclean-target-libmudflap:
31302@if target-libmudflap
31303maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
77008252 31304
85bfb75e 31305mostlyclean-target-libmudflap:
f41d6665 31306 @: $(MAKE); $(unstage)
85bfb75e 31307 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31308 r=`${PWD_COMMAND}`; export r; \
31309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31310 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31311 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31312 for flag in $(EXTRA_TARGET_FLAGS); do \
31313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31314 done; \
85bfb75e 31315 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31318 "RANLIB=$${RANLIB}" \
901119ae 31319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31320 mostlyclean) \
31321 || exit 1
31322
85bfb75e 31323@endif target-libmudflap
77008252 31324
85bfb75e
JM
31325.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
31326maybe-clean-target-libmudflap:
31327@if target-libmudflap
31328maybe-clean-target-libmudflap: clean-target-libmudflap
77008252 31329
85bfb75e 31330clean-target-libmudflap:
f41d6665 31331 @: $(MAKE); $(unstage)
85bfb75e 31332 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31333 r=`${PWD_COMMAND}`; export r; \
31334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31335 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31336 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31337 for flag in $(EXTRA_TARGET_FLAGS); do \
31338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31339 done; \
85bfb75e 31340 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31343 "RANLIB=$${RANLIB}" \
901119ae 31344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31345 clean) \
31346 || exit 1
31347
85bfb75e 31348@endif target-libmudflap
77008252 31349
85bfb75e
JM
31350.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
31351maybe-distclean-target-libmudflap:
31352@if target-libmudflap
31353maybe-distclean-target-libmudflap: distclean-target-libmudflap
77008252 31354
85bfb75e 31355distclean-target-libmudflap:
f41d6665 31356 @: $(MAKE); $(unstage)
85bfb75e 31357 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31358 r=`${PWD_COMMAND}`; export r; \
31359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31360 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31361 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31362 for flag in $(EXTRA_TARGET_FLAGS); do \
31363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31364 done; \
85bfb75e 31365 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31368 "RANLIB=$${RANLIB}" \
901119ae 31369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31370 distclean) \
31371 || exit 1
31372
85bfb75e 31373@endif target-libmudflap
77008252 31374
85bfb75e
JM
31375.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
31376maybe-maintainer-clean-target-libmudflap:
31377@if target-libmudflap
31378maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
77008252 31379
85bfb75e 31380maintainer-clean-target-libmudflap:
f41d6665 31381 @: $(MAKE); $(unstage)
85bfb75e 31382 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
77008252
JJ
31383 r=`${PWD_COMMAND}`; export r; \
31384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31385 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31386 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
77008252
JJ
31387 for flag in $(EXTRA_TARGET_FLAGS); do \
31388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31389 done; \
85bfb75e 31390 (cd $(TARGET_SUBDIR)/libmudflap && \
77008252
JJ
31391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31393 "RANLIB=$${RANLIB}" \
901119ae 31394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
77008252
JJ
31395 maintainer-clean) \
31396 || exit 1
31397
85bfb75e 31398@endif target-libmudflap
77008252
JJ
31399
31400
31401
25b42232 31402
6de9cd9a 31403
85bfb75e
JM
31404.PHONY: configure-target-libssp maybe-configure-target-libssp
31405maybe-configure-target-libssp:
3ff3adad 31406@if gcc-bootstrap
85bfb75e 31407configure-target-libssp: stage_current
3ff3adad 31408@endif gcc-bootstrap
85bfb75e
JM
31409@if target-libssp
31410maybe-configure-target-libssp: configure-target-libssp
31411configure-target-libssp:
f41d6665
DJ
31412 @: $(MAKE); $(unstage)
31413 @r=`${PWD_COMMAND}`; export r; \
31414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
31415 echo "Checking multilib configuration for libssp..."; \
31416 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
31417 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
31418 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
31419 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
31420 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
f41d6665 31421 else \
85bfb75e
JM
31422 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
31423 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
f41d6665
DJ
31424 fi; \
31425 else \
85bfb75e 31426 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
cc11cc9b 31427 fi; \
85bfb75e
JM
31428 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
31429 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
f61428ed 31430 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31431 echo Configuring in $(TARGET_SUBDIR)/libssp; \
31432 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
6de9cd9a 31433 case $(srcdir) in \
215c351a 31434 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 31435 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
215c351a 31436 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 31437 esac; \
85bfb75e
JM
31438 srcdiroption="--srcdir=$${topdir}/libssp"; \
31439 libsrcdir="$$s/libssp"; \
6de9cd9a
DN
31440 rm -f no-such-file || : ; \
31441 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
31442 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31443 --target=${target_alias} $${srcdiroption} \
6de9cd9a 31444 || exit 1
85bfb75e 31445@endif target-libssp
6de9cd9a 31446
25b42232
PB
31447
31448
ce406537
PB
31449
31450
85bfb75e
JM
31451.PHONY: all-target-libssp maybe-all-target-libssp
31452maybe-all-target-libssp:
3ff3adad 31453@if gcc-bootstrap
85bfb75e 31454all-target-libssp: stage_current
3ff3adad 31455@endif gcc-bootstrap
85bfb75e
JM
31456@if target-libssp
31457TARGET-target-libssp=all
31458maybe-all-target-libssp: all-target-libssp
31459all-target-libssp: configure-target-libssp
f41d6665 31460 @: $(MAKE); $(unstage)
6de9cd9a
DN
31461 @r=`${PWD_COMMAND}`; export r; \
31462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 31463 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31464 (cd $(TARGET_SUBDIR)/libssp && \
1c8bd6a3 31465 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
31466 $(TARGET-target-libssp))
31467@endif target-libssp
6de9cd9a 31468
25b42232
PB
31469
31470
ce406537
PB
31471
31472
85bfb75e
JM
31473.PHONY: check-target-libssp maybe-check-target-libssp
31474maybe-check-target-libssp:
31475@if target-libssp
31476maybe-check-target-libssp: check-target-libssp
6de9cd9a 31477
85bfb75e 31478check-target-libssp:
f41d6665 31479 @: $(MAKE); $(unstage)
295f4e42
NN
31480 @r=`${PWD_COMMAND}`; export r; \
31481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31482 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31483 (cd $(TARGET_SUBDIR)/libssp && \
a52a0a7f 31484 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 31485
85bfb75e 31486@endif target-libssp
4977bab6 31487
85bfb75e
JM
31488.PHONY: install-target-libssp maybe-install-target-libssp
31489maybe-install-target-libssp:
31490@if target-libssp
31491maybe-install-target-libssp: install-target-libssp
7e2dbcef 31492
85bfb75e 31493install-target-libssp: installdirs
f41d6665 31494 @: $(MAKE); $(unstage)
295f4e42
NN
31495 @r=`${PWD_COMMAND}`; export r; \
31496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31497 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31498 (cd $(TARGET_SUBDIR)/libssp && \
a52a0a7f 31499 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 31500
85bfb75e 31501@endif target-libssp
4977bab6 31502
85bfb75e
JM
31503.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
31504maybe-install-strip-target-libssp:
31505@if target-libssp
31506maybe-install-strip-target-libssp: install-strip-target-libssp
455c8f48 31507
85bfb75e 31508install-strip-target-libssp: installdirs
455c8f48
RW
31509 @: $(MAKE); $(unstage)
31510 @r=`${PWD_COMMAND}`; export r; \
31511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31512 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31513 (cd $(TARGET_SUBDIR)/libssp && \
455c8f48
RW
31514 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
31515
85bfb75e 31516@endif target-libssp
455c8f48 31517
b5422ad7 31518# Other targets (info, dvi, pdf, etc.)
295f4e42 31519
85bfb75e
JM
31520.PHONY: maybe-info-target-libssp info-target-libssp
31521maybe-info-target-libssp:
31522@if target-libssp
31523maybe-info-target-libssp: info-target-libssp
295f4e42 31524
85bfb75e
JM
31525info-target-libssp: \
31526 configure-target-libssp
f41d6665 31527 @: $(MAKE); $(unstage)
85bfb75e 31528 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
8c90b13a
L
31529 r=`${PWD_COMMAND}`; export r; \
31530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31531 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31532 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31533 for flag in $(EXTRA_TARGET_FLAGS); do \
31534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31535 done; \
85bfb75e 31536 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31539 "RANLIB=$${RANLIB}" \
901119ae 31540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 31541 info) \
4977bab6
ZW
31542 || exit 1
31543
85bfb75e 31544@endif target-libssp
4977bab6 31545
85bfb75e
JM
31546.PHONY: maybe-dvi-target-libssp dvi-target-libssp
31547maybe-dvi-target-libssp:
31548@if target-libssp
31549maybe-dvi-target-libssp: dvi-target-libssp
4977bab6 31550
85bfb75e
JM
31551dvi-target-libssp: \
31552 configure-target-libssp
f41d6665 31553 @: $(MAKE); $(unstage)
85bfb75e 31554 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
295f4e42 31555 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31557 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31558 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31559 for flag in $(EXTRA_TARGET_FLAGS); do \
31560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31561 done; \
85bfb75e 31562 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31565 "RANLIB=$${RANLIB}" \
901119ae 31566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 31567 dvi) \
295f4e42 31568 || exit 1
4977bab6 31569
85bfb75e 31570@endif target-libssp
4977bab6 31571
85bfb75e
JM
31572.PHONY: maybe-pdf-target-libssp pdf-target-libssp
31573maybe-pdf-target-libssp:
31574@if target-libssp
31575maybe-pdf-target-libssp: pdf-target-libssp
b5422ad7 31576
85bfb75e
JM
31577pdf-target-libssp: \
31578 configure-target-libssp
b5422ad7 31579 @: $(MAKE); $(unstage)
85bfb75e 31580 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b5422ad7
BM
31581 r=`${PWD_COMMAND}`; export r; \
31582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31583 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31584 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
b5422ad7
BM
31585 for flag in $(EXTRA_TARGET_FLAGS); do \
31586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31587 done; \
85bfb75e 31588 (cd $(TARGET_SUBDIR)/libssp && \
b5422ad7
BM
31589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31591 "RANLIB=$${RANLIB}" \
901119ae 31592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
31593 pdf) \
31594 || exit 1
31595
85bfb75e 31596@endif target-libssp
9c4d2493 31597
85bfb75e
JM
31598.PHONY: maybe-html-target-libssp html-target-libssp
31599maybe-html-target-libssp:
31600@if target-libssp
31601maybe-html-target-libssp: html-target-libssp
65d6e994 31602
85bfb75e
JM
31603html-target-libssp: \
31604 configure-target-libssp
65d6e994 31605 @: $(MAKE); $(unstage)
85bfb75e 31606 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
65d6e994
CD
31607 r=`${PWD_COMMAND}`; export r; \
31608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31609 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31610 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
65d6e994
CD
31611 for flag in $(EXTRA_TARGET_FLAGS); do \
31612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31613 done; \
85bfb75e 31614 (cd $(TARGET_SUBDIR)/libssp && \
65d6e994
CD
31615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31617 "RANLIB=$${RANLIB}" \
901119ae 31618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31619 html) \
65d6e994
CD
31620 || exit 1
31621
85bfb75e 31622@endif target-libssp
65d6e994 31623
85bfb75e
JM
31624.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
31625maybe-TAGS-target-libssp:
31626@if target-libssp
31627maybe-TAGS-target-libssp: TAGS-target-libssp
295f4e42 31628
85bfb75e
JM
31629TAGS-target-libssp: \
31630 configure-target-libssp
f41d6665 31631 @: $(MAKE); $(unstage)
85bfb75e 31632 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
295f4e42 31633 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31635 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31636 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31637 for flag in $(EXTRA_TARGET_FLAGS); do \
31638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31639 done; \
85bfb75e 31640 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31643 "RANLIB=$${RANLIB}" \
901119ae 31644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31645 TAGS) \
295f4e42 31646 || exit 1
4977bab6 31647
85bfb75e 31648@endif target-libssp
4977bab6 31649
85bfb75e
JM
31650.PHONY: maybe-install-info-target-libssp install-info-target-libssp
31651maybe-install-info-target-libssp:
31652@if target-libssp
31653maybe-install-info-target-libssp: install-info-target-libssp
295f4e42 31654
85bfb75e
JM
31655install-info-target-libssp: \
31656 configure-target-libssp \
31657 info-target-libssp
f41d6665 31658 @: $(MAKE); $(unstage)
85bfb75e 31659 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
295f4e42 31660 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31662 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31663 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31664 for flag in $(EXTRA_TARGET_FLAGS); do \
31665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31666 done; \
85bfb75e 31667 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31670 "RANLIB=$${RANLIB}" \
901119ae 31671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31672 install-info) \
295f4e42 31673 || exit 1
4977bab6 31674
85bfb75e 31675@endif target-libssp
4977bab6 31676
85bfb75e
JM
31677.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
31678maybe-install-pdf-target-libssp:
31679@if target-libssp
31680maybe-install-pdf-target-libssp: install-pdf-target-libssp
7e2dbcef 31681
85bfb75e
JM
31682install-pdf-target-libssp: \
31683 configure-target-libssp \
31684 pdf-target-libssp
f41d6665 31685 @: $(MAKE); $(unstage)
85bfb75e 31686 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
295f4e42 31687 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31689 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31690 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31691 for flag in $(EXTRA_TARGET_FLAGS); do \
31692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31693 done; \
85bfb75e 31694 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31697 "RANLIB=$${RANLIB}" \
901119ae 31698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31699 install-pdf) \
295f4e42 31700 || exit 1
4977bab6 31701
85bfb75e 31702@endif target-libssp
4977bab6 31703
85bfb75e
JM
31704.PHONY: maybe-install-html-target-libssp install-html-target-libssp
31705maybe-install-html-target-libssp:
31706@if target-libssp
31707maybe-install-html-target-libssp: install-html-target-libssp
295f4e42 31708
85bfb75e
JM
31709install-html-target-libssp: \
31710 configure-target-libssp \
31711 html-target-libssp
f41d6665 31712 @: $(MAKE); $(unstage)
85bfb75e 31713 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
8c90b13a
L
31714 r=`${PWD_COMMAND}`; export r; \
31715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31716 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31717 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31718 for flag in $(EXTRA_TARGET_FLAGS); do \
31719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31720 done; \
85bfb75e 31721 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31724 "RANLIB=$${RANLIB}" \
901119ae 31725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31726 install-html) \
4977bab6
ZW
31727 || exit 1
31728
85bfb75e 31729@endif target-libssp
4977bab6 31730
85bfb75e
JM
31731.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
31732maybe-installcheck-target-libssp:
31733@if target-libssp
31734maybe-installcheck-target-libssp: installcheck-target-libssp
4977bab6 31735
85bfb75e
JM
31736installcheck-target-libssp: \
31737 configure-target-libssp
f41d6665 31738 @: $(MAKE); $(unstage)
85bfb75e 31739 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
295f4e42 31740 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31742 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31743 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
295f4e42
NN
31744 for flag in $(EXTRA_TARGET_FLAGS); do \
31745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31746 done; \
85bfb75e 31747 (cd $(TARGET_SUBDIR)/libssp && \
295f4e42
NN
31748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31750 "RANLIB=$${RANLIB}" \
901119ae 31751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 31752 installcheck) \
fa958513 31753 || exit 1
fa958513 31754
85bfb75e 31755@endif target-libssp
fa958513 31756
85bfb75e
JM
31757.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
31758maybe-mostlyclean-target-libssp:
31759@if target-libssp
31760maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
fa958513 31761
85bfb75e
JM
31762mostlyclean-target-libssp:
31763 @: $(MAKE); $(unstage)
31764 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
31765 r=`${PWD_COMMAND}`; export r; \
fa958513
DJ
31766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31767 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31768 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
31769 for flag in $(EXTRA_TARGET_FLAGS); do \
31770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31771 done; \
31772 (cd $(TARGET_SUBDIR)/libssp && \
31773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31775 "RANLIB=$${RANLIB}" \
31776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31777 mostlyclean) \
31778 || exit 1
fa958513 31779
85bfb75e 31780@endif target-libssp
fa958513 31781
85bfb75e
JM
31782.PHONY: maybe-clean-target-libssp clean-target-libssp
31783maybe-clean-target-libssp:
31784@if target-libssp
31785maybe-clean-target-libssp: clean-target-libssp
fa958513 31786
85bfb75e
JM
31787clean-target-libssp:
31788 @: $(MAKE); $(unstage)
31789 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
31790 r=`${PWD_COMMAND}`; export r; \
fa958513
DJ
31791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31792 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31793 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
31794 for flag in $(EXTRA_TARGET_FLAGS); do \
31795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31796 done; \
31797 (cd $(TARGET_SUBDIR)/libssp && \
31798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31800 "RANLIB=$${RANLIB}" \
31801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31802 clean) \
31803 || exit 1
fa958513 31804
85bfb75e 31805@endif target-libssp
fa958513 31806
85bfb75e
JM
31807.PHONY: maybe-distclean-target-libssp distclean-target-libssp
31808maybe-distclean-target-libssp:
31809@if target-libssp
31810maybe-distclean-target-libssp: distclean-target-libssp
fa958513 31811
85bfb75e
JM
31812distclean-target-libssp:
31813 @: $(MAKE); $(unstage)
31814 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
31815 r=`${PWD_COMMAND}`; export r; \
fa958513
DJ
31816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31817 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31818 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
31819 for flag in $(EXTRA_TARGET_FLAGS); do \
31820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31821 done; \
31822 (cd $(TARGET_SUBDIR)/libssp && \
31823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31825 "RANLIB=$${RANLIB}" \
31826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31827 distclean) \
31828 || exit 1
fa958513 31829
85bfb75e 31830@endif target-libssp
fa958513 31831
85bfb75e
JM
31832.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
31833maybe-maintainer-clean-target-libssp:
31834@if target-libssp
31835maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
fa958513 31836
85bfb75e
JM
31837maintainer-clean-target-libssp:
31838 @: $(MAKE); $(unstage)
31839 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
31840 r=`${PWD_COMMAND}`; export r; \
fa958513
DJ
31841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31842 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31843 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
31844 for flag in $(EXTRA_TARGET_FLAGS); do \
31845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31846 done; \
31847 (cd $(TARGET_SUBDIR)/libssp && \
31848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31850 "RANLIB=$${RANLIB}" \
31851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31852 maintainer-clean) \
31853 || exit 1
fa958513 31854
85bfb75e 31855@endif target-libssp
fa958513
DJ
31856
31857
85bfb75e
JM
31858
31859
31860
31861.PHONY: configure-target-newlib maybe-configure-target-newlib
31862maybe-configure-target-newlib:
31863@if gcc-bootstrap
31864configure-target-newlib: stage_current
31865@endif gcc-bootstrap
31866@if target-newlib
31867maybe-configure-target-newlib: configure-target-newlib
31868configure-target-newlib:
31869 @: $(MAKE); $(unstage)
fa958513
DJ
31870 @r=`${PWD_COMMAND}`; export r; \
31871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
31872 echo "Checking multilib configuration for newlib..."; \
31873 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
31874 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
31875 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
31876 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
31877 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
31878 else \
31879 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
31880 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
31881 fi; \
fa958513 31882 else \
85bfb75e 31883 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
fa958513 31884 fi; \
85bfb75e
JM
31885 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
31886 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
31887 $(NORMAL_TARGET_EXPORTS) \
31888 echo Configuring in $(TARGET_SUBDIR)/newlib; \
31889 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
31890 case $(srcdir) in \
31891 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31892 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
31893 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31894 esac; \
31895 srcdiroption="--srcdir=$${topdir}/newlib"; \
31896 libsrcdir="$$s/newlib"; \
31897 rm -f no-such-file || : ; \
31898 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
31899 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31900 --target=${target_alias} $${srcdiroption} \
31901 || exit 1
31902@endif target-newlib
fa958513
DJ
31903
31904
31905
31906
31907
85bfb75e
JM
31908.PHONY: all-target-newlib maybe-all-target-newlib
31909maybe-all-target-newlib:
31910@if gcc-bootstrap
31911all-target-newlib: stage_current
31912@endif gcc-bootstrap
31913@if target-newlib
31914TARGET-target-newlib=all
31915maybe-all-target-newlib: all-target-newlib
31916all-target-newlib: configure-target-newlib
31917 @: $(MAKE); $(unstage)
31918 @r=`${PWD_COMMAND}`; export r; \
31919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31920 $(NORMAL_TARGET_EXPORTS) \
31921 (cd $(TARGET_SUBDIR)/newlib && \
31922 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
31923 $(TARGET-target-newlib))
31924@endif target-newlib
fa958513 31925
fa958513 31926
fa958513 31927
fa958513 31928
fa958513 31929
85bfb75e
JM
31930.PHONY: check-target-newlib maybe-check-target-newlib
31931maybe-check-target-newlib:
31932@if target-newlib
31933maybe-check-target-newlib: check-target-newlib
31934
31935check-target-newlib:
fa958513
DJ
31936 @: $(MAKE); $(unstage)
31937 @r=`${PWD_COMMAND}`; export r; \
31938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31939 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
31940 (cd $(TARGET_SUBDIR)/newlib && \
31941 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
31942
31943@endif target-newlib
31944
31945.PHONY: install-target-newlib maybe-install-target-newlib
31946maybe-install-target-newlib:
31947@if target-newlib
31948maybe-install-target-newlib: install-target-newlib
31949
31950install-target-newlib: installdirs
31951 @: $(MAKE); $(unstage)
31952 @r=`${PWD_COMMAND}`; export r; \
31953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31954 $(NORMAL_TARGET_EXPORTS) \
31955 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
31956 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
31957
85bfb75e 31958@endif target-newlib
fa958513 31959
85bfb75e
JM
31960.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
31961maybe-install-strip-target-newlib:
31962@if target-newlib
31963maybe-install-strip-target-newlib: install-strip-target-newlib
455c8f48 31964
85bfb75e 31965install-strip-target-newlib: installdirs
455c8f48
RW
31966 @: $(MAKE); $(unstage)
31967 @r=`${PWD_COMMAND}`; export r; \
31968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31969 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31970 (cd $(TARGET_SUBDIR)/newlib && \
455c8f48
RW
31971 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
31972
85bfb75e 31973@endif target-newlib
455c8f48 31974
fa958513
DJ
31975# Other targets (info, dvi, pdf, etc.)
31976
85bfb75e
JM
31977.PHONY: maybe-info-target-newlib info-target-newlib
31978maybe-info-target-newlib:
31979@if target-newlib
31980maybe-info-target-newlib: info-target-newlib
fa958513 31981
85bfb75e
JM
31982info-target-newlib: \
31983 configure-target-newlib
fa958513 31984 @: $(MAKE); $(unstage)
85bfb75e 31985 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
31986 r=`${PWD_COMMAND}`; export r; \
31987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31988 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 31989 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
31990 for flag in $(EXTRA_TARGET_FLAGS); do \
31991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31992 done; \
85bfb75e 31993 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
31994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31996 "RANLIB=$${RANLIB}" \
901119ae 31997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
31998 info) \
31999 || exit 1
32000
85bfb75e 32001@endif target-newlib
fa958513 32002
85bfb75e
JM
32003.PHONY: maybe-dvi-target-newlib dvi-target-newlib
32004maybe-dvi-target-newlib:
32005@if target-newlib
32006maybe-dvi-target-newlib: dvi-target-newlib
fa958513 32007
85bfb75e
JM
32008dvi-target-newlib: \
32009 configure-target-newlib
fa958513 32010 @: $(MAKE); $(unstage)
85bfb75e 32011 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32012 r=`${PWD_COMMAND}`; export r; \
32013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32014 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32015 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32016 for flag in $(EXTRA_TARGET_FLAGS); do \
32017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32018 done; \
85bfb75e 32019 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32022 "RANLIB=$${RANLIB}" \
901119ae 32023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32024 dvi) \
32025 || exit 1
32026
85bfb75e 32027@endif target-newlib
fa958513 32028
85bfb75e
JM
32029.PHONY: maybe-pdf-target-newlib pdf-target-newlib
32030maybe-pdf-target-newlib:
32031@if target-newlib
32032maybe-pdf-target-newlib: pdf-target-newlib
fa958513 32033
85bfb75e
JM
32034pdf-target-newlib: \
32035 configure-target-newlib
fa958513 32036 @: $(MAKE); $(unstage)
85bfb75e 32037 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32038 r=`${PWD_COMMAND}`; export r; \
32039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32040 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32041 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32042 for flag in $(EXTRA_TARGET_FLAGS); do \
32043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32044 done; \
85bfb75e 32045 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32048 "RANLIB=$${RANLIB}" \
901119ae 32049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32050 pdf) \
32051 || exit 1
32052
85bfb75e 32053@endif target-newlib
fa958513 32054
85bfb75e
JM
32055.PHONY: maybe-html-target-newlib html-target-newlib
32056maybe-html-target-newlib:
32057@if target-newlib
32058maybe-html-target-newlib: html-target-newlib
fa958513 32059
85bfb75e
JM
32060html-target-newlib: \
32061 configure-target-newlib
fa958513 32062 @: $(MAKE); $(unstage)
85bfb75e 32063 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32064 r=`${PWD_COMMAND}`; export r; \
32065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32066 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32067 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32068 for flag in $(EXTRA_TARGET_FLAGS); do \
32069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32070 done; \
85bfb75e 32071 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32074 "RANLIB=$${RANLIB}" \
901119ae 32075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32076 html) \
32077 || exit 1
32078
85bfb75e 32079@endif target-newlib
fa958513 32080
85bfb75e
JM
32081.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
32082maybe-TAGS-target-newlib:
32083@if target-newlib
32084maybe-TAGS-target-newlib: TAGS-target-newlib
fa958513 32085
85bfb75e
JM
32086TAGS-target-newlib: \
32087 configure-target-newlib
fa958513 32088 @: $(MAKE); $(unstage)
85bfb75e 32089 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32090 r=`${PWD_COMMAND}`; export r; \
32091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32092 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32093 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32094 for flag in $(EXTRA_TARGET_FLAGS); do \
32095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32096 done; \
85bfb75e 32097 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32100 "RANLIB=$${RANLIB}" \
901119ae 32101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32102 TAGS) \
32103 || exit 1
32104
85bfb75e 32105@endif target-newlib
fa958513 32106
85bfb75e
JM
32107.PHONY: maybe-install-info-target-newlib install-info-target-newlib
32108maybe-install-info-target-newlib:
32109@if target-newlib
32110maybe-install-info-target-newlib: install-info-target-newlib
fa958513 32111
85bfb75e
JM
32112install-info-target-newlib: \
32113 configure-target-newlib \
32114 info-target-newlib
fa958513 32115 @: $(MAKE); $(unstage)
85bfb75e 32116 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32117 r=`${PWD_COMMAND}`; export r; \
32118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32119 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32120 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32121 for flag in $(EXTRA_TARGET_FLAGS); do \
32122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32123 done; \
85bfb75e 32124 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32127 "RANLIB=$${RANLIB}" \
901119ae 32128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32129 install-info) \
32130 || exit 1
32131
85bfb75e 32132@endif target-newlib
fa958513 32133
85bfb75e
JM
32134.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
32135maybe-install-pdf-target-newlib:
32136@if target-newlib
32137maybe-install-pdf-target-newlib: install-pdf-target-newlib
9c4d2493 32138
85bfb75e
JM
32139install-pdf-target-newlib: \
32140 configure-target-newlib \
32141 pdf-target-newlib
9c4d2493 32142 @: $(MAKE); $(unstage)
85bfb75e 32143 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
9c4d2493
BM
32144 r=`${PWD_COMMAND}`; export r; \
32145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32146 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32147 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
9c4d2493
BM
32148 for flag in $(EXTRA_TARGET_FLAGS); do \
32149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32150 done; \
85bfb75e 32151 (cd $(TARGET_SUBDIR)/newlib && \
9c4d2493
BM
32152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32154 "RANLIB=$${RANLIB}" \
901119ae 32155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
32156 install-pdf) \
32157 || exit 1
32158
85bfb75e 32159@endif target-newlib
9c4d2493 32160
85bfb75e
JM
32161.PHONY: maybe-install-html-target-newlib install-html-target-newlib
32162maybe-install-html-target-newlib:
32163@if target-newlib
32164maybe-install-html-target-newlib: install-html-target-newlib
fa958513 32165
85bfb75e
JM
32166install-html-target-newlib: \
32167 configure-target-newlib \
32168 html-target-newlib
fa958513 32169 @: $(MAKE); $(unstage)
85bfb75e 32170 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32171 r=`${PWD_COMMAND}`; export r; \
32172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32173 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32174 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32175 for flag in $(EXTRA_TARGET_FLAGS); do \
32176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32177 done; \
85bfb75e 32178 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32181 "RANLIB=$${RANLIB}" \
901119ae 32182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32183 install-html) \
32184 || exit 1
32185
85bfb75e 32186@endif target-newlib
fa958513 32187
85bfb75e
JM
32188.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
32189maybe-installcheck-target-newlib:
32190@if target-newlib
32191maybe-installcheck-target-newlib: installcheck-target-newlib
fa958513 32192
85bfb75e
JM
32193installcheck-target-newlib: \
32194 configure-target-newlib
fa958513 32195 @: $(MAKE); $(unstage)
85bfb75e 32196 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32197 r=`${PWD_COMMAND}`; export r; \
32198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32199 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32200 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32201 for flag in $(EXTRA_TARGET_FLAGS); do \
32202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32203 done; \
85bfb75e 32204 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32207 "RANLIB=$${RANLIB}" \
901119ae 32208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32209 installcheck) \
32210 || exit 1
32211
85bfb75e 32212@endif target-newlib
fa958513 32213
85bfb75e
JM
32214.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
32215maybe-mostlyclean-target-newlib:
32216@if target-newlib
32217maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
fa958513 32218
85bfb75e 32219mostlyclean-target-newlib:
fa958513 32220 @: $(MAKE); $(unstage)
85bfb75e 32221 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32222 r=`${PWD_COMMAND}`; export r; \
32223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32224 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32225 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32226 for flag in $(EXTRA_TARGET_FLAGS); do \
32227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32228 done; \
85bfb75e 32229 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32232 "RANLIB=$${RANLIB}" \
901119ae 32233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32234 mostlyclean) \
32235 || exit 1
32236
85bfb75e 32237@endif target-newlib
fa958513 32238
85bfb75e
JM
32239.PHONY: maybe-clean-target-newlib clean-target-newlib
32240maybe-clean-target-newlib:
32241@if target-newlib
32242maybe-clean-target-newlib: clean-target-newlib
fa958513 32243
85bfb75e 32244clean-target-newlib:
fa958513 32245 @: $(MAKE); $(unstage)
85bfb75e 32246 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32247 r=`${PWD_COMMAND}`; export r; \
32248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32249 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32250 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32251 for flag in $(EXTRA_TARGET_FLAGS); do \
32252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32253 done; \
85bfb75e 32254 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32257 "RANLIB=$${RANLIB}" \
901119ae 32258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32259 clean) \
32260 || exit 1
32261
85bfb75e 32262@endif target-newlib
fa958513 32263
85bfb75e
JM
32264.PHONY: maybe-distclean-target-newlib distclean-target-newlib
32265maybe-distclean-target-newlib:
32266@if target-newlib
32267maybe-distclean-target-newlib: distclean-target-newlib
fa958513 32268
85bfb75e 32269distclean-target-newlib:
fa958513 32270 @: $(MAKE); $(unstage)
85bfb75e 32271 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32272 r=`${PWD_COMMAND}`; export r; \
32273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32274 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32275 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32276 for flag in $(EXTRA_TARGET_FLAGS); do \
32277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32278 done; \
85bfb75e 32279 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32282 "RANLIB=$${RANLIB}" \
901119ae 32283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32284 distclean) \
32285 || exit 1
32286
85bfb75e 32287@endif target-newlib
fa958513 32288
85bfb75e
JM
32289.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
32290maybe-maintainer-clean-target-newlib:
32291@if target-newlib
32292maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
fa958513 32293
85bfb75e 32294maintainer-clean-target-newlib:
fa958513 32295 @: $(MAKE); $(unstage)
85bfb75e 32296 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
fa958513
DJ
32297 r=`${PWD_COMMAND}`; export r; \
32298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32299 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32300 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
fa958513
DJ
32301 for flag in $(EXTRA_TARGET_FLAGS); do \
32302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32303 done; \
85bfb75e 32304 (cd $(TARGET_SUBDIR)/newlib && \
fa958513
DJ
32305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32307 "RANLIB=$${RANLIB}" \
901119ae 32308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
fa958513
DJ
32309 maintainer-clean) \
32310 || exit 1
32311
85bfb75e 32312@endif target-newlib
fa958513
DJ
32313
32314
32315
32316
32317
85bfb75e
JM
32318.PHONY: configure-target-libgcc maybe-configure-target-libgcc
32319maybe-configure-target-libgcc:
1ec601bf 32320@if gcc-bootstrap
85bfb75e 32321configure-target-libgcc: stage_current
1ec601bf 32322@endif gcc-bootstrap
85bfb75e
JM
32323@if target-libgcc
32324maybe-configure-target-libgcc: configure-target-libgcc
32325configure-target-libgcc:
1ec601bf
FXC
32326 @r=`${PWD_COMMAND}`; export r; \
32327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32328 echo "Checking multilib configuration for libgcc..."; \
32329 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32330 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32331 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32332 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32333 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
1ec601bf 32334 else \
85bfb75e
JM
32335 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32336 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
1ec601bf
FXC
32337 fi; \
32338 else \
85bfb75e 32339 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
1ec601bf 32340 fi; \
85bfb75e
JM
32341 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
32342 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
1ec601bf 32343 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32344 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
32345 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
1ec601bf
FXC
32346 case $(srcdir) in \
32347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 32348 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
1ec601bf
FXC
32349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32350 esac; \
85bfb75e
JM
32351 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32352 libsrcdir="$$s/libgcc"; \
1ec601bf
FXC
32353 rm -f no-such-file || : ; \
32354 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
32355 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32356 --target=${target_alias} $${srcdiroption} \
32357 || exit 1
85bfb75e 32358@endif target-libgcc
1ec601bf
FXC
32359
32360
1ec601bf 32361
85bfb75e
JM
32362.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
32363maybe-configure-stage1-target-libgcc:
32364@if target-libgcc-bootstrap
32365maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
32366configure-stage1-target-libgcc:
32367 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32368 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
1ec601bf
FXC
32369 @r=`${PWD_COMMAND}`; export r; \
32370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32371 TFLAGS="$(STAGE1_TFLAGS)"; \
32372 echo "Checking multilib configuration for libgcc..."; \
32373 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32374 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32375 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32376 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32377 else \
32378 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32379 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32380 fi; \
32381 else \
32382 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32383 fi; \
32384 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
1ec601bf 32385 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32386 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32387 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32388 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32389 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
32390 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32391 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32392 case $(srcdir) in \
32393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32394 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32396 esac; \
32397 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32398 libsrcdir="$$s/libgcc"; \
32399 $(SHELL) $${libsrcdir}/configure \
32400 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32401 --target=${target_alias} $${srcdiroption} \
32402 $(STAGE1_CONFIGURE_FLAGS)
32403@endif target-libgcc-bootstrap
1ec601bf 32404
85bfb75e
JM
32405.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
32406maybe-configure-stage2-target-libgcc:
32407@if target-libgcc-bootstrap
32408maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
32409configure-stage2-target-libgcc:
32410 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32411 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
1ec601bf
FXC
32412 @r=`${PWD_COMMAND}`; export r; \
32413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32414 TFLAGS="$(STAGE2_TFLAGS)"; \
32415 echo "Checking multilib configuration for libgcc..."; \
32416 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32417 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32418 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32419 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32420 else \
32421 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32422 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32423 fi; \
32424 else \
32425 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32426 fi; \
32427 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
1ec601bf 32428 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32429 \
32430 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32431 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32432 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32433 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
32434 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32435 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32436 case $(srcdir) in \
32437 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32438 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32439 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32440 esac; \
32441 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32442 libsrcdir="$$s/libgcc"; \
32443 $(SHELL) $${libsrcdir}/configure \
32444 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32445 --target=${target_alias} $${srcdiroption} \
32446 --with-build-libsubdir=$(HOST_SUBDIR) \
32447 $(STAGE2_CONFIGURE_FLAGS)
32448@endif target-libgcc-bootstrap
455c8f48 32449
85bfb75e
JM
32450.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
32451maybe-configure-stage3-target-libgcc:
32452@if target-libgcc-bootstrap
32453maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
32454configure-stage3-target-libgcc:
32455 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32456 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
455c8f48
RW
32457 @r=`${PWD_COMMAND}`; export r; \
32458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32459 TFLAGS="$(STAGE3_TFLAGS)"; \
32460 echo "Checking multilib configuration for libgcc..."; \
32461 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32462 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32463 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32464 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32465 else \
32466 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32467 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32468 fi; \
32469 else \
32470 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32471 fi; \
32472 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
455c8f48 32473 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32474 \
32475 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32476 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32477 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32478 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
32479 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32480 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32481 case $(srcdir) in \
32482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32483 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32485 esac; \
32486 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32487 libsrcdir="$$s/libgcc"; \
32488 $(SHELL) $${libsrcdir}/configure \
32489 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32490 --target=${target_alias} $${srcdiroption} \
32491 --with-build-libsubdir=$(HOST_SUBDIR) \
32492 $(STAGE3_CONFIGURE_FLAGS)
32493@endif target-libgcc-bootstrap
1ec601bf 32494
85bfb75e
JM
32495.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
32496maybe-configure-stage4-target-libgcc:
32497@if target-libgcc-bootstrap
32498maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
32499configure-stage4-target-libgcc:
32500 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32501 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
32502 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32504 TFLAGS="$(STAGE4_TFLAGS)"; \
32505 echo "Checking multilib configuration for libgcc..."; \
32506 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32507 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32508 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32509 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32510 else \
32511 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32512 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32513 fi; \
32514 else \
32515 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32516 fi; \
32517 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
1ec601bf 32518 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32519 \
32520 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32521 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32522 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32523 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
32524 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32525 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32526 case $(srcdir) in \
32527 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32528 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32529 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32530 esac; \
32531 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32532 libsrcdir="$$s/libgcc"; \
32533 $(SHELL) $${libsrcdir}/configure \
32534 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32535 --target=${target_alias} $${srcdiroption} \
32536 --with-build-libsubdir=$(HOST_SUBDIR) \
32537 $(STAGE4_CONFIGURE_FLAGS)
32538@endif target-libgcc-bootstrap
32539
32540.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
32541maybe-configure-stageprofile-target-libgcc:
32542@if target-libgcc-bootstrap
32543maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
32544configure-stageprofile-target-libgcc:
32545 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32546 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
32547 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32549 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32550 echo "Checking multilib configuration for libgcc..."; \
32551 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32552 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32553 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32554 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32555 else \
32556 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32557 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32558 fi; \
32559 else \
32560 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32561 fi; \
32562 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
1ec601bf 32563 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32564 \
32565 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32566 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32567 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32568 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
32569 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32570 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32571 case $(srcdir) in \
32572 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32573 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32574 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32575 esac; \
32576 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32577 libsrcdir="$$s/libgcc"; \
32578 $(SHELL) $${libsrcdir}/configure \
32579 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32580 --target=${target_alias} $${srcdiroption} \
32581 --with-build-libsubdir=$(HOST_SUBDIR) \
32582 $(STAGEprofile_CONFIGURE_FLAGS)
32583@endif target-libgcc-bootstrap
1ec601bf 32584
85bfb75e
JM
32585.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
32586maybe-configure-stagefeedback-target-libgcc:
32587@if target-libgcc-bootstrap
32588maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
32589configure-stagefeedback-target-libgcc:
32590 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32591 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
32592 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32594 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32595 echo "Checking multilib configuration for libgcc..."; \
32596 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
32597 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32598 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
32599 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
32600 else \
32601 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
32602 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32603 fi; \
32604 else \
32605 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
32606 fi; \
32607 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
1ec601bf 32608 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32609 \
32610 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32611 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32612 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32613 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
32614 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
32615 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
32616 case $(srcdir) in \
32617 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32618 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
32619 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32620 esac; \
32621 srcdiroption="--srcdir=$${topdir}/libgcc"; \
32622 libsrcdir="$$s/libgcc"; \
32623 $(SHELL) $${libsrcdir}/configure \
32624 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32625 --target=${target_alias} $${srcdiroption} \
32626 --with-build-libsubdir=$(HOST_SUBDIR) \
32627 $(STAGEfeedback_CONFIGURE_FLAGS)
32628@endif target-libgcc-bootstrap
1ec601bf 32629
1ec601bf 32630
1ec601bf 32631
1ec601bf 32632
1ec601bf 32633
85bfb75e
JM
32634.PHONY: all-target-libgcc maybe-all-target-libgcc
32635maybe-all-target-libgcc:
32636@if gcc-bootstrap
32637all-target-libgcc: stage_current
32638@endif gcc-bootstrap
32639@if target-libgcc
32640TARGET-target-libgcc=all
32641maybe-all-target-libgcc: all-target-libgcc
32642all-target-libgcc: configure-target-libgcc
32643 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32645 $(NORMAL_TARGET_EXPORTS) \
32646 (cd $(TARGET_SUBDIR)/libgcc && \
32647 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
32648 $(TARGET-target-libgcc))
32649@endif target-libgcc
1ec601bf 32650
1ec601bf 32651
1ec601bf 32652
85bfb75e
JM
32653.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
32654.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
32655maybe-all-stage1-target-libgcc:
32656maybe-clean-stage1-target-libgcc:
32657@if target-libgcc-bootstrap
32658maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
32659all-stage1: all-stage1-target-libgcc
32660TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
32661all-stage1-target-libgcc: configure-stage1-target-libgcc
32662 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32663 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32665 TFLAGS="$(STAGE1_TFLAGS)"; \
32666 $(NORMAL_TARGET_EXPORTS) \
32667 cd $(TARGET_SUBDIR)/libgcc && \
32668 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32669 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32670 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32671 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32672 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32673 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32674 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32675 $(EXTRA_TARGET_FLAGS) \
32676 TFLAGS="$(STAGE1_TFLAGS)" \
32677 $(TARGET-stage1-target-libgcc)
1ec601bf 32678
85bfb75e
JM
32679maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
32680clean-stage1: clean-stage1-target-libgcc
32681clean-stage1-target-libgcc:
32682 @if [ $(current_stage) = stage1 ]; then \
32683 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
32684 else \
32685 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
32686 $(MAKE) stage1-start; \
32687 fi; \
32688 cd $(TARGET_SUBDIR)/libgcc && \
32689 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32690 clean
32691@endif target-libgcc-bootstrap
1ec601bf 32692
1ec601bf 32693
85bfb75e
JM
32694.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
32695.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
32696maybe-all-stage2-target-libgcc:
32697maybe-clean-stage2-target-libgcc:
32698@if target-libgcc-bootstrap
32699maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
32700all-stage2: all-stage2-target-libgcc
32701TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
32702all-stage2-target-libgcc: configure-stage2-target-libgcc
32703 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32704 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 32706 TFLAGS="$(STAGE2_TFLAGS)"; \
1ec601bf 32707 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32708 \
32709 cd $(TARGET_SUBDIR)/libgcc && \
32710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32711 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32712 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32713 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32717 $(EXTRA_TARGET_FLAGS) \
32718 TFLAGS="$(STAGE2_TFLAGS)" \
32719 $(TARGET-stage2-target-libgcc)
1ec601bf 32720
85bfb75e
JM
32721maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
32722clean-stage2: clean-stage2-target-libgcc
32723clean-stage2-target-libgcc:
32724 @if [ $(current_stage) = stage2 ]; then \
32725 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
32726 else \
32727 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
32728 $(MAKE) stage2-start; \
32729 fi; \
32730 cd $(TARGET_SUBDIR)/libgcc && \
32731 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32732 \
32733 clean
32734@endif target-libgcc-bootstrap
1ec601bf 32735
1ec601bf 32736
85bfb75e
JM
32737.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
32738.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
32739maybe-all-stage3-target-libgcc:
32740maybe-clean-stage3-target-libgcc:
32741@if target-libgcc-bootstrap
32742maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
32743all-stage3: all-stage3-target-libgcc
32744TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
32745all-stage3-target-libgcc: configure-stage3-target-libgcc
32746 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32747 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 32749 TFLAGS="$(STAGE3_TFLAGS)"; \
1ec601bf 32750 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32751 \
32752 cd $(TARGET_SUBDIR)/libgcc && \
32753 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32754 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32755 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32756 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32757 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32758 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32759 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32760 $(EXTRA_TARGET_FLAGS) \
32761 TFLAGS="$(STAGE3_TFLAGS)" \
32762 $(TARGET-stage3-target-libgcc)
1ec601bf 32763
85bfb75e
JM
32764maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
32765clean-stage3: clean-stage3-target-libgcc
32766clean-stage3-target-libgcc:
32767 @if [ $(current_stage) = stage3 ]; then \
32768 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
32769 else \
32770 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
32771 $(MAKE) stage3-start; \
32772 fi; \
32773 cd $(TARGET_SUBDIR)/libgcc && \
32774 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32775 \
32776 clean
32777@endif target-libgcc-bootstrap
1ec601bf 32778
1ec601bf 32779
85bfb75e
JM
32780.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
32781.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
32782maybe-all-stage4-target-libgcc:
32783maybe-clean-stage4-target-libgcc:
32784@if target-libgcc-bootstrap
32785maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
32786all-stage4: all-stage4-target-libgcc
32787TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
32788all-stage4-target-libgcc: configure-stage4-target-libgcc
32789 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32790 @r=`${PWD_COMMAND}`; export r; \
1ec601bf 32791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e 32792 TFLAGS="$(STAGE4_TFLAGS)"; \
1ec601bf 32793 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
32794 \
32795 cd $(TARGET_SUBDIR)/libgcc && \
32796 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32797 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32798 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32799 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32800 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32801 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32802 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32803 $(EXTRA_TARGET_FLAGS) \
32804 TFLAGS="$(STAGE4_TFLAGS)" \
32805 $(TARGET-stage4-target-libgcc)
1ec601bf 32806
85bfb75e
JM
32807maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
32808clean-stage4: clean-stage4-target-libgcc
32809clean-stage4-target-libgcc:
32810 @if [ $(current_stage) = stage4 ]; then \
32811 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
32812 else \
32813 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
32814 $(MAKE) stage4-start; \
32815 fi; \
32816 cd $(TARGET_SUBDIR)/libgcc && \
32817 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32818 \
32819 clean
32820@endif target-libgcc-bootstrap
1ec601bf
FXC
32821
32822
85bfb75e
JM
32823.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
32824.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
32825maybe-all-stageprofile-target-libgcc:
32826maybe-clean-stageprofile-target-libgcc:
32827@if target-libgcc-bootstrap
32828maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
32829all-stageprofile: all-stageprofile-target-libgcc
32830TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
32831all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
32832 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665
DJ
32833 @r=`${PWD_COMMAND}`; export r; \
32834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32835 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32836 $(NORMAL_TARGET_EXPORTS) \
32837 \
32838 cd $(TARGET_SUBDIR)/libgcc && \
32839 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32840 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32841 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32842 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32843 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32844 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32845 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32846 $(EXTRA_TARGET_FLAGS) \
32847 TFLAGS="$(STAGEprofile_TFLAGS)" \
32848 $(TARGET-stageprofile-target-libgcc)
32849
32850maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
32851clean-stageprofile: clean-stageprofile-target-libgcc
32852clean-stageprofile-target-libgcc:
32853 @if [ $(current_stage) = stageprofile ]; then \
32854 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
f41d6665 32855 else \
85bfb75e
JM
32856 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
32857 $(MAKE) stageprofile-start; \
cc11cc9b 32858 fi; \
85bfb75e
JM
32859 cd $(TARGET_SUBDIR)/libgcc && \
32860 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32861 \
32862 clean
32863@endif target-libgcc-bootstrap
ce406537
PB
32864
32865
85bfb75e
JM
32866.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
32867.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
32868maybe-all-stagefeedback-target-libgcc:
32869maybe-clean-stagefeedback-target-libgcc:
32870@if target-libgcc-bootstrap
32871maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
32872all-stagefeedback: all-stagefeedback-target-libgcc
32873TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
32874all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
32875 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
6de9cd9a
DN
32876 @r=`${PWD_COMMAND}`; export r; \
32877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
32878 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32879 $(NORMAL_TARGET_EXPORTS) \
32880 \
32881 cd $(TARGET_SUBDIR)/libgcc && \
32882 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32883 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32884 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32885 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32886 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32887 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32888 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32889 $(EXTRA_TARGET_FLAGS) \
32890 TFLAGS="$(STAGEfeedback_TFLAGS)" \
32891 $(TARGET-stagefeedback-target-libgcc)
32892
32893maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
32894clean-stagefeedback: clean-stagefeedback-target-libgcc
32895clean-stagefeedback-target-libgcc:
32896 @if [ $(current_stage) = stagefeedback ]; then \
32897 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
32898 else \
32899 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
32900 $(MAKE) stagefeedback-start; \
32901 fi; \
32902 cd $(TARGET_SUBDIR)/libgcc && \
32903 $(MAKE) $(EXTRA_TARGET_FLAGS) \
32904 \
32905 clean
32906@endif target-libgcc-bootstrap
6de9cd9a 32907
25b42232
PB
32908
32909
ce406537
PB
32910
32911
6de9cd9a 32912
85bfb75e
JM
32913.PHONY: check-target-libgcc maybe-check-target-libgcc
32914maybe-check-target-libgcc:
32915@if target-libgcc
32916maybe-check-target-libgcc: check-target-libgcc
6de9cd9a 32917
85bfb75e
JM
32918# Dummy target for uncheckable module.
32919check-target-libgcc:
6de9cd9a 32920
85bfb75e 32921@endif target-libgcc
6de9cd9a 32922
85bfb75e
JM
32923.PHONY: install-target-libgcc maybe-install-target-libgcc
32924maybe-install-target-libgcc:
32925@if target-libgcc
32926maybe-install-target-libgcc: install-target-libgcc
32927
32928install-target-libgcc: installdirs
f41d6665 32929 @: $(MAKE); $(unstage)
6de9cd9a
DN
32930 @r=`${PWD_COMMAND}`; export r; \
32931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32932 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32933 (cd $(TARGET_SUBDIR)/libgcc && \
a52a0a7f 32934 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 32935
85bfb75e 32936@endif target-libgcc
6de9cd9a 32937
85bfb75e
JM
32938.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
32939maybe-install-strip-target-libgcc:
32940@if target-libgcc
32941maybe-install-strip-target-libgcc: install-strip-target-libgcc
455c8f48 32942
85bfb75e 32943install-strip-target-libgcc: installdirs
455c8f48
RW
32944 @: $(MAKE); $(unstage)
32945 @r=`${PWD_COMMAND}`; export r; \
32946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32947 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32948 (cd $(TARGET_SUBDIR)/libgcc && \
455c8f48
RW
32949 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
32950
85bfb75e 32951@endif target-libgcc
455c8f48 32952
b5422ad7 32953# Other targets (info, dvi, pdf, etc.)
6de9cd9a 32954
85bfb75e
JM
32955.PHONY: maybe-info-target-libgcc info-target-libgcc
32956maybe-info-target-libgcc:
32957@if target-libgcc
32958maybe-info-target-libgcc: info-target-libgcc
6de9cd9a 32959
85bfb75e
JM
32960info-target-libgcc: \
32961 configure-target-libgcc
f41d6665 32962 @: $(MAKE); $(unstage)
85bfb75e 32963 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
32964 r=`${PWD_COMMAND}`; export r; \
32965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32966 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32967 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
32968 for flag in $(EXTRA_TARGET_FLAGS); do \
32969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32970 done; \
85bfb75e 32971 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
32972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32974 "RANLIB=$${RANLIB}" \
901119ae 32975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 32976 info) \
6de9cd9a
DN
32977 || exit 1
32978
85bfb75e 32979@endif target-libgcc
6de9cd9a 32980
85bfb75e
JM
32981.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
32982maybe-dvi-target-libgcc:
32983@if target-libgcc
32984maybe-dvi-target-libgcc: dvi-target-libgcc
6de9cd9a 32985
85bfb75e
JM
32986dvi-target-libgcc: \
32987 configure-target-libgcc
f41d6665 32988 @: $(MAKE); $(unstage)
85bfb75e 32989 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
32990 r=`${PWD_COMMAND}`; export r; \
32991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32992 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 32993 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
32994 for flag in $(EXTRA_TARGET_FLAGS); do \
32995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32996 done; \
85bfb75e 32997 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
32998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33000 "RANLIB=$${RANLIB}" \
901119ae 33001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33002 dvi) \
6de9cd9a
DN
33003 || exit 1
33004
85bfb75e 33005@endif target-libgcc
6de9cd9a 33006
85bfb75e
JM
33007.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
33008maybe-pdf-target-libgcc:
33009@if target-libgcc
33010maybe-pdf-target-libgcc: pdf-target-libgcc
b5422ad7 33011
85bfb75e
JM
33012pdf-target-libgcc: \
33013 configure-target-libgcc
b5422ad7 33014 @: $(MAKE); $(unstage)
85bfb75e 33015 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
b5422ad7
BM
33016 r=`${PWD_COMMAND}`; export r; \
33017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33018 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33019 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
b5422ad7
BM
33020 for flag in $(EXTRA_TARGET_FLAGS); do \
33021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33022 done; \
85bfb75e 33023 (cd $(TARGET_SUBDIR)/libgcc && \
b5422ad7
BM
33024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33026 "RANLIB=$${RANLIB}" \
901119ae 33027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
33028 pdf) \
33029 || exit 1
33030
85bfb75e 33031@endif target-libgcc
b5422ad7 33032
85bfb75e
JM
33033.PHONY: maybe-html-target-libgcc html-target-libgcc
33034maybe-html-target-libgcc:
33035@if target-libgcc
33036maybe-html-target-libgcc: html-target-libgcc
f87a2b2e 33037
85bfb75e
JM
33038html-target-libgcc: \
33039 configure-target-libgcc
f41d6665 33040 @: $(MAKE); $(unstage)
85bfb75e 33041 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
f87a2b2e
MS
33042 r=`${PWD_COMMAND}`; export r; \
33043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 33044 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33045 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
f87a2b2e
MS
33046 for flag in $(EXTRA_TARGET_FLAGS); do \
33047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33048 done; \
85bfb75e 33049 (cd $(TARGET_SUBDIR)/libgcc && \
f87a2b2e
MS
33050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33052 "RANLIB=$${RANLIB}" \
901119ae 33053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
33054 html) \
33055 || exit 1
33056
85bfb75e 33057@endif target-libgcc
f87a2b2e 33058
85bfb75e
JM
33059.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
33060maybe-TAGS-target-libgcc:
33061@if target-libgcc
33062maybe-TAGS-target-libgcc: TAGS-target-libgcc
6de9cd9a 33063
85bfb75e
JM
33064TAGS-target-libgcc: \
33065 configure-target-libgcc
f41d6665 33066 @: $(MAKE); $(unstage)
85bfb75e 33067 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33068 r=`${PWD_COMMAND}`; export r; \
33069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33070 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33071 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33072 for flag in $(EXTRA_TARGET_FLAGS); do \
33073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33074 done; \
85bfb75e 33075 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33078 "RANLIB=$${RANLIB}" \
901119ae 33079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33080 TAGS) \
6de9cd9a
DN
33081 || exit 1
33082
85bfb75e 33083@endif target-libgcc
6de9cd9a 33084
85bfb75e
JM
33085.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
33086maybe-install-info-target-libgcc:
33087@if target-libgcc
33088maybe-install-info-target-libgcc: install-info-target-libgcc
6de9cd9a 33089
85bfb75e
JM
33090install-info-target-libgcc: \
33091 configure-target-libgcc \
33092 info-target-libgcc
f41d6665 33093 @: $(MAKE); $(unstage)
85bfb75e 33094 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33095 r=`${PWD_COMMAND}`; export r; \
33096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33097 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33098 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33099 for flag in $(EXTRA_TARGET_FLAGS); do \
33100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33101 done; \
85bfb75e 33102 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33105 "RANLIB=$${RANLIB}" \
901119ae 33106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33107 install-info) \
6de9cd9a
DN
33108 || exit 1
33109
85bfb75e 33110@endif target-libgcc
6de9cd9a 33111
85bfb75e
JM
33112.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
33113maybe-install-pdf-target-libgcc:
33114@if target-libgcc
33115maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
9c4d2493 33116
85bfb75e
JM
33117install-pdf-target-libgcc: \
33118 configure-target-libgcc \
33119 pdf-target-libgcc
9c4d2493 33120 @: $(MAKE); $(unstage)
85bfb75e 33121 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
9c4d2493
BM
33122 r=`${PWD_COMMAND}`; export r; \
33123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33124 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33125 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
9c4d2493
BM
33126 for flag in $(EXTRA_TARGET_FLAGS); do \
33127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33128 done; \
85bfb75e 33129 (cd $(TARGET_SUBDIR)/libgcc && \
9c4d2493
BM
33130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33132 "RANLIB=$${RANLIB}" \
901119ae 33133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
33134 install-pdf) \
33135 || exit 1
33136
85bfb75e 33137@endif target-libgcc
9c4d2493 33138
85bfb75e
JM
33139.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
33140maybe-install-html-target-libgcc:
33141@if target-libgcc
33142maybe-install-html-target-libgcc: install-html-target-libgcc
65d6e994 33143
85bfb75e
JM
33144install-html-target-libgcc: \
33145 configure-target-libgcc \
33146 html-target-libgcc
65d6e994 33147 @: $(MAKE); $(unstage)
85bfb75e 33148 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
65d6e994
CD
33149 r=`${PWD_COMMAND}`; export r; \
33150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33151 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33152 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
65d6e994
CD
33153 for flag in $(EXTRA_TARGET_FLAGS); do \
33154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33155 done; \
85bfb75e 33156 (cd $(TARGET_SUBDIR)/libgcc && \
65d6e994
CD
33157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33159 "RANLIB=$${RANLIB}" \
901119ae 33160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
33161 install-html) \
33162 || exit 1
33163
85bfb75e 33164@endif target-libgcc
65d6e994 33165
85bfb75e
JM
33166.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
33167maybe-installcheck-target-libgcc:
33168@if target-libgcc
33169maybe-installcheck-target-libgcc: installcheck-target-libgcc
6de9cd9a 33170
85bfb75e
JM
33171installcheck-target-libgcc: \
33172 configure-target-libgcc
f41d6665 33173 @: $(MAKE); $(unstage)
85bfb75e 33174 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33175 r=`${PWD_COMMAND}`; export r; \
33176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33177 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33178 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33179 for flag in $(EXTRA_TARGET_FLAGS); do \
33180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33181 done; \
85bfb75e 33182 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33185 "RANLIB=$${RANLIB}" \
901119ae 33186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33187 installcheck) \
6de9cd9a
DN
33188 || exit 1
33189
85bfb75e 33190@endif target-libgcc
6de9cd9a 33191
85bfb75e
JM
33192.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
33193maybe-mostlyclean-target-libgcc:
33194@if target-libgcc
33195maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
6de9cd9a 33196
85bfb75e 33197mostlyclean-target-libgcc:
f41d6665 33198 @: $(MAKE); $(unstage)
85bfb75e 33199 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33200 r=`${PWD_COMMAND}`; export r; \
33201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33202 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33203 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33204 for flag in $(EXTRA_TARGET_FLAGS); do \
33205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33206 done; \
85bfb75e 33207 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33210 "RANLIB=$${RANLIB}" \
901119ae 33211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33212 mostlyclean) \
6de9cd9a
DN
33213 || exit 1
33214
85bfb75e 33215@endif target-libgcc
6de9cd9a 33216
85bfb75e
JM
33217.PHONY: maybe-clean-target-libgcc clean-target-libgcc
33218maybe-clean-target-libgcc:
33219@if target-libgcc
33220maybe-clean-target-libgcc: clean-target-libgcc
6de9cd9a 33221
85bfb75e 33222clean-target-libgcc:
f41d6665 33223 @: $(MAKE); $(unstage)
85bfb75e 33224 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33225 r=`${PWD_COMMAND}`; export r; \
33226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33227 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33228 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33229 for flag in $(EXTRA_TARGET_FLAGS); do \
33230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33231 done; \
85bfb75e 33232 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33235 "RANLIB=$${RANLIB}" \
901119ae 33236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33237 clean) \
6de9cd9a
DN
33238 || exit 1
33239
85bfb75e 33240@endif target-libgcc
6de9cd9a 33241
85bfb75e
JM
33242.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
33243maybe-distclean-target-libgcc:
33244@if target-libgcc
33245maybe-distclean-target-libgcc: distclean-target-libgcc
6de9cd9a 33246
85bfb75e 33247distclean-target-libgcc:
f41d6665 33248 @: $(MAKE); $(unstage)
85bfb75e 33249 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33250 r=`${PWD_COMMAND}`; export r; \
33251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33252 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33253 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33254 for flag in $(EXTRA_TARGET_FLAGS); do \
33255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33256 done; \
85bfb75e 33257 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33260 "RANLIB=$${RANLIB}" \
901119ae 33261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33262 distclean) \
6de9cd9a
DN
33263 || exit 1
33264
85bfb75e 33265@endif target-libgcc
6de9cd9a 33266
85bfb75e
JM
33267.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
33268maybe-maintainer-clean-target-libgcc:
33269@if target-libgcc
33270maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
6de9cd9a 33271
85bfb75e 33272maintainer-clean-target-libgcc:
f41d6665 33273 @: $(MAKE); $(unstage)
85bfb75e 33274 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6de9cd9a
DN
33275 r=`${PWD_COMMAND}`; export r; \
33276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33277 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33278 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
6de9cd9a
DN
33279 for flag in $(EXTRA_TARGET_FLAGS); do \
33280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33281 done; \
85bfb75e 33282 (cd $(TARGET_SUBDIR)/libgcc && \
6de9cd9a
DN
33283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33285 "RANLIB=$${RANLIB}" \
901119ae 33286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33287 maintainer-clean) \
6de9cd9a
DN
33288 || exit 1
33289
85bfb75e 33290@endif target-libgcc
6de9cd9a
DN
33291
33292
4977bab6 33293
25b42232 33294
4977bab6 33295
85bfb75e
JM
33296.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
33297maybe-configure-target-libquadmath:
3ff3adad 33298@if gcc-bootstrap
85bfb75e 33299configure-target-libquadmath: stage_current
3ff3adad 33300@endif gcc-bootstrap
85bfb75e
JM
33301@if target-libquadmath
33302maybe-configure-target-libquadmath: configure-target-libquadmath
33303configure-target-libquadmath:
f41d6665
DJ
33304 @: $(MAKE); $(unstage)
33305 @r=`${PWD_COMMAND}`; export r; \
33306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
33307 echo "Checking multilib configuration for libquadmath..."; \
33308 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
33309 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null ; \
33310 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
33311 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
33312 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
f41d6665 33313 else \
85bfb75e
JM
33314 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
33315 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
f41d6665
DJ
33316 fi; \
33317 else \
85bfb75e 33318 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
cc11cc9b 33319 fi; \
85bfb75e
JM
33320 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
33321 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
f61428ed 33322 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
33323 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
33324 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
4977bab6 33325 case $(srcdir) in \
215c351a 33326 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 33327 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
215c351a 33328 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33329 esac; \
85bfb75e
JM
33330 srcdiroption="--srcdir=$${topdir}/libquadmath"; \
33331 libsrcdir="$$s/libquadmath"; \
295f4e42
NN
33332 rm -f no-such-file || : ; \
33333 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
33334 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33335 --target=${target_alias} $${srcdiroption} \
4977bab6 33336 || exit 1
85bfb75e 33337@endif target-libquadmath
4977bab6 33338
25b42232
PB
33339
33340
ce406537
PB
33341
33342
85bfb75e
JM
33343.PHONY: all-target-libquadmath maybe-all-target-libquadmath
33344maybe-all-target-libquadmath:
3ff3adad 33345@if gcc-bootstrap
85bfb75e 33346all-target-libquadmath: stage_current
3ff3adad 33347@endif gcc-bootstrap
85bfb75e
JM
33348@if target-libquadmath
33349TARGET-target-libquadmath=all
33350maybe-all-target-libquadmath: all-target-libquadmath
33351all-target-libquadmath: configure-target-libquadmath
f41d6665 33352 @: $(MAKE); $(unstage)
8c90b13a
L
33353 @r=`${PWD_COMMAND}`; export r; \
33354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 33355 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33356 (cd $(TARGET_SUBDIR)/libquadmath && \
1c8bd6a3 33357 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
33358 $(TARGET-target-libquadmath))
33359@endif target-libquadmath
4977bab6 33360
25b42232
PB
33361
33362
ce406537
PB
33363
33364
85bfb75e
JM
33365.PHONY: check-target-libquadmath maybe-check-target-libquadmath
33366maybe-check-target-libquadmath:
33367@if target-libquadmath
33368maybe-check-target-libquadmath: check-target-libquadmath
4977bab6 33369
85bfb75e 33370check-target-libquadmath:
f41d6665 33371 @: $(MAKE); $(unstage)
8c90b13a
L
33372 @r=`${PWD_COMMAND}`; export r; \
33373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33374 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33375 (cd $(TARGET_SUBDIR)/libquadmath && \
a52a0a7f 33376 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 33377
85bfb75e 33378@endif target-libquadmath
4977bab6 33379
85bfb75e
JM
33380.PHONY: install-target-libquadmath maybe-install-target-libquadmath
33381maybe-install-target-libquadmath:
33382@if target-libquadmath
33383maybe-install-target-libquadmath: install-target-libquadmath
4977bab6 33384
85bfb75e 33385install-target-libquadmath: installdirs
f41d6665 33386 @: $(MAKE); $(unstage)
8c90b13a
L
33387 @r=`${PWD_COMMAND}`; export r; \
33388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33389 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33390 (cd $(TARGET_SUBDIR)/libquadmath && \
a52a0a7f 33391 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33392
85bfb75e 33393@endif target-libquadmath
4977bab6 33394
85bfb75e
JM
33395.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
33396maybe-install-strip-target-libquadmath:
33397@if target-libquadmath
33398maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
455c8f48 33399
85bfb75e 33400install-strip-target-libquadmath: installdirs
455c8f48
RW
33401 @: $(MAKE); $(unstage)
33402 @r=`${PWD_COMMAND}`; export r; \
33403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33404 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33405 (cd $(TARGET_SUBDIR)/libquadmath && \
455c8f48
RW
33406 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33407
85bfb75e 33408@endif target-libquadmath
455c8f48 33409
b5422ad7 33410# Other targets (info, dvi, pdf, etc.)
295f4e42 33411
85bfb75e
JM
33412.PHONY: maybe-info-target-libquadmath info-target-libquadmath
33413maybe-info-target-libquadmath:
33414@if target-libquadmath
33415maybe-info-target-libquadmath: info-target-libquadmath
295f4e42 33416
85bfb75e
JM
33417info-target-libquadmath: \
33418 configure-target-libquadmath
f41d6665 33419 @: $(MAKE); $(unstage)
85bfb75e 33420 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33421 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33423 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33424 echo "Doing info in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33425 for flag in $(EXTRA_TARGET_FLAGS); do \
33426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33427 done; \
85bfb75e 33428 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33431 "RANLIB=$${RANLIB}" \
901119ae 33432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33433 info) \
295f4e42 33434 || exit 1
4977bab6 33435
85bfb75e 33436@endif target-libquadmath
4977bab6 33437
85bfb75e
JM
33438.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
33439maybe-dvi-target-libquadmath:
33440@if target-libquadmath
33441maybe-dvi-target-libquadmath: dvi-target-libquadmath
7e2dbcef 33442
85bfb75e
JM
33443dvi-target-libquadmath: \
33444 configure-target-libquadmath
f41d6665 33445 @: $(MAKE); $(unstage)
85bfb75e 33446 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33447 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33449 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33450 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33451 for flag in $(EXTRA_TARGET_FLAGS); do \
33452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33453 done; \
85bfb75e 33454 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33457 "RANLIB=$${RANLIB}" \
901119ae 33458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33459 dvi) \
295f4e42 33460 || exit 1
4977bab6 33461
85bfb75e 33462@endif target-libquadmath
4977bab6 33463
85bfb75e
JM
33464.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
33465maybe-pdf-target-libquadmath:
33466@if target-libquadmath
33467maybe-pdf-target-libquadmath: pdf-target-libquadmath
b5422ad7 33468
85bfb75e
JM
33469pdf-target-libquadmath: \
33470 configure-target-libquadmath
b5422ad7 33471 @: $(MAKE); $(unstage)
85bfb75e 33472 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b5422ad7
BM
33473 r=`${PWD_COMMAND}`; export r; \
33474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33475 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33476 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath" ; \
b5422ad7
BM
33477 for flag in $(EXTRA_TARGET_FLAGS); do \
33478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33479 done; \
85bfb75e 33480 (cd $(TARGET_SUBDIR)/libquadmath && \
b5422ad7
BM
33481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33483 "RANLIB=$${RANLIB}" \
901119ae 33484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
33485 pdf) \
33486 || exit 1
33487
85bfb75e 33488@endif target-libquadmath
b5422ad7 33489
85bfb75e
JM
33490.PHONY: maybe-html-target-libquadmath html-target-libquadmath
33491maybe-html-target-libquadmath:
33492@if target-libquadmath
33493maybe-html-target-libquadmath: html-target-libquadmath
f87a2b2e 33494
85bfb75e
JM
33495html-target-libquadmath: \
33496 configure-target-libquadmath
f41d6665 33497 @: $(MAKE); $(unstage)
85bfb75e 33498 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
f87a2b2e
MS
33499 r=`${PWD_COMMAND}`; export r; \
33500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 33501 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33502 echo "Doing html in $(TARGET_SUBDIR)/libquadmath" ; \
f87a2b2e
MS
33503 for flag in $(EXTRA_TARGET_FLAGS); do \
33504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33505 done; \
85bfb75e 33506 (cd $(TARGET_SUBDIR)/libquadmath && \
f87a2b2e
MS
33507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33509 "RANLIB=$${RANLIB}" \
901119ae 33510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
33511 html) \
33512 || exit 1
33513
85bfb75e 33514@endif target-libquadmath
f87a2b2e 33515
85bfb75e
JM
33516.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
33517maybe-TAGS-target-libquadmath:
33518@if target-libquadmath
33519maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
295f4e42 33520
85bfb75e
JM
33521TAGS-target-libquadmath: \
33522 configure-target-libquadmath
f41d6665 33523 @: $(MAKE); $(unstage)
85bfb75e 33524 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
8c90b13a
L
33525 r=`${PWD_COMMAND}`; export r; \
33526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33527 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33528 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33529 for flag in $(EXTRA_TARGET_FLAGS); do \
33530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33531 done; \
85bfb75e 33532 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33535 "RANLIB=$${RANLIB}" \
901119ae 33536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33537 TAGS) \
4977bab6
ZW
33538 || exit 1
33539
85bfb75e 33540@endif target-libquadmath
295f4e42 33541
85bfb75e
JM
33542.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
33543maybe-install-info-target-libquadmath:
33544@if target-libquadmath
33545maybe-install-info-target-libquadmath: install-info-target-libquadmath
295f4e42 33546
85bfb75e
JM
33547install-info-target-libquadmath: \
33548 configure-target-libquadmath \
33549 info-target-libquadmath
f41d6665 33550 @: $(MAKE); $(unstage)
85bfb75e 33551 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33552 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33554 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33555 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33556 for flag in $(EXTRA_TARGET_FLAGS); do \
33557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33558 done; \
85bfb75e 33559 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33562 "RANLIB=$${RANLIB}" \
901119ae 33563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33564 install-info) \
295f4e42 33565 || exit 1
4977bab6 33566
85bfb75e 33567@endif target-libquadmath
4977bab6 33568
85bfb75e
JM
33569.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
33570maybe-install-pdf-target-libquadmath:
33571@if target-libquadmath
33572maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
9c4d2493 33573
85bfb75e
JM
33574install-pdf-target-libquadmath: \
33575 configure-target-libquadmath \
33576 pdf-target-libquadmath
9c4d2493 33577 @: $(MAKE); $(unstage)
85bfb75e 33578 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
9c4d2493
BM
33579 r=`${PWD_COMMAND}`; export r; \
33580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33581 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33582 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath" ; \
9c4d2493
BM
33583 for flag in $(EXTRA_TARGET_FLAGS); do \
33584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33585 done; \
85bfb75e 33586 (cd $(TARGET_SUBDIR)/libquadmath && \
9c4d2493
BM
33587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33589 "RANLIB=$${RANLIB}" \
901119ae 33590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
33591 install-pdf) \
33592 || exit 1
33593
85bfb75e 33594@endif target-libquadmath
9c4d2493 33595
85bfb75e
JM
33596.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
33597maybe-install-html-target-libquadmath:
33598@if target-libquadmath
33599maybe-install-html-target-libquadmath: install-html-target-libquadmath
65d6e994 33600
85bfb75e
JM
33601install-html-target-libquadmath: \
33602 configure-target-libquadmath \
33603 html-target-libquadmath
65d6e994 33604 @: $(MAKE); $(unstage)
85bfb75e 33605 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
65d6e994
CD
33606 r=`${PWD_COMMAND}`; export r; \
33607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33608 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33609 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath" ; \
65d6e994
CD
33610 for flag in $(EXTRA_TARGET_FLAGS); do \
33611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33612 done; \
85bfb75e 33613 (cd $(TARGET_SUBDIR)/libquadmath && \
65d6e994
CD
33614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33616 "RANLIB=$${RANLIB}" \
901119ae 33617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
33618 install-html) \
33619 || exit 1
33620
85bfb75e 33621@endif target-libquadmath
65d6e994 33622
85bfb75e
JM
33623.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
33624maybe-installcheck-target-libquadmath:
33625@if target-libquadmath
33626maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
295f4e42 33627
85bfb75e
JM
33628installcheck-target-libquadmath: \
33629 configure-target-libquadmath
f41d6665 33630 @: $(MAKE); $(unstage)
85bfb75e 33631 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33632 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33634 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33635 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33636 for flag in $(EXTRA_TARGET_FLAGS); do \
33637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33638 done; \
85bfb75e 33639 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33642 "RANLIB=$${RANLIB}" \
901119ae 33643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33644 installcheck) \
295f4e42 33645 || exit 1
4977bab6 33646
85bfb75e 33647@endif target-libquadmath
4977bab6 33648
85bfb75e
JM
33649.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
33650maybe-mostlyclean-target-libquadmath:
33651@if target-libquadmath
33652maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
7e2dbcef 33653
85bfb75e 33654mostlyclean-target-libquadmath:
f41d6665 33655 @: $(MAKE); $(unstage)
85bfb75e 33656 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33657 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33659 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33660 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33661 for flag in $(EXTRA_TARGET_FLAGS); do \
33662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33663 done; \
85bfb75e 33664 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33667 "RANLIB=$${RANLIB}" \
901119ae 33668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33669 mostlyclean) \
295f4e42 33670 || exit 1
4977bab6 33671
85bfb75e 33672@endif target-libquadmath
4977bab6 33673
85bfb75e
JM
33674.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
33675maybe-clean-target-libquadmath:
33676@if target-libquadmath
33677maybe-clean-target-libquadmath: clean-target-libquadmath
295f4e42 33678
85bfb75e 33679clean-target-libquadmath:
f41d6665 33680 @: $(MAKE); $(unstage)
85bfb75e 33681 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
8c90b13a
L
33682 r=`${PWD_COMMAND}`; export r; \
33683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33684 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33685 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33686 for flag in $(EXTRA_TARGET_FLAGS); do \
33687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33688 done; \
85bfb75e 33689 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33692 "RANLIB=$${RANLIB}" \
901119ae 33693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33694 clean) \
4977bab6
ZW
33695 || exit 1
33696
85bfb75e 33697@endif target-libquadmath
4977bab6 33698
85bfb75e
JM
33699.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
33700maybe-distclean-target-libquadmath:
33701@if target-libquadmath
33702maybe-distclean-target-libquadmath: distclean-target-libquadmath
4977bab6 33703
85bfb75e 33704distclean-target-libquadmath:
f41d6665 33705 @: $(MAKE); $(unstage)
85bfb75e 33706 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33707 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33709 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33710 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33711 for flag in $(EXTRA_TARGET_FLAGS); do \
33712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33713 done; \
85bfb75e 33714 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33717 "RANLIB=$${RANLIB}" \
901119ae 33718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33719 distclean) \
295f4e42 33720 || exit 1
4977bab6 33721
85bfb75e 33722@endif target-libquadmath
4977bab6 33723
85bfb75e
JM
33724.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
33725maybe-maintainer-clean-target-libquadmath:
33726@if target-libquadmath
33727maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
7e2dbcef 33728
85bfb75e 33729maintainer-clean-target-libquadmath:
f41d6665 33730 @: $(MAKE); $(unstage)
85bfb75e 33731 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
295f4e42 33732 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33734 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33735 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath" ; \
295f4e42
NN
33736 for flag in $(EXTRA_TARGET_FLAGS); do \
33737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33738 done; \
85bfb75e 33739 (cd $(TARGET_SUBDIR)/libquadmath && \
295f4e42
NN
33740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33742 "RANLIB=$${RANLIB}" \
901119ae 33743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 33744 maintainer-clean) \
295f4e42 33745 || exit 1
4977bab6 33746
85bfb75e 33747@endif target-libquadmath
4977bab6 33748
295f4e42 33749
295f4e42 33750
25b42232 33751
295f4e42 33752
85bfb75e
JM
33753.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
33754maybe-configure-target-libgfortran:
632e2a07 33755@if gcc-bootstrap
85bfb75e 33756configure-target-libgfortran: stage_current
632e2a07 33757@endif gcc-bootstrap
85bfb75e
JM
33758@if target-libgfortran
33759maybe-configure-target-libgfortran: configure-target-libgfortran
33760configure-target-libgfortran:
632e2a07
ILT
33761 @: $(MAKE); $(unstage)
33762 @r=`${PWD_COMMAND}`; export r; \
33763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
33764 echo "Checking multilib configuration for libgfortran..."; \
33765 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
33766 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
33767 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
33768 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
33769 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
632e2a07 33770 else \
85bfb75e
JM
33771 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
33772 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
632e2a07
ILT
33773 fi; \
33774 else \
85bfb75e 33775 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
632e2a07 33776 fi; \
85bfb75e
JM
33777 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
33778 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
632e2a07 33779 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
33780 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
33781 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
632e2a07
ILT
33782 case $(srcdir) in \
33783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 33784 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
632e2a07
ILT
33785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33786 esac; \
85bfb75e
JM
33787 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
33788 libsrcdir="$$s/libgfortran"; \
632e2a07
ILT
33789 rm -f no-such-file || : ; \
33790 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
33791 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33792 --target=${target_alias} $${srcdiroption} \
33793 || exit 1
85bfb75e 33794@endif target-libgfortran
632e2a07
ILT
33795
33796
33797
33798
33799
85bfb75e
JM
33800.PHONY: all-target-libgfortran maybe-all-target-libgfortran
33801maybe-all-target-libgfortran:
632e2a07 33802@if gcc-bootstrap
85bfb75e 33803all-target-libgfortran: stage_current
632e2a07 33804@endif gcc-bootstrap
85bfb75e
JM
33805@if target-libgfortran
33806TARGET-target-libgfortran=all
33807maybe-all-target-libgfortran: all-target-libgfortran
33808all-target-libgfortran: configure-target-libgfortran
632e2a07
ILT
33809 @: $(MAKE); $(unstage)
33810 @r=`${PWD_COMMAND}`; export r; \
33811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33812 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33813 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07 33814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
33815 $(TARGET-target-libgfortran))
33816@endif target-libgfortran
632e2a07
ILT
33817
33818
33819
33820
33821
85bfb75e
JM
33822.PHONY: check-target-libgfortran maybe-check-target-libgfortran
33823maybe-check-target-libgfortran:
33824@if target-libgfortran
33825maybe-check-target-libgfortran: check-target-libgfortran
632e2a07 33826
85bfb75e 33827check-target-libgfortran:
632e2a07
ILT
33828 @: $(MAKE); $(unstage)
33829 @r=`${PWD_COMMAND}`; export r; \
33830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33831 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33832 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33833 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
33834
85bfb75e 33835@endif target-libgfortran
632e2a07 33836
85bfb75e
JM
33837.PHONY: install-target-libgfortran maybe-install-target-libgfortran
33838maybe-install-target-libgfortran:
33839@if target-libgfortran
33840maybe-install-target-libgfortran: install-target-libgfortran
632e2a07 33841
85bfb75e 33842install-target-libgfortran: installdirs
632e2a07
ILT
33843 @: $(MAKE); $(unstage)
33844 @r=`${PWD_COMMAND}`; export r; \
33845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33846 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33847 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33848 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33849
85bfb75e 33850@endif target-libgfortran
632e2a07 33851
85bfb75e
JM
33852.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
33853maybe-install-strip-target-libgfortran:
33854@if target-libgfortran
33855maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
e655d2bf 33856
85bfb75e 33857install-strip-target-libgfortran: installdirs
e655d2bf
RW
33858 @: $(MAKE); $(unstage)
33859 @r=`${PWD_COMMAND}`; export r; \
33860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33861 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33862 (cd $(TARGET_SUBDIR)/libgfortran && \
e655d2bf
RW
33863 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33864
85bfb75e 33865@endif target-libgfortran
e655d2bf 33866
632e2a07
ILT
33867# Other targets (info, dvi, pdf, etc.)
33868
85bfb75e
JM
33869.PHONY: maybe-info-target-libgfortran info-target-libgfortran
33870maybe-info-target-libgfortran:
33871@if target-libgfortran
33872maybe-info-target-libgfortran: info-target-libgfortran
632e2a07 33873
85bfb75e
JM
33874info-target-libgfortran: \
33875 configure-target-libgfortran
632e2a07 33876 @: $(MAKE); $(unstage)
85bfb75e 33877 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
33878 r=`${PWD_COMMAND}`; export r; \
33879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33880 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33881 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
33882 for flag in $(EXTRA_TARGET_FLAGS); do \
33883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33884 done; \
85bfb75e 33885 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33888 "RANLIB=$${RANLIB}" \
33889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33890 info) \
33891 || exit 1
33892
85bfb75e 33893@endif target-libgfortran
632e2a07 33894
85bfb75e
JM
33895.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
33896maybe-dvi-target-libgfortran:
33897@if target-libgfortran
33898maybe-dvi-target-libgfortran: dvi-target-libgfortran
632e2a07 33899
85bfb75e
JM
33900dvi-target-libgfortran: \
33901 configure-target-libgfortran
632e2a07 33902 @: $(MAKE); $(unstage)
85bfb75e 33903 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
33904 r=`${PWD_COMMAND}`; export r; \
33905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33906 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33907 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
33908 for flag in $(EXTRA_TARGET_FLAGS); do \
33909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33910 done; \
85bfb75e 33911 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33914 "RANLIB=$${RANLIB}" \
33915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33916 dvi) \
33917 || exit 1
33918
85bfb75e 33919@endif target-libgfortran
632e2a07 33920
85bfb75e
JM
33921.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
33922maybe-pdf-target-libgfortran:
33923@if target-libgfortran
33924maybe-pdf-target-libgfortran: pdf-target-libgfortran
632e2a07 33925
85bfb75e
JM
33926pdf-target-libgfortran: \
33927 configure-target-libgfortran
632e2a07 33928 @: $(MAKE); $(unstage)
85bfb75e 33929 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
33930 r=`${PWD_COMMAND}`; export r; \
33931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33932 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33933 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
33934 for flag in $(EXTRA_TARGET_FLAGS); do \
33935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33936 done; \
85bfb75e 33937 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33940 "RANLIB=$${RANLIB}" \
33941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33942 pdf) \
33943 || exit 1
33944
85bfb75e 33945@endif target-libgfortran
632e2a07 33946
85bfb75e
JM
33947.PHONY: maybe-html-target-libgfortran html-target-libgfortran
33948maybe-html-target-libgfortran:
33949@if target-libgfortran
33950maybe-html-target-libgfortran: html-target-libgfortran
632e2a07 33951
85bfb75e
JM
33952html-target-libgfortran: \
33953 configure-target-libgfortran
632e2a07 33954 @: $(MAKE); $(unstage)
85bfb75e 33955 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
33956 r=`${PWD_COMMAND}`; export r; \
33957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33958 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33959 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
33960 for flag in $(EXTRA_TARGET_FLAGS); do \
33961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33962 done; \
85bfb75e 33963 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33966 "RANLIB=$${RANLIB}" \
33967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33968 html) \
33969 || exit 1
33970
85bfb75e 33971@endif target-libgfortran
632e2a07 33972
85bfb75e
JM
33973.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
33974maybe-TAGS-target-libgfortran:
33975@if target-libgfortran
33976maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
632e2a07 33977
85bfb75e
JM
33978TAGS-target-libgfortran: \
33979 configure-target-libgfortran
632e2a07 33980 @: $(MAKE); $(unstage)
85bfb75e 33981 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
33982 r=`${PWD_COMMAND}`; export r; \
33983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33984 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 33985 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
33986 for flag in $(EXTRA_TARGET_FLAGS); do \
33987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33988 done; \
85bfb75e 33989 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
33990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33992 "RANLIB=$${RANLIB}" \
33993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33994 TAGS) \
33995 || exit 1
33996
85bfb75e 33997@endif target-libgfortran
632e2a07 33998
85bfb75e
JM
33999.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
34000maybe-install-info-target-libgfortran:
34001@if target-libgfortran
34002maybe-install-info-target-libgfortran: install-info-target-libgfortran
632e2a07 34003
85bfb75e
JM
34004install-info-target-libgfortran: \
34005 configure-target-libgfortran \
34006 info-target-libgfortran
632e2a07 34007 @: $(MAKE); $(unstage)
85bfb75e 34008 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34009 r=`${PWD_COMMAND}`; export r; \
34010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34011 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34012 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34013 for flag in $(EXTRA_TARGET_FLAGS); do \
34014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34015 done; \
85bfb75e 34016 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34019 "RANLIB=$${RANLIB}" \
34020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34021 install-info) \
34022 || exit 1
34023
85bfb75e 34024@endif target-libgfortran
632e2a07 34025
85bfb75e
JM
34026.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
34027maybe-install-pdf-target-libgfortran:
34028@if target-libgfortran
34029maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
632e2a07 34030
85bfb75e
JM
34031install-pdf-target-libgfortran: \
34032 configure-target-libgfortran \
34033 pdf-target-libgfortran
632e2a07 34034 @: $(MAKE); $(unstage)
85bfb75e 34035 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34036 r=`${PWD_COMMAND}`; export r; \
34037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34038 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34039 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34040 for flag in $(EXTRA_TARGET_FLAGS); do \
34041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34042 done; \
85bfb75e 34043 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34046 "RANLIB=$${RANLIB}" \
34047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34048 install-pdf) \
34049 || exit 1
34050
85bfb75e 34051@endif target-libgfortran
632e2a07 34052
85bfb75e
JM
34053.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
34054maybe-install-html-target-libgfortran:
34055@if target-libgfortran
34056maybe-install-html-target-libgfortran: install-html-target-libgfortran
632e2a07 34057
85bfb75e
JM
34058install-html-target-libgfortran: \
34059 configure-target-libgfortran \
34060 html-target-libgfortran
632e2a07 34061 @: $(MAKE); $(unstage)
85bfb75e 34062 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34063 r=`${PWD_COMMAND}`; export r; \
34064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34065 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34066 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34067 for flag in $(EXTRA_TARGET_FLAGS); do \
34068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34069 done; \
85bfb75e 34070 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34073 "RANLIB=$${RANLIB}" \
34074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34075 install-html) \
34076 || exit 1
34077
85bfb75e 34078@endif target-libgfortran
632e2a07 34079
85bfb75e
JM
34080.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
34081maybe-installcheck-target-libgfortran:
34082@if target-libgfortran
34083maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
632e2a07 34084
85bfb75e
JM
34085installcheck-target-libgfortran: \
34086 configure-target-libgfortran
632e2a07 34087 @: $(MAKE); $(unstage)
85bfb75e 34088 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34089 r=`${PWD_COMMAND}`; export r; \
34090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34091 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34092 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34093 for flag in $(EXTRA_TARGET_FLAGS); do \
34094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34095 done; \
85bfb75e 34096 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34099 "RANLIB=$${RANLIB}" \
34100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34101 installcheck) \
34102 || exit 1
34103
85bfb75e 34104@endif target-libgfortran
632e2a07 34105
85bfb75e
JM
34106.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
34107maybe-mostlyclean-target-libgfortran:
34108@if target-libgfortran
34109maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
632e2a07 34110
85bfb75e 34111mostlyclean-target-libgfortran:
632e2a07 34112 @: $(MAKE); $(unstage)
85bfb75e 34113 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34114 r=`${PWD_COMMAND}`; export r; \
34115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34116 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34117 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34118 for flag in $(EXTRA_TARGET_FLAGS); do \
34119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34120 done; \
85bfb75e 34121 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34124 "RANLIB=$${RANLIB}" \
34125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34126 mostlyclean) \
34127 || exit 1
34128
85bfb75e 34129@endif target-libgfortran
632e2a07 34130
85bfb75e
JM
34131.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
34132maybe-clean-target-libgfortran:
34133@if target-libgfortran
34134maybe-clean-target-libgfortran: clean-target-libgfortran
632e2a07 34135
85bfb75e 34136clean-target-libgfortran:
632e2a07 34137 @: $(MAKE); $(unstage)
85bfb75e 34138 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34139 r=`${PWD_COMMAND}`; export r; \
34140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34141 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34142 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34143 for flag in $(EXTRA_TARGET_FLAGS); do \
34144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34145 done; \
85bfb75e 34146 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34149 "RANLIB=$${RANLIB}" \
34150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34151 clean) \
34152 || exit 1
34153
85bfb75e 34154@endif target-libgfortran
632e2a07 34155
85bfb75e
JM
34156.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
34157maybe-distclean-target-libgfortran:
34158@if target-libgfortran
34159maybe-distclean-target-libgfortran: distclean-target-libgfortran
632e2a07 34160
85bfb75e 34161distclean-target-libgfortran:
632e2a07 34162 @: $(MAKE); $(unstage)
85bfb75e 34163 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34164 r=`${PWD_COMMAND}`; export r; \
34165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34166 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34167 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34168 for flag in $(EXTRA_TARGET_FLAGS); do \
34169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34170 done; \
85bfb75e 34171 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34174 "RANLIB=$${RANLIB}" \
34175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34176 distclean) \
34177 || exit 1
34178
85bfb75e 34179@endif target-libgfortran
632e2a07 34180
85bfb75e
JM
34181.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
34182maybe-maintainer-clean-target-libgfortran:
34183@if target-libgfortran
34184maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
632e2a07 34185
85bfb75e 34186maintainer-clean-target-libgfortran:
632e2a07 34187 @: $(MAKE); $(unstage)
85bfb75e 34188 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
632e2a07
ILT
34189 r=`${PWD_COMMAND}`; export r; \
34190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34191 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34192 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
632e2a07
ILT
34193 for flag in $(EXTRA_TARGET_FLAGS); do \
34194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34195 done; \
85bfb75e 34196 (cd $(TARGET_SUBDIR)/libgfortran && \
632e2a07
ILT
34197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34199 "RANLIB=$${RANLIB}" \
34200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34201 maintainer-clean) \
34202 || exit 1
34203
85bfb75e 34204@endif target-libgfortran
632e2a07
ILT
34205
34206
34207
34208
34209
85bfb75e
JM
34210.PHONY: configure-target-libobjc maybe-configure-target-libobjc
34211maybe-configure-target-libobjc:
3ff3adad 34212@if gcc-bootstrap
85bfb75e 34213configure-target-libobjc: stage_current
3ff3adad 34214@endif gcc-bootstrap
85bfb75e
JM
34215@if target-libobjc
34216maybe-configure-target-libobjc: configure-target-libobjc
34217configure-target-libobjc:
f41d6665
DJ
34218 @: $(MAKE); $(unstage)
34219 @r=`${PWD_COMMAND}`; export r; \
34220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
34221 echo "Checking multilib configuration for libobjc..."; \
34222 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
34223 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
34224 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
34225 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
34226 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
f41d6665 34227 else \
85bfb75e
JM
34228 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
34229 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
f41d6665
DJ
34230 fi; \
34231 else \
85bfb75e 34232 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
cc11cc9b 34233 fi; \
85bfb75e
JM
34234 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
34235 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
f61428ed 34236 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
34237 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
34238 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4977bab6 34239 case $(srcdir) in \
215c351a 34240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 34241 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
215c351a 34242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 34243 esac; \
85bfb75e
JM
34244 srcdiroption="--srcdir=$${topdir}/libobjc"; \
34245 libsrcdir="$$s/libobjc"; \
295f4e42
NN
34246 rm -f no-such-file || : ; \
34247 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
34248 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34249 --target=${target_alias} $${srcdiroption} \
4977bab6 34250 || exit 1
85bfb75e 34251@endif target-libobjc
4977bab6 34252
25b42232
PB
34253
34254
ce406537
PB
34255
34256
85bfb75e
JM
34257.PHONY: all-target-libobjc maybe-all-target-libobjc
34258maybe-all-target-libobjc:
3ff3adad 34259@if gcc-bootstrap
85bfb75e 34260all-target-libobjc: stage_current
3ff3adad 34261@endif gcc-bootstrap
85bfb75e
JM
34262@if target-libobjc
34263TARGET-target-libobjc=all
34264maybe-all-target-libobjc: all-target-libobjc
34265all-target-libobjc: configure-target-libobjc
f41d6665 34266 @: $(MAKE); $(unstage)
8c90b13a
L
34267 @r=`${PWD_COMMAND}`; export r; \
34268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 34269 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34270 (cd $(TARGET_SUBDIR)/libobjc && \
1c8bd6a3 34271 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
34272 $(TARGET-target-libobjc))
34273@endif target-libobjc
4977bab6 34274
25b42232
PB
34275
34276
ce406537
PB
34277
34278
85bfb75e
JM
34279.PHONY: check-target-libobjc maybe-check-target-libobjc
34280maybe-check-target-libobjc:
34281@if target-libobjc
34282maybe-check-target-libobjc: check-target-libobjc
4977bab6 34283
85bfb75e
JM
34284check-target-libobjc:
34285 @: $(MAKE); $(unstage)
34286 @r=`${PWD_COMMAND}`; export r; \
34287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34288 $(NORMAL_TARGET_EXPORTS) \
34289 (cd $(TARGET_SUBDIR)/libobjc && \
34290 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
295f4e42 34291
85bfb75e 34292@endif target-libobjc
295f4e42 34293
85bfb75e
JM
34294.PHONY: install-target-libobjc maybe-install-target-libobjc
34295maybe-install-target-libobjc:
34296@if target-libobjc
34297maybe-install-target-libobjc: install-target-libobjc
295f4e42 34298
85bfb75e 34299install-target-libobjc: installdirs
f41d6665 34300 @: $(MAKE); $(unstage)
8c90b13a
L
34301 @r=`${PWD_COMMAND}`; export r; \
34302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34303 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34304 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 34305 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34306
85bfb75e 34307@endif target-libobjc
4977bab6 34308
85bfb75e
JM
34309.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
34310maybe-install-strip-target-libobjc:
34311@if target-libobjc
34312maybe-install-strip-target-libobjc: install-strip-target-libobjc
455c8f48 34313
85bfb75e 34314install-strip-target-libobjc: installdirs
455c8f48
RW
34315 @: $(MAKE); $(unstage)
34316 @r=`${PWD_COMMAND}`; export r; \
34317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34318 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34319 (cd $(TARGET_SUBDIR)/libobjc && \
455c8f48
RW
34320 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34321
85bfb75e 34322@endif target-libobjc
455c8f48 34323
b5422ad7 34324# Other targets (info, dvi, pdf, etc.)
7e2dbcef 34325
85bfb75e
JM
34326.PHONY: maybe-info-target-libobjc info-target-libobjc
34327maybe-info-target-libobjc:
34328@if target-libobjc
34329maybe-info-target-libobjc: info-target-libobjc
f87a2b2e 34330
85bfb75e
JM
34331info-target-libobjc: \
34332 configure-target-libobjc
f41d6665 34333 @: $(MAKE); $(unstage)
85bfb75e 34334 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
f87a2b2e
MS
34335 r=`${PWD_COMMAND}`; export r; \
34336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 34337 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34338 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
f87a2b2e
MS
34339 for flag in $(EXTRA_TARGET_FLAGS); do \
34340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34341 done; \
85bfb75e 34342 (cd $(TARGET_SUBDIR)/libobjc && \
f87a2b2e
MS
34343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34345 "RANLIB=$${RANLIB}" \
901119ae 34346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
34347 info) \
34348 || exit 1
34349
85bfb75e 34350@endif target-libobjc
f87a2b2e 34351
85bfb75e
JM
34352.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
34353maybe-dvi-target-libobjc:
34354@if target-libobjc
34355maybe-dvi-target-libobjc: dvi-target-libobjc
295f4e42 34356
85bfb75e
JM
34357dvi-target-libobjc: \
34358 configure-target-libobjc
f41d6665 34359 @: $(MAKE); $(unstage)
85bfb75e 34360 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
295f4e42 34361 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34363 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34364 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
295f4e42
NN
34365 for flag in $(EXTRA_TARGET_FLAGS); do \
34366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34367 done; \
85bfb75e 34368 (cd $(TARGET_SUBDIR)/libobjc && \
295f4e42
NN
34369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34371 "RANLIB=$${RANLIB}" \
901119ae 34372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e 34373 dvi) \
295f4e42 34374 || exit 1
4977bab6 34375
85bfb75e 34376@endif target-libobjc
4977bab6 34377
85bfb75e
JM
34378.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
34379maybe-pdf-target-libobjc:
34380@if target-libobjc
34381maybe-pdf-target-libobjc: pdf-target-libobjc
b5422ad7 34382
85bfb75e
JM
34383pdf-target-libobjc: \
34384 configure-target-libobjc
b5422ad7 34385 @: $(MAKE); $(unstage)
85bfb75e 34386 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b5422ad7
BM
34387 r=`${PWD_COMMAND}`; export r; \
34388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34389 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34390 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
b5422ad7
BM
34391 for flag in $(EXTRA_TARGET_FLAGS); do \
34392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34393 done; \
85bfb75e 34394 (cd $(TARGET_SUBDIR)/libobjc && \
b5422ad7
BM
34395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34397 "RANLIB=$${RANLIB}" \
901119ae 34398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
34399 pdf) \
34400 || exit 1
34401
85bfb75e 34402@endif target-libobjc
b5422ad7 34403
85bfb75e
JM
34404.PHONY: maybe-html-target-libobjc html-target-libobjc
34405maybe-html-target-libobjc:
34406@if target-libobjc
34407maybe-html-target-libobjc: html-target-libobjc
295f4e42 34408
85bfb75e
JM
34409html-target-libobjc: \
34410 configure-target-libobjc
f41d6665 34411 @: $(MAKE); $(unstage)
85bfb75e 34412 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
34413 r=`${PWD_COMMAND}`; export r; \
34414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34415 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34416 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
295f4e42
NN
34417 for flag in $(EXTRA_TARGET_FLAGS); do \
34418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34419 done; \
85bfb75e 34420 (cd $(TARGET_SUBDIR)/libobjc && \
295f4e42
NN
34421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34423 "RANLIB=$${RANLIB}" \
901119ae 34424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e 34425 html) \
4977bab6
ZW
34426 || exit 1
34427
85bfb75e 34428@endif target-libobjc
295f4e42 34429
85bfb75e
JM
34430.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
34431maybe-TAGS-target-libobjc:
34432@if target-libobjc
34433maybe-TAGS-target-libobjc: TAGS-target-libobjc
295f4e42 34434
85bfb75e
JM
34435TAGS-target-libobjc: \
34436 configure-target-libobjc
f41d6665 34437 @: $(MAKE); $(unstage)
85bfb75e 34438 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
295f4e42 34439 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34441 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34442 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
295f4e42
NN
34443 for flag in $(EXTRA_TARGET_FLAGS); do \
34444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34445 done; \
85bfb75e 34446 (cd $(TARGET_SUBDIR)/libobjc && \
295f4e42
NN
34447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34449 "RANLIB=$${RANLIB}" \
901119ae 34450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34451 TAGS) \
295f4e42 34452 || exit 1
4977bab6 34453
85bfb75e 34454@endif target-libobjc
4977bab6 34455
85bfb75e
JM
34456.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
34457maybe-install-info-target-libobjc:
34458@if target-libobjc
34459maybe-install-info-target-libobjc: install-info-target-libobjc
4977bab6 34460
85bfb75e
JM
34461install-info-target-libobjc: \
34462 configure-target-libobjc \
34463 info-target-libobjc
f41d6665 34464 @: $(MAKE); $(unstage)
85bfb75e 34465 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
295f4e42
NN
34466 r=`${PWD_COMMAND}`; export r; \
34467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34468 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34469 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
295f4e42
NN
34470 for flag in $(EXTRA_TARGET_FLAGS); do \
34471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34472 done; \
85bfb75e 34473 (cd $(TARGET_SUBDIR)/libobjc && \
295f4e42
NN
34474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34476 "RANLIB=$${RANLIB}" \
901119ae 34477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34478 install-info) \
295f4e42 34479 || exit 1
4977bab6 34480
85bfb75e 34481@endif target-libobjc
7e2dbcef 34482
85bfb75e
JM
34483.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
34484maybe-install-pdf-target-libobjc:
34485@if target-libobjc
34486maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
9c4d2493 34487
85bfb75e
JM
34488install-pdf-target-libobjc: \
34489 configure-target-libobjc \
34490 pdf-target-libobjc
9c4d2493 34491 @: $(MAKE); $(unstage)
85bfb75e 34492 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
9c4d2493
BM
34493 r=`${PWD_COMMAND}`; export r; \
34494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34495 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34496 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
9c4d2493
BM
34497 for flag in $(EXTRA_TARGET_FLAGS); do \
34498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34499 done; \
85bfb75e 34500 (cd $(TARGET_SUBDIR)/libobjc && \
9c4d2493
BM
34501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34503 "RANLIB=$${RANLIB}" \
901119ae 34504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
34505 install-pdf) \
34506 || exit 1
34507
85bfb75e 34508@endif target-libobjc
9c4d2493 34509
85bfb75e
JM
34510.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
34511maybe-install-html-target-libobjc:
34512@if target-libobjc
34513maybe-install-html-target-libobjc: install-html-target-libobjc
65d6e994 34514
85bfb75e
JM
34515install-html-target-libobjc: \
34516 configure-target-libobjc \
34517 html-target-libobjc
65d6e994 34518 @: $(MAKE); $(unstage)
85bfb75e 34519 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
65d6e994
CD
34520 r=`${PWD_COMMAND}`; export r; \
34521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34522 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34523 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
65d6e994
CD
34524 for flag in $(EXTRA_TARGET_FLAGS); do \
34525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34526 done; \
85bfb75e 34527 (cd $(TARGET_SUBDIR)/libobjc && \
65d6e994
CD
34528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34530 "RANLIB=$${RANLIB}" \
901119ae 34531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
34532 install-html) \
34533 || exit 1
34534
85bfb75e 34535@endif target-libobjc
65d6e994 34536
85bfb75e
JM
34537.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
34538maybe-installcheck-target-libobjc:
34539@if target-libobjc
34540maybe-installcheck-target-libobjc: installcheck-target-libobjc
295f4e42 34541
85bfb75e
JM
34542installcheck-target-libobjc: \
34543 configure-target-libobjc
f41d6665 34544 @: $(MAKE); $(unstage)
85bfb75e 34545 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
295f4e42 34546 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34548 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34549 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
295f4e42
NN
34550 for flag in $(EXTRA_TARGET_FLAGS); do \
34551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34552 done; \
85bfb75e 34553 (cd $(TARGET_SUBDIR)/libobjc && \
295f4e42
NN
34554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34556 "RANLIB=$${RANLIB}" \
901119ae 34557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34558 installcheck) \
295f4e42 34559 || exit 1
4977bab6 34560
85bfb75e 34561@endif target-libobjc
4977bab6 34562
85bfb75e
JM
34563.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
34564maybe-mostlyclean-target-libobjc:
34565@if target-libobjc
34566maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
295f4e42 34567
85bfb75e
JM
34568mostlyclean-target-libobjc:
34569 @: $(MAKE); $(unstage)
34570 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
34571 r=`${PWD_COMMAND}`; export r; \
34572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34573 $(NORMAL_TARGET_EXPORTS) \
34574 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
34575 for flag in $(EXTRA_TARGET_FLAGS); do \
34576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34577 done; \
34578 (cd $(TARGET_SUBDIR)/libobjc && \
34579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34581 "RANLIB=$${RANLIB}" \
34582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34583 mostlyclean) \
34584 || exit 1
295f4e42 34585
85bfb75e 34586@endif target-libobjc
295f4e42 34587
85bfb75e
JM
34588.PHONY: maybe-clean-target-libobjc clean-target-libobjc
34589maybe-clean-target-libobjc:
34590@if target-libobjc
34591maybe-clean-target-libobjc: clean-target-libobjc
295f4e42 34592
85bfb75e
JM
34593clean-target-libobjc:
34594 @: $(MAKE); $(unstage)
34595 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
34596 r=`${PWD_COMMAND}`; export r; \
34597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34598 $(NORMAL_TARGET_EXPORTS) \
34599 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
34600 for flag in $(EXTRA_TARGET_FLAGS); do \
34601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34602 done; \
34603 (cd $(TARGET_SUBDIR)/libobjc && \
34604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34606 "RANLIB=$${RANLIB}" \
34607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34608 clean) \
34609 || exit 1
295f4e42 34610
85bfb75e 34611@endif target-libobjc
295f4e42 34612
85bfb75e
JM
34613.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
34614maybe-distclean-target-libobjc:
34615@if target-libobjc
34616maybe-distclean-target-libobjc: distclean-target-libobjc
295f4e42 34617
85bfb75e
JM
34618distclean-target-libobjc:
34619 @: $(MAKE); $(unstage)
34620 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
34621 r=`${PWD_COMMAND}`; export r; \
34622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34623 $(NORMAL_TARGET_EXPORTS) \
34624 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
34625 for flag in $(EXTRA_TARGET_FLAGS); do \
34626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34627 done; \
34628 (cd $(TARGET_SUBDIR)/libobjc && \
34629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34631 "RANLIB=$${RANLIB}" \
34632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34633 distclean) \
34634 || exit 1
295f4e42 34635
85bfb75e 34636@endif target-libobjc
295f4e42 34637
85bfb75e
JM
34638.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
34639maybe-maintainer-clean-target-libobjc:
34640@if target-libobjc
34641maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
295f4e42 34642
85bfb75e
JM
34643maintainer-clean-target-libobjc:
34644 @: $(MAKE); $(unstage)
34645 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
34646 r=`${PWD_COMMAND}`; export r; \
34647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34648 $(NORMAL_TARGET_EXPORTS) \
34649 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
34650 for flag in $(EXTRA_TARGET_FLAGS); do \
34651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34652 done; \
34653 (cd $(TARGET_SUBDIR)/libobjc && \
34654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34656 "RANLIB=$${RANLIB}" \
34657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34658 maintainer-clean) \
34659 || exit 1
295f4e42 34660
85bfb75e 34661@endif target-libobjc
295f4e42
NN
34662
34663
295f4e42 34664
295f4e42 34665
25b42232 34666
85bfb75e
JM
34667.PHONY: configure-target-libgo maybe-configure-target-libgo
34668maybe-configure-target-libgo:
3ff3adad 34669@if gcc-bootstrap
85bfb75e 34670configure-target-libgo: stage_current
3ff3adad 34671@endif gcc-bootstrap
85bfb75e
JM
34672@if target-libgo
34673maybe-configure-target-libgo: configure-target-libgo
34674configure-target-libgo:
f41d6665
DJ
34675 @: $(MAKE); $(unstage)
34676 @r=`${PWD_COMMAND}`; export r; \
34677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
34678 echo "Checking multilib configuration for libgo..."; \
34679 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
34680 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null ; \
34681 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
34682 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
34683 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
f41d6665 34684 else \
85bfb75e
JM
34685 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
34686 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
f41d6665
DJ
34687 fi; \
34688 else \
85bfb75e 34689 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
cc11cc9b 34690 fi; \
85bfb75e
JM
34691 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
34692 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
f61428ed 34693 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
34694 echo Configuring in $(TARGET_SUBDIR)/libgo; \
34695 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
4977bab6 34696 case $(srcdir) in \
215c351a 34697 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 34698 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
215c351a 34699 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
85bfb75e
JM
34700 esac; \
34701 srcdiroption="--srcdir=$${topdir}/libgo"; \
34702 libsrcdir="$$s/libgo"; \
295f4e42
NN
34703 rm -f no-such-file || : ; \
34704 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
34705 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34706 --target=${target_alias} $${srcdiroption} \
4977bab6 34707 || exit 1
85bfb75e 34708@endif target-libgo
4977bab6 34709
25b42232
PB
34710
34711
ce406537
PB
34712
34713
85bfb75e
JM
34714.PHONY: all-target-libgo maybe-all-target-libgo
34715maybe-all-target-libgo:
3ff3adad 34716@if gcc-bootstrap
85bfb75e 34717all-target-libgo: stage_current
3ff3adad 34718@endif gcc-bootstrap
85bfb75e
JM
34719@if target-libgo
34720TARGET-target-libgo=all
34721maybe-all-target-libgo: all-target-libgo
34722all-target-libgo: configure-target-libgo
f41d6665 34723 @: $(MAKE); $(unstage)
8c90b13a
L
34724 @r=`${PWD_COMMAND}`; export r; \
34725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 34726 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34727 (cd $(TARGET_SUBDIR)/libgo && \
1c8bd6a3 34728 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
34729 $(TARGET-target-libgo))
34730@endif target-libgo
4977bab6 34731
25b42232
PB
34732
34733
ce406537
PB
34734
34735
85bfb75e
JM
34736.PHONY: check-target-libgo maybe-check-target-libgo
34737maybe-check-target-libgo:
34738@if target-libgo
34739maybe-check-target-libgo: check-target-libgo
4977bab6 34740
85bfb75e 34741check-target-libgo:
f41d6665 34742 @: $(MAKE); $(unstage)
295f4e42
NN
34743 @r=`${PWD_COMMAND}`; export r; \
34744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34745 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34746 (cd $(TARGET_SUBDIR)/libgo && \
a52a0a7f 34747 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34748
85bfb75e 34749@endif target-libgo
4977bab6 34750
85bfb75e
JM
34751.PHONY: install-target-libgo maybe-install-target-libgo
34752maybe-install-target-libgo:
34753@if target-libgo
34754maybe-install-target-libgo: install-target-libgo
7e2dbcef 34755
85bfb75e 34756install-target-libgo: installdirs
f41d6665 34757 @: $(MAKE); $(unstage)
295f4e42
NN
34758 @r=`${PWD_COMMAND}`; export r; \
34759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34760 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34761 (cd $(TARGET_SUBDIR)/libgo && \
a52a0a7f 34762 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34763
85bfb75e 34764@endif target-libgo
4977bab6 34765
85bfb75e
JM
34766.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
34767maybe-install-strip-target-libgo:
34768@if target-libgo
34769maybe-install-strip-target-libgo: install-strip-target-libgo
455c8f48 34770
85bfb75e 34771install-strip-target-libgo: installdirs
455c8f48
RW
34772 @: $(MAKE); $(unstage)
34773 @r=`${PWD_COMMAND}`; export r; \
34774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34775 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34776 (cd $(TARGET_SUBDIR)/libgo && \
455c8f48
RW
34777 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34778
85bfb75e 34779@endif target-libgo
455c8f48 34780
b5422ad7 34781# Other targets (info, dvi, pdf, etc.)
295f4e42 34782
85bfb75e
JM
34783.PHONY: maybe-info-target-libgo info-target-libgo
34784maybe-info-target-libgo:
34785@if target-libgo
34786maybe-info-target-libgo: info-target-libgo
295f4e42 34787
85bfb75e
JM
34788info-target-libgo: \
34789 configure-target-libgo
f41d6665 34790 @: $(MAKE); $(unstage)
85bfb75e 34791 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
8c90b13a
L
34792 r=`${PWD_COMMAND}`; export r; \
34793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34794 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34795 echo "Doing info in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
34796 for flag in $(EXTRA_TARGET_FLAGS); do \
34797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34798 done; \
85bfb75e 34799 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
34800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34802 "RANLIB=$${RANLIB}" \
901119ae 34803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34804 info) \
4977bab6
ZW
34805 || exit 1
34806
85bfb75e 34807@endif target-libgo
4977bab6 34808
85bfb75e
JM
34809.PHONY: maybe-dvi-target-libgo dvi-target-libgo
34810maybe-dvi-target-libgo:
34811@if target-libgo
34812maybe-dvi-target-libgo: dvi-target-libgo
4977bab6 34813
85bfb75e
JM
34814dvi-target-libgo: \
34815 configure-target-libgo
f41d6665 34816 @: $(MAKE); $(unstage)
85bfb75e 34817 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 34818 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34820 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34821 echo "Doing dvi in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
34822 for flag in $(EXTRA_TARGET_FLAGS); do \
34823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34824 done; \
85bfb75e 34825 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
34826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34828 "RANLIB=$${RANLIB}" \
901119ae 34829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34830 dvi) \
295f4e42 34831 || exit 1
4977bab6 34832
85bfb75e 34833@endif target-libgo
4977bab6 34834
85bfb75e
JM
34835.PHONY: maybe-pdf-target-libgo pdf-target-libgo
34836maybe-pdf-target-libgo:
34837@if target-libgo
34838maybe-pdf-target-libgo: pdf-target-libgo
b5422ad7 34839
85bfb75e
JM
34840pdf-target-libgo: \
34841 configure-target-libgo
b5422ad7 34842 @: $(MAKE); $(unstage)
85bfb75e 34843 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b5422ad7
BM
34844 r=`${PWD_COMMAND}`; export r; \
34845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34846 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34847 echo "Doing pdf in $(TARGET_SUBDIR)/libgo" ; \
b5422ad7
BM
34848 for flag in $(EXTRA_TARGET_FLAGS); do \
34849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34850 done; \
85bfb75e 34851 (cd $(TARGET_SUBDIR)/libgo && \
b5422ad7
BM
34852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34854 "RANLIB=$${RANLIB}" \
901119ae 34855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
34856 pdf) \
34857 || exit 1
34858
85bfb75e 34859@endif target-libgo
b5422ad7 34860
85bfb75e
JM
34861.PHONY: maybe-html-target-libgo html-target-libgo
34862maybe-html-target-libgo:
34863@if target-libgo
34864maybe-html-target-libgo: html-target-libgo
f87a2b2e 34865
85bfb75e
JM
34866html-target-libgo: \
34867 configure-target-libgo
f41d6665 34868 @: $(MAKE); $(unstage)
85bfb75e 34869 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
f87a2b2e
MS
34870 r=`${PWD_COMMAND}`; export r; \
34871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 34872 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34873 echo "Doing html in $(TARGET_SUBDIR)/libgo" ; \
f87a2b2e
MS
34874 for flag in $(EXTRA_TARGET_FLAGS); do \
34875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34876 done; \
85bfb75e 34877 (cd $(TARGET_SUBDIR)/libgo && \
f87a2b2e
MS
34878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34880 "RANLIB=$${RANLIB}" \
901119ae 34881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
34882 html) \
34883 || exit 1
34884
85bfb75e 34885@endif target-libgo
f87a2b2e 34886
85bfb75e
JM
34887.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
34888maybe-TAGS-target-libgo:
34889@if target-libgo
34890maybe-TAGS-target-libgo: TAGS-target-libgo
7e2dbcef 34891
85bfb75e
JM
34892TAGS-target-libgo: \
34893 configure-target-libgo
f41d6665 34894 @: $(MAKE); $(unstage)
85bfb75e 34895 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 34896 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34898 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34899 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
34900 for flag in $(EXTRA_TARGET_FLAGS); do \
34901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34902 done; \
85bfb75e 34903 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
34904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34906 "RANLIB=$${RANLIB}" \
901119ae 34907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34908 TAGS) \
295f4e42 34909 || exit 1
4977bab6 34910
85bfb75e 34911@endif target-libgo
4977bab6 34912
85bfb75e
JM
34913.PHONY: maybe-install-info-target-libgo install-info-target-libgo
34914maybe-install-info-target-libgo:
34915@if target-libgo
34916maybe-install-info-target-libgo: install-info-target-libgo
295f4e42 34917
85bfb75e
JM
34918install-info-target-libgo: \
34919 configure-target-libgo \
34920 info-target-libgo
f41d6665 34921 @: $(MAKE); $(unstage)
85bfb75e 34922 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
8c90b13a
L
34923 r=`${PWD_COMMAND}`; export r; \
34924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34925 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34926 echo "Doing install-info in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
34927 for flag in $(EXTRA_TARGET_FLAGS); do \
34928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34929 done; \
85bfb75e 34930 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
34931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34933 "RANLIB=$${RANLIB}" \
901119ae 34934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 34935 install-info) \
4977bab6
ZW
34936 || exit 1
34937
85bfb75e 34938@endif target-libgo
295f4e42 34939
85bfb75e
JM
34940.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
34941maybe-install-pdf-target-libgo:
34942@if target-libgo
34943maybe-install-pdf-target-libgo: install-pdf-target-libgo
9c4d2493 34944
85bfb75e
JM
34945install-pdf-target-libgo: \
34946 configure-target-libgo \
34947 pdf-target-libgo
9c4d2493 34948 @: $(MAKE); $(unstage)
85bfb75e 34949 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
9c4d2493
BM
34950 r=`${PWD_COMMAND}`; export r; \
34951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34952 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34953 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo" ; \
9c4d2493
BM
34954 for flag in $(EXTRA_TARGET_FLAGS); do \
34955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34956 done; \
85bfb75e 34957 (cd $(TARGET_SUBDIR)/libgo && \
9c4d2493
BM
34958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34960 "RANLIB=$${RANLIB}" \
901119ae 34961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
34962 install-pdf) \
34963 || exit 1
34964
85bfb75e 34965@endif target-libgo
9c4d2493 34966
85bfb75e
JM
34967.PHONY: maybe-install-html-target-libgo install-html-target-libgo
34968maybe-install-html-target-libgo:
34969@if target-libgo
34970maybe-install-html-target-libgo: install-html-target-libgo
65d6e994 34971
85bfb75e
JM
34972install-html-target-libgo: \
34973 configure-target-libgo \
34974 html-target-libgo
65d6e994 34975 @: $(MAKE); $(unstage)
85bfb75e 34976 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
65d6e994
CD
34977 r=`${PWD_COMMAND}`; export r; \
34978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34979 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 34980 echo "Doing install-html in $(TARGET_SUBDIR)/libgo" ; \
65d6e994
CD
34981 for flag in $(EXTRA_TARGET_FLAGS); do \
34982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34983 done; \
85bfb75e 34984 (cd $(TARGET_SUBDIR)/libgo && \
65d6e994
CD
34985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34987 "RANLIB=$${RANLIB}" \
901119ae 34988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
34989 install-html) \
34990 || exit 1
34991
85bfb75e 34992@endif target-libgo
65d6e994 34993
85bfb75e
JM
34994.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
34995maybe-installcheck-target-libgo:
34996@if target-libgo
34997maybe-installcheck-target-libgo: installcheck-target-libgo
295f4e42 34998
85bfb75e
JM
34999installcheck-target-libgo: \
35000 configure-target-libgo
f41d6665 35001 @: $(MAKE); $(unstage)
85bfb75e 35002 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 35003 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35005 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35006 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
35007 for flag in $(EXTRA_TARGET_FLAGS); do \
35008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35009 done; \
85bfb75e 35010 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
35011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35013 "RANLIB=$${RANLIB}" \
901119ae 35014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35015 installcheck) \
295f4e42 35016 || exit 1
4977bab6 35017
85bfb75e 35018@endif target-libgo
4977bab6 35019
85bfb75e
JM
35020.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
35021maybe-mostlyclean-target-libgo:
35022@if target-libgo
35023maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
295f4e42 35024
85bfb75e 35025mostlyclean-target-libgo:
f41d6665 35026 @: $(MAKE); $(unstage)
85bfb75e 35027 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 35028 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35030 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35031 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
35032 for flag in $(EXTRA_TARGET_FLAGS); do \
35033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35034 done; \
85bfb75e 35035 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
35036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35038 "RANLIB=$${RANLIB}" \
901119ae 35039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35040 mostlyclean) \
295f4e42 35041 || exit 1
4977bab6 35042
85bfb75e 35043@endif target-libgo
4977bab6 35044
85bfb75e
JM
35045.PHONY: maybe-clean-target-libgo clean-target-libgo
35046maybe-clean-target-libgo:
35047@if target-libgo
35048maybe-clean-target-libgo: clean-target-libgo
7e2dbcef 35049
85bfb75e 35050clean-target-libgo:
f41d6665 35051 @: $(MAKE); $(unstage)
85bfb75e 35052 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 35053 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35055 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35056 echo "Doing clean in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
35057 for flag in $(EXTRA_TARGET_FLAGS); do \
35058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35059 done; \
85bfb75e 35060 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
35061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35063 "RANLIB=$${RANLIB}" \
901119ae 35064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35065 clean) \
295f4e42 35066 || exit 1
4977bab6 35067
85bfb75e 35068@endif target-libgo
4977bab6 35069
85bfb75e
JM
35070.PHONY: maybe-distclean-target-libgo distclean-target-libgo
35071maybe-distclean-target-libgo:
35072@if target-libgo
35073maybe-distclean-target-libgo: distclean-target-libgo
295f4e42 35074
85bfb75e 35075distclean-target-libgo:
f41d6665 35076 @: $(MAKE); $(unstage)
85bfb75e 35077 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
8c90b13a
L
35078 r=`${PWD_COMMAND}`; export r; \
35079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35080 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35081 echo "Doing distclean in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
35082 for flag in $(EXTRA_TARGET_FLAGS); do \
35083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35084 done; \
85bfb75e 35085 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
35086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35088 "RANLIB=$${RANLIB}" \
901119ae 35089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35090 distclean) \
4977bab6
ZW
35091 || exit 1
35092
85bfb75e 35093@endif target-libgo
4977bab6 35094
85bfb75e
JM
35095.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
35096maybe-maintainer-clean-target-libgo:
35097@if target-libgo
35098maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
4977bab6 35099
85bfb75e 35100maintainer-clean-target-libgo:
f41d6665 35101 @: $(MAKE); $(unstage)
85bfb75e 35102 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
295f4e42 35103 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35105 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35106 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo" ; \
295f4e42
NN
35107 for flag in $(EXTRA_TARGET_FLAGS); do \
35108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35109 done; \
85bfb75e 35110 (cd $(TARGET_SUBDIR)/libgo && \
295f4e42
NN
35111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35113 "RANLIB=$${RANLIB}" \
901119ae 35114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35115 maintainer-clean) \
295f4e42 35116 || exit 1
4977bab6 35117
85bfb75e 35118@endif target-libgo
4977bab6 35119
7e2dbcef 35120
4977bab6
ZW
35121
35122
25b42232 35123
85bfb75e
JM
35124.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
35125maybe-configure-target-libtermcap:
3ff3adad 35126@if gcc-bootstrap
85bfb75e 35127configure-target-libtermcap: stage_current
3ff3adad 35128@endif gcc-bootstrap
85bfb75e
JM
35129@if target-libtermcap
35130maybe-configure-target-libtermcap: configure-target-libtermcap
35131configure-target-libtermcap:
f41d6665
DJ
35132 @: $(MAKE); $(unstage)
35133 @r=`${PWD_COMMAND}`; export r; \
35134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
35135 echo "Checking multilib configuration for libtermcap..."; \
35136 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
35137 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
35138 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
35139 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
35140 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
f41d6665 35141 else \
85bfb75e
JM
35142 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
35143 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
f41d6665
DJ
35144 fi; \
35145 else \
85bfb75e 35146 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
cc11cc9b 35147 fi; \
85bfb75e
JM
35148 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
35149 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
f61428ed 35150 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
35151 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
35152 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4977bab6 35153 case $(srcdir) in \
215c351a 35154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 35155 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
215c351a 35156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 35157 esac; \
85bfb75e
JM
35158 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
35159 libsrcdir="$$s/libtermcap"; \
295f4e42
NN
35160 rm -f no-such-file || : ; \
35161 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
35162 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35163 --target=${target_alias} $${srcdiroption} \
4977bab6 35164 || exit 1
85bfb75e 35165@endif target-libtermcap
4977bab6 35166
25b42232
PB
35167
35168
ce406537
PB
35169
35170
85bfb75e
JM
35171.PHONY: all-target-libtermcap maybe-all-target-libtermcap
35172maybe-all-target-libtermcap:
3ff3adad 35173@if gcc-bootstrap
85bfb75e 35174all-target-libtermcap: stage_current
3ff3adad 35175@endif gcc-bootstrap
85bfb75e
JM
35176@if target-libtermcap
35177TARGET-target-libtermcap=all
35178maybe-all-target-libtermcap: all-target-libtermcap
35179all-target-libtermcap: configure-target-libtermcap
f41d6665 35180 @: $(MAKE); $(unstage)
8c90b13a
L
35181 @r=`${PWD_COMMAND}`; export r; \
35182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 35183 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35184 (cd $(TARGET_SUBDIR)/libtermcap && \
1c8bd6a3 35185 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
35186 $(TARGET-target-libtermcap))
35187@endif target-libtermcap
4977bab6 35188
25b42232
PB
35189
35190
ce406537
PB
35191
35192
85bfb75e
JM
35193.PHONY: check-target-libtermcap maybe-check-target-libtermcap
35194maybe-check-target-libtermcap:
35195@if target-libtermcap
35196maybe-check-target-libtermcap: check-target-libtermcap
4977bab6 35197
295f4e42 35198# Dummy target for uncheckable module.
85bfb75e 35199check-target-libtermcap:
4977bab6 35200
85bfb75e 35201@endif target-libtermcap
4977bab6 35202
85bfb75e
JM
35203.PHONY: install-target-libtermcap maybe-install-target-libtermcap
35204maybe-install-target-libtermcap:
35205@if target-libtermcap
35206maybe-install-target-libtermcap: install-target-libtermcap
7e2dbcef 35207
85bfb75e 35208install-target-libtermcap: installdirs
f41d6665 35209 @: $(MAKE); $(unstage)
8c90b13a
L
35210 @r=`${PWD_COMMAND}`; export r; \
35211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35212 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35213 (cd $(TARGET_SUBDIR)/libtermcap && \
a52a0a7f 35214 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 35215
85bfb75e 35216@endif target-libtermcap
b5422ad7 35217
85bfb75e
JM
35218.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
35219maybe-install-strip-target-libtermcap:
35220@if target-libtermcap
35221maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
f87a2b2e 35222
85bfb75e 35223install-strip-target-libtermcap: installdirs
f41d6665 35224 @: $(MAKE); $(unstage)
85bfb75e 35225 @r=`${PWD_COMMAND}`; export r; \
f87a2b2e 35226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 35227 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
35228 (cd $(TARGET_SUBDIR)/libtermcap && \
35229 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
f87a2b2e 35230
85bfb75e 35231@endif target-libtermcap
f87a2b2e 35232
85bfb75e 35233# Other targets (info, dvi, pdf, etc.)
7e2dbcef 35234
85bfb75e
JM
35235.PHONY: maybe-info-target-libtermcap info-target-libtermcap
35236maybe-info-target-libtermcap:
35237@if target-libtermcap
35238maybe-info-target-libtermcap: info-target-libtermcap
35239
35240info-target-libtermcap: \
35241 configure-target-libtermcap
f41d6665 35242 @: $(MAKE); $(unstage)
85bfb75e 35243 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
295f4e42 35244 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35246 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35247 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35248 for flag in $(EXTRA_TARGET_FLAGS); do \
35249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35250 done; \
85bfb75e 35251 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35254 "RANLIB=$${RANLIB}" \
901119ae 35255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35256 info) \
295f4e42 35257 || exit 1
82c34dcb 35258
85bfb75e 35259@endif target-libtermcap
82c34dcb 35260
85bfb75e
JM
35261.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
35262maybe-dvi-target-libtermcap:
35263@if target-libtermcap
35264maybe-dvi-target-libtermcap: dvi-target-libtermcap
295f4e42 35265
85bfb75e
JM
35266dvi-target-libtermcap: \
35267 configure-target-libtermcap
f41d6665 35268 @: $(MAKE); $(unstage)
85bfb75e 35269 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
35270 r=`${PWD_COMMAND}`; export r; \
35271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35272 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35273 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35274 for flag in $(EXTRA_TARGET_FLAGS); do \
35275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35276 done; \
85bfb75e 35277 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35280 "RANLIB=$${RANLIB}" \
901119ae 35281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35282 dvi) \
4977bab6
ZW
35283 || exit 1
35284
85bfb75e 35285@endif target-libtermcap
4977bab6 35286
85bfb75e
JM
35287.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
35288maybe-pdf-target-libtermcap:
35289@if target-libtermcap
35290maybe-pdf-target-libtermcap: pdf-target-libtermcap
9c4d2493 35291
85bfb75e
JM
35292pdf-target-libtermcap: \
35293 configure-target-libtermcap
9c4d2493 35294 @: $(MAKE); $(unstage)
85bfb75e 35295 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
9c4d2493
BM
35296 r=`${PWD_COMMAND}`; export r; \
35297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35298 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35299 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
9c4d2493
BM
35300 for flag in $(EXTRA_TARGET_FLAGS); do \
35301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35302 done; \
85bfb75e 35303 (cd $(TARGET_SUBDIR)/libtermcap && \
9c4d2493
BM
35304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35306 "RANLIB=$${RANLIB}" \
901119ae 35307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35308 pdf) \
9c4d2493
BM
35309 || exit 1
35310
85bfb75e 35311@endif target-libtermcap
9c4d2493 35312
85bfb75e
JM
35313.PHONY: maybe-html-target-libtermcap html-target-libtermcap
35314maybe-html-target-libtermcap:
35315@if target-libtermcap
35316maybe-html-target-libtermcap: html-target-libtermcap
65d6e994 35317
85bfb75e
JM
35318html-target-libtermcap: \
35319 configure-target-libtermcap
65d6e994 35320 @: $(MAKE); $(unstage)
85bfb75e 35321 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
65d6e994
CD
35322 r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35324 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35325 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
65d6e994
CD
35326 for flag in $(EXTRA_TARGET_FLAGS); do \
35327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35328 done; \
85bfb75e 35329 (cd $(TARGET_SUBDIR)/libtermcap && \
65d6e994
CD
35330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35332 "RANLIB=$${RANLIB}" \
901119ae 35333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35334 html) \
65d6e994
CD
35335 || exit 1
35336
85bfb75e 35337@endif target-libtermcap
65d6e994 35338
85bfb75e
JM
35339.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
35340maybe-TAGS-target-libtermcap:
35341@if target-libtermcap
35342maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
4977bab6 35343
85bfb75e
JM
35344TAGS-target-libtermcap: \
35345 configure-target-libtermcap
f41d6665 35346 @: $(MAKE); $(unstage)
85bfb75e 35347 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
295f4e42
NN
35348 r=`${PWD_COMMAND}`; export r; \
35349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35350 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35351 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35352 for flag in $(EXTRA_TARGET_FLAGS); do \
35353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35354 done; \
85bfb75e 35355 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35358 "RANLIB=$${RANLIB}" \
901119ae 35359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35360 TAGS) \
295f4e42 35361 || exit 1
4977bab6 35362
85bfb75e 35363@endif target-libtermcap
4977bab6 35364
85bfb75e
JM
35365.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
35366maybe-install-info-target-libtermcap:
35367@if target-libtermcap
35368maybe-install-info-target-libtermcap: install-info-target-libtermcap
7e2dbcef 35369
85bfb75e
JM
35370install-info-target-libtermcap: \
35371 configure-target-libtermcap \
35372 info-target-libtermcap
f41d6665 35373 @: $(MAKE); $(unstage)
85bfb75e 35374 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
295f4e42 35375 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35377 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35378 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35379 for flag in $(EXTRA_TARGET_FLAGS); do \
35380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35381 done; \
85bfb75e 35382 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35385 "RANLIB=$${RANLIB}" \
901119ae 35386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35387 install-info) \
295f4e42 35388 || exit 1
4977bab6 35389
85bfb75e 35390@endif target-libtermcap
4977bab6 35391
85bfb75e
JM
35392.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
35393maybe-install-pdf-target-libtermcap:
35394@if target-libtermcap
35395maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
295f4e42 35396
85bfb75e
JM
35397install-pdf-target-libtermcap: \
35398 configure-target-libtermcap \
35399 pdf-target-libtermcap
f41d6665 35400 @: $(MAKE); $(unstage)
85bfb75e 35401 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
35402 r=`${PWD_COMMAND}`; export r; \
35403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35404 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35405 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35406 for flag in $(EXTRA_TARGET_FLAGS); do \
35407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35408 done; \
85bfb75e 35409 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35412 "RANLIB=$${RANLIB}" \
901119ae 35413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35414 install-pdf) \
4977bab6
ZW
35415 || exit 1
35416
85bfb75e 35417@endif target-libtermcap
4977bab6 35418
85bfb75e
JM
35419.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
35420maybe-install-html-target-libtermcap:
35421@if target-libtermcap
35422maybe-install-html-target-libtermcap: install-html-target-libtermcap
4977bab6 35423
85bfb75e
JM
35424install-html-target-libtermcap: \
35425 configure-target-libtermcap \
35426 html-target-libtermcap
f41d6665 35427 @: $(MAKE); $(unstage)
85bfb75e 35428 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
295f4e42
NN
35429 r=`${PWD_COMMAND}`; export r; \
35430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35431 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35432 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35433 for flag in $(EXTRA_TARGET_FLAGS); do \
35434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35435 done; \
85bfb75e 35436 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35439 "RANLIB=$${RANLIB}" \
901119ae 35440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35441 install-html) \
295f4e42 35442 || exit 1
4977bab6 35443
85bfb75e 35444@endif target-libtermcap
4977bab6 35445
85bfb75e
JM
35446.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
35447maybe-installcheck-target-libtermcap:
35448@if target-libtermcap
35449maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
7e2dbcef 35450
85bfb75e
JM
35451installcheck-target-libtermcap: \
35452 configure-target-libtermcap
f41d6665 35453 @: $(MAKE); $(unstage)
85bfb75e 35454 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
295f4e42 35455 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35457 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35458 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
35459 for flag in $(EXTRA_TARGET_FLAGS); do \
35460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35461 done; \
85bfb75e 35462 (cd $(TARGET_SUBDIR)/libtermcap && \
295f4e42
NN
35463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35465 "RANLIB=$${RANLIB}" \
901119ae 35466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
85bfb75e 35467 installcheck) \
295f4e42 35468 || exit 1
4977bab6 35469
85bfb75e
JM
35470@endif target-libtermcap
35471
35472.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
35473maybe-mostlyclean-target-libtermcap:
35474@if target-libtermcap
35475maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
35476
35477# libtermcap doesn't support mostlyclean.
35478mostlyclean-target-libtermcap:
35479
35480@endif target-libtermcap
4977bab6 35481
85bfb75e
JM
35482.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
35483maybe-clean-target-libtermcap:
35484@if target-libtermcap
35485maybe-clean-target-libtermcap: clean-target-libtermcap
4977bab6 35486
85bfb75e
JM
35487# libtermcap doesn't support clean.
35488clean-target-libtermcap:
4977bab6 35489
85bfb75e 35490@endif target-libtermcap
4977bab6 35491
85bfb75e
JM
35492.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
35493maybe-distclean-target-libtermcap:
35494@if target-libtermcap
35495maybe-distclean-target-libtermcap: distclean-target-libtermcap
25b42232 35496
85bfb75e
JM
35497# libtermcap doesn't support distclean.
35498distclean-target-libtermcap:
35499
35500@endif target-libtermcap
35501
35502.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
35503maybe-maintainer-clean-target-libtermcap:
35504@if target-libtermcap
35505maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
35506
35507# libtermcap doesn't support maintainer-clean.
35508maintainer-clean-target-libtermcap:
35509
35510@endif target-libtermcap
35511
35512
35513
35514
35515
35516.PHONY: configure-target-winsup maybe-configure-target-winsup
35517maybe-configure-target-winsup:
3ff3adad 35518@if gcc-bootstrap
85bfb75e 35519configure-target-winsup: stage_current
3ff3adad 35520@endif gcc-bootstrap
85bfb75e
JM
35521@if target-winsup
35522maybe-configure-target-winsup: configure-target-winsup
35523configure-target-winsup:
f41d6665
DJ
35524 @: $(MAKE); $(unstage)
35525 @r=`${PWD_COMMAND}`; export r; \
35526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
35527 echo "Checking multilib configuration for winsup..."; \
35528 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
35529 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
35530 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
35531 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
35532 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
f41d6665 35533 else \
85bfb75e
JM
35534 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
35535 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
f41d6665
DJ
35536 fi; \
35537 else \
85bfb75e 35538 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
cc11cc9b 35539 fi; \
85bfb75e
JM
35540 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
35541 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
f61428ed 35542 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
35543 echo Configuring in $(TARGET_SUBDIR)/winsup; \
35544 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
3aa83176 35545 case $(srcdir) in \
215c351a 35546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 35547 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
215c351a 35548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35549 esac; \
85bfb75e
JM
35550 srcdiroption="--srcdir=$${topdir}/winsup"; \
35551 libsrcdir="$$s/winsup"; \
3aa83176
NN
35552 rm -f no-such-file || : ; \
35553 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
35554 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35555 --target=${target_alias} $${srcdiroption} \
3aa83176 35556 || exit 1
85bfb75e 35557@endif target-winsup
4977bab6 35558
25b42232
PB
35559
35560
ce406537
PB
35561
35562
85bfb75e
JM
35563.PHONY: all-target-winsup maybe-all-target-winsup
35564maybe-all-target-winsup:
3ff3adad 35565@if gcc-bootstrap
85bfb75e 35566all-target-winsup: stage_current
3ff3adad 35567@endif gcc-bootstrap
85bfb75e
JM
35568@if target-winsup
35569TARGET-target-winsup=all
35570maybe-all-target-winsup: all-target-winsup
35571all-target-winsup: configure-target-winsup
f41d6665 35572 @: $(MAKE); $(unstage)
8c90b13a
L
35573 @r=`${PWD_COMMAND}`; export r; \
35574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 35575 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35576 (cd $(TARGET_SUBDIR)/winsup && \
1c8bd6a3 35577 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
35578 $(TARGET-target-winsup))
35579@endif target-winsup
4977bab6 35580
25b42232
PB
35581
35582
ce406537
PB
35583
35584
85bfb75e
JM
35585.PHONY: check-target-winsup maybe-check-target-winsup
35586maybe-check-target-winsup:
35587@if target-winsup
35588maybe-check-target-winsup: check-target-winsup
7e2dbcef 35589
85bfb75e 35590check-target-winsup:
f41d6665 35591 @: $(MAKE); $(unstage)
8c90b13a
L
35592 @r=`${PWD_COMMAND}`; export r; \
35593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35594 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35595 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 35596 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 35597
85bfb75e 35598@endif target-winsup
4977bab6 35599
85bfb75e
JM
35600.PHONY: install-target-winsup maybe-install-target-winsup
35601maybe-install-target-winsup:
35602@if target-winsup
35603maybe-install-target-winsup: install-target-winsup
295f4e42 35604
85bfb75e 35605install-target-winsup: installdirs
f41d6665 35606 @: $(MAKE); $(unstage)
295f4e42
NN
35607 @r=`${PWD_COMMAND}`; export r; \
35608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35609 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35610 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 35611 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 35612
85bfb75e 35613@endif target-winsup
295f4e42 35614
85bfb75e
JM
35615.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
35616maybe-install-strip-target-winsup:
35617@if target-winsup
35618maybe-install-strip-target-winsup: install-strip-target-winsup
455c8f48 35619
85bfb75e 35620install-strip-target-winsup: installdirs
455c8f48
RW
35621 @: $(MAKE); $(unstage)
35622 @r=`${PWD_COMMAND}`; export r; \
35623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35624 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35625 (cd $(TARGET_SUBDIR)/winsup && \
455c8f48
RW
35626 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35627
85bfb75e 35628@endif target-winsup
455c8f48 35629
b5422ad7 35630# Other targets (info, dvi, pdf, etc.)
295f4e42 35631
85bfb75e
JM
35632.PHONY: maybe-info-target-winsup info-target-winsup
35633maybe-info-target-winsup:
35634@if target-winsup
35635maybe-info-target-winsup: info-target-winsup
295f4e42 35636
85bfb75e
JM
35637info-target-winsup: \
35638 configure-target-winsup
f41d6665 35639 @: $(MAKE); $(unstage)
85bfb75e 35640 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35641 r=`${PWD_COMMAND}`; export r; \
35642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35643 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35644 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35645 for flag in $(EXTRA_TARGET_FLAGS); do \
35646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35647 done; \
85bfb75e 35648 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35651 "RANLIB=$${RANLIB}" \
901119ae 35652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35653 info) \
295f4e42
NN
35654 || exit 1
35655
85bfb75e 35656@endif target-winsup
295f4e42 35657
85bfb75e
JM
35658.PHONY: maybe-dvi-target-winsup dvi-target-winsup
35659maybe-dvi-target-winsup:
35660@if target-winsup
35661maybe-dvi-target-winsup: dvi-target-winsup
295f4e42 35662
85bfb75e
JM
35663dvi-target-winsup: \
35664 configure-target-winsup
f41d6665 35665 @: $(MAKE); $(unstage)
85bfb75e 35666 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35667 r=`${PWD_COMMAND}`; export r; \
35668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35669 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35670 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35671 for flag in $(EXTRA_TARGET_FLAGS); do \
35672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35673 done; \
85bfb75e 35674 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35677 "RANLIB=$${RANLIB}" \
901119ae 35678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35679 dvi) \
295f4e42
NN
35680 || exit 1
35681
85bfb75e 35682@endif target-winsup
295f4e42 35683
85bfb75e
JM
35684.PHONY: maybe-pdf-target-winsup pdf-target-winsup
35685maybe-pdf-target-winsup:
35686@if target-winsup
35687maybe-pdf-target-winsup: pdf-target-winsup
b5422ad7 35688
85bfb75e
JM
35689pdf-target-winsup: \
35690 configure-target-winsup
b5422ad7 35691 @: $(MAKE); $(unstage)
85bfb75e 35692 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
b5422ad7
BM
35693 r=`${PWD_COMMAND}`; export r; \
35694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35695 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35696 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
b5422ad7
BM
35697 for flag in $(EXTRA_TARGET_FLAGS); do \
35698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35699 done; \
85bfb75e 35700 (cd $(TARGET_SUBDIR)/winsup && \
b5422ad7
BM
35701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35703 "RANLIB=$${RANLIB}" \
901119ae 35704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
35705 pdf) \
35706 || exit 1
35707
85bfb75e 35708@endif target-winsup
b5422ad7 35709
85bfb75e
JM
35710.PHONY: maybe-html-target-winsup html-target-winsup
35711maybe-html-target-winsup:
35712@if target-winsup
35713maybe-html-target-winsup: html-target-winsup
f87a2b2e 35714
85bfb75e
JM
35715html-target-winsup: \
35716 configure-target-winsup
f41d6665 35717 @: $(MAKE); $(unstage)
85bfb75e 35718 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
f87a2b2e
MS
35719 r=`${PWD_COMMAND}`; export r; \
35720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 35721 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35722 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
f87a2b2e
MS
35723 for flag in $(EXTRA_TARGET_FLAGS); do \
35724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35725 done; \
85bfb75e 35726 (cd $(TARGET_SUBDIR)/winsup && \
f87a2b2e
MS
35727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35729 "RANLIB=$${RANLIB}" \
901119ae 35730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
35731 html) \
35732 || exit 1
35733
85bfb75e 35734@endif target-winsup
f87a2b2e 35735
85bfb75e
JM
35736.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
35737maybe-TAGS-target-winsup:
35738@if target-winsup
35739maybe-TAGS-target-winsup: TAGS-target-winsup
295f4e42 35740
85bfb75e
JM
35741TAGS-target-winsup: \
35742 configure-target-winsup
f41d6665 35743 @: $(MAKE); $(unstage)
85bfb75e 35744 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35745 r=`${PWD_COMMAND}`; export r; \
35746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35747 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35748 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35749 for flag in $(EXTRA_TARGET_FLAGS); do \
35750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35751 done; \
85bfb75e 35752 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35755 "RANLIB=$${RANLIB}" \
901119ae 35756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35757 TAGS) \
295f4e42
NN
35758 || exit 1
35759
85bfb75e 35760@endif target-winsup
295f4e42 35761
85bfb75e
JM
35762.PHONY: maybe-install-info-target-winsup install-info-target-winsup
35763maybe-install-info-target-winsup:
35764@if target-winsup
35765maybe-install-info-target-winsup: install-info-target-winsup
295f4e42 35766
85bfb75e
JM
35767install-info-target-winsup: \
35768 configure-target-winsup \
35769 info-target-winsup
f41d6665 35770 @: $(MAKE); $(unstage)
85bfb75e 35771 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35772 r=`${PWD_COMMAND}`; export r; \
35773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35774 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35775 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35776 for flag in $(EXTRA_TARGET_FLAGS); do \
35777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35778 done; \
85bfb75e 35779 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35782 "RANLIB=$${RANLIB}" \
901119ae 35783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35784 install-info) \
295f4e42
NN
35785 || exit 1
35786
85bfb75e 35787@endif target-winsup
295f4e42 35788
85bfb75e
JM
35789.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
35790maybe-install-pdf-target-winsup:
35791@if target-winsup
35792maybe-install-pdf-target-winsup: install-pdf-target-winsup
9c4d2493 35793
85bfb75e
JM
35794install-pdf-target-winsup: \
35795 configure-target-winsup \
35796 pdf-target-winsup
9c4d2493 35797 @: $(MAKE); $(unstage)
85bfb75e 35798 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
9c4d2493
BM
35799 r=`${PWD_COMMAND}`; export r; \
35800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35801 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35802 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
9c4d2493
BM
35803 for flag in $(EXTRA_TARGET_FLAGS); do \
35804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35805 done; \
85bfb75e 35806 (cd $(TARGET_SUBDIR)/winsup && \
9c4d2493
BM
35807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35809 "RANLIB=$${RANLIB}" \
901119ae 35810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
35811 install-pdf) \
35812 || exit 1
35813
85bfb75e 35814@endif target-winsup
9c4d2493 35815
85bfb75e
JM
35816.PHONY: maybe-install-html-target-winsup install-html-target-winsup
35817maybe-install-html-target-winsup:
35818@if target-winsup
35819maybe-install-html-target-winsup: install-html-target-winsup
65d6e994 35820
85bfb75e
JM
35821install-html-target-winsup: \
35822 configure-target-winsup \
35823 html-target-winsup
65d6e994 35824 @: $(MAKE); $(unstage)
85bfb75e 35825 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
65d6e994
CD
35826 r=`${PWD_COMMAND}`; export r; \
35827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35828 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35829 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
65d6e994
CD
35830 for flag in $(EXTRA_TARGET_FLAGS); do \
35831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35832 done; \
85bfb75e 35833 (cd $(TARGET_SUBDIR)/winsup && \
65d6e994
CD
35834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35836 "RANLIB=$${RANLIB}" \
901119ae 35837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
35838 install-html) \
35839 || exit 1
35840
85bfb75e 35841@endif target-winsup
65d6e994 35842
85bfb75e
JM
35843.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
35844maybe-installcheck-target-winsup:
35845@if target-winsup
35846maybe-installcheck-target-winsup: installcheck-target-winsup
295f4e42 35847
85bfb75e
JM
35848installcheck-target-winsup: \
35849 configure-target-winsup
f41d6665 35850 @: $(MAKE); $(unstage)
85bfb75e 35851 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35852 r=`${PWD_COMMAND}`; export r; \
35853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35854 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35855 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35856 for flag in $(EXTRA_TARGET_FLAGS); do \
35857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35858 done; \
85bfb75e 35859 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35862 "RANLIB=$${RANLIB}" \
901119ae 35863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35864 installcheck) \
295f4e42
NN
35865 || exit 1
35866
85bfb75e 35867@endif target-winsup
295f4e42 35868
85bfb75e
JM
35869.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
35870maybe-mostlyclean-target-winsup:
35871@if target-winsup
35872maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
295f4e42 35873
85bfb75e 35874mostlyclean-target-winsup:
f41d6665 35875 @: $(MAKE); $(unstage)
85bfb75e 35876 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35877 r=`${PWD_COMMAND}`; export r; \
35878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35879 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35880 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35881 for flag in $(EXTRA_TARGET_FLAGS); do \
35882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35883 done; \
85bfb75e 35884 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35887 "RANLIB=$${RANLIB}" \
901119ae 35888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35889 mostlyclean) \
295f4e42
NN
35890 || exit 1
35891
85bfb75e 35892@endif target-winsup
295f4e42 35893
85bfb75e
JM
35894.PHONY: maybe-clean-target-winsup clean-target-winsup
35895maybe-clean-target-winsup:
35896@if target-winsup
35897maybe-clean-target-winsup: clean-target-winsup
295f4e42 35898
85bfb75e 35899clean-target-winsup:
f41d6665 35900 @: $(MAKE); $(unstage)
85bfb75e 35901 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35902 r=`${PWD_COMMAND}`; export r; \
35903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35904 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35905 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35906 for flag in $(EXTRA_TARGET_FLAGS); do \
35907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35908 done; \
85bfb75e 35909 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35912 "RANLIB=$${RANLIB}" \
901119ae 35913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35914 clean) \
295f4e42
NN
35915 || exit 1
35916
85bfb75e 35917@endif target-winsup
295f4e42 35918
85bfb75e
JM
35919.PHONY: maybe-distclean-target-winsup distclean-target-winsup
35920maybe-distclean-target-winsup:
35921@if target-winsup
35922maybe-distclean-target-winsup: distclean-target-winsup
295f4e42 35923
85bfb75e 35924distclean-target-winsup:
f41d6665 35925 @: $(MAKE); $(unstage)
85bfb75e 35926 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35927 r=`${PWD_COMMAND}`; export r; \
35928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35929 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35930 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35931 for flag in $(EXTRA_TARGET_FLAGS); do \
35932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35933 done; \
85bfb75e 35934 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35937 "RANLIB=$${RANLIB}" \
901119ae 35938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35939 distclean) \
295f4e42
NN
35940 || exit 1
35941
85bfb75e 35942@endif target-winsup
295f4e42 35943
85bfb75e
JM
35944.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
35945maybe-maintainer-clean-target-winsup:
35946@if target-winsup
35947maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
295f4e42 35948
85bfb75e 35949maintainer-clean-target-winsup:
f41d6665 35950 @: $(MAKE); $(unstage)
85bfb75e 35951 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
295f4e42
NN
35952 r=`${PWD_COMMAND}`; export r; \
35953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35954 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 35955 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
295f4e42
NN
35956 for flag in $(EXTRA_TARGET_FLAGS); do \
35957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35958 done; \
85bfb75e 35959 (cd $(TARGET_SUBDIR)/winsup && \
295f4e42
NN
35960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35962 "RANLIB=$${RANLIB}" \
901119ae 35963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 35964 maintainer-clean) \
295f4e42 35965 || exit 1
7e2dbcef 35966
85bfb75e 35967@endif target-winsup
4977bab6
ZW
35968
35969
4977bab6 35970
4977bab6 35971
25b42232 35972
85bfb75e
JM
35973.PHONY: configure-target-libgloss maybe-configure-target-libgloss
35974maybe-configure-target-libgloss:
3ff3adad 35975@if gcc-bootstrap
85bfb75e 35976configure-target-libgloss: stage_current
3ff3adad 35977@endif gcc-bootstrap
85bfb75e
JM
35978@if target-libgloss
35979maybe-configure-target-libgloss: configure-target-libgloss
35980configure-target-libgloss:
f41d6665
DJ
35981 @: $(MAKE); $(unstage)
35982 @r=`${PWD_COMMAND}`; export r; \
35983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
85bfb75e
JM
35984 echo "Checking multilib configuration for libgloss..."; \
35985 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
35986 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
35987 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
35988 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
35989 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
f41d6665 35990 else \
85bfb75e
JM
35991 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
35992 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
f41d6665
DJ
35993 fi; \
35994 else \
85bfb75e 35995 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
cc11cc9b 35996 fi; \
85bfb75e
JM
35997 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
35998 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
f61428ed 35999 $(NORMAL_TARGET_EXPORTS) \
85bfb75e
JM
36000 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
36001 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
3aa83176 36002 case $(srcdir) in \
215c351a 36003 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
85bfb75e 36004 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
215c351a 36005 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36006 esac; \
85bfb75e
JM
36007 srcdiroption="--srcdir=$${topdir}/libgloss"; \
36008 libsrcdir="$$s/libgloss"; \
3aa83176
NN
36009 rm -f no-such-file || : ; \
36010 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
36011 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36012 --target=${target_alias} $${srcdiroption} \
3aa83176 36013 || exit 1
85bfb75e 36014@endif target-libgloss
4977bab6 36015
25b42232
PB
36016
36017
ce406537
PB
36018
36019
85bfb75e
JM
36020.PHONY: all-target-libgloss maybe-all-target-libgloss
36021maybe-all-target-libgloss:
3ff3adad 36022@if gcc-bootstrap
85bfb75e 36023all-target-libgloss: stage_current
3ff3adad 36024@endif gcc-bootstrap
85bfb75e
JM
36025@if target-libgloss
36026TARGET-target-libgloss=all
36027maybe-all-target-libgloss: all-target-libgloss
36028all-target-libgloss: configure-target-libgloss
f41d6665 36029 @: $(MAKE); $(unstage)
8c90b13a
L
36030 @r=`${PWD_COMMAND}`; export r; \
36031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 36032 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36033 (cd $(TARGET_SUBDIR)/libgloss && \
1c8bd6a3 36034 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
85bfb75e
JM
36035 $(TARGET-target-libgloss))
36036@endif target-libgloss
4977bab6 36037
25b42232
PB
36038
36039
ce406537
PB
36040
36041
85bfb75e
JM
36042.PHONY: check-target-libgloss maybe-check-target-libgloss
36043maybe-check-target-libgloss:
36044@if target-libgloss
36045maybe-check-target-libgloss: check-target-libgloss
7e2dbcef 36046
85bfb75e
JM
36047# Dummy target for uncheckable module.
36048check-target-libgloss:
4977bab6 36049
85bfb75e 36050@endif target-libgloss
4977bab6 36051
85bfb75e
JM
36052.PHONY: install-target-libgloss maybe-install-target-libgloss
36053maybe-install-target-libgloss:
36054@if target-libgloss
36055maybe-install-target-libgloss: install-target-libgloss
295f4e42 36056
85bfb75e 36057install-target-libgloss: installdirs
f41d6665 36058 @: $(MAKE); $(unstage)
295f4e42
NN
36059 @r=`${PWD_COMMAND}`; export r; \
36060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36061 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36062 (cd $(TARGET_SUBDIR)/libgloss && \
a52a0a7f 36063 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 36064
85bfb75e 36065@endif target-libgloss
295f4e42 36066
85bfb75e
JM
36067.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
36068maybe-install-strip-target-libgloss:
36069@if target-libgloss
36070maybe-install-strip-target-libgloss: install-strip-target-libgloss
455c8f48 36071
85bfb75e 36072install-strip-target-libgloss: installdirs
455c8f48
RW
36073 @: $(MAKE); $(unstage)
36074 @r=`${PWD_COMMAND}`; export r; \
36075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36076 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36077 (cd $(TARGET_SUBDIR)/libgloss && \
455c8f48
RW
36078 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36079
85bfb75e 36080@endif target-libgloss
455c8f48 36081
b5422ad7 36082# Other targets (info, dvi, pdf, etc.)
295f4e42 36083
85bfb75e
JM
36084.PHONY: maybe-info-target-libgloss info-target-libgloss
36085maybe-info-target-libgloss:
36086@if target-libgloss
36087maybe-info-target-libgloss: info-target-libgloss
295f4e42 36088
85bfb75e
JM
36089info-target-libgloss: \
36090 configure-target-libgloss
f41d6665 36091 @: $(MAKE); $(unstage)
85bfb75e 36092 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36093 r=`${PWD_COMMAND}`; export r; \
36094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36095 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36096 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36097 for flag in $(EXTRA_TARGET_FLAGS); do \
36098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36099 done; \
85bfb75e 36100 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36103 "RANLIB=$${RANLIB}" \
901119ae 36104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36105 info) \
295f4e42
NN
36106 || exit 1
36107
85bfb75e 36108@endif target-libgloss
295f4e42 36109
85bfb75e
JM
36110.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
36111maybe-dvi-target-libgloss:
36112@if target-libgloss
36113maybe-dvi-target-libgloss: dvi-target-libgloss
295f4e42 36114
85bfb75e
JM
36115dvi-target-libgloss: \
36116 configure-target-libgloss
f41d6665 36117 @: $(MAKE); $(unstage)
85bfb75e 36118 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36119 r=`${PWD_COMMAND}`; export r; \
36120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36121 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36122 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36123 for flag in $(EXTRA_TARGET_FLAGS); do \
36124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36125 done; \
85bfb75e 36126 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36129 "RANLIB=$${RANLIB}" \
901119ae 36130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36131 dvi) \
295f4e42
NN
36132 || exit 1
36133
85bfb75e 36134@endif target-libgloss
295f4e42 36135
85bfb75e
JM
36136.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
36137maybe-pdf-target-libgloss:
36138@if target-libgloss
36139maybe-pdf-target-libgloss: pdf-target-libgloss
b5422ad7 36140
85bfb75e
JM
36141pdf-target-libgloss: \
36142 configure-target-libgloss
b5422ad7 36143 @: $(MAKE); $(unstage)
85bfb75e 36144 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
b5422ad7
BM
36145 r=`${PWD_COMMAND}`; export r; \
36146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36147 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36148 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
b5422ad7
BM
36149 for flag in $(EXTRA_TARGET_FLAGS); do \
36150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36151 done; \
85bfb75e 36152 (cd $(TARGET_SUBDIR)/libgloss && \
b5422ad7
BM
36153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36155 "RANLIB=$${RANLIB}" \
901119ae 36156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
36157 pdf) \
36158 || exit 1
36159
85bfb75e 36160@endif target-libgloss
b5422ad7 36161
85bfb75e
JM
36162.PHONY: maybe-html-target-libgloss html-target-libgloss
36163maybe-html-target-libgloss:
36164@if target-libgloss
36165maybe-html-target-libgloss: html-target-libgloss
f87a2b2e 36166
85bfb75e
JM
36167html-target-libgloss: \
36168 configure-target-libgloss
f41d6665 36169 @: $(MAKE); $(unstage)
85bfb75e 36170 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
f87a2b2e
MS
36171 r=`${PWD_COMMAND}`; export r; \
36172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e 36173 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36174 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
f87a2b2e
MS
36175 for flag in $(EXTRA_TARGET_FLAGS); do \
36176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36177 done; \
85bfb75e 36178 (cd $(TARGET_SUBDIR)/libgloss && \
f87a2b2e
MS
36179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36181 "RANLIB=$${RANLIB}" \
901119ae 36182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
36183 html) \
36184 || exit 1
36185
85bfb75e 36186@endif target-libgloss
f87a2b2e 36187
85bfb75e
JM
36188.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
36189maybe-TAGS-target-libgloss:
36190@if target-libgloss
36191maybe-TAGS-target-libgloss: TAGS-target-libgloss
295f4e42 36192
85bfb75e
JM
36193TAGS-target-libgloss: \
36194 configure-target-libgloss
f41d6665 36195 @: $(MAKE); $(unstage)
85bfb75e 36196 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36197 r=`${PWD_COMMAND}`; export r; \
36198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36199 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36200 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36201 for flag in $(EXTRA_TARGET_FLAGS); do \
36202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36203 done; \
85bfb75e 36204 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36207 "RANLIB=$${RANLIB}" \
901119ae 36208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36209 TAGS) \
295f4e42
NN
36210 || exit 1
36211
85bfb75e 36212@endif target-libgloss
295f4e42 36213
85bfb75e
JM
36214.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
36215maybe-install-info-target-libgloss:
36216@if target-libgloss
36217maybe-install-info-target-libgloss: install-info-target-libgloss
295f4e42 36218
85bfb75e
JM
36219install-info-target-libgloss: \
36220 configure-target-libgloss \
36221 info-target-libgloss
f41d6665 36222 @: $(MAKE); $(unstage)
85bfb75e 36223 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36224 r=`${PWD_COMMAND}`; export r; \
36225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36226 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36227 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36228 for flag in $(EXTRA_TARGET_FLAGS); do \
36229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36230 done; \
85bfb75e 36231 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36234 "RANLIB=$${RANLIB}" \
901119ae 36235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36236 install-info) \
295f4e42
NN
36237 || exit 1
36238
85bfb75e 36239@endif target-libgloss
295f4e42 36240
85bfb75e
JM
36241.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
36242maybe-install-pdf-target-libgloss:
36243@if target-libgloss
36244maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
9c4d2493 36245
85bfb75e
JM
36246install-pdf-target-libgloss: \
36247 configure-target-libgloss \
36248 pdf-target-libgloss
9c4d2493 36249 @: $(MAKE); $(unstage)
85bfb75e 36250 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
9c4d2493
BM
36251 r=`${PWD_COMMAND}`; export r; \
36252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36253 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36254 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
9c4d2493
BM
36255 for flag in $(EXTRA_TARGET_FLAGS); do \
36256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36257 done; \
85bfb75e 36258 (cd $(TARGET_SUBDIR)/libgloss && \
9c4d2493
BM
36259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36261 "RANLIB=$${RANLIB}" \
901119ae 36262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
36263 install-pdf) \
36264 || exit 1
36265
85bfb75e 36266@endif target-libgloss
9c4d2493 36267
85bfb75e
JM
36268.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
36269maybe-install-html-target-libgloss:
36270@if target-libgloss
36271maybe-install-html-target-libgloss: install-html-target-libgloss
65d6e994 36272
85bfb75e
JM
36273install-html-target-libgloss: \
36274 configure-target-libgloss \
36275 html-target-libgloss
65d6e994 36276 @: $(MAKE); $(unstage)
85bfb75e 36277 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
65d6e994
CD
36278 r=`${PWD_COMMAND}`; export r; \
36279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36280 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36281 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
65d6e994
CD
36282 for flag in $(EXTRA_TARGET_FLAGS); do \
36283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36284 done; \
85bfb75e 36285 (cd $(TARGET_SUBDIR)/libgloss && \
65d6e994
CD
36286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36288 "RANLIB=$${RANLIB}" \
901119ae 36289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
36290 install-html) \
36291 || exit 1
36292
85bfb75e 36293@endif target-libgloss
65d6e994 36294
85bfb75e
JM
36295.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
36296maybe-installcheck-target-libgloss:
36297@if target-libgloss
36298maybe-installcheck-target-libgloss: installcheck-target-libgloss
295f4e42 36299
85bfb75e
JM
36300installcheck-target-libgloss: \
36301 configure-target-libgloss
f41d6665 36302 @: $(MAKE); $(unstage)
85bfb75e 36303 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36304 r=`${PWD_COMMAND}`; export r; \
36305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36306 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36307 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36308 for flag in $(EXTRA_TARGET_FLAGS); do \
36309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36310 done; \
85bfb75e 36311 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36314 "RANLIB=$${RANLIB}" \
901119ae 36315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36316 installcheck) \
295f4e42
NN
36317 || exit 1
36318
85bfb75e 36319@endif target-libgloss
295f4e42 36320
85bfb75e
JM
36321.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
36322maybe-mostlyclean-target-libgloss:
36323@if target-libgloss
36324maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
295f4e42 36325
85bfb75e 36326mostlyclean-target-libgloss:
f41d6665 36327 @: $(MAKE); $(unstage)
85bfb75e 36328 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36329 r=`${PWD_COMMAND}`; export r; \
36330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36331 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36332 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36333 for flag in $(EXTRA_TARGET_FLAGS); do \
36334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36335 done; \
85bfb75e 36336 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36339 "RANLIB=$${RANLIB}" \
901119ae 36340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36341 mostlyclean) \
295f4e42
NN
36342 || exit 1
36343
85bfb75e 36344@endif target-libgloss
295f4e42 36345
85bfb75e
JM
36346.PHONY: maybe-clean-target-libgloss clean-target-libgloss
36347maybe-clean-target-libgloss:
36348@if target-libgloss
36349maybe-clean-target-libgloss: clean-target-libgloss
295f4e42 36350
85bfb75e 36351clean-target-libgloss:
f41d6665 36352 @: $(MAKE); $(unstage)
85bfb75e 36353 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36354 r=`${PWD_COMMAND}`; export r; \
36355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36356 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36357 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36358 for flag in $(EXTRA_TARGET_FLAGS); do \
36359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36360 done; \
85bfb75e 36361 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36364 "RANLIB=$${RANLIB}" \
901119ae 36365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36366 clean) \
295f4e42
NN
36367 || exit 1
36368
85bfb75e 36369@endif target-libgloss
295f4e42 36370
85bfb75e
JM
36371.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
36372maybe-distclean-target-libgloss:
36373@if target-libgloss
36374maybe-distclean-target-libgloss: distclean-target-libgloss
295f4e42 36375
85bfb75e 36376distclean-target-libgloss:
f41d6665 36377 @: $(MAKE); $(unstage)
85bfb75e 36378 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36379 r=`${PWD_COMMAND}`; export r; \
36380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36381 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36382 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36383 for flag in $(EXTRA_TARGET_FLAGS); do \
36384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36385 done; \
85bfb75e 36386 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36389 "RANLIB=$${RANLIB}" \
901119ae 36390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36391 distclean) \
295f4e42
NN
36392 || exit 1
36393
85bfb75e 36394@endif target-libgloss
295f4e42 36395
85bfb75e
JM
36396.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
36397maybe-maintainer-clean-target-libgloss:
36398@if target-libgloss
36399maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
295f4e42 36400
85bfb75e 36401maintainer-clean-target-libgloss:
f41d6665 36402 @: $(MAKE); $(unstage)
85bfb75e 36403 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
295f4e42
NN
36404 r=`${PWD_COMMAND}`; export r; \
36405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36406 $(NORMAL_TARGET_EXPORTS) \
85bfb75e 36407 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
295f4e42
NN
36408 for flag in $(EXTRA_TARGET_FLAGS); do \
36409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36410 done; \
85bfb75e 36411 (cd $(TARGET_SUBDIR)/libgloss && \
295f4e42
NN
36412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36414 "RANLIB=$${RANLIB}" \
901119ae 36415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36416 maintainer-clean) \
295f4e42 36417 || exit 1
7e2dbcef 36418
85bfb75e 36419@endif target-libgloss
4977bab6
ZW
36420
36421
4977bab6 36422
25b42232
PB
36423
36424
25b42232
PB
36425.PHONY: configure-target-libffi maybe-configure-target-libffi
36426maybe-configure-target-libffi:
3ff3adad
PB
36427@if gcc-bootstrap
36428configure-target-libffi: stage_current
36429@endif gcc-bootstrap
25b42232
PB
36430@if target-libffi
36431maybe-configure-target-libffi: configure-target-libffi
cc11cc9b 36432configure-target-libffi:
f41d6665
DJ
36433 @: $(MAKE); $(unstage)
36434 @r=`${PWD_COMMAND}`; export r; \
36435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36436 echo "Checking multilib configuration for libffi..."; \
36437 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
36438 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
36439 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
36440 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
36441 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
36442 else \
36443 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
36444 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
36445 fi; \
36446 else \
36447 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
cc11cc9b
PB
36448 fi; \
36449 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
295f4e42 36450 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
f61428ed 36451 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36452 echo Configuring in $(TARGET_SUBDIR)/libffi; \
36453 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3aa83176 36454 case $(srcdir) in \
215c351a
PB
36455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36456 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
36457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36458 esac; \
215c351a
PB
36459 srcdiroption="--srcdir=$${topdir}/libffi"; \
36460 libsrcdir="$$s/libffi"; \
3aa83176
NN
36461 rm -f no-such-file || : ; \
36462 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
36463 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36464 --target=${target_alias} $${srcdiroption} \
3aa83176 36465 || exit 1
60975492 36466@endif target-libffi
4977bab6 36467
25b42232
PB
36468
36469
ce406537
PB
36470
36471
295f4e42
NN
36472.PHONY: all-target-libffi maybe-all-target-libffi
36473maybe-all-target-libffi:
3ff3adad
PB
36474@if gcc-bootstrap
36475all-target-libffi: stage_current
36476@endif gcc-bootstrap
60975492 36477@if target-libffi
7c27e184 36478TARGET-target-libffi=all
60975492 36479maybe-all-target-libffi: all-target-libffi
295f4e42 36480all-target-libffi: configure-target-libffi
f41d6665 36481 @: $(MAKE); $(unstage)
8c90b13a
L
36482 @r=`${PWD_COMMAND}`; export r; \
36483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 36484 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36485 (cd $(TARGET_SUBDIR)/libffi && \
1c8bd6a3
PB
36486 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36487 $(TARGET-target-libffi))
60975492 36488@endif target-libffi
4977bab6 36489
25b42232
PB
36490
36491
ce406537
PB
36492
36493
295f4e42
NN
36494.PHONY: check-target-libffi maybe-check-target-libffi
36495maybe-check-target-libffi:
60975492
PB
36496@if target-libffi
36497maybe-check-target-libffi: check-target-libffi
7e2dbcef 36498
295f4e42 36499check-target-libffi:
f41d6665 36500 @: $(MAKE); $(unstage)
8c90b13a
L
36501 @r=`${PWD_COMMAND}`; export r; \
36502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36503 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36504 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36505 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36506
60975492 36507@endif target-libffi
4977bab6 36508
295f4e42
NN
36509.PHONY: install-target-libffi maybe-install-target-libffi
36510maybe-install-target-libffi:
60975492
PB
36511@if target-libffi
36512maybe-install-target-libffi: install-target-libffi
7e2dbcef 36513
295f4e42 36514install-target-libffi: installdirs
f41d6665 36515 @: $(MAKE); $(unstage)
8c90b13a
L
36516 @r=`${PWD_COMMAND}`; export r; \
36517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36518 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36519 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36520 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36521
60975492 36522@endif target-libffi
4977bab6 36523
455c8f48
RW
36524.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
36525maybe-install-strip-target-libffi:
36526@if target-libffi
36527maybe-install-strip-target-libffi: install-strip-target-libffi
36528
36529install-strip-target-libffi: installdirs
36530 @: $(MAKE); $(unstage)
36531 @r=`${PWD_COMMAND}`; export r; \
36532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36533 $(NORMAL_TARGET_EXPORTS) \
36534 (cd $(TARGET_SUBDIR)/libffi && \
36535 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36536
36537@endif target-libffi
36538
b5422ad7 36539# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
36540
36541.PHONY: maybe-info-target-libffi info-target-libffi
36542maybe-info-target-libffi:
60975492
PB
36543@if target-libffi
36544maybe-info-target-libffi: info-target-libffi
295f4e42
NN
36545
36546info-target-libffi: \
05750653 36547 configure-target-libffi
f41d6665 36548 @: $(MAKE); $(unstage)
295f4e42
NN
36549 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36550 r=`${PWD_COMMAND}`; export r; \
36551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36552 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36553 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
36554 for flag in $(EXTRA_TARGET_FLAGS); do \
36555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36556 done; \
36557 (cd $(TARGET_SUBDIR)/libffi && \
36558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36560 "RANLIB=$${RANLIB}" \
901119ae 36561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36562 info) \
295f4e42
NN
36563 || exit 1
36564
60975492 36565@endif target-libffi
295f4e42
NN
36566
36567.PHONY: maybe-dvi-target-libffi dvi-target-libffi
36568maybe-dvi-target-libffi:
60975492
PB
36569@if target-libffi
36570maybe-dvi-target-libffi: dvi-target-libffi
295f4e42
NN
36571
36572dvi-target-libffi: \
05750653 36573 configure-target-libffi
f41d6665 36574 @: $(MAKE); $(unstage)
295f4e42
NN
36575 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36576 r=`${PWD_COMMAND}`; export r; \
36577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36578 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36579 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
36580 for flag in $(EXTRA_TARGET_FLAGS); do \
36581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36582 done; \
36583 (cd $(TARGET_SUBDIR)/libffi && \
36584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36586 "RANLIB=$${RANLIB}" \
901119ae 36587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36588 dvi) \
295f4e42
NN
36589 || exit 1
36590
60975492 36591@endif target-libffi
295f4e42 36592
b5422ad7
BM
36593.PHONY: maybe-pdf-target-libffi pdf-target-libffi
36594maybe-pdf-target-libffi:
36595@if target-libffi
36596maybe-pdf-target-libffi: pdf-target-libffi
36597
36598pdf-target-libffi: \
36599 configure-target-libffi
36600 @: $(MAKE); $(unstage)
36601 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36602 r=`${PWD_COMMAND}`; export r; \
36603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36604 $(NORMAL_TARGET_EXPORTS) \
36605 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
36606 for flag in $(EXTRA_TARGET_FLAGS); do \
36607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36608 done; \
36609 (cd $(TARGET_SUBDIR)/libffi && \
36610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36612 "RANLIB=$${RANLIB}" \
901119ae 36613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
36614 pdf) \
36615 || exit 1
36616
36617@endif target-libffi
36618
f87a2b2e
MS
36619.PHONY: maybe-html-target-libffi html-target-libffi
36620maybe-html-target-libffi:
36621@if target-libffi
36622maybe-html-target-libffi: html-target-libffi
36623
36624html-target-libffi: \
05750653 36625 configure-target-libffi
f41d6665 36626 @: $(MAKE); $(unstage)
f87a2b2e
MS
36627 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36628 r=`${PWD_COMMAND}`; export r; \
36629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36630 $(NORMAL_TARGET_EXPORTS) \
36631 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
36632 for flag in $(EXTRA_TARGET_FLAGS); do \
36633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36634 done; \
36635 (cd $(TARGET_SUBDIR)/libffi && \
36636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36638 "RANLIB=$${RANLIB}" \
901119ae 36639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
36640 html) \
36641 || exit 1
36642
36643@endif target-libffi
36644
295f4e42
NN
36645.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
36646maybe-TAGS-target-libffi:
60975492
PB
36647@if target-libffi
36648maybe-TAGS-target-libffi: TAGS-target-libffi
295f4e42
NN
36649
36650TAGS-target-libffi: \
05750653 36651 configure-target-libffi
f41d6665 36652 @: $(MAKE); $(unstage)
295f4e42
NN
36653 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36654 r=`${PWD_COMMAND}`; export r; \
36655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36656 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36657 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
36658 for flag in $(EXTRA_TARGET_FLAGS); do \
36659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36660 done; \
36661 (cd $(TARGET_SUBDIR)/libffi && \
36662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36664 "RANLIB=$${RANLIB}" \
901119ae 36665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36666 TAGS) \
295f4e42
NN
36667 || exit 1
36668
60975492 36669@endif target-libffi
295f4e42
NN
36670
36671.PHONY: maybe-install-info-target-libffi install-info-target-libffi
36672maybe-install-info-target-libffi:
60975492
PB
36673@if target-libffi
36674maybe-install-info-target-libffi: install-info-target-libffi
295f4e42
NN
36675
36676install-info-target-libffi: \
36677 configure-target-libffi \
05750653 36678 info-target-libffi
f41d6665 36679 @: $(MAKE); $(unstage)
295f4e42
NN
36680 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36681 r=`${PWD_COMMAND}`; export r; \
36682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36683 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36684 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
36685 for flag in $(EXTRA_TARGET_FLAGS); do \
36686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36687 done; \
36688 (cd $(TARGET_SUBDIR)/libffi && \
36689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36691 "RANLIB=$${RANLIB}" \
901119ae 36692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36693 install-info) \
295f4e42
NN
36694 || exit 1
36695
60975492 36696@endif target-libffi
295f4e42 36697
9c4d2493
BM
36698.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
36699maybe-install-pdf-target-libffi:
36700@if target-libffi
36701maybe-install-pdf-target-libffi: install-pdf-target-libffi
36702
36703install-pdf-target-libffi: \
36704 configure-target-libffi \
36705 pdf-target-libffi
36706 @: $(MAKE); $(unstage)
36707 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36708 r=`${PWD_COMMAND}`; export r; \
36709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36710 $(NORMAL_TARGET_EXPORTS) \
36711 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
36712 for flag in $(EXTRA_TARGET_FLAGS); do \
36713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36714 done; \
36715 (cd $(TARGET_SUBDIR)/libffi && \
36716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36718 "RANLIB=$${RANLIB}" \
901119ae 36719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
36720 install-pdf) \
36721 || exit 1
36722
36723@endif target-libffi
36724
65d6e994
CD
36725.PHONY: maybe-install-html-target-libffi install-html-target-libffi
36726maybe-install-html-target-libffi:
36727@if target-libffi
36728maybe-install-html-target-libffi: install-html-target-libffi
36729
36730install-html-target-libffi: \
36731 configure-target-libffi \
36732 html-target-libffi
36733 @: $(MAKE); $(unstage)
36734 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36735 r=`${PWD_COMMAND}`; export r; \
36736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36737 $(NORMAL_TARGET_EXPORTS) \
36738 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
36739 for flag in $(EXTRA_TARGET_FLAGS); do \
36740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36741 done; \
36742 (cd $(TARGET_SUBDIR)/libffi && \
36743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36745 "RANLIB=$${RANLIB}" \
901119ae 36746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
36747 install-html) \
36748 || exit 1
36749
36750@endif target-libffi
36751
295f4e42
NN
36752.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
36753maybe-installcheck-target-libffi:
60975492
PB
36754@if target-libffi
36755maybe-installcheck-target-libffi: installcheck-target-libffi
295f4e42
NN
36756
36757installcheck-target-libffi: \
05750653 36758 configure-target-libffi
f41d6665 36759 @: $(MAKE); $(unstage)
295f4e42
NN
36760 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36761 r=`${PWD_COMMAND}`; export r; \
36762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36763 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36764 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
36765 for flag in $(EXTRA_TARGET_FLAGS); do \
36766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36767 done; \
36768 (cd $(TARGET_SUBDIR)/libffi && \
36769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36771 "RANLIB=$${RANLIB}" \
901119ae 36772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36773 installcheck) \
295f4e42
NN
36774 || exit 1
36775
60975492 36776@endif target-libffi
295f4e42
NN
36777
36778.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
36779maybe-mostlyclean-target-libffi:
60975492
PB
36780@if target-libffi
36781maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
295f4e42 36782
05750653 36783mostlyclean-target-libffi:
f41d6665 36784 @: $(MAKE); $(unstage)
295f4e42
NN
36785 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36786 r=`${PWD_COMMAND}`; export r; \
36787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36788 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36789 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
36790 for flag in $(EXTRA_TARGET_FLAGS); do \
36791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36792 done; \
36793 (cd $(TARGET_SUBDIR)/libffi && \
36794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36796 "RANLIB=$${RANLIB}" \
901119ae 36797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36798 mostlyclean) \
295f4e42
NN
36799 || exit 1
36800
60975492 36801@endif target-libffi
295f4e42
NN
36802
36803.PHONY: maybe-clean-target-libffi clean-target-libffi
36804maybe-clean-target-libffi:
60975492
PB
36805@if target-libffi
36806maybe-clean-target-libffi: clean-target-libffi
295f4e42 36807
05750653 36808clean-target-libffi:
f41d6665 36809 @: $(MAKE); $(unstage)
295f4e42
NN
36810 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36811 r=`${PWD_COMMAND}`; export r; \
36812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36813 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36814 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
36815 for flag in $(EXTRA_TARGET_FLAGS); do \
36816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36817 done; \
36818 (cd $(TARGET_SUBDIR)/libffi && \
36819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36821 "RANLIB=$${RANLIB}" \
901119ae 36822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36823 clean) \
295f4e42
NN
36824 || exit 1
36825
60975492 36826@endif target-libffi
295f4e42
NN
36827
36828.PHONY: maybe-distclean-target-libffi distclean-target-libffi
36829maybe-distclean-target-libffi:
60975492
PB
36830@if target-libffi
36831maybe-distclean-target-libffi: distclean-target-libffi
295f4e42 36832
05750653 36833distclean-target-libffi:
f41d6665 36834 @: $(MAKE); $(unstage)
295f4e42
NN
36835 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36836 r=`${PWD_COMMAND}`; export r; \
36837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36838 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36839 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
36840 for flag in $(EXTRA_TARGET_FLAGS); do \
36841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36842 done; \
36843 (cd $(TARGET_SUBDIR)/libffi && \
36844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36846 "RANLIB=$${RANLIB}" \
901119ae 36847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36848 distclean) \
295f4e42
NN
36849 || exit 1
36850
60975492 36851@endif target-libffi
295f4e42
NN
36852
36853.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
36854maybe-maintainer-clean-target-libffi:
60975492
PB
36855@if target-libffi
36856maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
295f4e42 36857
05750653 36858maintainer-clean-target-libffi:
f41d6665 36859 @: $(MAKE); $(unstage)
295f4e42
NN
36860 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36861 r=`${PWD_COMMAND}`; export r; \
36862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36863 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36864 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
36865 for flag in $(EXTRA_TARGET_FLAGS); do \
36866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36867 done; \
36868 (cd $(TARGET_SUBDIR)/libffi && \
36869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36871 "RANLIB=$${RANLIB}" \
901119ae 36872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 36873 maintainer-clean) \
295f4e42
NN
36874 || exit 1
36875
60975492 36876@endif target-libffi
295f4e42
NN
36877
36878
4977bab6 36879
25b42232 36880
4977bab6 36881
25b42232
PB
36882.PHONY: configure-target-libjava maybe-configure-target-libjava
36883maybe-configure-target-libjava:
3ff3adad
PB
36884@if gcc-bootstrap
36885configure-target-libjava: stage_current
36886@endif gcc-bootstrap
25b42232
PB
36887@if target-libjava
36888maybe-configure-target-libjava: configure-target-libjava
cc11cc9b 36889configure-target-libjava:
f41d6665
DJ
36890 @: $(MAKE); $(unstage)
36891 @r=`${PWD_COMMAND}`; export r; \
36892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36893 echo "Checking multilib configuration for libjava..."; \
36894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
36895 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
36896 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
36897 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
36898 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
36899 else \
36900 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
36901 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
36902 fi; \
36903 else \
36904 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
cc11cc9b
PB
36905 fi; \
36906 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
295f4e42 36907 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
f61428ed 36908 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36909 echo Configuring in $(TARGET_SUBDIR)/libjava; \
36910 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3aa83176 36911 case $(srcdir) in \
215c351a
PB
36912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36913 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
36914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36915 esac; \
215c351a
PB
36916 srcdiroption="--srcdir=$${topdir}/libjava"; \
36917 libsrcdir="$$s/libjava"; \
3aa83176
NN
36918 rm -f no-such-file || : ; \
36919 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b 36920 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
a4a2c37d 36921 --target=${target_alias} $${srcdiroption} $(EXTRA_CONFIGARGS_LIBJAVA) \
3aa83176 36922 || exit 1
60975492 36923@endif target-libjava
4977bab6 36924
25b42232
PB
36925
36926
ce406537
PB
36927
36928
295f4e42
NN
36929.PHONY: all-target-libjava maybe-all-target-libjava
36930maybe-all-target-libjava:
3ff3adad
PB
36931@if gcc-bootstrap
36932all-target-libjava: stage_current
36933@endif gcc-bootstrap
60975492 36934@if target-libjava
7c27e184 36935TARGET-target-libjava=all
60975492 36936maybe-all-target-libjava: all-target-libjava
295f4e42 36937all-target-libjava: configure-target-libjava
f41d6665 36938 @: $(MAKE); $(unstage)
8c90b13a
L
36939 @r=`${PWD_COMMAND}`; export r; \
36940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 36941 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36942 (cd $(TARGET_SUBDIR)/libjava && \
1c8bd6a3
PB
36943 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36944 $(TARGET-target-libjava))
60975492 36945@endif target-libjava
4977bab6 36946
25b42232
PB
36947
36948
ce406537
PB
36949
36950
295f4e42
NN
36951.PHONY: check-target-libjava maybe-check-target-libjava
36952maybe-check-target-libjava:
60975492
PB
36953@if target-libjava
36954maybe-check-target-libjava: check-target-libjava
7e2dbcef 36955
295f4e42 36956check-target-libjava:
f41d6665 36957 @: $(MAKE); $(unstage)
295f4e42
NN
36958 @r=`${PWD_COMMAND}`; export r; \
36959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36960 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36961 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36962 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 36963
60975492 36964@endif target-libjava
4977bab6 36965
295f4e42
NN
36966.PHONY: install-target-libjava maybe-install-target-libjava
36967maybe-install-target-libjava:
60975492
PB
36968@if target-libjava
36969maybe-install-target-libjava: install-target-libjava
7e2dbcef 36970
295f4e42 36971install-target-libjava: installdirs
f41d6665 36972 @: $(MAKE); $(unstage)
8c90b13a
L
36973 @r=`${PWD_COMMAND}`; export r; \
36974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36975 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36976 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36977 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36978
60975492 36979@endif target-libjava
4977bab6 36980
455c8f48
RW
36981.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
36982maybe-install-strip-target-libjava:
36983@if target-libjava
36984maybe-install-strip-target-libjava: install-strip-target-libjava
36985
36986install-strip-target-libjava: installdirs
36987 @: $(MAKE); $(unstage)
36988 @r=`${PWD_COMMAND}`; export r; \
36989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36990 $(RAW_CXX_TARGET_EXPORTS) \
36991 (cd $(TARGET_SUBDIR)/libjava && \
36992 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36993
36994@endif target-libjava
36995
b5422ad7 36996# Other targets (info, dvi, pdf, etc.)
4977bab6 36997
295f4e42
NN
36998.PHONY: maybe-info-target-libjava info-target-libjava
36999maybe-info-target-libjava:
60975492
PB
37000@if target-libjava
37001maybe-info-target-libjava: info-target-libjava
4977bab6 37002
295f4e42 37003info-target-libjava: \
05750653 37004 configure-target-libjava
f41d6665 37005 @: $(MAKE); $(unstage)
295f4e42 37006 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
37007 r=`${PWD_COMMAND}`; export r; \
37008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37009 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37010 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
37011 for flag in $(EXTRA_TARGET_FLAGS); do \
37012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37013 done; \
37014 (cd $(TARGET_SUBDIR)/libjava && \
37015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37017 "RANLIB=$${RANLIB}" \
901119ae 37018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37019 info) \
3aa83176 37020 || exit 1
4977bab6 37021
60975492 37022@endif target-libjava
295f4e42
NN
37023
37024.PHONY: maybe-dvi-target-libjava dvi-target-libjava
37025maybe-dvi-target-libjava:
60975492
PB
37026@if target-libjava
37027maybe-dvi-target-libjava: dvi-target-libjava
295f4e42
NN
37028
37029dvi-target-libjava: \
05750653 37030 configure-target-libjava
f41d6665 37031 @: $(MAKE); $(unstage)
295f4e42
NN
37032 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37033 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37035 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37036 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
37037 for flag in $(EXTRA_TARGET_FLAGS); do \
37038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37039 done; \
37040 (cd $(TARGET_SUBDIR)/libjava && \
37041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37043 "RANLIB=$${RANLIB}" \
901119ae 37044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37045 dvi) \
295f4e42 37046 || exit 1
4977bab6 37047
60975492 37048@endif target-libjava
7e2dbcef 37049
b5422ad7
BM
37050.PHONY: maybe-pdf-target-libjava pdf-target-libjava
37051maybe-pdf-target-libjava:
37052@if target-libjava
37053maybe-pdf-target-libjava: pdf-target-libjava
37054
37055pdf-target-libjava: \
37056 configure-target-libjava
37057 @: $(MAKE); $(unstage)
37058 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37059 r=`${PWD_COMMAND}`; export r; \
37060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37061 $(RAW_CXX_TARGET_EXPORTS) \
37062 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
37063 for flag in $(EXTRA_TARGET_FLAGS); do \
37064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37065 done; \
37066 (cd $(TARGET_SUBDIR)/libjava && \
37067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37069 "RANLIB=$${RANLIB}" \
901119ae 37070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
37071 pdf) \
37072 || exit 1
37073
37074@endif target-libjava
37075
f87a2b2e
MS
37076.PHONY: maybe-html-target-libjava html-target-libjava
37077maybe-html-target-libjava:
37078@if target-libjava
37079maybe-html-target-libjava: html-target-libjava
37080
37081html-target-libjava: \
05750653 37082 configure-target-libjava
f41d6665 37083 @: $(MAKE); $(unstage)
f87a2b2e
MS
37084 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37085 r=`${PWD_COMMAND}`; export r; \
37086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37087 $(RAW_CXX_TARGET_EXPORTS) \
37088 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
37089 for flag in $(EXTRA_TARGET_FLAGS); do \
37090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37091 done; \
37092 (cd $(TARGET_SUBDIR)/libjava && \
37093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37095 "RANLIB=$${RANLIB}" \
901119ae 37096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
37097 html) \
37098 || exit 1
37099
37100@endif target-libjava
37101
295f4e42
NN
37102.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
37103maybe-TAGS-target-libjava:
60975492
PB
37104@if target-libjava
37105maybe-TAGS-target-libjava: TAGS-target-libjava
295f4e42
NN
37106
37107TAGS-target-libjava: \
05750653 37108 configure-target-libjava
f41d6665 37109 @: $(MAKE); $(unstage)
295f4e42
NN
37110 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37111 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37113 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37114 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
37115 for flag in $(EXTRA_TARGET_FLAGS); do \
37116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37117 done; \
37118 (cd $(TARGET_SUBDIR)/libjava && \
37119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37121 "RANLIB=$${RANLIB}" \
901119ae 37122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37123 TAGS) \
295f4e42 37124 || exit 1
4977bab6 37125
60975492 37126@endif target-libjava
4977bab6 37127
295f4e42
NN
37128.PHONY: maybe-install-info-target-libjava install-info-target-libjava
37129maybe-install-info-target-libjava:
60975492
PB
37130@if target-libjava
37131maybe-install-info-target-libjava: install-info-target-libjava
7e2dbcef 37132
295f4e42
NN
37133install-info-target-libjava: \
37134 configure-target-libjava \
05750653 37135 info-target-libjava
f41d6665 37136 @: $(MAKE); $(unstage)
295f4e42
NN
37137 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37138 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37140 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37141 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
37142 for flag in $(EXTRA_TARGET_FLAGS); do \
37143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37144 done; \
37145 (cd $(TARGET_SUBDIR)/libjava && \
37146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37148 "RANLIB=$${RANLIB}" \
901119ae 37149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37150 install-info) \
295f4e42 37151 || exit 1
4977bab6 37152
60975492 37153@endif target-libjava
4977bab6 37154
9c4d2493
BM
37155.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
37156maybe-install-pdf-target-libjava:
37157@if target-libjava
37158maybe-install-pdf-target-libjava: install-pdf-target-libjava
37159
37160install-pdf-target-libjava: \
37161 configure-target-libjava \
37162 pdf-target-libjava
37163 @: $(MAKE); $(unstage)
37164 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37165 r=`${PWD_COMMAND}`; export r; \
37166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37167 $(RAW_CXX_TARGET_EXPORTS) \
37168 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
37169 for flag in $(EXTRA_TARGET_FLAGS); do \
37170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37171 done; \
37172 (cd $(TARGET_SUBDIR)/libjava && \
37173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37175 "RANLIB=$${RANLIB}" \
901119ae 37176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
37177 install-pdf) \
37178 || exit 1
37179
37180@endif target-libjava
37181
65d6e994
CD
37182.PHONY: maybe-install-html-target-libjava install-html-target-libjava
37183maybe-install-html-target-libjava:
37184@if target-libjava
37185maybe-install-html-target-libjava: install-html-target-libjava
37186
37187install-html-target-libjava: \
37188 configure-target-libjava \
37189 html-target-libjava
37190 @: $(MAKE); $(unstage)
37191 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37192 r=`${PWD_COMMAND}`; export r; \
37193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37194 $(RAW_CXX_TARGET_EXPORTS) \
37195 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
37196 for flag in $(EXTRA_TARGET_FLAGS); do \
37197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37198 done; \
37199 (cd $(TARGET_SUBDIR)/libjava && \
37200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37202 "RANLIB=$${RANLIB}" \
901119ae 37203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
37204 install-html) \
37205 || exit 1
37206
37207@endif target-libjava
37208
295f4e42
NN
37209.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
37210maybe-installcheck-target-libjava:
60975492
PB
37211@if target-libjava
37212maybe-installcheck-target-libjava: installcheck-target-libjava
4977bab6 37213
295f4e42 37214installcheck-target-libjava: \
05750653 37215 configure-target-libjava
f41d6665 37216 @: $(MAKE); $(unstage)
295f4e42
NN
37217 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37218 r=`${PWD_COMMAND}`; export r; \
37219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37220 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37221 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
37222 for flag in $(EXTRA_TARGET_FLAGS); do \
37223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37224 done; \
37225 (cd $(TARGET_SUBDIR)/libjava && \
37226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37228 "RANLIB=$${RANLIB}" \
901119ae 37229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37230 installcheck) \
295f4e42 37231 || exit 1
4977bab6 37232
60975492 37233@endif target-libjava
295f4e42
NN
37234
37235.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
37236maybe-mostlyclean-target-libjava:
60975492
PB
37237@if target-libjava
37238maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
295f4e42 37239
05750653 37240mostlyclean-target-libjava:
f41d6665 37241 @: $(MAKE); $(unstage)
295f4e42
NN
37242 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37243 r=`${PWD_COMMAND}`; export r; \
37244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37245 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37246 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
37247 for flag in $(EXTRA_TARGET_FLAGS); do \
37248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37249 done; \
37250 (cd $(TARGET_SUBDIR)/libjava && \
37251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37253 "RANLIB=$${RANLIB}" \
901119ae 37254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37255 mostlyclean) \
295f4e42
NN
37256 || exit 1
37257
60975492 37258@endif target-libjava
295f4e42
NN
37259
37260.PHONY: maybe-clean-target-libjava clean-target-libjava
37261maybe-clean-target-libjava:
60975492
PB
37262@if target-libjava
37263maybe-clean-target-libjava: clean-target-libjava
295f4e42 37264
05750653 37265clean-target-libjava:
f41d6665 37266 @: $(MAKE); $(unstage)
295f4e42 37267 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
37268 r=`${PWD_COMMAND}`; export r; \
37269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37270 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37271 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
37272 for flag in $(EXTRA_TARGET_FLAGS); do \
37273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37274 done; \
37275 (cd $(TARGET_SUBDIR)/libjava && \
37276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37278 "RANLIB=$${RANLIB}" \
901119ae 37279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37280 clean) \
3aa83176 37281 || exit 1
4977bab6 37282
60975492 37283@endif target-libjava
4977bab6 37284
295f4e42
NN
37285.PHONY: maybe-distclean-target-libjava distclean-target-libjava
37286maybe-distclean-target-libjava:
60975492
PB
37287@if target-libjava
37288maybe-distclean-target-libjava: distclean-target-libjava
7e2dbcef 37289
05750653 37290distclean-target-libjava:
f41d6665 37291 @: $(MAKE); $(unstage)
295f4e42
NN
37292 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37293 r=`${PWD_COMMAND}`; export r; \
37294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37295 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37296 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
37297 for flag in $(EXTRA_TARGET_FLAGS); do \
37298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37299 done; \
37300 (cd $(TARGET_SUBDIR)/libjava && \
37301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37303 "RANLIB=$${RANLIB}" \
901119ae 37304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37305 distclean) \
295f4e42 37306 || exit 1
4977bab6 37307
60975492 37308@endif target-libjava
4977bab6 37309
295f4e42
NN
37310.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
37311maybe-maintainer-clean-target-libjava:
60975492
PB
37312@if target-libjava
37313maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
7e2dbcef 37314
05750653 37315maintainer-clean-target-libjava:
f41d6665 37316 @: $(MAKE); $(unstage)
295f4e42
NN
37317 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
37318 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37320 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
37321 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
37322 for flag in $(EXTRA_TARGET_FLAGS); do \
37323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37324 done; \
37325 (cd $(TARGET_SUBDIR)/libjava && \
37326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37328 "RANLIB=$${RANLIB}" \
901119ae 37329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37330 maintainer-clean) \
295f4e42 37331 || exit 1
4977bab6 37332
60975492 37333@endif target-libjava
4977bab6 37334
295f4e42 37335
4977bab6 37336
25b42232 37337
4977bab6 37338
25b42232
PB
37339.PHONY: configure-target-zlib maybe-configure-target-zlib
37340maybe-configure-target-zlib:
3ff3adad
PB
37341@if gcc-bootstrap
37342configure-target-zlib: stage_current
37343@endif gcc-bootstrap
25b42232
PB
37344@if target-zlib
37345maybe-configure-target-zlib: configure-target-zlib
cc11cc9b 37346configure-target-zlib:
f41d6665
DJ
37347 @: $(MAKE); $(unstage)
37348 @r=`${PWD_COMMAND}`; export r; \
37349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37350 echo "Checking multilib configuration for zlib..."; \
37351 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
37352 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
37353 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
37354 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
37355 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
37356 else \
37357 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
37358 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
37359 fi; \
37360 else \
37361 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
cc11cc9b
PB
37362 fi; \
37363 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
295f4e42 37364 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
f61428ed 37365 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37366 echo Configuring in $(TARGET_SUBDIR)/zlib; \
37367 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3aa83176 37368 case $(srcdir) in \
215c351a
PB
37369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37370 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
37371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37372 esac; \
215c351a
PB
37373 srcdiroption="--srcdir=$${topdir}/zlib"; \
37374 libsrcdir="$$s/zlib"; \
3aa83176
NN
37375 rm -f no-such-file || : ; \
37376 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
37377 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37378 --target=${target_alias} $${srcdiroption} \
3aa83176 37379 || exit 1
60975492 37380@endif target-zlib
4977bab6 37381
25b42232
PB
37382
37383
ce406537
PB
37384
37385
295f4e42
NN
37386.PHONY: all-target-zlib maybe-all-target-zlib
37387maybe-all-target-zlib:
3ff3adad
PB
37388@if gcc-bootstrap
37389all-target-zlib: stage_current
37390@endif gcc-bootstrap
60975492 37391@if target-zlib
7c27e184 37392TARGET-target-zlib=all
60975492 37393maybe-all-target-zlib: all-target-zlib
295f4e42 37394all-target-zlib: configure-target-zlib
f41d6665 37395 @: $(MAKE); $(unstage)
8c90b13a
L
37396 @r=`${PWD_COMMAND}`; export r; \
37397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 37398 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37399 (cd $(TARGET_SUBDIR)/zlib && \
1c8bd6a3
PB
37400 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37401 $(TARGET-target-zlib))
60975492 37402@endif target-zlib
4977bab6 37403
25b42232
PB
37404
37405
ce406537
PB
37406
37407
295f4e42
NN
37408.PHONY: check-target-zlib maybe-check-target-zlib
37409maybe-check-target-zlib:
60975492
PB
37410@if target-zlib
37411maybe-check-target-zlib: check-target-zlib
7e2dbcef 37412
295f4e42 37413check-target-zlib:
f41d6665 37414 @: $(MAKE); $(unstage)
8c90b13a
L
37415 @r=`${PWD_COMMAND}`; export r; \
37416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37417 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37418 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 37419 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37420
60975492 37421@endif target-zlib
4977bab6 37422
295f4e42
NN
37423.PHONY: install-target-zlib maybe-install-target-zlib
37424maybe-install-target-zlib:
60975492
PB
37425@if target-zlib
37426maybe-install-target-zlib: install-target-zlib
7e2dbcef 37427
295f4e42 37428install-target-zlib: installdirs
f41d6665 37429 @: $(MAKE); $(unstage)
8c90b13a
L
37430 @r=`${PWD_COMMAND}`; export r; \
37431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37432 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37433 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 37434 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 37435
60975492 37436@endif target-zlib
4977bab6 37437
455c8f48
RW
37438.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
37439maybe-install-strip-target-zlib:
37440@if target-zlib
37441maybe-install-strip-target-zlib: install-strip-target-zlib
37442
37443install-strip-target-zlib: installdirs
37444 @: $(MAKE); $(unstage)
37445 @r=`${PWD_COMMAND}`; export r; \
37446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37447 $(NORMAL_TARGET_EXPORTS) \
37448 (cd $(TARGET_SUBDIR)/zlib && \
37449 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37450
37451@endif target-zlib
37452
b5422ad7 37453# Other targets (info, dvi, pdf, etc.)
4977bab6 37454
295f4e42
NN
37455.PHONY: maybe-info-target-zlib info-target-zlib
37456maybe-info-target-zlib:
60975492
PB
37457@if target-zlib
37458maybe-info-target-zlib: info-target-zlib
4977bab6 37459
295f4e42 37460info-target-zlib: \
05750653 37461 configure-target-zlib
f41d6665 37462 @: $(MAKE); $(unstage)
295f4e42 37463 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37464 r=`${PWD_COMMAND}`; export r; \
37465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37466 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37467 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
37468 for flag in $(EXTRA_TARGET_FLAGS); do \
37469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37470 done; \
37471 (cd $(TARGET_SUBDIR)/zlib && \
37472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37474 "RANLIB=$${RANLIB}" \
901119ae 37475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37476 info) \
3aa83176 37477 || exit 1
4977bab6 37478
60975492 37479@endif target-zlib
4977bab6 37480
295f4e42
NN
37481.PHONY: maybe-dvi-target-zlib dvi-target-zlib
37482maybe-dvi-target-zlib:
60975492
PB
37483@if target-zlib
37484maybe-dvi-target-zlib: dvi-target-zlib
7e2dbcef 37485
295f4e42 37486dvi-target-zlib: \
05750653 37487 configure-target-zlib
f41d6665 37488 @: $(MAKE); $(unstage)
295f4e42
NN
37489 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37490 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37492 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37493 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
37494 for flag in $(EXTRA_TARGET_FLAGS); do \
37495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37496 done; \
37497 (cd $(TARGET_SUBDIR)/zlib && \
37498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37500 "RANLIB=$${RANLIB}" \
901119ae 37501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37502 dvi) \
295f4e42 37503 || exit 1
4977bab6 37504
60975492 37505@endif target-zlib
4977bab6 37506
b5422ad7
BM
37507.PHONY: maybe-pdf-target-zlib pdf-target-zlib
37508maybe-pdf-target-zlib:
37509@if target-zlib
37510maybe-pdf-target-zlib: pdf-target-zlib
37511
37512pdf-target-zlib: \
37513 configure-target-zlib
37514 @: $(MAKE); $(unstage)
37515 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37516 r=`${PWD_COMMAND}`; export r; \
37517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37518 $(NORMAL_TARGET_EXPORTS) \
37519 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
37520 for flag in $(EXTRA_TARGET_FLAGS); do \
37521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37522 done; \
37523 (cd $(TARGET_SUBDIR)/zlib && \
37524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37526 "RANLIB=$${RANLIB}" \
901119ae 37527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
37528 pdf) \
37529 || exit 1
37530
37531@endif target-zlib
37532
f87a2b2e
MS
37533.PHONY: maybe-html-target-zlib html-target-zlib
37534maybe-html-target-zlib:
37535@if target-zlib
37536maybe-html-target-zlib: html-target-zlib
37537
37538html-target-zlib: \
05750653 37539 configure-target-zlib
f41d6665 37540 @: $(MAKE); $(unstage)
f87a2b2e
MS
37541 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37542 r=`${PWD_COMMAND}`; export r; \
37543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37544 $(NORMAL_TARGET_EXPORTS) \
37545 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
37546 for flag in $(EXTRA_TARGET_FLAGS); do \
37547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37548 done; \
37549 (cd $(TARGET_SUBDIR)/zlib && \
37550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37552 "RANLIB=$${RANLIB}" \
901119ae 37553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
37554 html) \
37555 || exit 1
37556
37557@endif target-zlib
37558
295f4e42
NN
37559.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
37560maybe-TAGS-target-zlib:
60975492
PB
37561@if target-zlib
37562maybe-TAGS-target-zlib: TAGS-target-zlib
7e2dbcef 37563
295f4e42 37564TAGS-target-zlib: \
05750653 37565 configure-target-zlib
f41d6665 37566 @: $(MAKE); $(unstage)
295f4e42
NN
37567 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37568 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37570 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37571 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
37572 for flag in $(EXTRA_TARGET_FLAGS); do \
37573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37574 done; \
37575 (cd $(TARGET_SUBDIR)/zlib && \
37576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37578 "RANLIB=$${RANLIB}" \
901119ae 37579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37580 TAGS) \
295f4e42 37581 || exit 1
4977bab6 37582
60975492 37583@endif target-zlib
4977bab6 37584
295f4e42
NN
37585.PHONY: maybe-install-info-target-zlib install-info-target-zlib
37586maybe-install-info-target-zlib:
60975492
PB
37587@if target-zlib
37588maybe-install-info-target-zlib: install-info-target-zlib
4977bab6 37589
295f4e42
NN
37590install-info-target-zlib: \
37591 configure-target-zlib \
05750653 37592 info-target-zlib
f41d6665 37593 @: $(MAKE); $(unstage)
295f4e42 37594 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37595 r=`${PWD_COMMAND}`; export r; \
37596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37597 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37598 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
37599 for flag in $(EXTRA_TARGET_FLAGS); do \
37600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37601 done; \
37602 (cd $(TARGET_SUBDIR)/zlib && \
37603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37605 "RANLIB=$${RANLIB}" \
901119ae 37606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37607 install-info) \
3aa83176 37608 || exit 1
4977bab6 37609
60975492 37610@endif target-zlib
7e2dbcef 37611
9c4d2493
BM
37612.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
37613maybe-install-pdf-target-zlib:
37614@if target-zlib
37615maybe-install-pdf-target-zlib: install-pdf-target-zlib
37616
37617install-pdf-target-zlib: \
37618 configure-target-zlib \
37619 pdf-target-zlib
37620 @: $(MAKE); $(unstage)
37621 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37622 r=`${PWD_COMMAND}`; export r; \
37623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37624 $(NORMAL_TARGET_EXPORTS) \
37625 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
37626 for flag in $(EXTRA_TARGET_FLAGS); do \
37627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37628 done; \
37629 (cd $(TARGET_SUBDIR)/zlib && \
37630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37632 "RANLIB=$${RANLIB}" \
901119ae 37633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
37634 install-pdf) \
37635 || exit 1
37636
37637@endif target-zlib
37638
65d6e994
CD
37639.PHONY: maybe-install-html-target-zlib install-html-target-zlib
37640maybe-install-html-target-zlib:
37641@if target-zlib
37642maybe-install-html-target-zlib: install-html-target-zlib
37643
37644install-html-target-zlib: \
37645 configure-target-zlib \
37646 html-target-zlib
37647 @: $(MAKE); $(unstage)
37648 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37649 r=`${PWD_COMMAND}`; export r; \
37650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37651 $(NORMAL_TARGET_EXPORTS) \
37652 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
37653 for flag in $(EXTRA_TARGET_FLAGS); do \
37654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37655 done; \
37656 (cd $(TARGET_SUBDIR)/zlib && \
37657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37659 "RANLIB=$${RANLIB}" \
901119ae 37660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
37661 install-html) \
37662 || exit 1
37663
37664@endif target-zlib
37665
295f4e42
NN
37666.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
37667maybe-installcheck-target-zlib:
60975492
PB
37668@if target-zlib
37669maybe-installcheck-target-zlib: installcheck-target-zlib
4977bab6 37670
295f4e42 37671installcheck-target-zlib: \
05750653 37672 configure-target-zlib
f41d6665 37673 @: $(MAKE); $(unstage)
295f4e42
NN
37674 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37675 r=`${PWD_COMMAND}`; export r; \
37676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37677 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37678 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
37679 for flag in $(EXTRA_TARGET_FLAGS); do \
37680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37681 done; \
37682 (cd $(TARGET_SUBDIR)/zlib && \
37683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37685 "RANLIB=$${RANLIB}" \
901119ae 37686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37687 installcheck) \
295f4e42 37688 || exit 1
4977bab6 37689
60975492 37690@endif target-zlib
7e2dbcef 37691
295f4e42
NN
37692.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
37693maybe-mostlyclean-target-zlib:
60975492
PB
37694@if target-zlib
37695maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
4977bab6 37696
05750653 37697mostlyclean-target-zlib:
f41d6665 37698 @: $(MAKE); $(unstage)
295f4e42
NN
37699 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37700 r=`${PWD_COMMAND}`; export r; \
37701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37702 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37703 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
37704 for flag in $(EXTRA_TARGET_FLAGS); do \
37705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37706 done; \
37707 (cd $(TARGET_SUBDIR)/zlib && \
37708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37710 "RANLIB=$${RANLIB}" \
901119ae 37711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37712 mostlyclean) \
295f4e42 37713 || exit 1
4977bab6 37714
60975492 37715@endif target-zlib
4977bab6 37716
295f4e42
NN
37717.PHONY: maybe-clean-target-zlib clean-target-zlib
37718maybe-clean-target-zlib:
60975492
PB
37719@if target-zlib
37720maybe-clean-target-zlib: clean-target-zlib
4977bab6 37721
05750653 37722clean-target-zlib:
f41d6665 37723 @: $(MAKE); $(unstage)
295f4e42 37724 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37725 r=`${PWD_COMMAND}`; export r; \
37726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37727 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37728 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
37729 for flag in $(EXTRA_TARGET_FLAGS); do \
37730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37731 done; \
37732 (cd $(TARGET_SUBDIR)/zlib && \
37733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37735 "RANLIB=$${RANLIB}" \
901119ae 37736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37737 clean) \
3aa83176 37738 || exit 1
4977bab6 37739
60975492 37740@endif target-zlib
4977bab6 37741
295f4e42
NN
37742.PHONY: maybe-distclean-target-zlib distclean-target-zlib
37743maybe-distclean-target-zlib:
60975492
PB
37744@if target-zlib
37745maybe-distclean-target-zlib: distclean-target-zlib
7e2dbcef 37746
05750653 37747distclean-target-zlib:
f41d6665 37748 @: $(MAKE); $(unstage)
295f4e42
NN
37749 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37750 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37752 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37753 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
37754 for flag in $(EXTRA_TARGET_FLAGS); do \
37755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37756 done; \
37757 (cd $(TARGET_SUBDIR)/zlib && \
37758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37760 "RANLIB=$${RANLIB}" \
901119ae 37761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37762 distclean) \
295f4e42 37763 || exit 1
4977bab6 37764
60975492 37765@endif target-zlib
4977bab6 37766
295f4e42
NN
37767.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
37768maybe-maintainer-clean-target-zlib:
60975492
PB
37769@if target-zlib
37770maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
7e2dbcef 37771
05750653 37772maintainer-clean-target-zlib:
f41d6665 37773 @: $(MAKE); $(unstage)
295f4e42
NN
37774 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37775 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37777 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37778 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
37779 for flag in $(EXTRA_TARGET_FLAGS); do \
37780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37781 done; \
37782 (cd $(TARGET_SUBDIR)/zlib && \
37783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37785 "RANLIB=$${RANLIB}" \
901119ae 37786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37787 maintainer-clean) \
295f4e42 37788 || exit 1
4977bab6 37789
60975492 37790@endif target-zlib
4977bab6 37791
4977bab6 37792
295f4e42 37793
25b42232 37794
4977bab6 37795
25b42232
PB
37796.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
37797maybe-configure-target-boehm-gc:
3ff3adad
PB
37798@if gcc-bootstrap
37799configure-target-boehm-gc: stage_current
37800@endif gcc-bootstrap
25b42232
PB
37801@if target-boehm-gc
37802maybe-configure-target-boehm-gc: configure-target-boehm-gc
cc11cc9b 37803configure-target-boehm-gc:
f41d6665
DJ
37804 @: $(MAKE); $(unstage)
37805 @r=`${PWD_COMMAND}`; export r; \
37806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37807 echo "Checking multilib configuration for boehm-gc..."; \
37808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
37809 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
37810 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37811 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37812 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
37813 else \
37814 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
37815 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
37816 fi; \
37817 else \
37818 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
cc11cc9b
PB
37819 fi; \
37820 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
295f4e42 37821 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
f61428ed 37822 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37823 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
37824 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3aa83176 37825 case $(srcdir) in \
215c351a
PB
37826 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37827 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
37828 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37829 esac; \
215c351a
PB
37830 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
37831 libsrcdir="$$s/boehm-gc"; \
3aa83176
NN
37832 rm -f no-such-file || : ; \
37833 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
37834 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37835 --target=${target_alias} $${srcdiroption} \
3aa83176 37836 || exit 1
60975492 37837@endif target-boehm-gc
4977bab6 37838
25b42232
PB
37839
37840
ce406537
PB
37841
37842
295f4e42
NN
37843.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
37844maybe-all-target-boehm-gc:
3ff3adad
PB
37845@if gcc-bootstrap
37846all-target-boehm-gc: stage_current
37847@endif gcc-bootstrap
60975492 37848@if target-boehm-gc
7c27e184 37849TARGET-target-boehm-gc=all
60975492 37850maybe-all-target-boehm-gc: all-target-boehm-gc
295f4e42 37851all-target-boehm-gc: configure-target-boehm-gc
f41d6665 37852 @: $(MAKE); $(unstage)
8c90b13a
L
37853 @r=`${PWD_COMMAND}`; export r; \
37854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 37855 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37856 (cd $(TARGET_SUBDIR)/boehm-gc && \
1c8bd6a3
PB
37857 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37858 $(TARGET-target-boehm-gc))
60975492 37859@endif target-boehm-gc
4977bab6 37860
25b42232
PB
37861
37862
ce406537
PB
37863
37864
295f4e42
NN
37865.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
37866maybe-check-target-boehm-gc:
60975492
PB
37867@if target-boehm-gc
37868maybe-check-target-boehm-gc: check-target-boehm-gc
7e2dbcef 37869
295f4e42 37870check-target-boehm-gc:
f41d6665 37871 @: $(MAKE); $(unstage)
8c90b13a
L
37872 @r=`${PWD_COMMAND}`; export r; \
37873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37874 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37875 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37876 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37877
60975492 37878@endif target-boehm-gc
4977bab6 37879
295f4e42
NN
37880.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
37881maybe-install-target-boehm-gc:
60975492
PB
37882@if target-boehm-gc
37883maybe-install-target-boehm-gc: install-target-boehm-gc
7e2dbcef 37884
295f4e42 37885install-target-boehm-gc: installdirs
f41d6665 37886 @: $(MAKE); $(unstage)
8c90b13a
L
37887 @r=`${PWD_COMMAND}`; export r; \
37888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37889 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37890 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37891 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 37892
60975492 37893@endif target-boehm-gc
4977bab6 37894
455c8f48
RW
37895.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
37896maybe-install-strip-target-boehm-gc:
37897@if target-boehm-gc
37898maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
37899
37900install-strip-target-boehm-gc: installdirs
37901 @: $(MAKE); $(unstage)
37902 @r=`${PWD_COMMAND}`; export r; \
37903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37904 $(NORMAL_TARGET_EXPORTS) \
37905 (cd $(TARGET_SUBDIR)/boehm-gc && \
37906 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37907
37908@endif target-boehm-gc
37909
b5422ad7 37910# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
37911
37912.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
37913maybe-info-target-boehm-gc:
60975492
PB
37914@if target-boehm-gc
37915maybe-info-target-boehm-gc: info-target-boehm-gc
295f4e42
NN
37916
37917info-target-boehm-gc: \
05750653 37918 configure-target-boehm-gc
f41d6665 37919 @: $(MAKE); $(unstage)
295f4e42
NN
37920 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37921 r=`${PWD_COMMAND}`; export r; \
37922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37923 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37924 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
37925 for flag in $(EXTRA_TARGET_FLAGS); do \
37926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37927 done; \
37928 (cd $(TARGET_SUBDIR)/boehm-gc && \
37929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37931 "RANLIB=$${RANLIB}" \
901119ae 37932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37933 info) \
295f4e42
NN
37934 || exit 1
37935
60975492 37936@endif target-boehm-gc
295f4e42
NN
37937
37938.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
37939maybe-dvi-target-boehm-gc:
60975492
PB
37940@if target-boehm-gc
37941maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
295f4e42
NN
37942
37943dvi-target-boehm-gc: \
05750653 37944 configure-target-boehm-gc
f41d6665 37945 @: $(MAKE); $(unstage)
295f4e42
NN
37946 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37947 r=`${PWD_COMMAND}`; export r; \
37948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37949 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37950 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
37951 for flag in $(EXTRA_TARGET_FLAGS); do \
37952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37953 done; \
37954 (cd $(TARGET_SUBDIR)/boehm-gc && \
37955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37957 "RANLIB=$${RANLIB}" \
901119ae 37958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 37959 dvi) \
295f4e42
NN
37960 || exit 1
37961
60975492 37962@endif target-boehm-gc
295f4e42 37963
b5422ad7
BM
37964.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
37965maybe-pdf-target-boehm-gc:
37966@if target-boehm-gc
37967maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
37968
37969pdf-target-boehm-gc: \
37970 configure-target-boehm-gc
37971 @: $(MAKE); $(unstage)
37972 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37973 r=`${PWD_COMMAND}`; export r; \
37974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37975 $(NORMAL_TARGET_EXPORTS) \
37976 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
37977 for flag in $(EXTRA_TARGET_FLAGS); do \
37978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37979 done; \
37980 (cd $(TARGET_SUBDIR)/boehm-gc && \
37981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37983 "RANLIB=$${RANLIB}" \
901119ae 37984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
37985 pdf) \
37986 || exit 1
37987
37988@endif target-boehm-gc
37989
f87a2b2e
MS
37990.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
37991maybe-html-target-boehm-gc:
37992@if target-boehm-gc
37993maybe-html-target-boehm-gc: html-target-boehm-gc
37994
37995html-target-boehm-gc: \
05750653 37996 configure-target-boehm-gc
f41d6665 37997 @: $(MAKE); $(unstage)
f87a2b2e
MS
37998 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37999 r=`${PWD_COMMAND}`; export r; \
38000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38001 $(NORMAL_TARGET_EXPORTS) \
38002 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
38003 for flag in $(EXTRA_TARGET_FLAGS); do \
38004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38005 done; \
38006 (cd $(TARGET_SUBDIR)/boehm-gc && \
38007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38009 "RANLIB=$${RANLIB}" \
901119ae 38010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
38011 html) \
38012 || exit 1
38013
38014@endif target-boehm-gc
38015
295f4e42
NN
38016.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
38017maybe-TAGS-target-boehm-gc:
60975492
PB
38018@if target-boehm-gc
38019maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
295f4e42
NN
38020
38021TAGS-target-boehm-gc: \
05750653 38022 configure-target-boehm-gc
f41d6665 38023 @: $(MAKE); $(unstage)
295f4e42
NN
38024 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38025 r=`${PWD_COMMAND}`; export r; \
38026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38027 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38028 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
38029 for flag in $(EXTRA_TARGET_FLAGS); do \
38030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38031 done; \
38032 (cd $(TARGET_SUBDIR)/boehm-gc && \
38033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38035 "RANLIB=$${RANLIB}" \
901119ae 38036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38037 TAGS) \
295f4e42
NN
38038 || exit 1
38039
60975492 38040@endif target-boehm-gc
295f4e42
NN
38041
38042.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
38043maybe-install-info-target-boehm-gc:
60975492
PB
38044@if target-boehm-gc
38045maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
295f4e42
NN
38046
38047install-info-target-boehm-gc: \
38048 configure-target-boehm-gc \
05750653 38049 info-target-boehm-gc
f41d6665 38050 @: $(MAKE); $(unstage)
295f4e42
NN
38051 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38052 r=`${PWD_COMMAND}`; export r; \
38053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38054 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38055 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
38056 for flag in $(EXTRA_TARGET_FLAGS); do \
38057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38058 done; \
38059 (cd $(TARGET_SUBDIR)/boehm-gc && \
38060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38062 "RANLIB=$${RANLIB}" \
901119ae 38063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38064 install-info) \
295f4e42
NN
38065 || exit 1
38066
60975492 38067@endif target-boehm-gc
295f4e42 38068
9c4d2493
BM
38069.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
38070maybe-install-pdf-target-boehm-gc:
38071@if target-boehm-gc
38072maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
38073
38074install-pdf-target-boehm-gc: \
38075 configure-target-boehm-gc \
38076 pdf-target-boehm-gc
38077 @: $(MAKE); $(unstage)
38078 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38079 r=`${PWD_COMMAND}`; export r; \
38080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38081 $(NORMAL_TARGET_EXPORTS) \
38082 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
38083 for flag in $(EXTRA_TARGET_FLAGS); do \
38084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38085 done; \
38086 (cd $(TARGET_SUBDIR)/boehm-gc && \
38087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38089 "RANLIB=$${RANLIB}" \
901119ae 38090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
38091 install-pdf) \
38092 || exit 1
38093
38094@endif target-boehm-gc
38095
65d6e994
CD
38096.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
38097maybe-install-html-target-boehm-gc:
38098@if target-boehm-gc
38099maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
38100
38101install-html-target-boehm-gc: \
38102 configure-target-boehm-gc \
38103 html-target-boehm-gc
38104 @: $(MAKE); $(unstage)
38105 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38106 r=`${PWD_COMMAND}`; export r; \
38107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38108 $(NORMAL_TARGET_EXPORTS) \
38109 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
38110 for flag in $(EXTRA_TARGET_FLAGS); do \
38111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38112 done; \
38113 (cd $(TARGET_SUBDIR)/boehm-gc && \
38114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38116 "RANLIB=$${RANLIB}" \
901119ae 38117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
38118 install-html) \
38119 || exit 1
38120
38121@endif target-boehm-gc
38122
295f4e42
NN
38123.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
38124maybe-installcheck-target-boehm-gc:
60975492
PB
38125@if target-boehm-gc
38126maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
295f4e42
NN
38127
38128installcheck-target-boehm-gc: \
05750653 38129 configure-target-boehm-gc
f41d6665 38130 @: $(MAKE); $(unstage)
295f4e42
NN
38131 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38132 r=`${PWD_COMMAND}`; export r; \
38133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38134 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38135 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
38136 for flag in $(EXTRA_TARGET_FLAGS); do \
38137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38138 done; \
38139 (cd $(TARGET_SUBDIR)/boehm-gc && \
38140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38142 "RANLIB=$${RANLIB}" \
901119ae 38143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38144 installcheck) \
295f4e42
NN
38145 || exit 1
38146
60975492 38147@endif target-boehm-gc
295f4e42
NN
38148
38149.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
38150maybe-mostlyclean-target-boehm-gc:
60975492
PB
38151@if target-boehm-gc
38152maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
295f4e42 38153
05750653 38154mostlyclean-target-boehm-gc:
f41d6665 38155 @: $(MAKE); $(unstage)
295f4e42
NN
38156 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38157 r=`${PWD_COMMAND}`; export r; \
38158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38159 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38160 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
38161 for flag in $(EXTRA_TARGET_FLAGS); do \
38162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38163 done; \
38164 (cd $(TARGET_SUBDIR)/boehm-gc && \
38165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38167 "RANLIB=$${RANLIB}" \
901119ae 38168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38169 mostlyclean) \
295f4e42
NN
38170 || exit 1
38171
60975492 38172@endif target-boehm-gc
295f4e42
NN
38173
38174.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
38175maybe-clean-target-boehm-gc:
60975492
PB
38176@if target-boehm-gc
38177maybe-clean-target-boehm-gc: clean-target-boehm-gc
295f4e42 38178
05750653 38179clean-target-boehm-gc:
f41d6665 38180 @: $(MAKE); $(unstage)
295f4e42
NN
38181 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38182 r=`${PWD_COMMAND}`; export r; \
38183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38184 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38185 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
38186 for flag in $(EXTRA_TARGET_FLAGS); do \
38187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38188 done; \
38189 (cd $(TARGET_SUBDIR)/boehm-gc && \
38190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38192 "RANLIB=$${RANLIB}" \
901119ae 38193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38194 clean) \
295f4e42
NN
38195 || exit 1
38196
60975492 38197@endif target-boehm-gc
295f4e42
NN
38198
38199.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
38200maybe-distclean-target-boehm-gc:
60975492
PB
38201@if target-boehm-gc
38202maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
295f4e42 38203
05750653 38204distclean-target-boehm-gc:
f41d6665 38205 @: $(MAKE); $(unstage)
295f4e42
NN
38206 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38207 r=`${PWD_COMMAND}`; export r; \
38208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38209 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38210 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
38211 for flag in $(EXTRA_TARGET_FLAGS); do \
38212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38213 done; \
38214 (cd $(TARGET_SUBDIR)/boehm-gc && \
38215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38217 "RANLIB=$${RANLIB}" \
901119ae 38218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38219 distclean) \
295f4e42
NN
38220 || exit 1
38221
60975492 38222@endif target-boehm-gc
295f4e42
NN
38223
38224.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
38225maybe-maintainer-clean-target-boehm-gc:
60975492
PB
38226@if target-boehm-gc
38227maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
295f4e42 38228
05750653 38229maintainer-clean-target-boehm-gc:
f41d6665 38230 @: $(MAKE); $(unstage)
295f4e42
NN
38231 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
38232 r=`${PWD_COMMAND}`; export r; \
38233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38234 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38235 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
38236 for flag in $(EXTRA_TARGET_FLAGS); do \
38237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38238 done; \
38239 (cd $(TARGET_SUBDIR)/boehm-gc && \
38240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38242 "RANLIB=$${RANLIB}" \
901119ae 38243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38244 maintainer-clean) \
295f4e42
NN
38245 || exit 1
38246
60975492 38247@endif target-boehm-gc
295f4e42
NN
38248
38249
4977bab6 38250
4977bab6 38251
25b42232 38252
25b42232
PB
38253.PHONY: configure-target-rda maybe-configure-target-rda
38254maybe-configure-target-rda:
3ff3adad
PB
38255@if gcc-bootstrap
38256configure-target-rda: stage_current
38257@endif gcc-bootstrap
25b42232
PB
38258@if target-rda
38259maybe-configure-target-rda: configure-target-rda
cc11cc9b 38260configure-target-rda:
f41d6665
DJ
38261 @: $(MAKE); $(unstage)
38262 @r=`${PWD_COMMAND}`; export r; \
38263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38264 echo "Checking multilib configuration for rda..."; \
38265 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
38266 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
38267 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
38268 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
38269 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
38270 else \
38271 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
38272 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
38273 fi; \
38274 else \
38275 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
cc11cc9b
PB
38276 fi; \
38277 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
295f4e42 38278 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
f61428ed 38279 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38280 echo Configuring in $(TARGET_SUBDIR)/rda; \
38281 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3aa83176 38282 case $(srcdir) in \
215c351a
PB
38283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38284 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
38285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38286 esac; \
215c351a
PB
38287 srcdiroption="--srcdir=$${topdir}/rda"; \
38288 libsrcdir="$$s/rda"; \
3aa83176
NN
38289 rm -f no-such-file || : ; \
38290 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
38291 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38292 --target=${target_alias} $${srcdiroption} \
3aa83176 38293 || exit 1
60975492 38294@endif target-rda
4977bab6 38295
25b42232
PB
38296
38297
ce406537
PB
38298
38299
295f4e42
NN
38300.PHONY: all-target-rda maybe-all-target-rda
38301maybe-all-target-rda:
3ff3adad
PB
38302@if gcc-bootstrap
38303all-target-rda: stage_current
38304@endif gcc-bootstrap
60975492 38305@if target-rda
7c27e184 38306TARGET-target-rda=all
60975492 38307maybe-all-target-rda: all-target-rda
295f4e42 38308all-target-rda: configure-target-rda
f41d6665 38309 @: $(MAKE); $(unstage)
8c90b13a
L
38310 @r=`${PWD_COMMAND}`; export r; \
38311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 38312 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38313 (cd $(TARGET_SUBDIR)/rda && \
1c8bd6a3
PB
38314 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38315 $(TARGET-target-rda))
60975492 38316@endif target-rda
4977bab6 38317
25b42232
PB
38318
38319
ce406537
PB
38320
38321
295f4e42
NN
38322.PHONY: check-target-rda maybe-check-target-rda
38323maybe-check-target-rda:
60975492
PB
38324@if target-rda
38325maybe-check-target-rda: check-target-rda
7e2dbcef 38326
295f4e42 38327check-target-rda:
f41d6665 38328 @: $(MAKE); $(unstage)
8c90b13a
L
38329 @r=`${PWD_COMMAND}`; export r; \
38330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38331 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38332 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 38333 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 38334
60975492 38335@endif target-rda
4977bab6 38336
295f4e42
NN
38337.PHONY: install-target-rda maybe-install-target-rda
38338maybe-install-target-rda:
60975492
PB
38339@if target-rda
38340maybe-install-target-rda: install-target-rda
7e2dbcef 38341
295f4e42 38342install-target-rda: installdirs
f41d6665 38343 @: $(MAKE); $(unstage)
8c90b13a
L
38344 @r=`${PWD_COMMAND}`; export r; \
38345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38346 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38347 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 38348 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 38349
60975492 38350@endif target-rda
4977bab6 38351
455c8f48
RW
38352.PHONY: install-strip-target-rda maybe-install-strip-target-rda
38353maybe-install-strip-target-rda:
38354@if target-rda
38355maybe-install-strip-target-rda: install-strip-target-rda
38356
38357install-strip-target-rda: installdirs
38358 @: $(MAKE); $(unstage)
38359 @r=`${PWD_COMMAND}`; export r; \
38360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38361 $(NORMAL_TARGET_EXPORTS) \
38362 (cd $(TARGET_SUBDIR)/rda && \
38363 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38364
38365@endif target-rda
38366
b5422ad7 38367# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
38368
38369.PHONY: maybe-info-target-rda info-target-rda
38370maybe-info-target-rda:
60975492
PB
38371@if target-rda
38372maybe-info-target-rda: info-target-rda
295f4e42
NN
38373
38374info-target-rda: \
05750653 38375 configure-target-rda
f41d6665 38376 @: $(MAKE); $(unstage)
295f4e42
NN
38377 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38378 r=`${PWD_COMMAND}`; export r; \
38379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38380 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38381 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
38382 for flag in $(EXTRA_TARGET_FLAGS); do \
38383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38384 done; \
38385 (cd $(TARGET_SUBDIR)/rda && \
38386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38388 "RANLIB=$${RANLIB}" \
901119ae 38389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38390 info) \
295f4e42
NN
38391 || exit 1
38392
60975492 38393@endif target-rda
295f4e42
NN
38394
38395.PHONY: maybe-dvi-target-rda dvi-target-rda
38396maybe-dvi-target-rda:
60975492
PB
38397@if target-rda
38398maybe-dvi-target-rda: dvi-target-rda
295f4e42
NN
38399
38400dvi-target-rda: \
05750653 38401 configure-target-rda
f41d6665 38402 @: $(MAKE); $(unstage)
295f4e42
NN
38403 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38404 r=`${PWD_COMMAND}`; export r; \
38405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38406 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38407 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
38408 for flag in $(EXTRA_TARGET_FLAGS); do \
38409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38410 done; \
38411 (cd $(TARGET_SUBDIR)/rda && \
38412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38414 "RANLIB=$${RANLIB}" \
901119ae 38415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38416 dvi) \
295f4e42
NN
38417 || exit 1
38418
60975492 38419@endif target-rda
295f4e42 38420
b5422ad7
BM
38421.PHONY: maybe-pdf-target-rda pdf-target-rda
38422maybe-pdf-target-rda:
38423@if target-rda
38424maybe-pdf-target-rda: pdf-target-rda
38425
38426pdf-target-rda: \
38427 configure-target-rda
38428 @: $(MAKE); $(unstage)
38429 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38430 r=`${PWD_COMMAND}`; export r; \
38431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38432 $(NORMAL_TARGET_EXPORTS) \
38433 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
38434 for flag in $(EXTRA_TARGET_FLAGS); do \
38435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38436 done; \
38437 (cd $(TARGET_SUBDIR)/rda && \
38438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38440 "RANLIB=$${RANLIB}" \
901119ae 38441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
38442 pdf) \
38443 || exit 1
38444
38445@endif target-rda
38446
f87a2b2e
MS
38447.PHONY: maybe-html-target-rda html-target-rda
38448maybe-html-target-rda:
38449@if target-rda
38450maybe-html-target-rda: html-target-rda
38451
38452html-target-rda: \
05750653 38453 configure-target-rda
f41d6665 38454 @: $(MAKE); $(unstage)
f87a2b2e
MS
38455 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38456 r=`${PWD_COMMAND}`; export r; \
38457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38458 $(NORMAL_TARGET_EXPORTS) \
38459 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
38460 for flag in $(EXTRA_TARGET_FLAGS); do \
38461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38462 done; \
38463 (cd $(TARGET_SUBDIR)/rda && \
38464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38466 "RANLIB=$${RANLIB}" \
901119ae 38467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
38468 html) \
38469 || exit 1
38470
38471@endif target-rda
38472
295f4e42
NN
38473.PHONY: maybe-TAGS-target-rda TAGS-target-rda
38474maybe-TAGS-target-rda:
60975492
PB
38475@if target-rda
38476maybe-TAGS-target-rda: TAGS-target-rda
295f4e42
NN
38477
38478TAGS-target-rda: \
05750653 38479 configure-target-rda
f41d6665 38480 @: $(MAKE); $(unstage)
295f4e42
NN
38481 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38482 r=`${PWD_COMMAND}`; export r; \
38483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38484 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38485 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
38486 for flag in $(EXTRA_TARGET_FLAGS); do \
38487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38488 done; \
38489 (cd $(TARGET_SUBDIR)/rda && \
38490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38492 "RANLIB=$${RANLIB}" \
901119ae 38493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38494 TAGS) \
295f4e42
NN
38495 || exit 1
38496
60975492 38497@endif target-rda
295f4e42
NN
38498
38499.PHONY: maybe-install-info-target-rda install-info-target-rda
38500maybe-install-info-target-rda:
60975492
PB
38501@if target-rda
38502maybe-install-info-target-rda: install-info-target-rda
295f4e42
NN
38503
38504install-info-target-rda: \
38505 configure-target-rda \
05750653 38506 info-target-rda
f41d6665 38507 @: $(MAKE); $(unstage)
295f4e42
NN
38508 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38509 r=`${PWD_COMMAND}`; export r; \
38510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38511 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38512 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
38513 for flag in $(EXTRA_TARGET_FLAGS); do \
38514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38515 done; \
38516 (cd $(TARGET_SUBDIR)/rda && \
38517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38519 "RANLIB=$${RANLIB}" \
901119ae 38520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38521 install-info) \
295f4e42
NN
38522 || exit 1
38523
60975492 38524@endif target-rda
295f4e42 38525
9c4d2493
BM
38526.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
38527maybe-install-pdf-target-rda:
38528@if target-rda
38529maybe-install-pdf-target-rda: install-pdf-target-rda
38530
38531install-pdf-target-rda: \
38532 configure-target-rda \
38533 pdf-target-rda
38534 @: $(MAKE); $(unstage)
38535 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38536 r=`${PWD_COMMAND}`; export r; \
38537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38538 $(NORMAL_TARGET_EXPORTS) \
38539 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
38540 for flag in $(EXTRA_TARGET_FLAGS); do \
38541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38542 done; \
38543 (cd $(TARGET_SUBDIR)/rda && \
38544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38546 "RANLIB=$${RANLIB}" \
901119ae 38547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
38548 install-pdf) \
38549 || exit 1
38550
38551@endif target-rda
38552
65d6e994
CD
38553.PHONY: maybe-install-html-target-rda install-html-target-rda
38554maybe-install-html-target-rda:
38555@if target-rda
38556maybe-install-html-target-rda: install-html-target-rda
38557
38558install-html-target-rda: \
38559 configure-target-rda \
38560 html-target-rda
38561 @: $(MAKE); $(unstage)
38562 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38563 r=`${PWD_COMMAND}`; export r; \
38564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38565 $(NORMAL_TARGET_EXPORTS) \
38566 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
38567 for flag in $(EXTRA_TARGET_FLAGS); do \
38568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38569 done; \
38570 (cd $(TARGET_SUBDIR)/rda && \
38571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38573 "RANLIB=$${RANLIB}" \
901119ae 38574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
38575 install-html) \
38576 || exit 1
38577
38578@endif target-rda
38579
295f4e42
NN
38580.PHONY: maybe-installcheck-target-rda installcheck-target-rda
38581maybe-installcheck-target-rda:
60975492
PB
38582@if target-rda
38583maybe-installcheck-target-rda: installcheck-target-rda
295f4e42
NN
38584
38585installcheck-target-rda: \
05750653 38586 configure-target-rda
f41d6665 38587 @: $(MAKE); $(unstage)
295f4e42
NN
38588 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38589 r=`${PWD_COMMAND}`; export r; \
38590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38591 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38592 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
38593 for flag in $(EXTRA_TARGET_FLAGS); do \
38594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38595 done; \
38596 (cd $(TARGET_SUBDIR)/rda && \
38597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38599 "RANLIB=$${RANLIB}" \
901119ae 38600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38601 installcheck) \
295f4e42
NN
38602 || exit 1
38603
60975492 38604@endif target-rda
295f4e42
NN
38605
38606.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
38607maybe-mostlyclean-target-rda:
60975492
PB
38608@if target-rda
38609maybe-mostlyclean-target-rda: mostlyclean-target-rda
295f4e42 38610
05750653 38611mostlyclean-target-rda:
f41d6665 38612 @: $(MAKE); $(unstage)
295f4e42
NN
38613 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38614 r=`${PWD_COMMAND}`; export r; \
38615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38616 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38617 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
38618 for flag in $(EXTRA_TARGET_FLAGS); do \
38619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38620 done; \
38621 (cd $(TARGET_SUBDIR)/rda && \
38622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38624 "RANLIB=$${RANLIB}" \
901119ae 38625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38626 mostlyclean) \
295f4e42
NN
38627 || exit 1
38628
60975492 38629@endif target-rda
295f4e42
NN
38630
38631.PHONY: maybe-clean-target-rda clean-target-rda
38632maybe-clean-target-rda:
60975492
PB
38633@if target-rda
38634maybe-clean-target-rda: clean-target-rda
295f4e42 38635
05750653 38636clean-target-rda:
f41d6665 38637 @: $(MAKE); $(unstage)
295f4e42
NN
38638 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38639 r=`${PWD_COMMAND}`; export r; \
38640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38641 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38642 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
38643 for flag in $(EXTRA_TARGET_FLAGS); do \
38644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38645 done; \
38646 (cd $(TARGET_SUBDIR)/rda && \
38647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38649 "RANLIB=$${RANLIB}" \
901119ae 38650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38651 clean) \
295f4e42
NN
38652 || exit 1
38653
60975492 38654@endif target-rda
295f4e42
NN
38655
38656.PHONY: maybe-distclean-target-rda distclean-target-rda
38657maybe-distclean-target-rda:
60975492
PB
38658@if target-rda
38659maybe-distclean-target-rda: distclean-target-rda
295f4e42 38660
05750653 38661distclean-target-rda:
f41d6665 38662 @: $(MAKE); $(unstage)
295f4e42
NN
38663 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38664 r=`${PWD_COMMAND}`; export r; \
38665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38666 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38667 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
38668 for flag in $(EXTRA_TARGET_FLAGS); do \
38669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38670 done; \
38671 (cd $(TARGET_SUBDIR)/rda && \
38672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38674 "RANLIB=$${RANLIB}" \
901119ae 38675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38676 distclean) \
295f4e42
NN
38677 || exit 1
38678
60975492 38679@endif target-rda
295f4e42
NN
38680
38681.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
38682maybe-maintainer-clean-target-rda:
60975492
PB
38683@if target-rda
38684maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
295f4e42 38685
05750653 38686maintainer-clean-target-rda:
f41d6665 38687 @: $(MAKE); $(unstage)
295f4e42
NN
38688 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38689 r=`${PWD_COMMAND}`; export r; \
38690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38691 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38692 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
38693 for flag in $(EXTRA_TARGET_FLAGS); do \
38694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38695 done; \
38696 (cd $(TARGET_SUBDIR)/rda && \
38697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38699 "RANLIB=$${RANLIB}" \
901119ae 38700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38701 maintainer-clean) \
295f4e42
NN
38702 || exit 1
38703
60975492 38704@endif target-rda
295f4e42
NN
38705
38706
4977bab6 38707
25b42232
PB
38708
38709
38710.PHONY: configure-target-libada maybe-configure-target-libada
38711maybe-configure-target-libada:
3ff3adad
PB
38712@if gcc-bootstrap
38713configure-target-libada: stage_current
38714@endif gcc-bootstrap
25b42232
PB
38715@if target-libada
38716maybe-configure-target-libada: configure-target-libada
cc11cc9b 38717configure-target-libada:
f41d6665
DJ
38718 @: $(MAKE); $(unstage)
38719 @r=`${PWD_COMMAND}`; export r; \
38720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38721 echo "Checking multilib configuration for libada..."; \
38722 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
38723 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
38724 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
38725 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
38726 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
38727 else \
38728 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
38729 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
38730 fi; \
38731 else \
38732 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
cc11cc9b
PB
38733 fi; \
38734 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
295f4e42 38735 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
f61428ed 38736 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38737 echo Configuring in $(TARGET_SUBDIR)/libada; \
38738 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
3aa83176 38739 case $(srcdir) in \
215c351a
PB
38740 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38741 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
38742 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38743 esac; \
215c351a
PB
38744 srcdiroption="--srcdir=$${topdir}/libada"; \
38745 libsrcdir="$$s/libada"; \
3aa83176
NN
38746 rm -f no-such-file || : ; \
38747 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
38748 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38749 --target=${target_alias} $${srcdiroption} \
3aa83176 38750 || exit 1
60975492 38751@endif target-libada
4977bab6 38752
25b42232
PB
38753
38754
ce406537
PB
38755
38756
295f4e42
NN
38757.PHONY: all-target-libada maybe-all-target-libada
38758maybe-all-target-libada:
3ff3adad
PB
38759@if gcc-bootstrap
38760all-target-libada: stage_current
38761@endif gcc-bootstrap
60975492 38762@if target-libada
7c27e184 38763TARGET-target-libada=all
60975492 38764maybe-all-target-libada: all-target-libada
295f4e42 38765all-target-libada: configure-target-libada
f41d6665 38766 @: $(MAKE); $(unstage)
8c90b13a
L
38767 @r=`${PWD_COMMAND}`; export r; \
38768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 38769 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38770 (cd $(TARGET_SUBDIR)/libada && \
1c8bd6a3
PB
38771 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38772 $(TARGET-target-libada))
60975492 38773@endif target-libada
6599da04 38774
25b42232
PB
38775
38776
ce406537
PB
38777
38778
295f4e42
NN
38779.PHONY: check-target-libada maybe-check-target-libada
38780maybe-check-target-libada:
60975492
PB
38781@if target-libada
38782maybe-check-target-libada: check-target-libada
7e2dbcef 38783
295f4e42 38784check-target-libada:
f41d6665 38785 @: $(MAKE); $(unstage)
8c90b13a
L
38786 @r=`${PWD_COMMAND}`; export r; \
38787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38788 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38789 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38790 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 38791
60975492 38792@endif target-libada
4977bab6 38793
295f4e42
NN
38794.PHONY: install-target-libada maybe-install-target-libada
38795maybe-install-target-libada:
60975492
PB
38796@if target-libada
38797maybe-install-target-libada: install-target-libada
7e2dbcef 38798
295f4e42 38799install-target-libada: installdirs
f41d6665 38800 @: $(MAKE); $(unstage)
8c90b13a
L
38801 @r=`${PWD_COMMAND}`; export r; \
38802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38803 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38804 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38805 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 38806
60975492 38807@endif target-libada
4977bab6 38808
455c8f48
RW
38809.PHONY: install-strip-target-libada maybe-install-strip-target-libada
38810maybe-install-strip-target-libada:
38811@if target-libada
38812maybe-install-strip-target-libada: install-strip-target-libada
38813
38814install-strip-target-libada: installdirs
38815 @: $(MAKE); $(unstage)
38816 @r=`${PWD_COMMAND}`; export r; \
38817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38818 $(NORMAL_TARGET_EXPORTS) \
38819 (cd $(TARGET_SUBDIR)/libada && \
38820 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38821
38822@endif target-libada
38823
b5422ad7 38824# Other targets (info, dvi, pdf, etc.)
4977bab6 38825
295f4e42
NN
38826.PHONY: maybe-info-target-libada info-target-libada
38827maybe-info-target-libada:
60975492
PB
38828@if target-libada
38829maybe-info-target-libada: info-target-libada
4977bab6 38830
295f4e42 38831info-target-libada: \
05750653 38832 configure-target-libada
f41d6665 38833 @: $(MAKE); $(unstage)
295f4e42 38834 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
8c90b13a
L
38835 r=`${PWD_COMMAND}`; export r; \
38836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38837 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38838 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
38839 for flag in $(EXTRA_TARGET_FLAGS); do \
38840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38841 done; \
38842 (cd $(TARGET_SUBDIR)/libada && \
38843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38845 "RANLIB=$${RANLIB}" \
901119ae 38846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38847 info) \
3aa83176 38848 || exit 1
4977bab6 38849
60975492 38850@endif target-libada
295f4e42
NN
38851
38852.PHONY: maybe-dvi-target-libada dvi-target-libada
38853maybe-dvi-target-libada:
60975492
PB
38854@if target-libada
38855maybe-dvi-target-libada: dvi-target-libada
295f4e42
NN
38856
38857dvi-target-libada: \
05750653 38858 configure-target-libada
f41d6665 38859 @: $(MAKE); $(unstage)
295f4e42
NN
38860 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38861 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38863 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38864 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
38865 for flag in $(EXTRA_TARGET_FLAGS); do \
38866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38867 done; \
38868 (cd $(TARGET_SUBDIR)/libada && \
38869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38871 "RANLIB=$${RANLIB}" \
901119ae 38872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38873 dvi) \
295f4e42 38874 || exit 1
6599da04 38875
60975492 38876@endif target-libada
7e2dbcef 38877
b5422ad7
BM
38878.PHONY: maybe-pdf-target-libada pdf-target-libada
38879maybe-pdf-target-libada:
38880@if target-libada
38881maybe-pdf-target-libada: pdf-target-libada
38882
38883pdf-target-libada: \
38884 configure-target-libada
38885 @: $(MAKE); $(unstage)
38886 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38887 r=`${PWD_COMMAND}`; export r; \
38888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38889 $(NORMAL_TARGET_EXPORTS) \
38890 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
38891 for flag in $(EXTRA_TARGET_FLAGS); do \
38892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38893 done; \
38894 (cd $(TARGET_SUBDIR)/libada && \
38895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38897 "RANLIB=$${RANLIB}" \
901119ae 38898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
38899 pdf) \
38900 || exit 1
38901
38902@endif target-libada
38903
f87a2b2e
MS
38904.PHONY: maybe-html-target-libada html-target-libada
38905maybe-html-target-libada:
38906@if target-libada
38907maybe-html-target-libada: html-target-libada
38908
38909html-target-libada: \
05750653 38910 configure-target-libada
f41d6665 38911 @: $(MAKE); $(unstage)
f87a2b2e
MS
38912 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38913 r=`${PWD_COMMAND}`; export r; \
38914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38915 $(NORMAL_TARGET_EXPORTS) \
38916 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
38917 for flag in $(EXTRA_TARGET_FLAGS); do \
38918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38919 done; \
38920 (cd $(TARGET_SUBDIR)/libada && \
38921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38923 "RANLIB=$${RANLIB}" \
901119ae 38924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
f87a2b2e
MS
38925 html) \
38926 || exit 1
38927
38928@endif target-libada
38929
295f4e42
NN
38930.PHONY: maybe-TAGS-target-libada TAGS-target-libada
38931maybe-TAGS-target-libada:
60975492
PB
38932@if target-libada
38933maybe-TAGS-target-libada: TAGS-target-libada
295f4e42
NN
38934
38935TAGS-target-libada: \
05750653 38936 configure-target-libada
f41d6665 38937 @: $(MAKE); $(unstage)
295f4e42
NN
38938 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38939 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38941 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38942 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
38943 for flag in $(EXTRA_TARGET_FLAGS); do \
38944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38945 done; \
38946 (cd $(TARGET_SUBDIR)/libada && \
38947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38949 "RANLIB=$${RANLIB}" \
901119ae 38950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38951 TAGS) \
295f4e42 38952 || exit 1
6599da04 38953
60975492 38954@endif target-libada
6599da04 38955
295f4e42
NN
38956.PHONY: maybe-install-info-target-libada install-info-target-libada
38957maybe-install-info-target-libada:
60975492
PB
38958@if target-libada
38959maybe-install-info-target-libada: install-info-target-libada
7e2dbcef 38960
295f4e42
NN
38961install-info-target-libada: \
38962 configure-target-libada \
05750653 38963 info-target-libada
f41d6665 38964 @: $(MAKE); $(unstage)
295f4e42
NN
38965 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38966 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38968 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38969 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
38970 for flag in $(EXTRA_TARGET_FLAGS); do \
38971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38972 done; \
38973 (cd $(TARGET_SUBDIR)/libada && \
38974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38976 "RANLIB=$${RANLIB}" \
901119ae 38977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 38978 install-info) \
295f4e42 38979 || exit 1
6599da04 38980
60975492 38981@endif target-libada
6599da04 38982
9c4d2493
BM
38983.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
38984maybe-install-pdf-target-libada:
38985@if target-libada
38986maybe-install-pdf-target-libada: install-pdf-target-libada
38987
38988install-pdf-target-libada: \
38989 configure-target-libada \
38990 pdf-target-libada
38991 @: $(MAKE); $(unstage)
38992 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38993 r=`${PWD_COMMAND}`; export r; \
38994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38995 $(NORMAL_TARGET_EXPORTS) \
38996 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
38997 for flag in $(EXTRA_TARGET_FLAGS); do \
38998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38999 done; \
39000 (cd $(TARGET_SUBDIR)/libada && \
39001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39003 "RANLIB=$${RANLIB}" \
901119ae 39004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
39005 install-pdf) \
39006 || exit 1
39007
39008@endif target-libada
39009
65d6e994
CD
39010.PHONY: maybe-install-html-target-libada install-html-target-libada
39011maybe-install-html-target-libada:
39012@if target-libada
39013maybe-install-html-target-libada: install-html-target-libada
39014
39015install-html-target-libada: \
39016 configure-target-libada \
39017 html-target-libada
39018 @: $(MAKE); $(unstage)
39019 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
39020 r=`${PWD_COMMAND}`; export r; \
39021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39022 $(NORMAL_TARGET_EXPORTS) \
39023 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
39024 for flag in $(EXTRA_TARGET_FLAGS); do \
39025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39026 done; \
39027 (cd $(TARGET_SUBDIR)/libada && \
39028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39030 "RANLIB=$${RANLIB}" \
901119ae 39031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
39032 install-html) \
39033 || exit 1
39034
39035@endif target-libada
39036
295f4e42
NN
39037.PHONY: maybe-installcheck-target-libada installcheck-target-libada
39038maybe-installcheck-target-libada:
60975492
PB
39039@if target-libada
39040maybe-installcheck-target-libada: installcheck-target-libada
d9cdb878 39041
295f4e42 39042installcheck-target-libada: \
05750653 39043 configure-target-libada
f41d6665 39044 @: $(MAKE); $(unstage)
295f4e42
NN
39045 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
39046 r=`${PWD_COMMAND}`; export r; \
39047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39048 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39049 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
39050 for flag in $(EXTRA_TARGET_FLAGS); do \
39051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39052 done; \
39053 (cd $(TARGET_SUBDIR)/libada && \
39054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39056 "RANLIB=$${RANLIB}" \
901119ae 39057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 39058 installcheck) \
295f4e42 39059 || exit 1
d9cdb878 39060
60975492 39061@endif target-libada
295f4e42
NN
39062
39063.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
39064maybe-mostlyclean-target-libada:
60975492
PB
39065@if target-libada
39066maybe-mostlyclean-target-libada: mostlyclean-target-libada
295f4e42 39067
05750653 39068mostlyclean-target-libada:
f41d6665 39069 @: $(MAKE); $(unstage)
295f4e42 39070 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
d9cdb878
AC
39071 r=`${PWD_COMMAND}`; export r; \
39072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39073 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39074 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
39075 for flag in $(EXTRA_TARGET_FLAGS); do \
39076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39077 done; \
39078 (cd $(TARGET_SUBDIR)/libada && \
39079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39081 "RANLIB=$${RANLIB}" \
901119ae 39082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 39083 mostlyclean) \
d9cdb878
AC
39084 || exit 1
39085
60975492 39086@endif target-libada
295f4e42
NN
39087
39088.PHONY: maybe-clean-target-libada clean-target-libada
39089maybe-clean-target-libada:
60975492
PB
39090@if target-libada
39091maybe-clean-target-libada: clean-target-libada
295f4e42 39092
05750653 39093clean-target-libada:
f41d6665 39094 @: $(MAKE); $(unstage)
295f4e42
NN
39095 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
39096 r=`${PWD_COMMAND}`; export r; \
d9cdb878 39097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39098 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39099 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
39100 for flag in $(EXTRA_TARGET_FLAGS); do \
39101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39102 done; \
d9cdb878 39103 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
39104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39106 "RANLIB=$${RANLIB}" \
901119ae 39107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 39108 clean) \
295f4e42 39109 || exit 1
d9cdb878 39110
60975492 39111@endif target-libada
d9cdb878 39112
295f4e42
NN
39113.PHONY: maybe-distclean-target-libada distclean-target-libada
39114maybe-distclean-target-libada:
60975492
PB
39115@if target-libada
39116maybe-distclean-target-libada: distclean-target-libada
295f4e42 39117
05750653 39118distclean-target-libada:
f41d6665 39119 @: $(MAKE); $(unstage)
295f4e42
NN
39120 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
39121 r=`${PWD_COMMAND}`; export r; \
d9cdb878 39122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39123 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39124 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
39125 for flag in $(EXTRA_TARGET_FLAGS); do \
39126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39127 done; \
d9cdb878 39128 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
39129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39131 "RANLIB=$${RANLIB}" \
901119ae 39132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 39133 distclean) \
295f4e42 39134 || exit 1
d9cdb878 39135
60975492 39136@endif target-libada
d9cdb878 39137
295f4e42
NN
39138.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
39139maybe-maintainer-clean-target-libada:
60975492
PB
39140@if target-libada
39141maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d9cdb878 39142
05750653 39143maintainer-clean-target-libada:
f41d6665 39144 @: $(MAKE); $(unstage)
295f4e42
NN
39145 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
39146 r=`${PWD_COMMAND}`; export r; \
d9cdb878 39147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39148 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39149 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
39150 for flag in $(EXTRA_TARGET_FLAGS); do \
39151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39152 done; \
d9cdb878 39153 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
39154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39156 "RANLIB=$${RANLIB}" \
901119ae 39157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a52a0a7f 39158 maintainer-clean) \
295f4e42
NN
39159 || exit 1
39160
60975492 39161@endif target-libada
d9cdb878
AC
39162
39163
4977bab6 39164
953ff289
DN
39165
39166
39167.PHONY: configure-target-libgomp maybe-configure-target-libgomp
39168maybe-configure-target-libgomp:
3ff3adad
PB
39169@if gcc-bootstrap
39170configure-target-libgomp: stage_current
39171@endif gcc-bootstrap
953ff289
DN
39172@if target-libgomp
39173maybe-configure-target-libgomp: configure-target-libgomp
cc11cc9b 39174configure-target-libgomp:
953ff289
DN
39175 @r=`${PWD_COMMAND}`; export r; \
39176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39177 echo "Checking multilib configuration for libgomp..."; \
39178 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39179 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39180 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39181 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39182 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39183 else \
39184 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39185 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39186 fi; \
39187 else \
39188 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
cc11cc9b
PB
39189 fi; \
39190 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
953ff289 39191 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
f61428ed 39192 $(NORMAL_TARGET_EXPORTS) \
953ff289
DN
39193 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
39194 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
39195 case $(srcdir) in \
39196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39197 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39199 esac; \
39200 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39201 libsrcdir="$$s/libgomp"; \
39202 rm -f no-such-file || : ; \
39203 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
e69bf64b
PB
39204 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39205 --target=${target_alias} $${srcdiroption} \
953ff289
DN
39206 || exit 1
39207@endif target-libgomp
39208
39209
39210
aae29963
JR
39211.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
39212maybe-configure-stage1-target-libgomp:
39213@if target-libgomp-bootstrap
39214maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
39215configure-stage1-target-libgomp:
39216 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39217 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39218 @r=`${PWD_COMMAND}`; export r; \
39219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39220 TFLAGS="$(STAGE1_TFLAGS)"; \
39221 echo "Checking multilib configuration for libgomp..."; \
39222 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39223 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39224 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39225 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39226 else \
39227 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39228 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39229 fi; \
39230 else \
39231 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39232 fi; \
39233 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39234 $(NORMAL_TARGET_EXPORTS) \
39235 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39236 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39237 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39238 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
39239 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39240 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39241 case $(srcdir) in \
39242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39243 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39245 esac; \
39246 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39247 libsrcdir="$$s/libgomp"; \
39248 $(SHELL) $${libsrcdir}/configure \
39249 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39250 --target=${target_alias} $${srcdiroption} \
39251 $(STAGE1_CONFIGURE_FLAGS)
39252@endif target-libgomp-bootstrap
39253
39254.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
39255maybe-configure-stage2-target-libgomp:
39256@if target-libgomp-bootstrap
39257maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
39258configure-stage2-target-libgomp:
39259 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39260 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39261 @r=`${PWD_COMMAND}`; export r; \
39262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39263 TFLAGS="$(STAGE2_TFLAGS)"; \
39264 echo "Checking multilib configuration for libgomp..."; \
39265 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39266 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39267 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39268 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39269 else \
39270 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39271 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39272 fi; \
39273 else \
39274 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39275 fi; \
39276 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39277 $(NORMAL_TARGET_EXPORTS) \
39278 \
39279 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39281 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39282 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
39283 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39284 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39285 case $(srcdir) in \
39286 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39287 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39288 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39289 esac; \
39290 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39291 libsrcdir="$$s/libgomp"; \
39292 $(SHELL) $${libsrcdir}/configure \
39293 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39294 --target=${target_alias} $${srcdiroption} \
39295 --with-build-libsubdir=$(HOST_SUBDIR) \
39296 $(STAGE2_CONFIGURE_FLAGS)
39297@endif target-libgomp-bootstrap
39298
39299.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
39300maybe-configure-stage3-target-libgomp:
39301@if target-libgomp-bootstrap
39302maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
39303configure-stage3-target-libgomp:
39304 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39305 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39306 @r=`${PWD_COMMAND}`; export r; \
39307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39308 TFLAGS="$(STAGE3_TFLAGS)"; \
39309 echo "Checking multilib configuration for libgomp..."; \
39310 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39311 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39312 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39313 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39314 else \
39315 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39316 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39317 fi; \
39318 else \
39319 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39320 fi; \
39321 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39322 $(NORMAL_TARGET_EXPORTS) \
39323 \
39324 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39325 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39326 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39327 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
39328 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39329 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39330 case $(srcdir) in \
39331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39332 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39334 esac; \
39335 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39336 libsrcdir="$$s/libgomp"; \
39337 $(SHELL) $${libsrcdir}/configure \
39338 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39339 --target=${target_alias} $${srcdiroption} \
39340 --with-build-libsubdir=$(HOST_SUBDIR) \
39341 $(STAGE3_CONFIGURE_FLAGS)
39342@endif target-libgomp-bootstrap
39343
39344.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
39345maybe-configure-stage4-target-libgomp:
39346@if target-libgomp-bootstrap
39347maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
39348configure-stage4-target-libgomp:
39349 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39350 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39351 @r=`${PWD_COMMAND}`; export r; \
39352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39353 TFLAGS="$(STAGE4_TFLAGS)"; \
39354 echo "Checking multilib configuration for libgomp..."; \
39355 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39356 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39357 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39358 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39359 else \
39360 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39361 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39362 fi; \
39363 else \
39364 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39365 fi; \
39366 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39367 $(NORMAL_TARGET_EXPORTS) \
39368 \
39369 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39370 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39371 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39372 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
39373 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39374 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39375 case $(srcdir) in \
39376 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39377 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39378 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39379 esac; \
39380 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39381 libsrcdir="$$s/libgomp"; \
39382 $(SHELL) $${libsrcdir}/configure \
39383 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39384 --target=${target_alias} $${srcdiroption} \
39385 --with-build-libsubdir=$(HOST_SUBDIR) \
39386 $(STAGE4_CONFIGURE_FLAGS)
39387@endif target-libgomp-bootstrap
39388
39389.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
39390maybe-configure-stageprofile-target-libgomp:
39391@if target-libgomp-bootstrap
39392maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
39393configure-stageprofile-target-libgomp:
39394 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
39395 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39396 @r=`${PWD_COMMAND}`; export r; \
39397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39398 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39399 echo "Checking multilib configuration for libgomp..."; \
39400 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39401 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39402 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39403 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39404 else \
39405 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39406 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39407 fi; \
39408 else \
39409 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39410 fi; \
39411 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39412 $(NORMAL_TARGET_EXPORTS) \
39413 \
39414 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39415 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39416 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39417 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
39418 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39419 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39420 case $(srcdir) in \
39421 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39422 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39423 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39424 esac; \
39425 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39426 libsrcdir="$$s/libgomp"; \
39427 $(SHELL) $${libsrcdir}/configure \
39428 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39429 --target=${target_alias} $${srcdiroption} \
39430 --with-build-libsubdir=$(HOST_SUBDIR) \
39431 $(STAGEprofile_CONFIGURE_FLAGS)
39432@endif target-libgomp-bootstrap
39433
39434.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
39435maybe-configure-stagefeedback-target-libgomp:
39436@if target-libgomp-bootstrap
39437maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
39438configure-stagefeedback-target-libgomp:
39439 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
39440 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
39441 @r=`${PWD_COMMAND}`; export r; \
39442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39443 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39444 echo "Checking multilib configuration for libgomp..."; \
39445 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
39446 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39447 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
39448 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
39449 else \
39450 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
39451 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39452 fi; \
39453 else \
39454 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
39455 fi; \
39456 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
39457 $(NORMAL_TARGET_EXPORTS) \
39458 \
39459 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39460 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39461 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39462 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
39463 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
39464 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
39465 case $(srcdir) in \
39466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39467 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
39468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39469 esac; \
39470 srcdiroption="--srcdir=$${topdir}/libgomp"; \
39471 libsrcdir="$$s/libgomp"; \
39472 $(SHELL) $${libsrcdir}/configure \
39473 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39474 --target=${target_alias} $${srcdiroption} \
39475 --with-build-libsubdir=$(HOST_SUBDIR) \
39476 $(STAGEfeedback_CONFIGURE_FLAGS)
39477@endif target-libgomp-bootstrap
39478
39479
39480
953ff289
DN
39481
39482
39483.PHONY: all-target-libgomp maybe-all-target-libgomp
39484maybe-all-target-libgomp:
3ff3adad
PB
39485@if gcc-bootstrap
39486all-target-libgomp: stage_current
39487@endif gcc-bootstrap
953ff289
DN
39488@if target-libgomp
39489TARGET-target-libgomp=all
39490maybe-all-target-libgomp: all-target-libgomp
39491all-target-libgomp: configure-target-libgomp
953ff289
DN
39492 @r=`${PWD_COMMAND}`; export r; \
39493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f61428ed 39494 $(NORMAL_TARGET_EXPORTS) \
953ff289 39495 (cd $(TARGET_SUBDIR)/libgomp && \
1c8bd6a3
PB
39496 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39497 $(TARGET-target-libgomp))
953ff289
DN
39498@endif target-libgomp
39499
39500
39501
aae29963
JR
39502.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
39503.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
39504maybe-all-stage1-target-libgomp:
39505maybe-clean-stage1-target-libgomp:
39506@if target-libgomp-bootstrap
39507maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
39508all-stage1: all-stage1-target-libgomp
39509TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
39510all-stage1-target-libgomp: configure-stage1-target-libgomp
39511 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39512 @r=`${PWD_COMMAND}`; export r; \
39513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39514 TFLAGS="$(STAGE1_TFLAGS)"; \
39515 $(NORMAL_TARGET_EXPORTS) \
39516 cd $(TARGET_SUBDIR)/libgomp && \
39517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39518 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39520 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39524 $(EXTRA_TARGET_FLAGS) \
39525 TFLAGS="$(STAGE1_TFLAGS)" \
39526 $(TARGET-stage1-target-libgomp)
39527
39528maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
39529clean-stage1: clean-stage1-target-libgomp
39530clean-stage1-target-libgomp:
39531 @if [ $(current_stage) = stage1 ]; then \
39532 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39533 else \
39534 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
39535 $(MAKE) stage1-start; \
39536 fi; \
39537 cd $(TARGET_SUBDIR)/libgomp && \
39538 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39539 clean
39540@endif target-libgomp-bootstrap
39541
39542
39543.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
39544.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
39545maybe-all-stage2-target-libgomp:
39546maybe-clean-stage2-target-libgomp:
39547@if target-libgomp-bootstrap
39548maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
39549all-stage2: all-stage2-target-libgomp
39550TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
39551all-stage2-target-libgomp: configure-stage2-target-libgomp
39552 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39553 @r=`${PWD_COMMAND}`; export r; \
39554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39555 TFLAGS="$(STAGE2_TFLAGS)"; \
39556 $(NORMAL_TARGET_EXPORTS) \
39557 \
39558 cd $(TARGET_SUBDIR)/libgomp && \
39559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39560 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39566 $(EXTRA_TARGET_FLAGS) \
39567 TFLAGS="$(STAGE2_TFLAGS)" \
39568 $(TARGET-stage2-target-libgomp)
39569
39570maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
39571clean-stage2: clean-stage2-target-libgomp
39572clean-stage2-target-libgomp:
39573 @if [ $(current_stage) = stage2 ]; then \
39574 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39575 else \
39576 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
39577 $(MAKE) stage2-start; \
39578 fi; \
39579 cd $(TARGET_SUBDIR)/libgomp && \
39580 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39581 \
39582 clean
39583@endif target-libgomp-bootstrap
39584
39585
39586.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
39587.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
39588maybe-all-stage3-target-libgomp:
39589maybe-clean-stage3-target-libgomp:
39590@if target-libgomp-bootstrap
39591maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
39592all-stage3: all-stage3-target-libgomp
39593TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
39594all-stage3-target-libgomp: configure-stage3-target-libgomp
39595 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39596 @r=`${PWD_COMMAND}`; export r; \
39597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39598 TFLAGS="$(STAGE3_TFLAGS)"; \
39599 $(NORMAL_TARGET_EXPORTS) \
39600 \
39601 cd $(TARGET_SUBDIR)/libgomp && \
39602 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39603 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39604 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39605 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39606 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39607 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39608 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39609 $(EXTRA_TARGET_FLAGS) \
39610 TFLAGS="$(STAGE3_TFLAGS)" \
39611 $(TARGET-stage3-target-libgomp)
39612
39613maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
39614clean-stage3: clean-stage3-target-libgomp
39615clean-stage3-target-libgomp:
39616 @if [ $(current_stage) = stage3 ]; then \
39617 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39618 else \
39619 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
39620 $(MAKE) stage3-start; \
39621 fi; \
39622 cd $(TARGET_SUBDIR)/libgomp && \
39623 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39624 \
39625 clean
39626@endif target-libgomp-bootstrap
39627
39628
39629.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
39630.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
39631maybe-all-stage4-target-libgomp:
39632maybe-clean-stage4-target-libgomp:
39633@if target-libgomp-bootstrap
39634maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
39635all-stage4: all-stage4-target-libgomp
39636TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
39637all-stage4-target-libgomp: configure-stage4-target-libgomp
39638 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39639 @r=`${PWD_COMMAND}`; export r; \
39640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39641 TFLAGS="$(STAGE4_TFLAGS)"; \
39642 $(NORMAL_TARGET_EXPORTS) \
39643 \
39644 cd $(TARGET_SUBDIR)/libgomp && \
39645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39646 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39647 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39648 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39652 $(EXTRA_TARGET_FLAGS) \
39653 TFLAGS="$(STAGE4_TFLAGS)" \
39654 $(TARGET-stage4-target-libgomp)
39655
39656maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
39657clean-stage4: clean-stage4-target-libgomp
39658clean-stage4-target-libgomp:
39659 @if [ $(current_stage) = stage4 ]; then \
39660 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39661 else \
39662 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
39663 $(MAKE) stage4-start; \
39664 fi; \
39665 cd $(TARGET_SUBDIR)/libgomp && \
39666 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39667 \
39668 clean
39669@endif target-libgomp-bootstrap
39670
39671
39672.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
39673.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
39674maybe-all-stageprofile-target-libgomp:
39675maybe-clean-stageprofile-target-libgomp:
39676@if target-libgomp-bootstrap
39677maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
39678all-stageprofile: all-stageprofile-target-libgomp
39679TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
39680all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
39681 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
39682 @r=`${PWD_COMMAND}`; export r; \
39683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39684 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39685 $(NORMAL_TARGET_EXPORTS) \
39686 \
39687 cd $(TARGET_SUBDIR)/libgomp && \
39688 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39689 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39690 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39691 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39692 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39693 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39694 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39695 $(EXTRA_TARGET_FLAGS) \
39696 TFLAGS="$(STAGEprofile_TFLAGS)" \
39697 $(TARGET-stageprofile-target-libgomp)
39698
39699maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
39700clean-stageprofile: clean-stageprofile-target-libgomp
39701clean-stageprofile-target-libgomp:
39702 @if [ $(current_stage) = stageprofile ]; then \
39703 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39704 else \
39705 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
39706 $(MAKE) stageprofile-start; \
39707 fi; \
39708 cd $(TARGET_SUBDIR)/libgomp && \
39709 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39710 \
39711 clean
39712@endif target-libgomp-bootstrap
39713
39714
39715.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
39716.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
39717maybe-all-stagefeedback-target-libgomp:
39718maybe-clean-stagefeedback-target-libgomp:
39719@if target-libgomp-bootstrap
39720maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
39721all-stagefeedback: all-stagefeedback-target-libgomp
39722TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
39723all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
39724 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
39725 @r=`${PWD_COMMAND}`; export r; \
39726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39727 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39728 $(NORMAL_TARGET_EXPORTS) \
39729 \
39730 cd $(TARGET_SUBDIR)/libgomp && \
39731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39732 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39733 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39734 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39738 $(EXTRA_TARGET_FLAGS) \
39739 TFLAGS="$(STAGEfeedback_TFLAGS)" \
39740 $(TARGET-stagefeedback-target-libgomp)
39741
39742maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
39743clean-stagefeedback: clean-stagefeedback-target-libgomp
39744clean-stagefeedback-target-libgomp:
39745 @if [ $(current_stage) = stagefeedback ]; then \
39746 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
39747 else \
39748 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
39749 $(MAKE) stagefeedback-start; \
39750 fi; \
39751 cd $(TARGET_SUBDIR)/libgomp && \
39752 $(MAKE) $(EXTRA_TARGET_FLAGS) \
39753 \
39754 clean
39755@endif target-libgomp-bootstrap
39756
39757
39758
39759
953ff289
DN
39760
39761
39762.PHONY: check-target-libgomp maybe-check-target-libgomp
39763maybe-check-target-libgomp:
39764@if target-libgomp
39765maybe-check-target-libgomp: check-target-libgomp
39766
39767check-target-libgomp:
39768 @: $(MAKE); $(unstage)
39769 @r=`${PWD_COMMAND}`; export r; \
39770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39771 $(NORMAL_TARGET_EXPORTS) \
39772 (cd $(TARGET_SUBDIR)/libgomp && \
39773 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39774
39775@endif target-libgomp
39776
39777.PHONY: install-target-libgomp maybe-install-target-libgomp
39778maybe-install-target-libgomp:
39779@if target-libgomp
39780maybe-install-target-libgomp: install-target-libgomp
39781
39782install-target-libgomp: installdirs
39783 @: $(MAKE); $(unstage)
39784 @r=`${PWD_COMMAND}`; export r; \
39785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39786 $(NORMAL_TARGET_EXPORTS) \
39787 (cd $(TARGET_SUBDIR)/libgomp && \
39788 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39789
39790@endif target-libgomp
39791
455c8f48
RW
39792.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
39793maybe-install-strip-target-libgomp:
39794@if target-libgomp
39795maybe-install-strip-target-libgomp: install-strip-target-libgomp
39796
39797install-strip-target-libgomp: installdirs
39798 @: $(MAKE); $(unstage)
39799 @r=`${PWD_COMMAND}`; export r; \
39800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39801 $(NORMAL_TARGET_EXPORTS) \
39802 (cd $(TARGET_SUBDIR)/libgomp && \
39803 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39804
39805@endif target-libgomp
39806
b5422ad7 39807# Other targets (info, dvi, pdf, etc.)
953ff289
DN
39808
39809.PHONY: maybe-info-target-libgomp info-target-libgomp
39810maybe-info-target-libgomp:
39811@if target-libgomp
39812maybe-info-target-libgomp: info-target-libgomp
39813
39814info-target-libgomp: \
39815 configure-target-libgomp
39816 @: $(MAKE); $(unstage)
39817 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39818 r=`${PWD_COMMAND}`; export r; \
39819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39820 $(NORMAL_TARGET_EXPORTS) \
39821 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
39822 for flag in $(EXTRA_TARGET_FLAGS); do \
39823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39824 done; \
39825 (cd $(TARGET_SUBDIR)/libgomp && \
39826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39828 "RANLIB=$${RANLIB}" \
901119ae 39829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
39830 info) \
39831 || exit 1
39832
39833@endif target-libgomp
39834
39835.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
39836maybe-dvi-target-libgomp:
39837@if target-libgomp
39838maybe-dvi-target-libgomp: dvi-target-libgomp
39839
39840dvi-target-libgomp: \
39841 configure-target-libgomp
39842 @: $(MAKE); $(unstage)
39843 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39844 r=`${PWD_COMMAND}`; export r; \
39845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39846 $(NORMAL_TARGET_EXPORTS) \
39847 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
39848 for flag in $(EXTRA_TARGET_FLAGS); do \
39849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39850 done; \
39851 (cd $(TARGET_SUBDIR)/libgomp && \
39852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39854 "RANLIB=$${RANLIB}" \
901119ae 39855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
39856 dvi) \
39857 || exit 1
39858
39859@endif target-libgomp
39860
b5422ad7
BM
39861.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
39862maybe-pdf-target-libgomp:
39863@if target-libgomp
39864maybe-pdf-target-libgomp: pdf-target-libgomp
39865
39866pdf-target-libgomp: \
39867 configure-target-libgomp
39868 @: $(MAKE); $(unstage)
39869 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39870 r=`${PWD_COMMAND}`; export r; \
39871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39872 $(NORMAL_TARGET_EXPORTS) \
39873 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
39874 for flag in $(EXTRA_TARGET_FLAGS); do \
39875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39876 done; \
39877 (cd $(TARGET_SUBDIR)/libgomp && \
39878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39880 "RANLIB=$${RANLIB}" \
901119ae 39881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b5422ad7
BM
39882 pdf) \
39883 || exit 1
39884
39885@endif target-libgomp
39886
953ff289
DN
39887.PHONY: maybe-html-target-libgomp html-target-libgomp
39888maybe-html-target-libgomp:
39889@if target-libgomp
39890maybe-html-target-libgomp: html-target-libgomp
39891
39892html-target-libgomp: \
39893 configure-target-libgomp
39894 @: $(MAKE); $(unstage)
39895 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39896 r=`${PWD_COMMAND}`; export r; \
39897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39898 $(NORMAL_TARGET_EXPORTS) \
39899 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
39900 for flag in $(EXTRA_TARGET_FLAGS); do \
39901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39902 done; \
39903 (cd $(TARGET_SUBDIR)/libgomp && \
39904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39906 "RANLIB=$${RANLIB}" \
901119ae 39907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
39908 html) \
39909 || exit 1
39910
39911@endif target-libgomp
39912
39913.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
39914maybe-TAGS-target-libgomp:
39915@if target-libgomp
39916maybe-TAGS-target-libgomp: TAGS-target-libgomp
39917
39918TAGS-target-libgomp: \
39919 configure-target-libgomp
39920 @: $(MAKE); $(unstage)
39921 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39922 r=`${PWD_COMMAND}`; export r; \
39923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39924 $(NORMAL_TARGET_EXPORTS) \
39925 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
39926 for flag in $(EXTRA_TARGET_FLAGS); do \
39927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39928 done; \
39929 (cd $(TARGET_SUBDIR)/libgomp && \
39930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39932 "RANLIB=$${RANLIB}" \
901119ae 39933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
39934 TAGS) \
39935 || exit 1
39936
39937@endif target-libgomp
39938
39939.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
39940maybe-install-info-target-libgomp:
39941@if target-libgomp
39942maybe-install-info-target-libgomp: install-info-target-libgomp
39943
39944install-info-target-libgomp: \
39945 configure-target-libgomp \
39946 info-target-libgomp
39947 @: $(MAKE); $(unstage)
39948 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39949 r=`${PWD_COMMAND}`; export r; \
39950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39951 $(NORMAL_TARGET_EXPORTS) \
39952 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
39953 for flag in $(EXTRA_TARGET_FLAGS); do \
39954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39955 done; \
39956 (cd $(TARGET_SUBDIR)/libgomp && \
39957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39959 "RANLIB=$${RANLIB}" \
901119ae 39960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
39961 install-info) \
39962 || exit 1
39963
39964@endif target-libgomp
39965
9c4d2493
BM
39966.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
39967maybe-install-pdf-target-libgomp:
39968@if target-libgomp
39969maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
39970
39971install-pdf-target-libgomp: \
39972 configure-target-libgomp \
39973 pdf-target-libgomp
39974 @: $(MAKE); $(unstage)
39975 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39976 r=`${PWD_COMMAND}`; export r; \
39977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39978 $(NORMAL_TARGET_EXPORTS) \
39979 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
39980 for flag in $(EXTRA_TARGET_FLAGS); do \
39981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39982 done; \
39983 (cd $(TARGET_SUBDIR)/libgomp && \
39984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39986 "RANLIB=$${RANLIB}" \
901119ae 39987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c4d2493
BM
39988 install-pdf) \
39989 || exit 1
39990
39991@endif target-libgomp
39992
65d6e994
CD
39993.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
39994maybe-install-html-target-libgomp:
39995@if target-libgomp
39996maybe-install-html-target-libgomp: install-html-target-libgomp
39997
39998install-html-target-libgomp: \
39999 configure-target-libgomp \
40000 html-target-libgomp
40001 @: $(MAKE); $(unstage)
40002 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40003 r=`${PWD_COMMAND}`; export r; \
40004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40005 $(NORMAL_TARGET_EXPORTS) \
40006 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
40007 for flag in $(EXTRA_TARGET_FLAGS); do \
40008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40009 done; \
40010 (cd $(TARGET_SUBDIR)/libgomp && \
40011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40013 "RANLIB=$${RANLIB}" \
901119ae 40014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
65d6e994
CD
40015 install-html) \
40016 || exit 1
40017
40018@endif target-libgomp
40019
953ff289
DN
40020.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
40021maybe-installcheck-target-libgomp:
40022@if target-libgomp
40023maybe-installcheck-target-libgomp: installcheck-target-libgomp
40024
40025installcheck-target-libgomp: \
40026 configure-target-libgomp
40027 @: $(MAKE); $(unstage)
40028 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40029 r=`${PWD_COMMAND}`; export r; \
40030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40031 $(NORMAL_TARGET_EXPORTS) \
40032 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
40033 for flag in $(EXTRA_TARGET_FLAGS); do \
40034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40035 done; \
40036 (cd $(TARGET_SUBDIR)/libgomp && \
40037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40039 "RANLIB=$${RANLIB}" \
901119ae 40040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
40041 installcheck) \
40042 || exit 1
40043
40044@endif target-libgomp
40045
40046.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
40047maybe-mostlyclean-target-libgomp:
40048@if target-libgomp
40049maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
40050
40051mostlyclean-target-libgomp:
40052 @: $(MAKE); $(unstage)
40053 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40054 r=`${PWD_COMMAND}`; export r; \
40055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40056 $(NORMAL_TARGET_EXPORTS) \
40057 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
40058 for flag in $(EXTRA_TARGET_FLAGS); do \
40059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40060 done; \
40061 (cd $(TARGET_SUBDIR)/libgomp && \
40062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40064 "RANLIB=$${RANLIB}" \
901119ae 40065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
40066 mostlyclean) \
40067 || exit 1
40068
40069@endif target-libgomp
40070
40071.PHONY: maybe-clean-target-libgomp clean-target-libgomp
40072maybe-clean-target-libgomp:
40073@if target-libgomp
40074maybe-clean-target-libgomp: clean-target-libgomp
40075
40076clean-target-libgomp:
40077 @: $(MAKE); $(unstage)
40078 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40079 r=`${PWD_COMMAND}`; export r; \
40080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40081 $(NORMAL_TARGET_EXPORTS) \
40082 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
40083 for flag in $(EXTRA_TARGET_FLAGS); do \
40084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40085 done; \
40086 (cd $(TARGET_SUBDIR)/libgomp && \
40087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40089 "RANLIB=$${RANLIB}" \
901119ae 40090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
40091 clean) \
40092 || exit 1
40093
40094@endif target-libgomp
40095
40096.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
40097maybe-distclean-target-libgomp:
40098@if target-libgomp
40099maybe-distclean-target-libgomp: distclean-target-libgomp
40100
40101distclean-target-libgomp:
40102 @: $(MAKE); $(unstage)
40103 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40104 r=`${PWD_COMMAND}`; export r; \
40105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40106 $(NORMAL_TARGET_EXPORTS) \
40107 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
40108 for flag in $(EXTRA_TARGET_FLAGS); do \
40109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40110 done; \
40111 (cd $(TARGET_SUBDIR)/libgomp && \
40112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40114 "RANLIB=$${RANLIB}" \
901119ae 40115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
40116 distclean) \
40117 || exit 1
40118
40119@endif target-libgomp
40120
40121.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
40122maybe-maintainer-clean-target-libgomp:
40123@if target-libgomp
40124maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
40125
40126maintainer-clean-target-libgomp:
40127 @: $(MAKE); $(unstage)
40128 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
40129 r=`${PWD_COMMAND}`; export r; \
40130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40131 $(NORMAL_TARGET_EXPORTS) \
40132 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
40133 for flag in $(EXTRA_TARGET_FLAGS); do \
40134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40135 done; \
40136 (cd $(TARGET_SUBDIR)/libgomp && \
40137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40139 "RANLIB=$${RANLIB}" \
901119ae 40140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
953ff289
DN
40141 maintainer-clean) \
40142 || exit 1
40143
40144@endif target-libgomp
40145
40146
40147
32c87d63
JM
40148@if target-libmudflap
40149.PHONY: check-target-libmudflap-c++
40150check-target-libmudflap-c++:
40151 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++frags.exp" check-target-libmudflap
40152
40153@endif target-libmudflap
40154
4977bab6
ZW
40155# ----------
40156# GCC module
40157# ----------
40158
f516a7da 40159@if gcc-no-bootstrap
09f97c1e 40160.PHONY: cross
7c27e184 40161cross: all-build all-gas all-ld
8c90b13a
L
40162 @r=`${PWD_COMMAND}`; export r; \
40163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 40164 $(HOST_EXPORTS) \
09f97c1e 40165 echo "Building the C and C++ compiler"; \
3a4fee66 40166 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
8c90b13a
L
40167 @r=`${PWD_COMMAND}`; export r; \
40168 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 40169 echo "Building runtime libraries"; \
ad6717df 40170 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
f516a7da 40171@endif gcc-no-bootstrap
09f97c1e 40172
60975492 40173@if gcc
60911f14
SE
40174
40175.PHONY: check-gcc-c check-c
40176check-gcc-c:
40177 r=`${PWD_COMMAND}`; export r; \
40178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40179 $(HOST_EXPORTS) \
40180 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
40181check-c: check-gcc-c
40182
40183.PHONY: check-gcc-c++ check-c++
0edcfdcb 40184check-gcc-c++:
60911f14
SE
40185 r=`${PWD_COMMAND}`; export r; \
40186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40187 $(HOST_EXPORTS) \
32c87d63
JM
40188 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++ check-c++0x);
40189check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libmudflap-c++
60911f14
SE
40190
40191.PHONY: check-gcc-fortran check-fortran
40192check-gcc-fortran:
40193 r=`${PWD_COMMAND}`; export r; \
40194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40195 $(HOST_EXPORTS) \
40196 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
1ec601bf 40197check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
60911f14
SE
40198
40199.PHONY: check-gcc-java check-java
40200check-gcc-java:
40201 r=`${PWD_COMMAND}`; export r; \
40202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40203 $(HOST_EXPORTS) \
40204 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
40205check-java: check-gcc-java check-target-libjava
40206
40207.PHONY: check-gcc-ada check-ada
40208check-gcc-ada:
40209 r=`${PWD_COMMAND}`; export r; \
40210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40211 $(HOST_EXPORTS) \
40212 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
40213check-ada: check-gcc-ada check-target-libada
40214
40215.PHONY: check-gcc-objc check-objc
40216check-gcc-objc:
40217 r=`${PWD_COMMAND}`; export r; \
40218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40219 $(HOST_EXPORTS) \
40220 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
40221check-objc: check-gcc-objc check-target-libobjc
40222
40223.PHONY: check-gcc-obj-c++ check-obj-c++
40224check-gcc-obj-c++:
40225 r=`${PWD_COMMAND}`; export r; \
40226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40227 $(HOST_EXPORTS) \
40228 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
40229check-obj-c++: check-gcc-obj-c++
0edcfdcb 40230
632e2a07
ILT
40231.PHONY: check-gcc-go check-go
40232check-gcc-go:
40233 r=`${PWD_COMMAND}`; export r; \
40234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40235 $(HOST_EXPORTS) \
40236 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
40237check-go: check-gcc-go check-target-libgo
40238
6599da04 40239
4977bab6
ZW
40240# Install the gcc headers files, but not the fixed include files,
40241# which Cygnus is not allowed to distribute. This rule is very
40242# dependent on the workings of the gcc Makefile.in.
40243.PHONY: gcc-no-fixedincludes
40244gcc-no-fixedincludes:
40245 @if [ -f ./gcc/Makefile ]; then \
40246 rm -rf gcc/tmp-include; \
40247 mv gcc/include gcc/tmp-include 2>/dev/null; \
40248 mkdir gcc/include; \
40249 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
40250 touch gcc/stmp-fixinc gcc/include/fixed; \
40251 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
8c90b13a
L
40252 r=`${PWD_COMMAND}`; export r; \
40253 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a52a0a7f 40254 $(HOST_EXPORTS) \
88b5521b 40255 (cd ./gcc && \
4977bab6
ZW
40256 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
40257 rm -rf gcc/include; \
40258 mv gcc/tmp-include gcc/include 2>/dev/null; \
40259 else true; fi
60975492 40260@endif gcc
295f4e42 40261
d32ab992
PB
40262# ---------------------
40263# GCC bootstrap support
40264# ---------------------
295f4e42 40265
d32ab992
PB
40266# We track the current stage (the one in 'gcc') in the stage_current file.
40267# stage_last instead tracks the stage that was built last. These targets
40268# are dummy when toplevel bootstrap is not active.
295f4e42 40269
1061f99e 40270# While making host and target tools, symlinks to the final stage must be
f41d6665
DJ
40271# there, so $(unstage) should be run at various points. To avoid excessive
40272# recursive invocations of make, we "inline" them using a variable. These
40273# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
40274# to avoid warnings from the GNU Make job server.
1061f99e
PB
40275
40276unstage = :
40277stage = :
cc11cc9b 40278current_stage = ""
1061f99e 40279
d32ab992 40280@if gcc-bootstrap
9bd6112c 40281unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
d19bca38 40282stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
cc11cc9b 40283current_stage = "`cat stage_current 2> /dev/null`"
d32ab992 40284@endif gcc-bootstrap
295f4e42 40285
1061f99e
PB
40286.PHONY: unstage stage
40287unstage:
f41d6665 40288 @: $(MAKE); $(unstage)
d32ab992 40289stage:
f41d6665 40290 @: $(MAKE); $(stage)
2805b53a 40291
2d309510
PB
40292# Disable commands for lean bootstrap.
40293LEAN = false
40294
148907ea
PB
40295# We name the build directories for the various stages "stage1-gcc",
40296# "stage2-gcc","stage3-gcc", etc.
40297
40298# Since the 'compare' process will fail (on debugging information) if any
40299# directory names are different, we need to link the gcc directory for
f41d6665 40300# the previous stage to a constant name ('prev-gcc'), and to make the name of
148907ea
PB
40301# the build directories constant as well. For the latter, we use naked names
40302# like 'gcc', because the scripts in that directory assume it. We use
40303# mv on platforms where symlinks to directories do not work or are not
40304# reliable.
40305
2805b53a 40306# 'touch' doesn't work right on some platforms.
05750653 40307STAMP = echo timestamp >
2805b53a 40308
148907ea
PB
40309# We only want to compare .o files, so set this!
40310objext = .o
40311
148907ea 40312
f516a7da 40313.PHONY: stage1-start stage1-end
148907ea 40314
ad6717df 40315stage1-start::
f41d6665 40316 @: $(MAKE); $(stage); \
d32ab992 40317 echo stage1 > stage_current ; \
215c351a 40318 echo stage1 > stage_last; \
f41d6665 40319 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40320@if bfd
215c351a
PB
40321 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
40322 mkdir stage1-bfd; \
2d309510 40323 mv stage1-bfd bfd
7c27e184
PB
40324@endif bfd
40325@if opcodes
215c351a
PB
40326 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
40327 mkdir stage1-opcodes; \
2d309510 40328 mv stage1-opcodes opcodes
7c27e184
PB
40329@endif opcodes
40330@if binutils
215c351a
PB
40331 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
40332 mkdir stage1-binutils; \
2d309510 40333 mv stage1-binutils binutils
7c27e184
PB
40334@endif binutils
40335@if gas
215c351a
PB
40336 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
40337 mkdir stage1-gas; \
2d309510 40338 mv stage1-gas gas
7c27e184
PB
40339@endif gas
40340@if gcc
215c351a
PB
40341 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
40342 mkdir stage1-gcc; \
2d309510 40343 mv stage1-gcc gcc
7c27e184 40344@endif gcc
e69bf64b
PB
40345@if gmp
40346 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
40347 mkdir stage1-gmp; \
40348 mv stage1-gmp gmp
40349@endif gmp
40350@if mpfr
40351 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
40352 mkdir stage1-mpfr; \
40353 mv stage1-mpfr mpfr
40354@endif mpfr
acd26225
KG
40355@if mpc
40356 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
40357 mkdir stage1-mpc; \
40358 mv stage1-mpc mpc
40359@endif mpc
f8bf9252
SP
40360@if ppl
40361 @cd $(HOST_SUBDIR); [ -d stage1-ppl ] || \
40362 mkdir stage1-ppl; \
40363 mv stage1-ppl ppl
40364@endif ppl
40365@if cloog
40366 @cd $(HOST_SUBDIR); [ -d stage1-cloog ] || \
40367 mkdir stage1-cloog; \
40368 mv stage1-cloog cloog
40369@endif cloog
f61428ed
AO
40370@if libelf
40371 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
40372 mkdir stage1-libelf; \
40373 mv stage1-libelf libelf
40374@endif libelf
5afab7ad
ILT
40375@if gold
40376 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
40377 mkdir stage1-gold; \
40378 mv stage1-gold gold
40379@endif gold
7c27e184 40380@if intl
215c351a
PB
40381 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
40382 mkdir stage1-intl; \
2d309510 40383 mv stage1-intl intl
7c27e184
PB
40384@endif intl
40385@if ld
215c351a
PB
40386 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
40387 mkdir stage1-ld; \
2d309510 40388 mv stage1-ld ld
7c27e184
PB
40389@endif ld
40390@if libcpp
215c351a
PB
40391 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
40392 mkdir stage1-libcpp; \
2d309510 40393 mv stage1-libcpp libcpp
7c27e184 40394@endif libcpp
a4b6c45a
BE
40395@if libdecnumber
40396 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
40397 mkdir stage1-libdecnumber; \
2d309510 40398 mv stage1-libdecnumber libdecnumber
a4b6c45a 40399@endif libdecnumber
7c27e184 40400@if libiberty
215c351a
PB
40401 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
40402 mkdir stage1-libiberty; \
2d309510 40403 mv stage1-libiberty libiberty
7c27e184
PB
40404@endif libiberty
40405@if zlib
215c351a
PB
40406 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
40407 mkdir stage1-zlib; \
2d309510 40408 mv stage1-zlib zlib
7c27e184 40409@endif zlib
d7f09764
DN
40410@if lto-plugin
40411 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
40412 mkdir stage1-lto-plugin; \
40413 mv stage1-lto-plugin lto-plugin
40414@endif lto-plugin
f41d6665
DJ
40415 @[ -d stage1-$(TARGET_SUBDIR) ] || \
40416 mkdir stage1-$(TARGET_SUBDIR); \
2d309510 40417 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
148907ea 40418
2d309510 40419stage1-end::
7c27e184 40420@if bfd
2d309510
PB
40421 @if test -d $(HOST_SUBDIR)/bfd ; then \
40422 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
f41d6665 40423 fi
7c27e184
PB
40424@endif bfd
40425@if opcodes
2d309510
PB
40426 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40427 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
f41d6665 40428 fi
7c27e184
PB
40429@endif opcodes
40430@if binutils
2d309510
PB
40431 @if test -d $(HOST_SUBDIR)/binutils ; then \
40432 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
f41d6665 40433 fi
7c27e184
PB
40434@endif binutils
40435@if gas
2d309510
PB
40436 @if test -d $(HOST_SUBDIR)/gas ; then \
40437 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
f41d6665 40438 fi
7c27e184
PB
40439@endif gas
40440@if gcc
2d309510
PB
40441 @if test -d $(HOST_SUBDIR)/gcc ; then \
40442 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
f41d6665 40443 fi
7c27e184 40444@endif gcc
e69bf64b
PB
40445@if gmp
40446 @if test -d $(HOST_SUBDIR)/gmp ; then \
40447 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
40448 fi
40449@endif gmp
40450@if mpfr
40451 @if test -d $(HOST_SUBDIR)/mpfr ; then \
40452 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
40453 fi
40454@endif mpfr
acd26225
KG
40455@if mpc
40456 @if test -d $(HOST_SUBDIR)/mpc ; then \
40457 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
40458 fi
40459@endif mpc
f8bf9252
SP
40460@if ppl
40461 @if test -d $(HOST_SUBDIR)/ppl ; then \
40462 cd $(HOST_SUBDIR); mv ppl stage1-ppl ; \
40463 fi
40464@endif ppl
40465@if cloog
40466 @if test -d $(HOST_SUBDIR)/cloog ; then \
40467 cd $(HOST_SUBDIR); mv cloog stage1-cloog ; \
40468 fi
40469@endif cloog
f61428ed
AO
40470@if libelf
40471 @if test -d $(HOST_SUBDIR)/libelf ; then \
40472 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
40473 fi
40474@endif libelf
5afab7ad
ILT
40475@if gold
40476 @if test -d $(HOST_SUBDIR)/gold ; then \
40477 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
40478 fi
40479@endif gold
7c27e184 40480@if intl
2d309510
PB
40481 @if test -d $(HOST_SUBDIR)/intl ; then \
40482 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
f41d6665 40483 fi
7c27e184
PB
40484@endif intl
40485@if ld
2d309510
PB
40486 @if test -d $(HOST_SUBDIR)/ld ; then \
40487 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
f41d6665 40488 fi
7c27e184
PB
40489@endif ld
40490@if libcpp
2d309510
PB
40491 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40492 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
f41d6665 40493 fi
7c27e184 40494@endif libcpp
a4b6c45a 40495@if libdecnumber
2d309510
PB
40496 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40497 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
f41d6665 40498 fi
a4b6c45a 40499@endif libdecnumber
7c27e184 40500@if libiberty
2d309510
PB
40501 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40502 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
f41d6665 40503 fi
7c27e184
PB
40504@endif libiberty
40505@if zlib
2d309510
PB
40506 @if test -d $(HOST_SUBDIR)/zlib ; then \
40507 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
f41d6665 40508 fi
7c27e184 40509@endif zlib
d7f09764
DN
40510@if lto-plugin
40511 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
40512 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
40513 fi
40514@endif lto-plugin
f41d6665 40515 @if test -d $(TARGET_SUBDIR) ; then \
2d309510 40516 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
f41d6665 40517 fi
2d309510 40518 rm -f stage_current
148907ea 40519
8024d75e 40520# Bubble a bug fix through all the stages up to stage 1. They are
f41d6665 40521# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 40522# reconfigured either.
f516a7da 40523.PHONY: stage1-bubble
05750653 40524stage1-bubble::
e7c84bf8
PB
40525 @r=`${PWD_COMMAND}`; export r; \
40526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40527 if test -f stage1-lean ; then \
ce521a9c
PB
40528 echo Skipping rebuild of stage1 ; \
40529 else \
1061f99e
PB
40530 $(MAKE) stage1-start; \
40531 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ce521a9c 40532 fi
7c27e184 40533
45f366ab 40534.PHONY: all-stage1 clean-stage1
45f366ab 40535do-clean: clean-stage1
45f366ab 40536
7c27e184
PB
40537# FIXME: Will not need to be conditional when toplevel bootstrap is the
40538# only possibility, but now it conflicts with no-bootstrap rules
40539@if gcc-bootstrap
40540
40541
40542
40543
45f366ab 40544# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 40545
45f366ab 40546.PHONY: distclean-stage1
7c27e184 40547distclean-stage1::
f41d6665 40548 @: $(MAKE); $(stage)
a19e8f64 40549 @test "`cat stage_last`" != stage1 || rm -f stage_last
05750653 40550 rm -rf stage1-*
7c27e184
PB
40551
40552
40553@endif gcc-bootstrap
40554
40555
40556.PHONY: stage2-start stage2-end
40557
40558stage2-start::
f41d6665 40559 @: $(MAKE); $(stage); \
7c27e184 40560 echo stage2 > stage_current ; \
215c351a 40561 echo stage2 > stage_last; \
f41d6665 40562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40563@if bfd
215c351a
PB
40564 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
40565 mkdir stage2-bfd; \
2d309510
PB
40566 mv stage2-bfd bfd ; \
40567 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
40568@endif bfd
40569@if opcodes
215c351a
PB
40570 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
40571 mkdir stage2-opcodes; \
2d309510
PB
40572 mv stage2-opcodes opcodes ; \
40573 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
40574@endif opcodes
40575@if binutils
215c351a
PB
40576 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
40577 mkdir stage2-binutils; \
2d309510
PB
40578 mv stage2-binutils binutils ; \
40579 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
40580@endif binutils
40581@if gas
215c351a
PB
40582 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
40583 mkdir stage2-gas; \
2d309510
PB
40584 mv stage2-gas gas ; \
40585 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
40586@endif gas
40587@if gcc
215c351a
PB
40588 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
40589 mkdir stage2-gcc; \
2d309510
PB
40590 mv stage2-gcc gcc ; \
40591 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184 40592@endif gcc
e69bf64b
PB
40593@if gmp
40594 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
40595 mkdir stage2-gmp; \
40596 mv stage2-gmp gmp ; \
40597 mv stage1-gmp prev-gmp || test -f stage1-lean
40598@endif gmp
40599@if mpfr
40600 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
40601 mkdir stage2-mpfr; \
40602 mv stage2-mpfr mpfr ; \
40603 mv stage1-mpfr prev-mpfr || test -f stage1-lean
40604@endif mpfr
acd26225
KG
40605@if mpc
40606 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
40607 mkdir stage2-mpc; \
40608 mv stage2-mpc mpc ; \
40609 mv stage1-mpc prev-mpc || test -f stage1-lean
40610@endif mpc
f8bf9252
SP
40611@if ppl
40612 @cd $(HOST_SUBDIR); [ -d stage2-ppl ] || \
40613 mkdir stage2-ppl; \
40614 mv stage2-ppl ppl ; \
40615 mv stage1-ppl prev-ppl || test -f stage1-lean
40616@endif ppl
40617@if cloog
40618 @cd $(HOST_SUBDIR); [ -d stage2-cloog ] || \
40619 mkdir stage2-cloog; \
40620 mv stage2-cloog cloog ; \
40621 mv stage1-cloog prev-cloog || test -f stage1-lean
40622@endif cloog
f61428ed
AO
40623@if libelf
40624 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
40625 mkdir stage2-libelf; \
40626 mv stage2-libelf libelf ; \
40627 mv stage1-libelf prev-libelf || test -f stage1-lean
40628@endif libelf
5afab7ad
ILT
40629@if gold
40630 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
40631 mkdir stage2-gold; \
40632 mv stage2-gold gold ; \
40633 mv stage1-gold prev-gold || test -f stage1-lean
40634@endif gold
7c27e184 40635@if intl
215c351a
PB
40636 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
40637 mkdir stage2-intl; \
2d309510
PB
40638 mv stage2-intl intl ; \
40639 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
40640@endif intl
40641@if ld
215c351a
PB
40642 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
40643 mkdir stage2-ld; \
2d309510
PB
40644 mv stage2-ld ld ; \
40645 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
40646@endif ld
40647@if libcpp
215c351a
PB
40648 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
40649 mkdir stage2-libcpp; \
2d309510
PB
40650 mv stage2-libcpp libcpp ; \
40651 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 40652@endif libcpp
a4b6c45a
BE
40653@if libdecnumber
40654 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
40655 mkdir stage2-libdecnumber; \
2d309510
PB
40656 mv stage2-libdecnumber libdecnumber ; \
40657 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 40658@endif libdecnumber
7c27e184 40659@if libiberty
215c351a
PB
40660 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
40661 mkdir stage2-libiberty; \
2d309510
PB
40662 mv stage2-libiberty libiberty ; \
40663 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
40664@endif libiberty
40665@if zlib
215c351a
PB
40666 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
40667 mkdir stage2-zlib; \
2d309510
PB
40668 mv stage2-zlib zlib ; \
40669 mv stage1-zlib prev-zlib || test -f stage1-lean
7c27e184 40670@endif zlib
d7f09764
DN
40671@if lto-plugin
40672 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
40673 mkdir stage2-lto-plugin; \
40674 mv stage2-lto-plugin lto-plugin ; \
40675 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
40676@endif lto-plugin
f41d6665
DJ
40677 @[ -d stage2-$(TARGET_SUBDIR) ] || \
40678 mkdir stage2-$(TARGET_SUBDIR); \
2d309510
PB
40679 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40680 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
7c27e184 40681
2d309510 40682stage2-end::
7c27e184 40683@if bfd
2d309510
PB
40684 @if test -d $(HOST_SUBDIR)/bfd ; then \
40685 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
40686 mv prev-bfd stage1-bfd ; : ; \
f41d6665 40687 fi
7c27e184
PB
40688@endif bfd
40689@if opcodes
2d309510
PB
40690 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40691 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
40692 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 40693 fi
7c27e184
PB
40694@endif opcodes
40695@if binutils
2d309510
PB
40696 @if test -d $(HOST_SUBDIR)/binutils ; then \
40697 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
40698 mv prev-binutils stage1-binutils ; : ; \
f41d6665 40699 fi
7c27e184
PB
40700@endif binutils
40701@if gas
2d309510
PB
40702 @if test -d $(HOST_SUBDIR)/gas ; then \
40703 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
40704 mv prev-gas stage1-gas ; : ; \
f41d6665 40705 fi
7c27e184
PB
40706@endif gas
40707@if gcc
2d309510
PB
40708 @if test -d $(HOST_SUBDIR)/gcc ; then \
40709 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
40710 mv prev-gcc stage1-gcc ; : ; \
f41d6665 40711 fi
7c27e184 40712@endif gcc
e69bf64b
PB
40713@if gmp
40714 @if test -d $(HOST_SUBDIR)/gmp ; then \
40715 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
40716 mv prev-gmp stage1-gmp ; : ; \
40717 fi
40718@endif gmp
40719@if mpfr
40720 @if test -d $(HOST_SUBDIR)/mpfr ; then \
40721 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
40722 mv prev-mpfr stage1-mpfr ; : ; \
40723 fi
40724@endif mpfr
acd26225
KG
40725@if mpc
40726 @if test -d $(HOST_SUBDIR)/mpc ; then \
40727 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
40728 mv prev-mpc stage1-mpc ; : ; \
40729 fi
40730@endif mpc
f8bf9252
SP
40731@if ppl
40732 @if test -d $(HOST_SUBDIR)/ppl ; then \
40733 cd $(HOST_SUBDIR); mv ppl stage2-ppl ; \
40734 mv prev-ppl stage1-ppl ; : ; \
40735 fi
40736@endif ppl
40737@if cloog
40738 @if test -d $(HOST_SUBDIR)/cloog ; then \
40739 cd $(HOST_SUBDIR); mv cloog stage2-cloog ; \
40740 mv prev-cloog stage1-cloog ; : ; \
40741 fi
40742@endif cloog
f61428ed
AO
40743@if libelf
40744 @if test -d $(HOST_SUBDIR)/libelf ; then \
40745 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
40746 mv prev-libelf stage1-libelf ; : ; \
40747 fi
40748@endif libelf
5afab7ad
ILT
40749@if gold
40750 @if test -d $(HOST_SUBDIR)/gold ; then \
40751 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
40752 mv prev-gold stage1-gold ; : ; \
40753 fi
40754@endif gold
7c27e184 40755@if intl
2d309510
PB
40756 @if test -d $(HOST_SUBDIR)/intl ; then \
40757 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
40758 mv prev-intl stage1-intl ; : ; \
f41d6665 40759 fi
7c27e184
PB
40760@endif intl
40761@if ld
2d309510
PB
40762 @if test -d $(HOST_SUBDIR)/ld ; then \
40763 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
40764 mv prev-ld stage1-ld ; : ; \
f41d6665 40765 fi
7c27e184
PB
40766@endif ld
40767@if libcpp
2d309510
PB
40768 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40769 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
40770 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 40771 fi
7c27e184 40772@endif libcpp
a4b6c45a 40773@if libdecnumber
2d309510
PB
40774 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40775 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
40776 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 40777 fi
a4b6c45a 40778@endif libdecnumber
7c27e184 40779@if libiberty
2d309510
PB
40780 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40781 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
40782 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 40783 fi
7c27e184
PB
40784@endif libiberty
40785@if zlib
2d309510
PB
40786 @if test -d $(HOST_SUBDIR)/zlib ; then \
40787 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
40788 mv prev-zlib stage1-zlib ; : ; \
f41d6665 40789 fi
7c27e184 40790@endif zlib
d7f09764
DN
40791@if lto-plugin
40792 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
40793 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
40794 mv prev-lto-plugin stage1-lto-plugin ; : ; \
40795 fi
40796@endif lto-plugin
f41d6665 40797 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40798 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
40799 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 40800 fi
2d309510 40801 rm -f stage_current
7c27e184 40802
8024d75e 40803# Bubble a bug fix through all the stages up to stage 2. They are
f41d6665 40804# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 40805# reconfigured either.
7c27e184
PB
40806.PHONY: stage2-bubble
40807stage2-bubble:: stage1-bubble
e7c84bf8
PB
40808 @r=`${PWD_COMMAND}`; export r; \
40809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40810 if test -f stage2-lean || test -f stage1-lean ; then \
ce521a9c
PB
40811 echo Skipping rebuild of stage2 ; \
40812 else \
1061f99e
PB
40813 $(MAKE) stage2-start; \
40814 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ce521a9c 40815 fi
7c27e184 40816
45f366ab 40817.PHONY: all-stage2 clean-stage2
45f366ab 40818do-clean: clean-stage2
45f366ab 40819
7c27e184
PB
40820# FIXME: Will not need to be conditional when toplevel bootstrap is the
40821# only possibility, but now it conflicts with no-bootstrap rules
40822@if gcc-bootstrap
40823
40824
40825
2d309510 40826.PHONY: bootstrap2 bootstrap2-lean
2abefe3d
PB
40827bootstrap2:
40828 echo stage2 > stage_final
40829 @r=`${PWD_COMMAND}`; export r; \
40830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40831 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
f41d6665 40832 @: $(MAKE); $(unstage)
2abefe3d
PB
40833 @r=`${PWD_COMMAND}`; export r; \
40834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 40835 TFLAGS="$(STAGE2_TFLAGS)"; \
2abefe3d 40836 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7c27e184 40837
2d309510
PB
40838bootstrap2-lean:
40839 echo stage2 > stage_final
40840 @r=`${PWD_COMMAND}`; export r; \
40841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40842 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
40843 @: $(MAKE); $(unstage)
40844 @r=`${PWD_COMMAND}`; export r; \
40845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 40846 TFLAGS="$(STAGE2_TFLAGS)"; \
2d309510
PB
40847 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
40848
7c27e184 40849
45f366ab 40850# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 40851distclean-stage1:: distclean-stage2
45f366ab 40852.PHONY: distclean-stage2
7c27e184 40853distclean-stage2::
f41d6665 40854 @: $(MAKE); $(stage)
a19e8f64 40855 @test "`cat stage_last`" != stage2 || rm -f stage_last
05750653 40856 rm -rf stage2-*
7c27e184
PB
40857
40858
40859@endif gcc-bootstrap
40860
40861
40862.PHONY: stage3-start stage3-end
40863
40864stage3-start::
f41d6665 40865 @: $(MAKE); $(stage); \
7c27e184 40866 echo stage3 > stage_current ; \
215c351a 40867 echo stage3 > stage_last; \
f41d6665 40868 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40869@if bfd
215c351a
PB
40870 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
40871 mkdir stage3-bfd; \
2d309510
PB
40872 mv stage3-bfd bfd ; \
40873 mv stage2-bfd prev-bfd || test -f stage2-lean
7c27e184
PB
40874@endif bfd
40875@if opcodes
215c351a
PB
40876 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
40877 mkdir stage3-opcodes; \
2d309510
PB
40878 mv stage3-opcodes opcodes ; \
40879 mv stage2-opcodes prev-opcodes || test -f stage2-lean
7c27e184
PB
40880@endif opcodes
40881@if binutils
215c351a
PB
40882 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
40883 mkdir stage3-binutils; \
2d309510
PB
40884 mv stage3-binutils binutils ; \
40885 mv stage2-binutils prev-binutils || test -f stage2-lean
7c27e184
PB
40886@endif binutils
40887@if gas
215c351a
PB
40888 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
40889 mkdir stage3-gas; \
2d309510
PB
40890 mv stage3-gas gas ; \
40891 mv stage2-gas prev-gas || test -f stage2-lean
7c27e184
PB
40892@endif gas
40893@if gcc
215c351a
PB
40894 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
40895 mkdir stage3-gcc; \
2d309510
PB
40896 mv stage3-gcc gcc ; \
40897 mv stage2-gcc prev-gcc || test -f stage2-lean
7c27e184 40898@endif gcc
e69bf64b
PB
40899@if gmp
40900 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
40901 mkdir stage3-gmp; \
40902 mv stage3-gmp gmp ; \
40903 mv stage2-gmp prev-gmp || test -f stage2-lean
40904@endif gmp
40905@if mpfr
40906 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
40907 mkdir stage3-mpfr; \
40908 mv stage3-mpfr mpfr ; \
40909 mv stage2-mpfr prev-mpfr || test -f stage2-lean
40910@endif mpfr
acd26225
KG
40911@if mpc
40912 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
40913 mkdir stage3-mpc; \
40914 mv stage3-mpc mpc ; \
40915 mv stage2-mpc prev-mpc || test -f stage2-lean
40916@endif mpc
f8bf9252
SP
40917@if ppl
40918 @cd $(HOST_SUBDIR); [ -d stage3-ppl ] || \
40919 mkdir stage3-ppl; \
40920 mv stage3-ppl ppl ; \
40921 mv stage2-ppl prev-ppl || test -f stage2-lean
40922@endif ppl
40923@if cloog
40924 @cd $(HOST_SUBDIR); [ -d stage3-cloog ] || \
40925 mkdir stage3-cloog; \
40926 mv stage3-cloog cloog ; \
40927 mv stage2-cloog prev-cloog || test -f stage2-lean
40928@endif cloog
f61428ed
AO
40929@if libelf
40930 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
40931 mkdir stage3-libelf; \
40932 mv stage3-libelf libelf ; \
40933 mv stage2-libelf prev-libelf || test -f stage2-lean
40934@endif libelf
5afab7ad
ILT
40935@if gold
40936 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
40937 mkdir stage3-gold; \
40938 mv stage3-gold gold ; \
40939 mv stage2-gold prev-gold || test -f stage2-lean
40940@endif gold
7c27e184 40941@if intl
215c351a
PB
40942 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
40943 mkdir stage3-intl; \
2d309510
PB
40944 mv stage3-intl intl ; \
40945 mv stage2-intl prev-intl || test -f stage2-lean
7c27e184
PB
40946@endif intl
40947@if ld
215c351a
PB
40948 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
40949 mkdir stage3-ld; \
2d309510
PB
40950 mv stage3-ld ld ; \
40951 mv stage2-ld prev-ld || test -f stage2-lean
7c27e184
PB
40952@endif ld
40953@if libcpp
215c351a
PB
40954 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
40955 mkdir stage3-libcpp; \
2d309510
PB
40956 mv stage3-libcpp libcpp ; \
40957 mv stage2-libcpp prev-libcpp || test -f stage2-lean
7c27e184 40958@endif libcpp
a4b6c45a
BE
40959@if libdecnumber
40960 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
40961 mkdir stage3-libdecnumber; \
2d309510
PB
40962 mv stage3-libdecnumber libdecnumber ; \
40963 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a4b6c45a 40964@endif libdecnumber
7c27e184 40965@if libiberty
215c351a
PB
40966 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
40967 mkdir stage3-libiberty; \
2d309510
PB
40968 mv stage3-libiberty libiberty ; \
40969 mv stage2-libiberty prev-libiberty || test -f stage2-lean
7c27e184
PB
40970@endif libiberty
40971@if zlib
215c351a
PB
40972 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
40973 mkdir stage3-zlib; \
2d309510
PB
40974 mv stage3-zlib zlib ; \
40975 mv stage2-zlib prev-zlib || test -f stage2-lean
7c27e184 40976@endif zlib
d7f09764
DN
40977@if lto-plugin
40978 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
40979 mkdir stage3-lto-plugin; \
40980 mv stage3-lto-plugin lto-plugin ; \
40981 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
40982@endif lto-plugin
f41d6665
DJ
40983 @[ -d stage3-$(TARGET_SUBDIR) ] || \
40984 mkdir stage3-$(TARGET_SUBDIR); \
2d309510
PB
40985 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40986 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
7c27e184 40987
2d309510 40988stage3-end::
7c27e184 40989@if bfd
2d309510
PB
40990 @if test -d $(HOST_SUBDIR)/bfd ; then \
40991 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
40992 mv prev-bfd stage2-bfd ; : ; \
f41d6665 40993 fi
7c27e184
PB
40994@endif bfd
40995@if opcodes
2d309510
PB
40996 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40997 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
40998 mv prev-opcodes stage2-opcodes ; : ; \
f41d6665 40999 fi
7c27e184
PB
41000@endif opcodes
41001@if binutils
2d309510
PB
41002 @if test -d $(HOST_SUBDIR)/binutils ; then \
41003 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
41004 mv prev-binutils stage2-binutils ; : ; \
f41d6665 41005 fi
7c27e184
PB
41006@endif binutils
41007@if gas
2d309510
PB
41008 @if test -d $(HOST_SUBDIR)/gas ; then \
41009 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
41010 mv prev-gas stage2-gas ; : ; \
f41d6665 41011 fi
7c27e184
PB
41012@endif gas
41013@if gcc
2d309510
PB
41014 @if test -d $(HOST_SUBDIR)/gcc ; then \
41015 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
41016 mv prev-gcc stage2-gcc ; : ; \
f41d6665 41017 fi
7c27e184 41018@endif gcc
e69bf64b
PB
41019@if gmp
41020 @if test -d $(HOST_SUBDIR)/gmp ; then \
41021 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
41022 mv prev-gmp stage2-gmp ; : ; \
41023 fi
41024@endif gmp
41025@if mpfr
41026 @if test -d $(HOST_SUBDIR)/mpfr ; then \
41027 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
41028 mv prev-mpfr stage2-mpfr ; : ; \
41029 fi
41030@endif mpfr
acd26225
KG
41031@if mpc
41032 @if test -d $(HOST_SUBDIR)/mpc ; then \
41033 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
41034 mv prev-mpc stage2-mpc ; : ; \
41035 fi
41036@endif mpc
f8bf9252
SP
41037@if ppl
41038 @if test -d $(HOST_SUBDIR)/ppl ; then \
41039 cd $(HOST_SUBDIR); mv ppl stage3-ppl ; \
41040 mv prev-ppl stage2-ppl ; : ; \
41041 fi
41042@endif ppl
41043@if cloog
41044 @if test -d $(HOST_SUBDIR)/cloog ; then \
41045 cd $(HOST_SUBDIR); mv cloog stage3-cloog ; \
41046 mv prev-cloog stage2-cloog ; : ; \
41047 fi
41048@endif cloog
f61428ed
AO
41049@if libelf
41050 @if test -d $(HOST_SUBDIR)/libelf ; then \
41051 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
41052 mv prev-libelf stage2-libelf ; : ; \
41053 fi
41054@endif libelf
5afab7ad
ILT
41055@if gold
41056 @if test -d $(HOST_SUBDIR)/gold ; then \
41057 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
41058 mv prev-gold stage2-gold ; : ; \
41059 fi
41060@endif gold
7c27e184 41061@if intl
2d309510
PB
41062 @if test -d $(HOST_SUBDIR)/intl ; then \
41063 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
41064 mv prev-intl stage2-intl ; : ; \
f41d6665 41065 fi
7c27e184
PB
41066@endif intl
41067@if ld
2d309510
PB
41068 @if test -d $(HOST_SUBDIR)/ld ; then \
41069 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
41070 mv prev-ld stage2-ld ; : ; \
f41d6665 41071 fi
7c27e184
PB
41072@endif ld
41073@if libcpp
2d309510
PB
41074 @if test -d $(HOST_SUBDIR)/libcpp ; then \
41075 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
41076 mv prev-libcpp stage2-libcpp ; : ; \
f41d6665 41077 fi
7c27e184 41078@endif libcpp
a4b6c45a 41079@if libdecnumber
2d309510
PB
41080 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
41081 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
41082 mv prev-libdecnumber stage2-libdecnumber ; : ; \
f41d6665 41083 fi
a4b6c45a 41084@endif libdecnumber
7c27e184 41085@if libiberty
2d309510
PB
41086 @if test -d $(HOST_SUBDIR)/libiberty ; then \
41087 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
41088 mv prev-libiberty stage2-libiberty ; : ; \
f41d6665 41089 fi
7c27e184
PB
41090@endif libiberty
41091@if zlib
2d309510
PB
41092 @if test -d $(HOST_SUBDIR)/zlib ; then \
41093 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
41094 mv prev-zlib stage2-zlib ; : ; \
f41d6665 41095 fi
7c27e184 41096@endif zlib
d7f09764
DN
41097@if lto-plugin
41098 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
41099 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
41100 mv prev-lto-plugin stage2-lto-plugin ; : ; \
41101 fi
41102@endif lto-plugin
f41d6665 41103 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
41104 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
41105 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
f41d6665 41106 fi
2d309510 41107 rm -f stage_current
7c27e184 41108
8024d75e 41109# Bubble a bug fix through all the stages up to stage 3. They are
f41d6665 41110# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 41111# reconfigured either.
7c27e184
PB
41112.PHONY: stage3-bubble
41113stage3-bubble:: stage2-bubble
e7c84bf8
PB
41114 @r=`${PWD_COMMAND}`; export r; \
41115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41116 if test -f stage3-lean || test -f stage2-lean ; then \
ce521a9c
PB
41117 echo Skipping rebuild of stage3 ; \
41118 else \
1061f99e 41119 $(MAKE) stage3-start; \
2d309510
PB
41120 if $(LEAN); then \
41121 rm -rf stage1-* ; \
41122 $(STAMP) stage1-lean ; \
41123 fi; \
1061f99e 41124 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ce521a9c 41125 fi
d19bca38 41126 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
7c27e184 41127
45f366ab 41128.PHONY: all-stage3 clean-stage3
45f366ab 41129do-clean: clean-stage3
45f366ab 41130
ce406537
PB
41131# FIXME: Will not need to be conditional when toplevel bootstrap is the
41132# only possibility, but now it conflicts with no-bootstrap rules
41133@if gcc-bootstrap
7c27e184 41134
ce406537 41135compare:
e7c84bf8
PB
41136 @r=`${PWD_COMMAND}`; export r; \
41137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41138 if test -f stage2-lean; then \
ce406537
PB
41139 echo Cannot compare object files as stage 2 was deleted. ; \
41140 exit 0 ; \
41141 fi; \
f41d6665 41142 : $(MAKE); $(stage); \
ce406537 41143 rm -f .bad_compare ; \
cc11cc9b 41144 echo Comparing stages 2 and 3 ; \
70cb2d9f
AO
41145 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
41146 files=`find stage3-* -name "*$(objext)" -print | \
41147 sed -n s,^stage$$sed-,,p` ; \
ce406537 41148 for file in $${files} ; do \
70cb2d9f
AO
41149 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
41150 if test ! -f $$f1; then continue; fi; \
bb286d71 41151 $(do-compare) > /dev/null 2>&1; \
1061f99e
PB
41152 if test $$? -eq 1; then \
41153 case $$file in \
f2689b09 41154 @compare_exclusions@) \
1061f99e
PB
41155 echo warning: $$file differs ;; \
41156 *) \
41157 echo $$file differs >> .bad_compare ;; \
41158 esac ; \
41159 fi ; \
ce406537
PB
41160 done ; \
41161 if [ -f .bad_compare ]; then \
41162 echo "Bootstrap comparison failure!"; \
41163 cat .bad_compare; \
41164 exit 1; \
41165 else \
cc11cc9b 41166 echo Comparison successful.; \
ce406537
PB
41167 fi ; \
41168 $(STAMP) compare
2d309510
PB
41169 if $(LEAN); then \
41170 rm -rf stage2-*; \
41171 $(STAMP) stage2-lean; \
41172 fi
ce521a9c 41173
7c27e184 41174
7c27e184 41175
2d309510 41176.PHONY: bootstrap bootstrap-lean
2abefe3d
PB
41177bootstrap:
41178 echo stage3 > stage_final
41179 @r=`${PWD_COMMAND}`; export r; \
41180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41181 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
f41d6665 41182 @: $(MAKE); $(unstage)
2abefe3d
PB
41183 @r=`${PWD_COMMAND}`; export r; \
41184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 41185 TFLAGS="$(STAGE3_TFLAGS)"; \
2abefe3d 41186 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 41187
2d309510
PB
41188bootstrap-lean:
41189 echo stage3 > stage_final
41190 @r=`${PWD_COMMAND}`; export r; \
41191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41192 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
41193 @: $(MAKE); $(unstage)
41194 @r=`${PWD_COMMAND}`; export r; \
41195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 41196 TFLAGS="$(STAGE3_TFLAGS)"; \
2d309510
PB
41197 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
41198
7c27e184 41199
ce406537
PB
41200# Rules to wipe a stage and all the following ones, also used for cleanstrap
41201distclean-stage2:: distclean-stage3
41202.PHONY: distclean-stage3
41203distclean-stage3::
f41d6665 41204 @: $(MAKE); $(stage)
a19e8f64 41205 @test "`cat stage_last`" != stage3 || rm -f stage_last
ce406537 41206 rm -rf stage3-* compare
45f366ab 41207
ce521a9c 41208
ce406537 41209.PHONY: cleanstrap
a19e8f64
PB
41210cleanstrap: do-distclean local-clean
41211 echo stage3 > stage_final
41212 @r=`${PWD_COMMAND}`; export r; \
41213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41214 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
41215 @: $(MAKE); $(unstage)
41216 @r=`${PWD_COMMAND}`; export r; \
41217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 41218 TFLAGS="$(STAGE3_TFLAGS)"; \
bb286d71
AO
41219 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
41220
41221@endif gcc-bootstrap
41222
41223
7c27e184
PB
41224.PHONY: stage4-start stage4-end
41225
41226stage4-start::
f41d6665 41227 @: $(MAKE); $(stage); \
7c27e184 41228 echo stage4 > stage_current ; \
215c351a 41229 echo stage4 > stage_last; \
f41d6665 41230 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 41231@if bfd
215c351a
PB
41232 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
41233 mkdir stage4-bfd; \
2d309510
PB
41234 mv stage4-bfd bfd ; \
41235 mv stage3-bfd prev-bfd || test -f stage3-lean
7c27e184
PB
41236@endif bfd
41237@if opcodes
215c351a
PB
41238 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
41239 mkdir stage4-opcodes; \
2d309510
PB
41240 mv stage4-opcodes opcodes ; \
41241 mv stage3-opcodes prev-opcodes || test -f stage3-lean
7c27e184
PB
41242@endif opcodes
41243@if binutils
215c351a
PB
41244 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
41245 mkdir stage4-binutils; \
2d309510
PB
41246 mv stage4-binutils binutils ; \
41247 mv stage3-binutils prev-binutils || test -f stage3-lean
7c27e184
PB
41248@endif binutils
41249@if gas
215c351a
PB
41250 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
41251 mkdir stage4-gas; \
2d309510
PB
41252 mv stage4-gas gas ; \
41253 mv stage3-gas prev-gas || test -f stage3-lean
7c27e184
PB
41254@endif gas
41255@if gcc
215c351a
PB
41256 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
41257 mkdir stage4-gcc; \
2d309510
PB
41258 mv stage4-gcc gcc ; \
41259 mv stage3-gcc prev-gcc || test -f stage3-lean
7c27e184 41260@endif gcc
e69bf64b
PB
41261@if gmp
41262 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
41263 mkdir stage4-gmp; \
41264 mv stage4-gmp gmp ; \
41265 mv stage3-gmp prev-gmp || test -f stage3-lean
41266@endif gmp
41267@if mpfr
41268 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
41269 mkdir stage4-mpfr; \
41270 mv stage4-mpfr mpfr ; \
41271 mv stage3-mpfr prev-mpfr || test -f stage3-lean
41272@endif mpfr
acd26225
KG
41273@if mpc
41274 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
41275 mkdir stage4-mpc; \
41276 mv stage4-mpc mpc ; \
41277 mv stage3-mpc prev-mpc || test -f stage3-lean
41278@endif mpc
f8bf9252
SP
41279@if ppl
41280 @cd $(HOST_SUBDIR); [ -d stage4-ppl ] || \
41281 mkdir stage4-ppl; \
41282 mv stage4-ppl ppl ; \
41283 mv stage3-ppl prev-ppl || test -f stage3-lean
41284@endif ppl
41285@if cloog
41286 @cd $(HOST_SUBDIR); [ -d stage4-cloog ] || \
41287 mkdir stage4-cloog; \
41288 mv stage4-cloog cloog ; \
41289 mv stage3-cloog prev-cloog || test -f stage3-lean
41290@endif cloog
f61428ed
AO
41291@if libelf
41292 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
41293 mkdir stage4-libelf; \
41294 mv stage4-libelf libelf ; \
41295 mv stage3-libelf prev-libelf || test -f stage3-lean
41296@endif libelf
5afab7ad
ILT
41297@if gold
41298 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
41299 mkdir stage4-gold; \
41300 mv stage4-gold gold ; \
41301 mv stage3-gold prev-gold || test -f stage3-lean
41302@endif gold
7c27e184 41303@if intl
215c351a
PB
41304 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
41305 mkdir stage4-intl; \
2d309510
PB
41306 mv stage4-intl intl ; \
41307 mv stage3-intl prev-intl || test -f stage3-lean
7c27e184
PB
41308@endif intl
41309@if ld
215c351a
PB
41310 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
41311 mkdir stage4-ld; \
2d309510
PB
41312 mv stage4-ld ld ; \
41313 mv stage3-ld prev-ld || test -f stage3-lean
7c27e184
PB
41314@endif ld
41315@if libcpp
215c351a
PB
41316 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
41317 mkdir stage4-libcpp; \
2d309510
PB
41318 mv stage4-libcpp libcpp ; \
41319 mv stage3-libcpp prev-libcpp || test -f stage3-lean
7c27e184 41320@endif libcpp
a4b6c45a
BE
41321@if libdecnumber
41322 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
41323 mkdir stage4-libdecnumber; \
2d309510
PB
41324 mv stage4-libdecnumber libdecnumber ; \
41325 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a4b6c45a 41326@endif libdecnumber
7c27e184 41327@if libiberty
215c351a
PB
41328 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
41329 mkdir stage4-libiberty; \
2d309510
PB
41330 mv stage4-libiberty libiberty ; \
41331 mv stage3-libiberty prev-libiberty || test -f stage3-lean
7c27e184
PB
41332@endif libiberty
41333@if zlib
215c351a
PB
41334 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
41335 mkdir stage4-zlib; \
2d309510
PB
41336 mv stage4-zlib zlib ; \
41337 mv stage3-zlib prev-zlib || test -f stage3-lean
7c27e184 41338@endif zlib
d7f09764
DN
41339@if lto-plugin
41340 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
41341 mkdir stage4-lto-plugin; \
41342 mv stage4-lto-plugin lto-plugin ; \
41343 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
41344@endif lto-plugin
f41d6665
DJ
41345 @[ -d stage4-$(TARGET_SUBDIR) ] || \
41346 mkdir stage4-$(TARGET_SUBDIR); \
2d309510
PB
41347 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
41348 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
7c27e184 41349
2d309510 41350stage4-end::
7c27e184 41351@if bfd
2d309510
PB
41352 @if test -d $(HOST_SUBDIR)/bfd ; then \
41353 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
41354 mv prev-bfd stage3-bfd ; : ; \
f41d6665 41355 fi
7c27e184
PB
41356@endif bfd
41357@if opcodes
2d309510
PB
41358 @if test -d $(HOST_SUBDIR)/opcodes ; then \
41359 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
41360 mv prev-opcodes stage3-opcodes ; : ; \
f41d6665 41361 fi
7c27e184
PB
41362@endif opcodes
41363@if binutils
2d309510
PB
41364 @if test -d $(HOST_SUBDIR)/binutils ; then \
41365 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
41366 mv prev-binutils stage3-binutils ; : ; \
f41d6665 41367 fi
7c27e184
PB
41368@endif binutils
41369@if gas
2d309510
PB
41370 @if test -d $(HOST_SUBDIR)/gas ; then \
41371 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
41372 mv prev-gas stage3-gas ; : ; \
f41d6665 41373 fi
7c27e184
PB
41374@endif gas
41375@if gcc
2d309510
PB
41376 @if test -d $(HOST_SUBDIR)/gcc ; then \
41377 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
41378 mv prev-gcc stage3-gcc ; : ; \
f41d6665 41379 fi
7c27e184 41380@endif gcc
e69bf64b
PB
41381@if gmp
41382 @if test -d $(HOST_SUBDIR)/gmp ; then \
41383 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
41384 mv prev-gmp stage3-gmp ; : ; \
41385 fi
41386@endif gmp
41387@if mpfr
41388 @if test -d $(HOST_SUBDIR)/mpfr ; then \
41389 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
41390 mv prev-mpfr stage3-mpfr ; : ; \
41391 fi
41392@endif mpfr
acd26225
KG
41393@if mpc
41394 @if test -d $(HOST_SUBDIR)/mpc ; then \
41395 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
41396 mv prev-mpc stage3-mpc ; : ; \
41397 fi
41398@endif mpc
f8bf9252
SP
41399@if ppl
41400 @if test -d $(HOST_SUBDIR)/ppl ; then \
41401 cd $(HOST_SUBDIR); mv ppl stage4-ppl ; \
41402 mv prev-ppl stage3-ppl ; : ; \
41403 fi
41404@endif ppl
41405@if cloog
41406 @if test -d $(HOST_SUBDIR)/cloog ; then \
41407 cd $(HOST_SUBDIR); mv cloog stage4-cloog ; \
41408 mv prev-cloog stage3-cloog ; : ; \
41409 fi
41410@endif cloog
f61428ed
AO
41411@if libelf
41412 @if test -d $(HOST_SUBDIR)/libelf ; then \
41413 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
41414 mv prev-libelf stage3-libelf ; : ; \
41415 fi
41416@endif libelf
5afab7ad
ILT
41417@if gold
41418 @if test -d $(HOST_SUBDIR)/gold ; then \
41419 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
41420 mv prev-gold stage3-gold ; : ; \
41421 fi
41422@endif gold
7c27e184 41423@if intl
2d309510
PB
41424 @if test -d $(HOST_SUBDIR)/intl ; then \
41425 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
41426 mv prev-intl stage3-intl ; : ; \
f41d6665 41427 fi
7c27e184
PB
41428@endif intl
41429@if ld
2d309510
PB
41430 @if test -d $(HOST_SUBDIR)/ld ; then \
41431 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
41432 mv prev-ld stage3-ld ; : ; \
f41d6665 41433 fi
7c27e184
PB
41434@endif ld
41435@if libcpp
2d309510
PB
41436 @if test -d $(HOST_SUBDIR)/libcpp ; then \
41437 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
41438 mv prev-libcpp stage3-libcpp ; : ; \
f41d6665 41439 fi
7c27e184 41440@endif libcpp
a4b6c45a 41441@if libdecnumber
2d309510
PB
41442 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
41443 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
41444 mv prev-libdecnumber stage3-libdecnumber ; : ; \
f41d6665 41445 fi
a4b6c45a 41446@endif libdecnumber
7c27e184 41447@if libiberty
2d309510
PB
41448 @if test -d $(HOST_SUBDIR)/libiberty ; then \
41449 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
41450 mv prev-libiberty stage3-libiberty ; : ; \
f41d6665 41451 fi
7c27e184
PB
41452@endif libiberty
41453@if zlib
2d309510
PB
41454 @if test -d $(HOST_SUBDIR)/zlib ; then \
41455 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
41456 mv prev-zlib stage3-zlib ; : ; \
f41d6665 41457 fi
7c27e184 41458@endif zlib
d7f09764
DN
41459@if lto-plugin
41460 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
41461 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
41462 mv prev-lto-plugin stage3-lto-plugin ; : ; \
41463 fi
41464@endif lto-plugin
f41d6665 41465 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
41466 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
41467 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
f41d6665 41468 fi
2d309510 41469 rm -f stage_current
7c27e184 41470
8024d75e 41471# Bubble a bug fix through all the stages up to stage 4. They are
f41d6665 41472# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 41473# reconfigured either.
7c27e184
PB
41474.PHONY: stage4-bubble
41475stage4-bubble:: stage3-bubble
e7c84bf8
PB
41476 @r=`${PWD_COMMAND}`; export r; \
41477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41478 if test -f stage4-lean || test -f stage3-lean ; then \
ce521a9c
PB
41479 echo Skipping rebuild of stage4 ; \
41480 else \
1061f99e 41481 $(MAKE) stage4-start; \
2d309510
PB
41482 if $(LEAN); then \
41483 rm -rf stage2-* ; \
41484 $(STAMP) stage2-lean ; \
41485 fi; \
1061f99e 41486 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ce521a9c 41487 fi
d19bca38 41488 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
7c27e184 41489
45f366ab 41490.PHONY: all-stage4 clean-stage4
45f366ab 41491do-clean: clean-stage4
45f366ab 41492
ce406537
PB
41493# FIXME: Will not need to be conditional when toplevel bootstrap is the
41494# only possibility, but now it conflicts with no-bootstrap rules
41495@if gcc-bootstrap
7c27e184 41496
ce406537 41497compare3:
e7c84bf8
PB
41498 @r=`${PWD_COMMAND}`; export r; \
41499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41500 if test -f stage3-lean; then \
ce406537
PB
41501 echo Cannot compare object files as stage 3 was deleted. ; \
41502 exit 0 ; \
41503 fi; \
f41d6665 41504 : $(MAKE); $(stage); \
ce406537 41505 rm -f .bad_compare ; \
cc11cc9b 41506 echo Comparing stages 3 and 4 ; \
70cb2d9f
AO
41507 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
41508 files=`find stage4-* -name "*$(objext)" -print | \
41509 sed -n s,^stage$$sed-,,p` ; \
ce406537 41510 for file in $${files} ; do \
70cb2d9f
AO
41511 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
41512 if test ! -f $$f1; then continue; fi; \
bb286d71 41513 $(do-compare3) > /dev/null 2>&1; \
1061f99e
PB
41514 if test $$? -eq 1; then \
41515 case $$file in \
f2689b09 41516 @compare_exclusions@) \
1061f99e
PB
41517 echo warning: $$file differs ;; \
41518 *) \
41519 echo $$file differs >> .bad_compare ;; \
41520 esac ; \
41521 fi ; \
ce406537
PB
41522 done ; \
41523 if [ -f .bad_compare ]; then \
41524 echo "Bootstrap comparison failure!"; \
41525 cat .bad_compare; \
41526 exit 1; \
41527 else \
cc11cc9b 41528 echo Comparison successful.; \
ce406537
PB
41529 fi ; \
41530 $(STAMP) compare3
2d309510
PB
41531 if $(LEAN); then \
41532 rm -rf stage3-*; \
41533 $(STAMP) stage3-lean; \
41534 fi
ce521a9c 41535
7c27e184 41536
7c27e184 41537
2d309510 41538.PHONY: bootstrap4 bootstrap4-lean
2abefe3d
PB
41539bootstrap4:
41540 echo stage4 > stage_final
41541 @r=`${PWD_COMMAND}`; export r; \
41542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41543 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
f41d6665 41544 @: $(MAKE); $(unstage)
2abefe3d
PB
41545 @r=`${PWD_COMMAND}`; export r; \
41546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 41547 TFLAGS="$(STAGE4_TFLAGS)"; \
2abefe3d 41548 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 41549
2d309510
PB
41550bootstrap4-lean:
41551 echo stage4 > stage_final
41552 @r=`${PWD_COMMAND}`; export r; \
41553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41554 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
41555 @: $(MAKE); $(unstage)
41556 @r=`${PWD_COMMAND}`; export r; \
41557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 41558 TFLAGS="$(STAGE4_TFLAGS)"; \
2d309510
PB
41559 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
41560
7c27e184 41561
ce406537
PB
41562# Rules to wipe a stage and all the following ones, also used for cleanstrap
41563distclean-stage3:: distclean-stage4
41564.PHONY: distclean-stage4
41565distclean-stage4::
f41d6665 41566 @: $(MAKE); $(stage)
a19e8f64 41567 @test "`cat stage_last`" != stage4 || rm -f stage_last
ce406537 41568 rm -rf stage4-* compare3
45f366ab 41569
ce521a9c 41570
ce406537 41571@endif gcc-bootstrap
7c27e184
PB
41572
41573
41574.PHONY: stageprofile-start stageprofile-end
41575
41576stageprofile-start::
f41d6665 41577 @: $(MAKE); $(stage); \
7c27e184 41578 echo stageprofile > stage_current ; \
215c351a 41579 echo stageprofile > stage_last; \
f41d6665 41580 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 41581@if bfd
215c351a
PB
41582 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
41583 mkdir stageprofile-bfd; \
2d309510
PB
41584 mv stageprofile-bfd bfd ; \
41585 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
41586@endif bfd
41587@if opcodes
215c351a
PB
41588 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
41589 mkdir stageprofile-opcodes; \
2d309510
PB
41590 mv stageprofile-opcodes opcodes ; \
41591 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
41592@endif opcodes
41593@if binutils
215c351a
PB
41594 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
41595 mkdir stageprofile-binutils; \
2d309510
PB
41596 mv stageprofile-binutils binutils ; \
41597 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
41598@endif binutils
41599@if gas
215c351a
PB
41600 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
41601 mkdir stageprofile-gas; \
2d309510
PB
41602 mv stageprofile-gas gas ; \
41603 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
41604@endif gas
41605@if gcc
215c351a
PB
41606 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
41607 mkdir stageprofile-gcc; \
2d309510
PB
41608 mv stageprofile-gcc gcc ; \
41609 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184 41610@endif gcc
e69bf64b
PB
41611@if gmp
41612 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
41613 mkdir stageprofile-gmp; \
41614 mv stageprofile-gmp gmp ; \
41615 mv stage1-gmp prev-gmp || test -f stage1-lean
41616@endif gmp
41617@if mpfr
41618 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
41619 mkdir stageprofile-mpfr; \
41620 mv stageprofile-mpfr mpfr ; \
41621 mv stage1-mpfr prev-mpfr || test -f stage1-lean
41622@endif mpfr
acd26225
KG
41623@if mpc
41624 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
41625 mkdir stageprofile-mpc; \
41626 mv stageprofile-mpc mpc ; \
41627 mv stage1-mpc prev-mpc || test -f stage1-lean
41628@endif mpc
f8bf9252
SP
41629@if ppl
41630 @cd $(HOST_SUBDIR); [ -d stageprofile-ppl ] || \
41631 mkdir stageprofile-ppl; \
41632 mv stageprofile-ppl ppl ; \
41633 mv stage1-ppl prev-ppl || test -f stage1-lean
41634@endif ppl
41635@if cloog
41636 @cd $(HOST_SUBDIR); [ -d stageprofile-cloog ] || \
41637 mkdir stageprofile-cloog; \
41638 mv stageprofile-cloog cloog ; \
41639 mv stage1-cloog prev-cloog || test -f stage1-lean
41640@endif cloog
f61428ed
AO
41641@if libelf
41642 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
41643 mkdir stageprofile-libelf; \
41644 mv stageprofile-libelf libelf ; \
41645 mv stage1-libelf prev-libelf || test -f stage1-lean
41646@endif libelf
5afab7ad
ILT
41647@if gold
41648 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
41649 mkdir stageprofile-gold; \
41650 mv stageprofile-gold gold ; \
41651 mv stage1-gold prev-gold || test -f stage1-lean
41652@endif gold
7c27e184 41653@if intl
215c351a
PB
41654 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
41655 mkdir stageprofile-intl; \
2d309510
PB
41656 mv stageprofile-intl intl ; \
41657 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
41658@endif intl
41659@if ld
215c351a
PB
41660 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
41661 mkdir stageprofile-ld; \
2d309510
PB
41662 mv stageprofile-ld ld ; \
41663 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
41664@endif ld
41665@if libcpp
215c351a
PB
41666 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
41667 mkdir stageprofile-libcpp; \
2d309510
PB
41668 mv stageprofile-libcpp libcpp ; \
41669 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 41670@endif libcpp
a4b6c45a
BE
41671@if libdecnumber
41672 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
41673 mkdir stageprofile-libdecnumber; \
2d309510
PB
41674 mv stageprofile-libdecnumber libdecnumber ; \
41675 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 41676@endif libdecnumber
7c27e184 41677@if libiberty
215c351a
PB
41678 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
41679 mkdir stageprofile-libiberty; \
2d309510
PB
41680 mv stageprofile-libiberty libiberty ; \
41681 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
41682@endif libiberty
41683@if zlib
ce406537
PB
41684 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
41685 mkdir stageprofile-zlib; \
2d309510
PB
41686 mv stageprofile-zlib zlib ; \
41687 mv stage1-zlib prev-zlib || test -f stage1-lean
ce406537 41688@endif zlib
d7f09764
DN
41689@if lto-plugin
41690 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
41691 mkdir stageprofile-lto-plugin; \
41692 mv stageprofile-lto-plugin lto-plugin ; \
41693 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
41694@endif lto-plugin
f41d6665
DJ
41695 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
41696 mkdir stageprofile-$(TARGET_SUBDIR); \
2d309510
PB
41697 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
41698 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
45f366ab 41699
2d309510 41700stageprofile-end::
ce406537 41701@if bfd
2d309510
PB
41702 @if test -d $(HOST_SUBDIR)/bfd ; then \
41703 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
41704 mv prev-bfd stage1-bfd ; : ; \
f41d6665 41705 fi
ce406537
PB
41706@endif bfd
41707@if opcodes
2d309510
PB
41708 @if test -d $(HOST_SUBDIR)/opcodes ; then \
41709 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
41710 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 41711 fi
ce406537
PB
41712@endif opcodes
41713@if binutils
2d309510
PB
41714 @if test -d $(HOST_SUBDIR)/binutils ; then \
41715 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
41716 mv prev-binutils stage1-binutils ; : ; \
f41d6665 41717 fi
ce406537
PB
41718@endif binutils
41719@if gas
2d309510
PB
41720 @if test -d $(HOST_SUBDIR)/gas ; then \
41721 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
41722 mv prev-gas stage1-gas ; : ; \
f41d6665 41723 fi
ce406537
PB
41724@endif gas
41725@if gcc
2d309510
PB
41726 @if test -d $(HOST_SUBDIR)/gcc ; then \
41727 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
41728 mv prev-gcc stage1-gcc ; : ; \
f41d6665 41729 fi
ce406537 41730@endif gcc
e69bf64b
PB
41731@if gmp
41732 @if test -d $(HOST_SUBDIR)/gmp ; then \
41733 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
41734 mv prev-gmp stage1-gmp ; : ; \
41735 fi
41736@endif gmp
41737@if mpfr
41738 @if test -d $(HOST_SUBDIR)/mpfr ; then \
41739 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
41740 mv prev-mpfr stage1-mpfr ; : ; \
41741 fi
41742@endif mpfr
acd26225
KG
41743@if mpc
41744 @if test -d $(HOST_SUBDIR)/mpc ; then \
41745 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
41746 mv prev-mpc stage1-mpc ; : ; \
41747 fi
41748@endif mpc
f8bf9252
SP
41749@if ppl
41750 @if test -d $(HOST_SUBDIR)/ppl ; then \
41751 cd $(HOST_SUBDIR); mv ppl stageprofile-ppl ; \
41752 mv prev-ppl stage1-ppl ; : ; \
41753 fi
41754@endif ppl
41755@if cloog
41756 @if test -d $(HOST_SUBDIR)/cloog ; then \
41757 cd $(HOST_SUBDIR); mv cloog stageprofile-cloog ; \
41758 mv prev-cloog stage1-cloog ; : ; \
41759 fi
41760@endif cloog
f61428ed
AO
41761@if libelf
41762 @if test -d $(HOST_SUBDIR)/libelf ; then \
41763 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
41764 mv prev-libelf stage1-libelf ; : ; \
41765 fi
41766@endif libelf
5afab7ad
ILT
41767@if gold
41768 @if test -d $(HOST_SUBDIR)/gold ; then \
41769 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
41770 mv prev-gold stage1-gold ; : ; \
41771 fi
41772@endif gold
ce406537 41773@if intl
2d309510
PB
41774 @if test -d $(HOST_SUBDIR)/intl ; then \
41775 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
41776 mv prev-intl stage1-intl ; : ; \
f41d6665 41777 fi
ce406537
PB
41778@endif intl
41779@if ld
2d309510
PB
41780 @if test -d $(HOST_SUBDIR)/ld ; then \
41781 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
41782 mv prev-ld stage1-ld ; : ; \
f41d6665 41783 fi
ce406537
PB
41784@endif ld
41785@if libcpp
2d309510
PB
41786 @if test -d $(HOST_SUBDIR)/libcpp ; then \
41787 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
41788 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 41789 fi
ce406537 41790@endif libcpp
a4b6c45a 41791@if libdecnumber
2d309510
PB
41792 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
41793 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
41794 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 41795 fi
a4b6c45a 41796@endif libdecnumber
ce406537 41797@if libiberty
2d309510
PB
41798 @if test -d $(HOST_SUBDIR)/libiberty ; then \
41799 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
41800 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 41801 fi
ce406537
PB
41802@endif libiberty
41803@if zlib
2d309510
PB
41804 @if test -d $(HOST_SUBDIR)/zlib ; then \
41805 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
41806 mv prev-zlib stage1-zlib ; : ; \
f41d6665 41807 fi
ce406537 41808@endif zlib
d7f09764
DN
41809@if lto-plugin
41810 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
41811 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
41812 mv prev-lto-plugin stage1-lto-plugin ; : ; \
41813 fi
41814@endif lto-plugin
f41d6665 41815 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
41816 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
41817 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 41818 fi
2d309510 41819 rm -f stage_current
7c27e184 41820
8024d75e 41821# Bubble a bug fix through all the stages up to stage profile. They are
f41d6665 41822# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 41823# reconfigured either.
ce406537
PB
41824.PHONY: stageprofile-bubble
41825stageprofile-bubble:: stage1-bubble
e7c84bf8
PB
41826 @r=`${PWD_COMMAND}`; export r; \
41827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41828 if test -f stageprofile-lean || test -f stage1-lean ; then \
ce406537
PB
41829 echo Skipping rebuild of stageprofile ; \
41830 else \
1061f99e
PB
41831 $(MAKE) stageprofile-start; \
41832 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
ce406537 41833 fi
7c27e184 41834
ce406537
PB
41835.PHONY: all-stageprofile clean-stageprofile
41836do-clean: clean-stageprofile
45f366ab 41837
7c27e184
PB
41838# FIXME: Will not need to be conditional when toplevel bootstrap is the
41839# only possibility, but now it conflicts with no-bootstrap rules
41840@if gcc-bootstrap
41841
41842
41843
41844
45f366ab 41845# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 41846distclean-stage1:: distclean-stageprofile
45f366ab 41847.PHONY: distclean-stageprofile
7c27e184 41848distclean-stageprofile::
f41d6665 41849 @: $(MAKE); $(stage)
a19e8f64 41850 @test "`cat stage_last`" != stageprofile || rm -f stage_last
05750653 41851 rm -rf stageprofile-*
148907ea
PB
41852
41853
7c27e184 41854@endif gcc-bootstrap
148907ea
PB
41855
41856
7c27e184 41857.PHONY: stagefeedback-start stagefeedback-end
148907ea 41858
7c27e184 41859stagefeedback-start::
f41d6665 41860 @: $(MAKE); $(stage); \
7c27e184 41861 echo stagefeedback > stage_current ; \
215c351a 41862 echo stagefeedback > stage_last; \
f41d6665 41863 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 41864@if bfd
215c351a
PB
41865 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
41866 mkdir stagefeedback-bfd; \
2d309510
PB
41867 mv stagefeedback-bfd bfd ; \
41868 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
7c27e184
PB
41869@endif bfd
41870@if opcodes
215c351a
PB
41871 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
41872 mkdir stagefeedback-opcodes; \
2d309510
PB
41873 mv stagefeedback-opcodes opcodes ; \
41874 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
7c27e184
PB
41875@endif opcodes
41876@if binutils
215c351a
PB
41877 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
41878 mkdir stagefeedback-binutils; \
2d309510
PB
41879 mv stagefeedback-binutils binutils ; \
41880 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
7c27e184
PB
41881@endif binutils
41882@if gas
215c351a
PB
41883 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
41884 mkdir stagefeedback-gas; \
2d309510
PB
41885 mv stagefeedback-gas gas ; \
41886 mv stageprofile-gas prev-gas || test -f stageprofile-lean
7c27e184
PB
41887@endif gas
41888@if gcc
215c351a
PB
41889 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
41890 mkdir stagefeedback-gcc; \
2d309510
PB
41891 mv stagefeedback-gcc gcc ; \
41892 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
7c27e184 41893@endif gcc
e69bf64b
PB
41894@if gmp
41895 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
41896 mkdir stagefeedback-gmp; \
41897 mv stagefeedback-gmp gmp ; \
41898 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
41899@endif gmp
41900@if mpfr
41901 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
41902 mkdir stagefeedback-mpfr; \
41903 mv stagefeedback-mpfr mpfr ; \
41904 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
41905@endif mpfr
acd26225
KG
41906@if mpc
41907 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
41908 mkdir stagefeedback-mpc; \
41909 mv stagefeedback-mpc mpc ; \
41910 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
41911@endif mpc
f8bf9252
SP
41912@if ppl
41913 @cd $(HOST_SUBDIR); [ -d stagefeedback-ppl ] || \
41914 mkdir stagefeedback-ppl; \
41915 mv stagefeedback-ppl ppl ; \
41916 mv stageprofile-ppl prev-ppl || test -f stageprofile-lean
41917@endif ppl
41918@if cloog
41919 @cd $(HOST_SUBDIR); [ -d stagefeedback-cloog ] || \
41920 mkdir stagefeedback-cloog; \
41921 mv stagefeedback-cloog cloog ; \
41922 mv stageprofile-cloog prev-cloog || test -f stageprofile-lean
41923@endif cloog
f61428ed
AO
41924@if libelf
41925 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
41926 mkdir stagefeedback-libelf; \
41927 mv stagefeedback-libelf libelf ; \
41928 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
41929@endif libelf
5afab7ad
ILT
41930@if gold
41931 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
41932 mkdir stagefeedback-gold; \
41933 mv stagefeedback-gold gold ; \
41934 mv stageprofile-gold prev-gold || test -f stageprofile-lean
41935@endif gold
7c27e184 41936@if intl
215c351a
PB
41937 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
41938 mkdir stagefeedback-intl; \
2d309510
PB
41939 mv stagefeedback-intl intl ; \
41940 mv stageprofile-intl prev-intl || test -f stageprofile-lean
7c27e184
PB
41941@endif intl
41942@if ld
215c351a
PB
41943 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
41944 mkdir stagefeedback-ld; \
2d309510
PB
41945 mv stagefeedback-ld ld ; \
41946 mv stageprofile-ld prev-ld || test -f stageprofile-lean
7c27e184
PB
41947@endif ld
41948@if libcpp
215c351a
PB
41949 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
41950 mkdir stagefeedback-libcpp; \
2d309510
PB
41951 mv stagefeedback-libcpp libcpp ; \
41952 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
7c27e184 41953@endif libcpp
a4b6c45a
BE
41954@if libdecnumber
41955 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
41956 mkdir stagefeedback-libdecnumber; \
2d309510
PB
41957 mv stagefeedback-libdecnumber libdecnumber ; \
41958 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a4b6c45a 41959@endif libdecnumber
7c27e184 41960@if libiberty
215c351a
PB
41961 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
41962 mkdir stagefeedback-libiberty; \
2d309510
PB
41963 mv stagefeedback-libiberty libiberty ; \
41964 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
7c27e184
PB
41965@endif libiberty
41966@if zlib
215c351a
PB
41967 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
41968 mkdir stagefeedback-zlib; \
2d309510
PB
41969 mv stagefeedback-zlib zlib ; \
41970 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
7c27e184 41971@endif zlib
d7f09764
DN
41972@if lto-plugin
41973 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
41974 mkdir stagefeedback-lto-plugin; \
41975 mv stagefeedback-lto-plugin lto-plugin ; \
41976 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
41977@endif lto-plugin
f41d6665
DJ
41978 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
41979 mkdir stagefeedback-$(TARGET_SUBDIR); \
2d309510
PB
41980 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
41981 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
148907ea 41982
2d309510 41983stagefeedback-end::
7c27e184 41984@if bfd
2d309510
PB
41985 @if test -d $(HOST_SUBDIR)/bfd ; then \
41986 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
41987 mv prev-bfd stageprofile-bfd ; : ; \
f41d6665 41988 fi
7c27e184
PB
41989@endif bfd
41990@if opcodes
2d309510
PB
41991 @if test -d $(HOST_SUBDIR)/opcodes ; then \
41992 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
41993 mv prev-opcodes stageprofile-opcodes ; : ; \
f41d6665 41994 fi
7c27e184
PB
41995@endif opcodes
41996@if binutils
2d309510
PB
41997 @if test -d $(HOST_SUBDIR)/binutils ; then \
41998 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
41999 mv prev-binutils stageprofile-binutils ; : ; \
f41d6665 42000 fi
7c27e184
PB
42001@endif binutils
42002@if gas
2d309510
PB
42003 @if test -d $(HOST_SUBDIR)/gas ; then \
42004 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
42005 mv prev-gas stageprofile-gas ; : ; \
f41d6665 42006 fi
7c27e184
PB
42007@endif gas
42008@if gcc
2d309510
PB
42009 @if test -d $(HOST_SUBDIR)/gcc ; then \
42010 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
42011 mv prev-gcc stageprofile-gcc ; : ; \
f41d6665 42012 fi
7c27e184 42013@endif gcc
e69bf64b
PB
42014@if gmp
42015 @if test -d $(HOST_SUBDIR)/gmp ; then \
42016 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
42017 mv prev-gmp stageprofile-gmp ; : ; \
42018 fi
42019@endif gmp
42020@if mpfr
42021 @if test -d $(HOST_SUBDIR)/mpfr ; then \
42022 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
42023 mv prev-mpfr stageprofile-mpfr ; : ; \
42024 fi
42025@endif mpfr
acd26225
KG
42026@if mpc
42027 @if test -d $(HOST_SUBDIR)/mpc ; then \
42028 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
42029 mv prev-mpc stageprofile-mpc ; : ; \
42030 fi
42031@endif mpc
f8bf9252
SP
42032@if ppl
42033 @if test -d $(HOST_SUBDIR)/ppl ; then \
42034 cd $(HOST_SUBDIR); mv ppl stagefeedback-ppl ; \
42035 mv prev-ppl stageprofile-ppl ; : ; \
42036 fi
42037@endif ppl
42038@if cloog
42039 @if test -d $(HOST_SUBDIR)/cloog ; then \
42040 cd $(HOST_SUBDIR); mv cloog stagefeedback-cloog ; \
42041 mv prev-cloog stageprofile-cloog ; : ; \
42042 fi
42043@endif cloog
f61428ed
AO
42044@if libelf
42045 @if test -d $(HOST_SUBDIR)/libelf ; then \
42046 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
42047 mv prev-libelf stageprofile-libelf ; : ; \
42048 fi
42049@endif libelf
5afab7ad
ILT
42050@if gold
42051 @if test -d $(HOST_SUBDIR)/gold ; then \
42052 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
42053 mv prev-gold stageprofile-gold ; : ; \
42054 fi
42055@endif gold
7c27e184 42056@if intl
2d309510
PB
42057 @if test -d $(HOST_SUBDIR)/intl ; then \
42058 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
42059 mv prev-intl stageprofile-intl ; : ; \
f41d6665 42060 fi
7c27e184
PB
42061@endif intl
42062@if ld
2d309510
PB
42063 @if test -d $(HOST_SUBDIR)/ld ; then \
42064 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
42065 mv prev-ld stageprofile-ld ; : ; \
f41d6665 42066 fi
7c27e184
PB
42067@endif ld
42068@if libcpp
2d309510
PB
42069 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42070 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
42071 mv prev-libcpp stageprofile-libcpp ; : ; \
f41d6665 42072 fi
7c27e184 42073@endif libcpp
a4b6c45a 42074@if libdecnumber
2d309510
PB
42075 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
42076 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
42077 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
f41d6665 42078 fi
a4b6c45a 42079@endif libdecnumber
7c27e184 42080@if libiberty
2d309510
PB
42081 @if test -d $(HOST_SUBDIR)/libiberty ; then \
42082 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
42083 mv prev-libiberty stageprofile-libiberty ; : ; \
f41d6665 42084 fi
7c27e184
PB
42085@endif libiberty
42086@if zlib
2d309510
PB
42087 @if test -d $(HOST_SUBDIR)/zlib ; then \
42088 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
42089 mv prev-zlib stageprofile-zlib ; : ; \
f41d6665 42090 fi
7c27e184 42091@endif zlib
d7f09764
DN
42092@if lto-plugin
42093 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
42094 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
42095 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
42096 fi
42097@endif lto-plugin
f41d6665 42098 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
42099 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
42100 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
f41d6665 42101 fi
2d309510 42102 rm -f stage_current
148907ea 42103
8024d75e 42104# Bubble a bug fix through all the stages up to stage feedback. They are
f41d6665 42105# remade, but not reconfigured. The next stage (if any) will not be
cdce5c41 42106# reconfigured either.
7c27e184 42107.PHONY: stagefeedback-bubble
c7870f5d 42108stagefeedback-bubble:: stageprofile-bubble
e7c84bf8
PB
42109 @r=`${PWD_COMMAND}`; export r; \
42110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42111 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ce521a9c
PB
42112 echo Skipping rebuild of stagefeedback ; \
42113 else \
1061f99e
PB
42114 $(MAKE) stagefeedback-start; \
42115 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ce521a9c 42116 fi
7c27e184 42117
45f366ab 42118.PHONY: all-stagefeedback clean-stagefeedback
45f366ab 42119do-clean: clean-stagefeedback
45f366ab 42120
7c27e184
PB
42121# FIXME: Will not need to be conditional when toplevel bootstrap is the
42122# only possibility, but now it conflicts with no-bootstrap rules
42123@if gcc-bootstrap
ad6717df
PB
42124
42125
42126
2d309510 42127.PHONY: profiledbootstrap profiledbootstrap-lean
2abefe3d
PB
42128profiledbootstrap:
42129 echo stagefeedback > stage_final
42130 @r=`${PWD_COMMAND}`; export r; \
42131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42132 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
f41d6665 42133 @: $(MAKE); $(unstage)
2abefe3d
PB
42134 @r=`${PWD_COMMAND}`; export r; \
42135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 42136 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
2abefe3d 42137 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
c7870f5d 42138
2d309510
PB
42139profiledbootstrap-lean:
42140 echo stagefeedback > stage_final
42141 @r=`${PWD_COMMAND}`; export r; \
42142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42143 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
42144 @: $(MAKE); $(unstage)
42145 @r=`${PWD_COMMAND}`; export r; \
42146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4a4a4e99 42147 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
2d309510
PB
42148 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
42149
ad6717df 42150
45f366ab 42151# Rules to wipe a stage and all the following ones, also used for cleanstrap
c7870f5d 42152distclean-stageprofile:: distclean-stagefeedback
45f366ab 42153.PHONY: distclean-stagefeedback
ad6717df 42154distclean-stagefeedback::
f41d6665 42155 @: $(MAKE); $(stage)
a19e8f64 42156 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
05750653 42157 rm -rf stagefeedback-*
ad6717df
PB
42158
42159
7c27e184 42160@endif gcc-bootstrap
ad6717df
PB
42161
42162
42163
c7870f5d
PB
42164stageprofile-end::
42165 $(MAKE) distclean-stagefeedback
ad6717df 42166
c7870f5d 42167stagefeedback-start::
ad6717df
PB
42168 @r=`${PWD_COMMAND}`; export r; \
42169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c7870f5d
PB
42170 for i in prev-*; do \
42171 j=`echo $$i | sed s/^prev-//` ; \
42172 cd $$r/$$i && \
42173 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
42174 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
42175 done
03a91701 42176
45f366ab 42177@if gcc-bootstrap
45f366ab 42178do-distclean: distclean-stage1
cc11cc9b
PB
42179
42180# Provide a GCC build when we're building target libraries. This does
42181# not work as a dependency, just as the minimum necessary to avoid errors.
42182stage_last:
ee04b574
AS
42183 @r=`${PWD_COMMAND}`; export r; \
42184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b 42185 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
45f366ab 42186
3ff3adad
PB
42187# Same as unstage, but not phony and defaulting to stage1-start. We place
42188# it in the dependency so that for example `make -j3 all-gcc' works.
42189stage_current:
42190 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
42191
cc11cc9b 42192.PHONY: restrap
c6b196de 42193restrap::
cc11cc9b 42194 @: $(MAKE); $(stage)
4a4a4e99 42195 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
c6b196de 42196restrap:: all
e9a54b07 42197@endif gcc-bootstrap
cc11cc9b 42198
4977bab6
ZW
42199# --------------------------------------
42200# Dependencies between different modules
42201# --------------------------------------
42202
3589b69e 42203# Generic dependencies for target modules on host stuff, especially gcc
cc11cc9b 42204@if gcc-bootstrap
00020c16
ILT
42205configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
42206configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
42207configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
42208configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
42209configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
42210configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
cc11cc9b
PB
42211configure-target-libmudflap: stage_last
42212configure-target-libssp: stage_last
cc11cc9b 42213configure-target-newlib: stage_last
fa958513
DJ
42214configure-stage1-target-libgcc: maybe-all-stage1-gcc
42215configure-stage2-target-libgcc: maybe-all-stage2-gcc
42216configure-stage3-target-libgcc: maybe-all-stage3-gcc
42217configure-stage4-target-libgcc: maybe-all-stage4-gcc
42218configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
42219configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
1ec601bf 42220configure-target-libquadmath: stage_last
cc11cc9b
PB
42221configure-target-libgfortran: stage_last
42222configure-target-libobjc: stage_last
632e2a07 42223configure-target-libgo: stage_last
cc11cc9b
PB
42224configure-target-libtermcap: stage_last
42225configure-target-winsup: stage_last
42226configure-target-libgloss: stage_last
cc11cc9b
PB
42227configure-target-libffi: stage_last
42228configure-target-libjava: stage_last
42229configure-target-zlib: stage_last
42230configure-target-boehm-gc: stage_last
cc11cc9b
PB
42231configure-target-rda: stage_last
42232configure-target-libada: stage_last
aae29963
JR
42233configure-stage1-target-libgomp: maybe-all-stage1-gcc
42234configure-stage2-target-libgomp: maybe-all-stage2-gcc
42235configure-stage3-target-libgomp: maybe-all-stage3-gcc
42236configure-stage4-target-libgomp: maybe-all-stage4-gcc
42237configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
42238configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
cc11cc9b 42239@endif gcc-bootstrap
3589b69e 42240
cc11cc9b 42241@if gcc-no-bootstrap
3589b69e 42242configure-target-libstdc++-v3: maybe-all-gcc
3589b69e 42243configure-target-libmudflap: maybe-all-gcc
77008252 42244configure-target-libssp: maybe-all-gcc
3589b69e 42245configure-target-newlib: maybe-all-gcc
fa958513 42246configure-target-libgcc: maybe-all-gcc
1ec601bf 42247configure-target-libquadmath: maybe-all-gcc
3589b69e 42248configure-target-libgfortran: maybe-all-gcc
3589b69e 42249configure-target-libobjc: maybe-all-gcc
632e2a07 42250configure-target-libgo: maybe-all-gcc
3589b69e 42251configure-target-libtermcap: maybe-all-gcc
3589b69e 42252configure-target-winsup: maybe-all-gcc
3589b69e 42253configure-target-libgloss: maybe-all-gcc
3589b69e 42254configure-target-libffi: maybe-all-gcc
3589b69e 42255configure-target-libjava: maybe-all-gcc
3589b69e 42256configure-target-zlib: maybe-all-gcc
3589b69e 42257configure-target-boehm-gc: maybe-all-gcc
3589b69e 42258configure-target-rda: maybe-all-gcc
3589b69e 42259configure-target-libada: maybe-all-gcc
953ff289 42260configure-target-libgomp: maybe-all-gcc
cc11cc9b 42261@endif gcc-no-bootstrap
953ff289 42262
3589b69e 42263
4977bab6
ZW
42264# There are two types of dependencies here: 'hard' dependencies, where one
42265# module simply won't build without the other; and 'soft' dependencies, where
42266# if the depended-on module is missing, the depending module will do without
42267# or find a substitute somewhere (perhaps installed). Soft dependencies
3589b69e 42268# are made here to depend on a 'maybe-' target. If you're not sure,
4977bab6
ZW
42269# it's safer to use a soft dependency.
42270
3589b69e
PB
42271
42272
42273
42274
2dfbef6d 42275
3589b69e
PB
42276# With all the machinery above in place, it is pretty easy to generate
42277# dependencies. Host dependencies are a bit more complex because we have
42278# to check for bootstrap/prebootstrap dependencies. To resolve
42279# prebootstrap dependencies, prebootstrap modules are gathered in
42280# a hash table.
23f6b2f9
PB
42281all-build-bison: maybe-all-build-texinfo
42282all-build-flex: maybe-all-build-texinfo
3589b69e 42283all-build-flex: maybe-all-build-bison
3589b69e 42284all-build-flex: maybe-all-build-m4
23f6b2f9 42285all-build-libiberty: maybe-all-build-texinfo
3589b69e 42286all-build-m4: maybe-all-build-texinfo
71b5d516 42287all-build-fixincludes: maybe-all-build-libiberty
3589b69e
PB
42288configure-gcc: maybe-configure-intl
42289
42290configure-stage1-gcc: maybe-configure-stage1-intl
42291configure-stage2-gcc: maybe-configure-stage2-intl
42292configure-stage3-gcc: maybe-configure-stage3-intl
42293configure-stage4-gcc: maybe-configure-stage4-intl
42294configure-stageprofile-gcc: maybe-configure-stageprofile-intl
42295configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
f3d533d3
AO
42296configure-gcc: maybe-all-lto-plugin
42297
42298configure-stage1-gcc: maybe-all-stage1-lto-plugin
42299configure-stage2-gcc: maybe-all-stage2-lto-plugin
42300configure-stage3-gcc: maybe-all-stage3-lto-plugin
42301configure-stage4-gcc: maybe-all-stage4-lto-plugin
42302configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
42303configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
bcb28cf5
PB
42304configure-gcc: maybe-all-binutils
42305
42306configure-stage1-gcc: maybe-all-stage1-binutils
42307configure-stage2-gcc: maybe-all-stage2-binutils
42308configure-stage3-gcc: maybe-all-stage3-binutils
42309configure-stage4-gcc: maybe-all-stage4-binutils
42310configure-stageprofile-gcc: maybe-all-stageprofile-binutils
42311configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
42312configure-gcc: maybe-all-gas
42313
42314configure-stage1-gcc: maybe-all-stage1-gas
42315configure-stage2-gcc: maybe-all-stage2-gas
42316configure-stage3-gcc: maybe-all-stage3-gas
42317configure-stage4-gcc: maybe-all-stage4-gas
42318configure-stageprofile-gcc: maybe-all-stageprofile-gas
42319configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
42320configure-gcc: maybe-all-ld
42321
42322configure-stage1-gcc: maybe-all-stage1-ld
42323configure-stage2-gcc: maybe-all-stage2-ld
42324configure-stage3-gcc: maybe-all-stage3-ld
42325configure-stage4-gcc: maybe-all-stage4-ld
42326configure-stageprofile-gcc: maybe-all-stageprofile-ld
42327configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
5afab7ad
ILT
42328configure-gcc: maybe-all-gold
42329
42330configure-stage1-gcc: maybe-all-stage1-gold
42331configure-stage2-gcc: maybe-all-stage2-gold
5afab7ad 42332configure-stage3-gcc: maybe-all-stage3-gold
5afab7ad
ILT
42333configure-stage4-gcc: maybe-all-stage4-gold
42334configure-stageprofile-gcc: maybe-all-stageprofile-gold
42335configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
c63a4676
AO
42336configure-gcc: maybe-all-libelf
42337
42338configure-stage1-gcc: maybe-all-stage1-libelf
42339configure-stage2-gcc: maybe-all-stage2-libelf
42340configure-stage3-gcc: maybe-all-stage3-libelf
42341configure-stage4-gcc: maybe-all-stage4-libelf
42342configure-stageprofile-gcc: maybe-all-stageprofile-libelf
42343configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
3589b69e
PB
42344all-gcc: all-libiberty
42345
42346all-stage1-gcc: all-stage1-libiberty
42347all-stage2-gcc: all-stage2-libiberty
42348all-stage3-gcc: all-stage3-libiberty
42349all-stage4-gcc: all-stage4-libiberty
42350all-stageprofile-gcc: all-stageprofile-libiberty
42351all-stagefeedback-gcc: all-stagefeedback-libiberty
e69bf64b
PB
42352all-gcc: maybe-all-gmp
42353
42354all-stage1-gcc: maybe-all-stage1-gmp
42355all-stage2-gcc: maybe-all-stage2-gmp
42356all-stage3-gcc: maybe-all-stage3-gmp
42357all-stage4-gcc: maybe-all-stage4-gmp
42358all-stageprofile-gcc: maybe-all-stageprofile-gmp
42359all-stagefeedback-gcc: maybe-all-stagefeedback-gmp
3589b69e
PB
42360all-gcc: maybe-all-intl
42361
42362all-stage1-gcc: maybe-all-stage1-intl
42363all-stage2-gcc: maybe-all-stage2-intl
42364all-stage3-gcc: maybe-all-stage3-intl
42365all-stage4-gcc: maybe-all-stage4-intl
42366all-stageprofile-gcc: maybe-all-stageprofile-intl
42367all-stagefeedback-gcc: maybe-all-stagefeedback-intl
e69bf64b
PB
42368all-gcc: maybe-all-mpfr
42369
42370all-stage1-gcc: maybe-all-stage1-mpfr
42371all-stage2-gcc: maybe-all-stage2-mpfr
42372all-stage3-gcc: maybe-all-stage3-mpfr
42373all-stage4-gcc: maybe-all-stage4-mpfr
42374all-stageprofile-gcc: maybe-all-stageprofile-mpfr
42375all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
acd26225
KG
42376all-gcc: maybe-all-mpc
42377
42378all-stage1-gcc: maybe-all-stage1-mpc
42379all-stage2-gcc: maybe-all-stage2-mpc
42380all-stage3-gcc: maybe-all-stage3-mpc
42381all-stage4-gcc: maybe-all-stage4-mpc
42382all-stageprofile-gcc: maybe-all-stageprofile-mpc
42383all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
f8bf9252
SP
42384all-gcc: maybe-all-ppl
42385
42386all-stage1-gcc: maybe-all-stage1-ppl
42387all-stage2-gcc: maybe-all-stage2-ppl
f8bf9252 42388all-stage3-gcc: maybe-all-stage3-ppl
f8bf9252
SP
42389all-stage4-gcc: maybe-all-stage4-ppl
42390all-stageprofile-gcc: maybe-all-stageprofile-ppl
42391all-stagefeedback-gcc: maybe-all-stagefeedback-ppl
42392all-gcc: maybe-all-cloog
42393
42394all-stage1-gcc: maybe-all-stage1-cloog
42395all-stage2-gcc: maybe-all-stage2-cloog
f8bf9252 42396all-stage3-gcc: maybe-all-stage3-cloog
f8bf9252
SP
42397all-stage4-gcc: maybe-all-stage4-cloog
42398all-stageprofile-gcc: maybe-all-stageprofile-cloog
42399all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
7c27e184
PB
42400all-gcc: maybe-all-build-texinfo
42401
42402all-stage1-gcc: maybe-all-build-texinfo
42403all-stage2-gcc: maybe-all-build-texinfo
42404all-stage3-gcc: maybe-all-build-texinfo
42405all-stage4-gcc: maybe-all-build-texinfo
42406all-stageprofile-gcc: maybe-all-build-texinfo
42407all-stagefeedback-gcc: maybe-all-build-texinfo
7c27e184
PB
42408all-gcc: maybe-all-build-bison
42409
42410all-stage1-gcc: maybe-all-build-bison
42411all-stage2-gcc: maybe-all-build-bison
42412all-stage3-gcc: maybe-all-build-bison
42413all-stage4-gcc: maybe-all-build-bison
42414all-stageprofile-gcc: maybe-all-build-bison
42415all-stagefeedback-gcc: maybe-all-build-bison
7c27e184
PB
42416all-gcc: maybe-all-build-flex
42417
42418all-stage1-gcc: maybe-all-build-flex
42419all-stage2-gcc: maybe-all-build-flex
42420all-stage3-gcc: maybe-all-build-flex
42421all-stage4-gcc: maybe-all-build-flex
42422all-stageprofile-gcc: maybe-all-build-flex
42423all-stagefeedback-gcc: maybe-all-build-flex
71b5d516
PB
42424all-gcc: maybe-all-build-libiberty
42425
42426all-stage1-gcc: maybe-all-build-libiberty
42427all-stage2-gcc: maybe-all-build-libiberty
42428all-stage3-gcc: maybe-all-build-libiberty
42429all-stage4-gcc: maybe-all-build-libiberty
42430all-stageprofile-gcc: maybe-all-build-libiberty
42431all-stagefeedback-gcc: maybe-all-build-libiberty
71b5d516
PB
42432all-gcc: maybe-all-build-fixincludes
42433
42434all-stage1-gcc: maybe-all-build-fixincludes
42435all-stage2-gcc: maybe-all-build-fixincludes
42436all-stage3-gcc: maybe-all-build-fixincludes
42437all-stage4-gcc: maybe-all-build-fixincludes
42438all-stageprofile-gcc: maybe-all-build-fixincludes
42439all-stagefeedback-gcc: maybe-all-build-fixincludes
3589b69e
PB
42440all-gcc: maybe-all-zlib
42441
42442all-stage1-gcc: maybe-all-stage1-zlib
42443all-stage2-gcc: maybe-all-stage2-zlib
42444all-stage3-gcc: maybe-all-stage3-zlib
42445all-stage4-gcc: maybe-all-stage4-zlib
42446all-stageprofile-gcc: maybe-all-stageprofile-zlib
42447all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
3589b69e
PB
42448all-gcc: all-libcpp
42449
42450all-stage1-gcc: all-stage1-libcpp
42451all-stage2-gcc: all-stage2-libcpp
42452all-stage3-gcc: all-stage3-libcpp
42453all-stage4-gcc: all-stage4-libcpp
42454all-stageprofile-gcc: all-stageprofile-libcpp
42455all-stagefeedback-gcc: all-stagefeedback-libcpp
a4b6c45a
BE
42456all-gcc: all-libdecnumber
42457
42458all-stage1-gcc: all-stage1-libdecnumber
42459all-stage2-gcc: all-stage2-libdecnumber
42460all-stage3-gcc: all-stage3-libdecnumber
42461all-stage4-gcc: all-stage4-libdecnumber
42462all-stageprofile-gcc: all-stageprofile-libdecnumber
42463all-stagefeedback-gcc: all-stagefeedback-libdecnumber
53c7ffe7
GK
42464all-gcc: maybe-all-libiberty
42465
42466all-stage1-gcc: maybe-all-stage1-libiberty
42467all-stage2-gcc: maybe-all-stage2-libiberty
42468all-stage3-gcc: maybe-all-stage3-libiberty
42469all-stage4-gcc: maybe-all-stage4-libiberty
42470all-stageprofile-gcc: maybe-all-stageprofile-libiberty
42471all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
42472all-gcc: maybe-all-fixincludes
96bdf9b4
JH
42473all-gcc: maybe-all-lto-plugin
42474
42475all-stage1-gcc: maybe-all-stage1-lto-plugin
42476all-stage2-gcc: maybe-all-stage2-lto-plugin
42477all-stage3-gcc: maybe-all-stage3-lto-plugin
42478all-stage4-gcc: maybe-all-stage4-lto-plugin
42479all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
42480all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
e1826acc
RW
42481info-gcc: maybe-all-build-libiberty
42482
42483info-stage1-gcc: maybe-all-build-libiberty
42484info-stage2-gcc: maybe-all-build-libiberty
42485info-stage3-gcc: maybe-all-build-libiberty
42486info-stage4-gcc: maybe-all-build-libiberty
42487info-stageprofile-gcc: maybe-all-build-libiberty
42488info-stagefeedback-gcc: maybe-all-build-libiberty
42489dvi-gcc: maybe-all-build-libiberty
42490
42491dvi-stage1-gcc: maybe-all-build-libiberty
42492dvi-stage2-gcc: maybe-all-build-libiberty
42493dvi-stage3-gcc: maybe-all-build-libiberty
42494dvi-stage4-gcc: maybe-all-build-libiberty
42495dvi-stageprofile-gcc: maybe-all-build-libiberty
42496dvi-stagefeedback-gcc: maybe-all-build-libiberty
42497pdf-gcc: maybe-all-build-libiberty
42498
42499pdf-stage1-gcc: maybe-all-build-libiberty
42500pdf-stage2-gcc: maybe-all-build-libiberty
42501pdf-stage3-gcc: maybe-all-build-libiberty
42502pdf-stage4-gcc: maybe-all-build-libiberty
42503pdf-stageprofile-gcc: maybe-all-build-libiberty
42504pdf-stagefeedback-gcc: maybe-all-build-libiberty
42505html-gcc: maybe-all-build-libiberty
42506
42507html-stage1-gcc: maybe-all-build-libiberty
42508html-stage2-gcc: maybe-all-build-libiberty
42509html-stage3-gcc: maybe-all-build-libiberty
42510html-stage4-gcc: maybe-all-build-libiberty
42511html-stageprofile-gcc: maybe-all-build-libiberty
42512html-stagefeedback-gcc: maybe-all-build-libiberty
848556c2 42513install-gcc: maybe-install-fixincludes
b1b0c7e6 42514install-gcc: maybe-install-lto-plugin
455c8f48 42515install-strip-gcc: maybe-install-strip-fixincludes
3589b69e
PB
42516configure-libcpp: configure-libiberty
42517
42518configure-stage1-libcpp: configure-stage1-libiberty
42519configure-stage2-libcpp: configure-stage2-libiberty
42520configure-stage3-libcpp: configure-stage3-libiberty
42521configure-stage4-libcpp: configure-stage4-libiberty
42522configure-stageprofile-libcpp: configure-stageprofile-libiberty
42523configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
42524configure-libcpp: maybe-configure-intl
42525
42526configure-stage1-libcpp: maybe-configure-stage1-intl
42527configure-stage2-libcpp: maybe-configure-stage2-intl
42528configure-stage3-libcpp: maybe-configure-stage3-intl
42529configure-stage4-libcpp: maybe-configure-stage4-intl
42530configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
42531configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
42532all-libcpp: all-libiberty
42533
42534all-stage1-libcpp: all-stage1-libiberty
42535all-stage2-libcpp: all-stage2-libiberty
42536all-stage3-libcpp: all-stage3-libiberty
42537all-stage4-libcpp: all-stage4-libiberty
42538all-stageprofile-libcpp: all-stageprofile-libiberty
42539all-stagefeedback-libcpp: all-stagefeedback-libiberty
42540all-libcpp: maybe-all-intl
42541
42542all-stage1-libcpp: maybe-all-stage1-intl
42543all-stage2-libcpp: maybe-all-stage2-intl
42544all-stage3-libcpp: maybe-all-stage3-intl
42545all-stage4-libcpp: maybe-all-stage4-intl
42546all-stageprofile-libcpp: maybe-all-stageprofile-intl
42547all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
53c7ffe7 42548all-fixincludes: maybe-all-libiberty
5395b47b 42549all-gnattools: maybe-all-target-libada
96bdf9b4
JH
42550all-lto-plugin: maybe-all-libiberty
42551
42552all-stage1-lto-plugin: maybe-all-stage1-libiberty
42553all-stage2-lto-plugin: maybe-all-stage2-libiberty
42554all-stage3-lto-plugin: maybe-all-stage3-libiberty
42555all-stage4-lto-plugin: maybe-all-stage4-libiberty
42556all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
42557all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
50e37333 42558all-utils: maybe-all-libiberty
e69bf64b
PB
42559configure-mpfr: maybe-all-gmp
42560
42561configure-stage1-mpfr: maybe-all-stage1-gmp
42562configure-stage2-mpfr: maybe-all-stage2-gmp
42563configure-stage3-mpfr: maybe-all-stage3-gmp
42564configure-stage4-mpfr: maybe-all-stage4-gmp
42565configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
42566configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
acd26225
KG
42567configure-mpc: maybe-all-mpfr
42568
42569configure-stage1-mpc: maybe-all-stage1-mpfr
42570configure-stage2-mpc: maybe-all-stage2-mpfr
42571configure-stage3-mpc: maybe-all-stage3-mpfr
42572configure-stage4-mpc: maybe-all-stage4-mpfr
42573configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
42574configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
f8bf9252
SP
42575configure-ppl: maybe-all-gmp
42576
42577configure-stage1-ppl: maybe-all-stage1-gmp
42578configure-stage2-ppl: maybe-all-stage2-gmp
f8bf9252 42579configure-stage3-ppl: maybe-all-stage3-gmp
f8bf9252
SP
42580configure-stage4-ppl: maybe-all-stage4-gmp
42581configure-stageprofile-ppl: maybe-all-stageprofile-gmp
42582configure-stagefeedback-ppl: maybe-all-stagefeedback-gmp
42583configure-ppl: maybe-all-mpfr
42584
42585configure-stage1-ppl: maybe-all-stage1-mpfr
42586configure-stage2-ppl: maybe-all-stage2-mpfr
f8bf9252 42587configure-stage3-ppl: maybe-all-stage3-mpfr
f8bf9252
SP
42588configure-stage4-ppl: maybe-all-stage4-mpfr
42589configure-stageprofile-ppl: maybe-all-stageprofile-mpfr
42590configure-stagefeedback-ppl: maybe-all-stagefeedback-mpfr
42591configure-cloog: maybe-all-ppl
42592
42593configure-stage1-cloog: maybe-all-stage1-ppl
42594configure-stage2-cloog: maybe-all-stage2-ppl
f8bf9252 42595configure-stage3-cloog: maybe-all-stage3-ppl
f8bf9252
SP
42596configure-stage4-cloog: maybe-all-stage4-ppl
42597configure-stageprofile-cloog: maybe-all-stageprofile-ppl
42598configure-stagefeedback-cloog: maybe-all-stagefeedback-ppl
e00e9858 42599configure-gdb: maybe-all-intl
3589b69e 42600configure-gdb: maybe-configure-sim
b8afffc1 42601configure-gdb: maybe-all-bfd
cfb1f59f 42602configure-gdb: maybe-all-libiconv
3589b69e 42603all-gdb: maybe-all-libiberty
cfb1f59f 42604all-gdb: maybe-all-libiconv
3589b69e 42605all-gdb: maybe-all-opcodes
3589b69e 42606all-gdb: maybe-all-readline
7c27e184 42607all-gdb: maybe-all-build-bison
3589b69e 42608all-gdb: maybe-all-sim
bbfbfafc 42609all-gdb: maybe-all-libdecnumber
1e2c3ec4 42610all-gdb: maybe-all-libtermcap
3589b69e
PB
42611configure-libgui: maybe-configure-tcl
42612configure-libgui: maybe-configure-tk
42613all-libgui: maybe-all-tcl
42614all-libgui: maybe-all-tk
42615all-libgui: maybe-all-itcl
4977bab6 42616configure-bfd: configure-libiberty
3589b69e
PB
42617
42618configure-stage1-bfd: configure-stage1-libiberty
42619configure-stage2-bfd: configure-stage2-libiberty
42620configure-stage3-bfd: configure-stage3-libiberty
42621configure-stage4-bfd: configure-stage4-libiberty
42622configure-stageprofile-bfd: configure-stageprofile-libiberty
42623configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32845532
CD
42624configure-bfd: maybe-configure-intl
42625
42626configure-stage1-bfd: maybe-configure-stage1-intl
42627configure-stage2-bfd: maybe-configure-stage2-intl
42628configure-stage3-bfd: maybe-configure-stage3-intl
42629configure-stage4-bfd: maybe-configure-stage4-intl
42630configure-stageprofile-bfd: maybe-configure-stageprofile-intl
42631configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
3589b69e
PB
42632all-bfd: maybe-all-libiberty
42633
42634all-stage1-bfd: maybe-all-stage1-libiberty
42635all-stage2-bfd: maybe-all-stage2-libiberty
42636all-stage3-bfd: maybe-all-stage3-libiberty
42637all-stage4-bfd: maybe-all-stage4-libiberty
42638all-stageprofile-bfd: maybe-all-stageprofile-libiberty
42639all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
42640all-bfd: maybe-all-intl
42641
42642all-stage1-bfd: maybe-all-stage1-intl
42643all-stage2-bfd: maybe-all-stage2-intl
42644all-stage3-bfd: maybe-all-stage3-intl
42645all-stage4-bfd: maybe-all-stage4-intl
42646all-stageprofile-bfd: maybe-all-stageprofile-intl
42647all-stagefeedback-bfd: maybe-all-stagefeedback-intl
36fbb0ec
AM
42648configure-opcodes: configure-libiberty
42649
42650configure-stage1-opcodes: configure-stage1-libiberty
42651configure-stage2-opcodes: configure-stage2-libiberty
36fbb0ec 42652configure-stage3-opcodes: configure-stage3-libiberty
36fbb0ec
AM
42653configure-stage4-opcodes: configure-stage4-libiberty
42654configure-stageprofile-opcodes: configure-stageprofile-libiberty
42655configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
42656all-opcodes: maybe-all-libiberty
42657
42658all-stage1-opcodes: maybe-all-stage1-libiberty
42659all-stage2-opcodes: maybe-all-stage2-libiberty
36fbb0ec 42660all-stage3-opcodes: maybe-all-stage3-libiberty
36fbb0ec
AM
42661all-stage4-opcodes: maybe-all-stage4-libiberty
42662all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
42663all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
32845532
CD
42664configure-binutils: maybe-configure-intl
42665
42666configure-stage1-binutils: maybe-configure-stage1-intl
42667configure-stage2-binutils: maybe-configure-stage2-intl
42668configure-stage3-binutils: maybe-configure-stage3-intl
42669configure-stage4-binutils: maybe-configure-stage4-intl
42670configure-stageprofile-binutils: maybe-configure-stageprofile-intl
42671configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
3589b69e
PB
42672all-binutils: maybe-all-libiberty
42673
42674all-stage1-binutils: maybe-all-stage1-libiberty
42675all-stage2-binutils: maybe-all-stage2-libiberty
42676all-stage3-binutils: maybe-all-stage3-libiberty
42677all-stage4-binutils: maybe-all-stage4-libiberty
42678all-stageprofile-binutils: maybe-all-stageprofile-libiberty
42679all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
42680all-binutils: maybe-all-opcodes
42681
42682all-stage1-binutils: maybe-all-stage1-opcodes
42683all-stage2-binutils: maybe-all-stage2-opcodes
42684all-stage3-binutils: maybe-all-stage3-opcodes
42685all-stage4-binutils: maybe-all-stage4-opcodes
42686all-stageprofile-binutils: maybe-all-stageprofile-opcodes
42687all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
42688all-binutils: maybe-all-bfd
42689
42690all-stage1-binutils: maybe-all-stage1-bfd
42691all-stage2-binutils: maybe-all-stage2-bfd
42692all-stage3-binutils: maybe-all-stage3-bfd
42693all-stage4-binutils: maybe-all-stage4-bfd
42694all-stageprofile-binutils: maybe-all-stageprofile-bfd
42695all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
7c27e184
PB
42696all-binutils: maybe-all-build-flex
42697
42698all-stage1-binutils: maybe-all-build-flex
42699all-stage2-binutils: maybe-all-build-flex
42700all-stage3-binutils: maybe-all-build-flex
42701all-stage4-binutils: maybe-all-build-flex
42702all-stageprofile-binutils: maybe-all-build-flex
42703all-stagefeedback-binutils: maybe-all-build-flex
7c27e184
PB
42704all-binutils: maybe-all-build-bison
42705
42706all-stage1-binutils: maybe-all-build-bison
42707all-stage2-binutils: maybe-all-build-bison
42708all-stage3-binutils: maybe-all-build-bison
42709all-stage4-binutils: maybe-all-build-bison
42710all-stageprofile-binutils: maybe-all-build-bison
42711all-stagefeedback-binutils: maybe-all-build-bison
3589b69e
PB
42712all-binutils: maybe-all-intl
42713
42714all-stage1-binutils: maybe-all-stage1-intl
42715all-stage2-binutils: maybe-all-stage2-intl
42716all-stage3-binutils: maybe-all-stage3-intl
42717all-stage4-binutils: maybe-all-stage4-intl
42718all-stageprofile-binutils: maybe-all-stageprofile-intl
42719all-stagefeedback-binutils: maybe-all-stagefeedback-intl
4977bab6 42720install-binutils: maybe-install-opcodes
455c8f48 42721install-strip-binutils: maybe-install-strip-opcodes
c3969745 42722install-opcodes: maybe-install-bfd
455c8f48 42723install-strip-opcodes: maybe-install-strip-bfd
32845532
CD
42724configure-gas: maybe-configure-intl
42725
42726configure-stage1-gas: maybe-configure-stage1-intl
42727configure-stage2-gas: maybe-configure-stage2-intl
42728configure-stage3-gas: maybe-configure-stage3-intl
42729configure-stage4-gas: maybe-configure-stage4-intl
42730configure-stageprofile-gas: maybe-configure-stageprofile-intl
42731configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
3589b69e
PB
42732all-gas: maybe-all-libiberty
42733
42734all-stage1-gas: maybe-all-stage1-libiberty
42735all-stage2-gas: maybe-all-stage2-libiberty
42736all-stage3-gas: maybe-all-stage3-libiberty
42737all-stage4-gas: maybe-all-stage4-libiberty
42738all-stageprofile-gas: maybe-all-stageprofile-libiberty
42739all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
42740all-gas: maybe-all-opcodes
42741
42742all-stage1-gas: maybe-all-stage1-opcodes
42743all-stage2-gas: maybe-all-stage2-opcodes
42744all-stage3-gas: maybe-all-stage3-opcodes
42745all-stage4-gas: maybe-all-stage4-opcodes
42746all-stageprofile-gas: maybe-all-stageprofile-opcodes
42747all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
42748all-gas: maybe-all-bfd
42749
42750all-stage1-gas: maybe-all-stage1-bfd
42751all-stage2-gas: maybe-all-stage2-bfd
42752all-stage3-gas: maybe-all-stage3-bfd
42753all-stage4-gas: maybe-all-stage4-bfd
42754all-stageprofile-gas: maybe-all-stageprofile-bfd
42755all-stagefeedback-gas: maybe-all-stagefeedback-bfd
42756all-gas: maybe-all-intl
42757
42758all-stage1-gas: maybe-all-stage1-intl
42759all-stage2-gas: maybe-all-stage2-intl
42760all-stage3-gas: maybe-all-stage3-intl
42761all-stage4-gas: maybe-all-stage4-intl
42762all-stageprofile-gas: maybe-all-stageprofile-intl
42763all-stagefeedback-gas: maybe-all-stagefeedback-intl
32845532 42764configure-gprof: maybe-configure-intl
3589b69e
PB
42765all-gprof: maybe-all-libiberty
42766all-gprof: maybe-all-bfd
42767all-gprof: maybe-all-opcodes
42768all-gprof: maybe-all-intl
32845532
CD
42769configure-ld: maybe-configure-intl
42770
42771configure-stage1-ld: maybe-configure-stage1-intl
42772configure-stage2-ld: maybe-configure-stage2-intl
42773configure-stage3-ld: maybe-configure-stage3-intl
42774configure-stage4-ld: maybe-configure-stage4-intl
42775configure-stageprofile-ld: maybe-configure-stageprofile-intl
42776configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
3589b69e
PB
42777all-ld: maybe-all-libiberty
42778
42779all-stage1-ld: maybe-all-stage1-libiberty
42780all-stage2-ld: maybe-all-stage2-libiberty
42781all-stage3-ld: maybe-all-stage3-libiberty
42782all-stage4-ld: maybe-all-stage4-libiberty
42783all-stageprofile-ld: maybe-all-stageprofile-libiberty
42784all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
42785all-ld: maybe-all-bfd
42786
42787all-stage1-ld: maybe-all-stage1-bfd
42788all-stage2-ld: maybe-all-stage2-bfd
42789all-stage3-ld: maybe-all-stage3-bfd
42790all-stage4-ld: maybe-all-stage4-bfd
42791all-stageprofile-ld: maybe-all-stageprofile-bfd
42792all-stagefeedback-ld: maybe-all-stagefeedback-bfd
42793all-ld: maybe-all-opcodes
42794
42795all-stage1-ld: maybe-all-stage1-opcodes
42796all-stage2-ld: maybe-all-stage2-opcodes
42797all-stage3-ld: maybe-all-stage3-opcodes
42798all-stage4-ld: maybe-all-stage4-opcodes
42799all-stageprofile-ld: maybe-all-stageprofile-opcodes
42800all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
7c27e184
PB
42801all-ld: maybe-all-build-bison
42802
42803all-stage1-ld: maybe-all-build-bison
42804all-stage2-ld: maybe-all-build-bison
42805all-stage3-ld: maybe-all-build-bison
42806all-stage4-ld: maybe-all-build-bison
42807all-stageprofile-ld: maybe-all-build-bison
42808all-stagefeedback-ld: maybe-all-build-bison
7c27e184
PB
42809all-ld: maybe-all-build-flex
42810
42811all-stage1-ld: maybe-all-build-flex
42812all-stage2-ld: maybe-all-build-flex
42813all-stage3-ld: maybe-all-build-flex
42814all-stage4-ld: maybe-all-build-flex
42815all-stageprofile-ld: maybe-all-build-flex
42816all-stagefeedback-ld: maybe-all-build-flex
3589b69e
PB
42817all-ld: maybe-all-intl
42818
42819all-stage1-ld: maybe-all-stage1-intl
42820all-stage2-ld: maybe-all-stage2-intl
42821all-stage3-ld: maybe-all-stage3-intl
42822all-stage4-ld: maybe-all-stage4-intl
42823all-stageprofile-ld: maybe-all-stageprofile-intl
42824all-stagefeedback-ld: maybe-all-stagefeedback-intl
38e3d868 42825install-ld: maybe-install-gold
455c8f48 42826install-strip-ld: maybe-install-strip-gold
5afab7ad
ILT
42827configure-gold: maybe-configure-intl
42828
42829configure-stage1-gold: maybe-configure-stage1-intl
42830configure-stage2-gold: maybe-configure-stage2-intl
5afab7ad 42831configure-stage3-gold: maybe-configure-stage3-intl
5afab7ad
ILT
42832configure-stage4-gold: maybe-configure-stage4-intl
42833configure-stageprofile-gold: maybe-configure-stageprofile-intl
42834configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
42835all-gold: maybe-all-libiberty
42836
42837all-stage1-gold: maybe-all-stage1-libiberty
42838all-stage2-gold: maybe-all-stage2-libiberty
5afab7ad 42839all-stage3-gold: maybe-all-stage3-libiberty
5afab7ad
ILT
42840all-stage4-gold: maybe-all-stage4-libiberty
42841all-stageprofile-gold: maybe-all-stageprofile-libiberty
42842all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
42843all-gold: maybe-all-intl
42844
42845all-stage1-gold: maybe-all-stage1-intl
42846all-stage2-gold: maybe-all-stage2-intl
5afab7ad 42847all-stage3-gold: maybe-all-stage3-intl
5afab7ad
ILT
42848all-stage4-gold: maybe-all-stage4-intl
42849all-stageprofile-gold: maybe-all-stageprofile-intl
42850all-stagefeedback-gold: maybe-all-stagefeedback-intl
42851all-gold: maybe-all-bfd
42852
42853all-stage1-gold: maybe-all-stage1-bfd
42854all-stage2-gold: maybe-all-stage2-bfd
5afab7ad 42855all-stage3-gold: maybe-all-stage3-bfd
5afab7ad
ILT
42856all-stage4-gold: maybe-all-stage4-bfd
42857all-stageprofile-gold: maybe-all-stageprofile-bfd
42858all-stagefeedback-gold: maybe-all-stagefeedback-bfd
42859all-gold: maybe-all-build-bison
42860
42861all-stage1-gold: maybe-all-build-bison
42862all-stage2-gold: maybe-all-build-bison
5afab7ad 42863all-stage3-gold: maybe-all-build-bison
5afab7ad
ILT
42864all-stage4-gold: maybe-all-build-bison
42865all-stageprofile-gold: maybe-all-build-bison
42866all-stagefeedback-gold: maybe-all-build-bison
06407e30
ILT
42867check-gold: maybe-all-binutils
42868
42869check-stage1-gold: maybe-all-stage1-binutils
42870check-stage2-gold: maybe-all-stage2-binutils
06407e30 42871check-stage3-gold: maybe-all-stage3-binutils
06407e30
ILT
42872check-stage4-gold: maybe-all-stage4-binutils
42873check-stageprofile-gold: maybe-all-stageprofile-binutils
42874check-stagefeedback-gold: maybe-all-stagefeedback-binutils
aeb94799
ILT
42875check-gold: maybe-all-gas
42876
42877check-stage1-gold: maybe-all-stage1-gas
42878check-stage2-gold: maybe-all-stage2-gas
42879check-stage3-gold: maybe-all-stage3-gas
42880check-stage4-gold: maybe-all-stage4-gas
42881check-stageprofile-gold: maybe-all-stageprofile-gas
42882check-stagefeedback-gold: maybe-all-stagefeedback-gas
9fbe6585
JJ
42883configure-opcodes: maybe-configure-intl
42884
42885configure-stage1-opcodes: maybe-configure-stage1-intl
42886configure-stage2-opcodes: maybe-configure-stage2-intl
42887configure-stage3-opcodes: maybe-configure-stage3-intl
42888configure-stage4-opcodes: maybe-configure-stage4-intl
42889configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
42890configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
3589b69e
PB
42891all-opcodes: maybe-all-bfd
42892
42893all-stage1-opcodes: maybe-all-stage1-bfd
42894all-stage2-opcodes: maybe-all-stage2-bfd
42895all-stage3-opcodes: maybe-all-stage3-bfd
42896all-stage4-opcodes: maybe-all-stage4-bfd
42897all-stageprofile-opcodes: maybe-all-stageprofile-bfd
42898all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
42899all-opcodes: maybe-all-libiberty
42900
42901all-stage1-opcodes: maybe-all-stage1-libiberty
42902all-stage2-opcodes: maybe-all-stage2-libiberty
42903all-stage3-opcodes: maybe-all-stage3-libiberty
42904all-stage4-opcodes: maybe-all-stage4-libiberty
42905all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
42906all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
9fbe6585
JJ
42907all-opcodes: maybe-all-intl
42908
42909all-stage1-opcodes: maybe-all-stage1-intl
42910all-stage2-opcodes: maybe-all-stage2-intl
42911all-stage3-opcodes: maybe-all-stage3-intl
42912all-stage4-opcodes: maybe-all-stage4-intl
42913all-stageprofile-opcodes: maybe-all-stageprofile-intl
42914all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
3589b69e
PB
42915all-dejagnu: maybe-all-tcl
42916all-dejagnu: maybe-all-expect
42917all-dejagnu: maybe-all-tk
42918configure-expect: maybe-configure-tcl
42919configure-expect: maybe-configure-tk
42920all-expect: maybe-all-tcl
42921all-expect: maybe-all-tk
42922configure-itcl: maybe-configure-tcl
42923configure-itcl: maybe-configure-tk
42924all-itcl: maybe-all-tcl
42925all-itcl: maybe-all-tk
4977bab6 42926install-itcl: maybe-install-tcl
455c8f48 42927install-strip-itcl: maybe-install-strip-tcl
4977bab6
ZW
42928configure-tk: maybe-configure-tcl
42929all-tk: maybe-all-tcl
3589b69e
PB
42930all-sid: maybe-all-libiberty
42931all-sid: maybe-all-bfd
42932all-sid: maybe-all-opcodes
42933all-sid: maybe-all-tcl
42934all-sid: maybe-all-tk
42935install-sid: maybe-install-tcl
455c8f48 42936install-strip-sid: maybe-install-strip-tcl
3589b69e 42937install-sid: maybe-install-tk
455c8f48 42938install-strip-sid: maybe-install-strip-tk
32845532
CD
42939configure-sim: maybe-configure-intl
42940all-sim: maybe-all-intl
3589b69e
PB
42941all-sim: maybe-all-libiberty
42942all-sim: maybe-all-bfd
42943all-sim: maybe-all-opcodes
42944all-sim: maybe-all-readline
42945all-sim: maybe-configure-gdb
42946all-fastjar: maybe-all-zlib
7c27e184 42947all-fastjar: maybe-all-build-texinfo
3589b69e 42948all-fastjar: maybe-all-libiberty
3589b69e 42949all-bison: maybe-all-intl
7c27e184 42950all-bison: maybe-all-build-texinfo
7c27e184 42951all-flex: maybe-all-build-bison
3589b69e
PB
42952all-flex: maybe-all-intl
42953all-flex: maybe-all-m4
7c27e184 42954all-flex: maybe-all-build-texinfo
3589b69e 42955all-m4: maybe-all-intl
7c27e184 42956all-m4: maybe-all-build-texinfo
09ce620e 42957configure-target-boehm-gc: maybe-all-target-libstdc++-v3
4977bab6 42958configure-target-fastjar: maybe-configure-target-zlib
3589b69e 42959all-target-fastjar: maybe-all-target-zlib
632e2a07
ILT
42960configure-target-libgo: maybe-configure-target-libffi
42961configure-target-libgo: maybe-all-target-libstdc++-v3
42962all-target-libgo: maybe-all-target-libffi
3589b69e
PB
42963configure-target-libjava: maybe-configure-target-zlib
42964configure-target-libjava: maybe-configure-target-boehm-gc
3589b69e
PB
42965configure-target-libjava: maybe-configure-target-libffi
42966all-target-libjava: maybe-all-fastjar
42967all-target-libjava: maybe-all-target-zlib
42968all-target-libjava: maybe-all-target-boehm-gc
3589b69e 42969all-target-libjava: maybe-all-target-libffi
7cd0cf9c 42970configure-target-libobjc: maybe-configure-target-boehm-gc
7cd0cf9c 42971all-target-libobjc: maybe-all-target-boehm-gc
6d3b5aea 42972configure-target-libstdc++-v3: maybe-configure-target-libgomp
aae29963
JR
42973
42974configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
42975configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
42976configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
42977configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
42978configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
42979configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
42980all-target-libstdc++-v3: maybe-configure-target-libgomp
42981
42982all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
42983all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
42984all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
42985all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
42986all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
42987all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
0e5e9f76 42988all-target-libgloss: maybe-all-target-newlib
3589b69e 42989all-target-winsup: maybe-all-target-libtermcap
58af276a
RW
42990configure-target-newlib: maybe-all-binutils
42991configure-target-newlib: maybe-all-ld
1ec601bf 42992configure-target-libgfortran: maybe-all-target-libquadmath
3589b69e
PB
42993
42994
fa958513
DJ
42995# Dependencies for target modules on other target modules are
42996# described by lang_env_dependencies; the defaults apply to anything
42997# not mentioned there.
42998
42999
43000@if gcc-bootstrap
00020c16
ILT
43001configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
43002configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
43003configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
43004configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
43005configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
43006configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
aae29963
JR
43007configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
43008configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
43009configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
43010configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
43011configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
43012configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
fa958513
DJ
43013@endif gcc-bootstrap
43014
43015@if gcc-no-bootstrap
43016configure-target-libstdc++-v3: maybe-all-target-libgcc
43017configure-target-libmudflap: maybe-all-target-libgcc
43018configure-target-libssp: maybe-all-target-libgcc
43019configure-target-newlib: maybe-all-target-libgcc
1ec601bf 43020configure-target-libquadmath: maybe-all-target-libgcc
fa958513
DJ
43021configure-target-libgfortran: maybe-all-target-libgcc
43022configure-target-libobjc: maybe-all-target-libgcc
632e2a07 43023configure-target-libgo: maybe-all-target-libgcc
fa958513
DJ
43024configure-target-libtermcap: maybe-all-target-libgcc
43025configure-target-winsup: maybe-all-target-libgcc
43026configure-target-libgloss: maybe-all-target-libgcc
fa958513
DJ
43027configure-target-libffi: maybe-all-target-libgcc
43028configure-target-libjava: maybe-all-target-libgcc
43029configure-target-zlib: maybe-all-target-libgcc
43030configure-target-boehm-gc: maybe-all-target-libgcc
fa958513
DJ
43031configure-target-rda: maybe-all-target-libgcc
43032configure-target-libada: maybe-all-target-libgcc
43033configure-target-libgomp: maybe-all-target-libgcc
43034@endif gcc-no-bootstrap
43035
43036
43037configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
43038
43039configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
43040
43041configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
43042
43043
43044
1ec601bf
FXC
43045configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
43046
fa958513
DJ
43047configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
43048
43049configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
43050
632e2a07
ILT
43051configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
43052
fa958513
DJ
43053configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
43054
43055configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
43056
43057
fa958513
DJ
43058configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
43059
43060configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
43061configure-target-libjava: maybe-all-target-libstdc++-v3
43062
43063configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
43064
43065configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
43066
fa958513
DJ
43067configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
43068
43069configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
43070
43071configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
43072
43073
ef9db8d5 43074CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
3589b69e 43075GDB_TK = @GDB_TK@
ef9db8d5
DJ
43076INSTALL_GDB_TK = @INSTALL_GDB_TK@
43077configure-gdb: $(CONFIGURE_GDB_TK)
3589b69e 43078all-gdb: $(gdbnlmrequirements) $(GDB_TK)
ef9db8d5 43079install-gdb: $(INSTALL_GDB_TK)
6599da04 43080
4977bab6 43081# Serialization dependencies. Host configures don't work well in parallel to
05750653 43082# each other, due to contention over config.cache. Target configures and
4977bab6
ZW
43083# build configures are similar.
43084@serialization_dependencies@
6599da04 43085
4977bab6
ZW
43086# --------------------------------
43087# Regenerating top level configury
43088# --------------------------------
6599da04 43089
6f950405 43090# Rebuilding Makefile.in, using autogen.
e245b0ea 43091AUTOGEN = autogen
ee03dc5e 43092$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 43093 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 43094
671aa708 43095# Rebuilding Makefile.
e245b0ea
AO
43096Makefile: $(srcdir)/Makefile.in config.status
43097 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
43098
191dd2c9 43099config.status: configure
e75f9147 43100 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
6599da04 43101
671aa708 43102# Rebuilding configure.
e245b0ea 43103AUTOCONF = autoconf
18c04407
RW
43104$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
43105 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
e245b0ea 43106 cd $(srcdir) && $(AUTOCONF)
6599da04 43107
93c834b7
NN
43108# ------------------------------
43109# Special directives to GNU Make
43110# ------------------------------
43111
93c834b7
NN
43112# Don't pass command-line variables to submakes.
43113.NOEXPORT:
43114MAKEOVERRIDES=
43115
6599da04 43116# end of Makefile.in