]> sourceware.org Git - newlib-cygwin.git/blame - Makefile.in
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 233.
[newlib-cygwin.git] / Makefile.in
CommitLineData
bba02726
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
a3acbf46
RH
3#
4# Makefile for directory with subdirs to build.
25688b70 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
c91ae28f
AO
6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
7# Free Software Foundation
a3acbf46
RH
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
121f0eb2 11# the Free Software Foundation; either version 3 of the License, or
a3acbf46
RH
12# (at your option) any later version.
13#
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.
18#
19# You should have received a copy of the GNU General Public License
121f0eb2
RW
20# along with this program; see the file COPYING3. If not see
21# <http://www.gnu.org/licenses/>.
a3acbf46
RH
22#
23
a7ff2096
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
ff0592df
NN
32# -------------------------------
33# Standard Autoconf-set variables
34# -------------------------------
c002f9d3 35VPATH=@srcdir@
c002f9d3 36
b58b6ee1 37build_alias=@build_noncanonical@
42f55f77
PB
38build_vendor=@build_vendor@
39build_os=@build_os@
7e9ae190 40build=@build@
b58b6ee1 41host_alias=@host_noncanonical@
42f55f77
PB
42host_vendor=@host_vendor@
43host_os=@host_os@
7e9ae190 44host=@host@
b58b6ee1 45target_alias=@target_noncanonical@
42f55f77
PB
46target_vendor=@target_vendor@
47target_os=@target_os@
7e9ae190 48target=@target@
c002f9d3 49
ff0592df 50program_transform_name = @program_transform_name@
25bab762
NN
51
52prefix = @prefix@
53exec_prefix = @exec_prefix@
54
ff0592df
NN
55srcdir = @srcdir@
56
25bab762
NN
57bindir = @bindir@
58sbindir = @sbindir@
59libexecdir = @libexecdir@
60datadir = @datadir@
61sysconfdir = @sysconfdir@
62sharedstatedir = @sharedstatedir@
63localstatedir = @localstatedir@
64libdir = @libdir@
65includedir = @includedir@
66oldincludedir = @oldincludedir@
67infodir = @infodir@
83c9add4
CD
68datarootdir = @datarootdir@
69docdir = @docdir@
d4954b6d 70pdfdir = @pdfdir@
83c9add4 71htmldir = @htmldir@
25bab762 72mandir = @mandir@
a3acbf46
RH
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
6acce4b8 82
282c0e47
NN
83INSTALL = @INSTALL@
84INSTALL_PROGRAM = @INSTALL_PROGRAM@
85INSTALL_SCRIPT = @INSTALL_SCRIPT@
86INSTALL_DATA = @INSTALL_DATA@
21ff191e
PB
87LN = @LN@
88LN_S = @LN_S@
e53c5df0
AM
89MAINT = @MAINT@
90MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
91MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
a3acbf46 92
ff0592df
NN
93# -------------------------------------------------
94# Miscellaneous non-standard autoconf-set variables
95# -------------------------------------------------
a3acbf46 96
ff0592df
NN
97# The gcc driver likes to know the arguments it was configured with.
98TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
a3acbf46 99
ff0592df
NN
100tooldir = @tooldir@
101build_tooldir = @build_tooldir@
a3acbf46 102
ff0592df 103GDB_NLM_DEPS =
a3acbf46 104
ff0592df
NN
105# This is the name of the environment variable used for the path to
106# the libraries.
107RPATH_ENVVAR = @RPATH_ENVVAR@
a3acbf46 108
8453fdba
AL
109# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
110# is used instead of the directory itself to avoid including built
111# executables in PATH.
112GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
113
ff0592df
NN
114# Build programs are put under this directory.
115BUILD_SUBDIR = @build_subdir@
116# This is set by the configure script to the arguments to use when configuring
117# directories built for the build system.
f0fdfd34 118BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
2cb47d68 119
121f0eb2
RW
120# Linker flags to use on the host, for stage1 or when not
121# bootstrapping.
122STAGE1_LDFLAGS = @stage1_ldflags@
123
124# Libraries to use on the host, for stage1 or when not bootstrapping.
125STAGE1_LIBS = @stage1_libs@
126
127# Linker flags to use for stage2 and later.
128POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
129
130# Libraries to use for stage2 and later.
131POSTSTAGE1_LIBS = @poststage1_libs@
132
2cb47d68
PB
133# This is the list of variables to export in the environment when
134# configuring any subdirectory. It must also be exported whenever
135# recursing into a build directory in case that directory's Makefile
136# re-runs configure.
137BASE_EXPORTS = \
138 FLEX="$(FLEX)"; export FLEX; \
139 LEX="$(LEX)"; export LEX; \
140 BISON="$(BISON)"; export BISON; \
141 YACC="$(YACC)"; export YACC; \
142 M4="$(M4)"; export M4; \
a8a01987
PB
143 SED="$(SED)"; export SED; \
144 AWK="$(AWK)"; export AWK; \
2cb47d68
PB
145 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
146
a675b75a 147# This is the list of variables to export in the environment when
2cb47d68 148# configuring subdirectories for the build system.
a675b75a 149BUILD_EXPORTS = \
2cb47d68 150 $(BASE_EXPORTS) \
a675b75a
DD
151 AR="$(AR_FOR_BUILD)"; export AR; \
152 AS="$(AS_FOR_BUILD)"; export AS; \
153 CC="$(CC_FOR_BUILD)"; export CC; \
154 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
155 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
156 CXX="$(CXX_FOR_BUILD)"; export CXX; \
157 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
158 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
159 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
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; \
bffcbe34
NC
165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
ff0592df 167
7d6b567a 168# These variables must be set on the make command line for directories
d19b11bb 169# built for the build system to override those in BASE_FLAGS_TO_PASSS.
7d6b567a
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
ff0592df
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
e894eef9 176TARGET_CONFIGDIRS = @target_configdirs@
ff0592df
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@
7fc2ca22
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
a675b75a 183# This is the list of variables to export in the environment when
a7dc05b5
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.
a675b75a 186HOST_EXPORTS = \
2cb47d68 187 $(BASE_EXPORTS) \
a675b75a 188 CC="$(CC)"; export CC; \
9ad2ea2f 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
a675b75a
DD
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
c91ae28f
AO
194 GCJ="$(GCJ)"; export GCJ; \
195 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
a675b75a
DD
196 AR="$(AR)"; export AR; \
197 AS="$(AS)"; export AS; \
198 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
199 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
200 LD="$(LD)"; export LD; \
121f0eb2 201 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
a675b75a
DD
202 NM="$(NM)"; export NM; \
203 RANLIB="$(RANLIB)"; export RANLIB; \
204 WINDRES="$(WINDRES)"; export WINDRES; \
bffcbe34 205 WINDMC="$(WINDMC)"; export WINDMC; \
a675b75a 206 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
ead1b9ae 207 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
a7dc05b5
PB
208 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
209 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
210 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
211 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
212 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
213 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
214 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
a675b75a 215 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
121f0eb2 216 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
a675b75a 217 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
9ab64c4a 218 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
311b6756
JM
219 PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
220 PPLINC="$(HOST_PPLINC)"; export PPLINC; \
221 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
222 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
bd45d6fa
ILT
223 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \
224 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \
168b158c
PB
225@if gcc-bootstrap
226 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
227@endif gcc-bootstrap
f3fd76d4 228 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
a675b75a 229
5074489a
AO
230POSTSTAGE1_CXX_EXPORT = \
231 CXX='$(CXX)'; export CXX; \
232 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
233@if target-libstdc++-v3-bootstrap
234# Override the above if we're bootstrapping C++.
235POSTSTAGE1_CXX_EXPORT = \
236 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
237 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
ad6319f0 238 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
5074489a
AO
239 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
240 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
241 -I$$s/libstdc++-v3/libsupc++ \
242 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \
243 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
244@endif target-libstdc++-v3-bootstrap
245
a675b75a 246# Similar, for later GCC stages.
a8a96878 247POSTSTAGE1_HOST_EXPORTS = \
63673a5b 248 $(HOST_EXPORTS) \
7fc2ca22 249 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
c91ae28f
AO
250 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
251 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
252 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
5074489a 253 $(POSTSTAGE1_CXX_EXPORT) \
121f0eb2
RW
254 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
255 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
256 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
ff0592df 257
ff0592df
NN
258# Target libraries are put under this directory:
259TARGET_SUBDIR = @target_subdir@
260# This is set by the configure script to the arguments to use when configuring
261# directories built for the target.
f0fdfd34 262TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
a675b75a 263# This is the list of variables to export in the environment when
ca888f9c 264# configuring subdirectories for the target system.
a675b75a 265BASE_TARGET_EXPORTS = \
2cb47d68 266 $(BASE_EXPORTS) \
a675b75a 267 AR="$(AR_FOR_TARGET)"; export AR; \
a7dc05b5 268 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
c91ae28f
AO
269 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
270 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
a675b75a 271 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
ec724188 272 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
c91ae28f
AO
273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
274 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
275 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
a675b75a 276 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
a7dc05b5 277 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
a675b75a 278 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6a33f745 279 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
a7dc05b5 280 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
51c8a213 281 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
a675b75a 282 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6a33f745 283 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
9ab64c4a 284 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
bffcbe34 285 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
ca888f9c
RW
286@if gcc-bootstrap
287 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
288@endif gcc-bootstrap
e894eef9
JR
289 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
290 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
a675b75a
DD
291
292RAW_CXX_TARGET_EXPORTS = \
293 $(BASE_TARGET_EXPORTS) \
294 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
c91ae28f 295 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
a675b75a
DD
296
297NORMAL_TARGET_EXPORTS = \
298 $(BASE_TARGET_EXPORTS) \
c91ae28f 299 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
ff0592df 300
cb2333e8
DD
301# Where to find GMP
302HOST_GMPLIBS = @gmplibs@
303HOST_GMPINC = @gmpinc@
304
311b6756
JM
305# Where to find PPL
306HOST_PPLLIBS = @ppllibs@
307HOST_PPLINC = @pplinc@
308
309# Where to find CLOOG
310HOST_CLOOGLIBS = @clooglibs@
311HOST_CLOOGINC = @clooginc@
312
bd45d6fa
ILT
313# Where to find libelf
314HOST_LIBELFLIBS = @libelflibs@
315HOST_LIBELFINC = @libelfinc@
316
ff0592df
NN
317# ----------------------------------------------
318# Programs producing files for the BUILD machine
319# ----------------------------------------------
320
321SHELL = @config_shell@
322
323# pwd command to use. Allow user to override default by setting PWDCMD in
324# the environment to account for automounters. The make variable must not
325# be called PWDCMD, otherwise the value set here is passed to make
326# subprocesses and overrides the setting from the user's environment.
5230d454
L
327# Don't use PWD since it is a common shell environment variable and we
328# don't want to corrupt it.
329PWD_COMMAND = $${PWDCMD-pwd}
ff0592df
NN
330
331# compilers to use to create programs which must be run in the build
332# environment.
c8d9da73
PB
333AR_FOR_BUILD = @AR_FOR_BUILD@
334AS_FOR_BUILD = @AS_FOR_BUILD@
ff0592df 335CC_FOR_BUILD = @CC_FOR_BUILD@
e9ea9dec 336CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
c8d9da73
PB
337CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
338CXX_FOR_BUILD = @CXX_FOR_BUILD@
339DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
340GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
341GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
342LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
343LD_FOR_BUILD = @LD_FOR_BUILD@
344NM_FOR_BUILD = @NM_FOR_BUILD@
345RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
346WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
347WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
ff0592df
NN
348
349# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
350# here so that they can be overridden by Makefile fragments.
ff0592df
NN
351BUILD_PREFIX = @BUILD_PREFIX@
352BUILD_PREFIX_1 = @BUILD_PREFIX_1@
a3acbf46 353
99df82b9
PB
354# Flags to pass to stage2 and later makes. They are defined
355# here so that they can be overridden by Makefile fragments.
356BOOT_CFLAGS= -g -O2
7e958b2e 357BOOT_LDFLAGS=
7e1645ce 358BOOT_ADAFLAGS=-gnatpg -gnata
99df82b9 359
a8a01987
PB
360AWK = @AWK@
361SED = @SED@
a7dc05b5
PB
362BISON = @BISON@
363YACC = @YACC@
364FLEX = @FLEX@
365LEX = @LEX@
366M4 = @M4@
367MAKEINFO = @MAKEINFO@
368EXPECT = @EXPECT@
369RUNTEST = @RUNTEST@
a3acbf46
RH
370
371# This just becomes part of the MAKEINFO definition passed down to
372# sub-makes. It lets flags be given on the command line while still
373# using the makeinfo from the object tree.
8997bae8
DD
374# (Default to avoid splitting info files by setting the threshold high.)
375MAKEINFOFLAGS = --split-size=5000000
a3acbf46 376
ff0592df
NN
377# ---------------------------------------------
378# Programs producing files for the HOST machine
379# ---------------------------------------------
a3acbf46 380
ff0592df 381AS = @AS@
ff0592df
NN
382AR = @AR@
383AR_FLAGS = rc
ff0592df 384CC = @CC@
ff0592df 385CXX = @CXX@
ff0592df 386DLLTOOL = @DLLTOOL@
ff0592df 387LD = @LD@
a7dc05b5
PB
388LIPO = @LIPO@
389NM = @NM@
e3c08f94 390OBJDUMP = @OBJDUMP@
ff0592df 391RANLIB = @RANLIB@
a7dc05b5 392STRIP = @STRIP@
ff0592df 393WINDRES = @WINDRES@
bffcbe34 394WINDMC = @WINDMC@
a3acbf46 395
e6659c00
PB
396GNATBIND = @GNATBIND@
397GNATMAKE = @GNATMAKE@
398
a7dc05b5 399CFLAGS = @CFLAGS@
07846b16 400LDFLAGS = @LDFLAGS@
a7dc05b5
PB
401LIBCFLAGS = $(CFLAGS)
402CXXFLAGS = @CXXFLAGS@
403LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
ff0592df 404
c91ae28f
AO
405TFLAGS =
406
407# Defaults for all stages; some are overridden below.
408
409STAGE_CFLAGS = $(BOOT_CFLAGS)
410STAGE_TFLAGS = $(TFLAGS)
411STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
412
413
414# Defaults for stage 1; some are overridden below.
415STAGE1_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
416STAGE1_CXXFLAGS = $(CXXFLAGS)
417@if target-libstdc++-v3-bootstrap
418# Override the above if we're bootstrapping C++.
419STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
420@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
421STAGE1_TFLAGS = $(STAGE_TFLAGS)
422STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
423
424# Defaults for stage 2; some are overridden below.
425STAGE2_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
426STAGE2_CXXFLAGS = $(CXXFLAGS)
427@if target-libstdc++-v3-bootstrap
428# Override the above if we're bootstrapping C++.
429STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
430@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
431STAGE2_TFLAGS = $(STAGE_TFLAGS)
432STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
433
434# Defaults for stage 3; some are overridden below.
435STAGE3_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
436STAGE3_CXXFLAGS = $(CXXFLAGS)
437@if target-libstdc++-v3-bootstrap
438# Override the above if we're bootstrapping C++.
439STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
440@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
441STAGE3_TFLAGS = $(STAGE_TFLAGS)
442STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
443
444# Defaults for stage 4; some are overridden below.
445STAGE4_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
446STAGE4_CXXFLAGS = $(CXXFLAGS)
447@if target-libstdc++-v3-bootstrap
448# Override the above if we're bootstrapping C++.
449STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
450@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
451STAGE4_TFLAGS = $(STAGE_TFLAGS)
452STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
453
454# Defaults for stage profile; some are overridden below.
455STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
456STAGEprofile_CXXFLAGS = $(CXXFLAGS)
457@if target-libstdc++-v3-bootstrap
458# Override the above if we're bootstrapping C++.
459STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
460@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
461STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
462STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
463
464# Defaults for stage feedback; some are overridden below.
465STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
5074489a
AO
466STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
467@if target-libstdc++-v3-bootstrap
468# Override the above if we're bootstrapping C++.
469STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
470@endif target-libstdc++-v3-bootstrap
c91ae28f
AO
471STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
472STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
473
474
14a1406e
PB
475# Only build the C compiler for stage1, because that is the only one that
476# we can guarantee will build with the native compiler, and also it is the
477# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
478# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
479# overrideable (for a bootstrap build stage1 also builds gcc.info).
480
c91ae28f 481STAGE1_CFLAGS = @stage1_cflags@
5074489a
AO
482STAGE1_CHECKING = @stage1_checking@
483STAGE1_LANGUAGES = @stage1_languages@
c91ae28f
AO
484# * We force-disable intermodule optimizations, even if
485# --enable-intermodule was passed, since the installed compiler
486# probably can't handle them. Luckily, autoconf always respects
487# the last argument when conflicting --enable arguments are passed.
488# * Likewise, we force-disable coverage flags, since the installed
489# compiler probably has never heard of them.
490STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
491 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
14a1406e 492
c91ae28f
AO
493STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
494STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
2b41ef78 495
c91ae28f
AO
496STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
497STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
6532abb6 498
2b41ef78
AO
499do-compare = @do_compare@
500do-compare3 = $(do-compare)
2b41ef78 501
ff0592df
NN
502# -----------------------------------------------
503# Programs producing files for the TARGET machine
504# -----------------------------------------------
bb19e2ea 505
ff0592df 506AR_FOR_TARGET=@AR_FOR_TARGET@
712e2a32 507AS_FOR_TARGET=@AS_FOR_TARGET@
c91ae28f 508CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
5fb28bcc 509
ff0592df
NN
510# If GCC_FOR_TARGET is not overriden on the command line, then this
511# variable is passed down to the gcc Makefile, where it is used to
512# build libgcc2.a. We define it here so that it can itself be
513# overridden on the command line.
c91ae28f
AO
514GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
515CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
516RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
517GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
518GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
712e2a32 519DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
ff0592df 520LD_FOR_TARGET=@LD_FOR_TARGET@
ff0592df 521
6a33f745 522LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
ff0592df 523NM_FOR_TARGET=@NM_FOR_TARGET@
51c8a213 524OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
712e2a32 525RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
6a33f745 526STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
ff0592df 527WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
bffcbe34 528WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
a3acbf46 529
a7dc05b5
PB
530COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
531COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
532COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
533
6532abb6
PB
534CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
535CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
6532abb6 536
a7dc05b5
PB
537LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
538LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
d19b11bb 539LDFLAGS_FOR_TARGET =
ff0592df 540
c91ae28f
AO
541FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
542SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
543DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
544
545XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
546
ff0592df
NN
547# ------------------------------------
548# Miscellaneous targets and flag lists
549# ------------------------------------
550
a3acbf46
RH
551# The first rule in the file had better be this one. Don't put any above it.
552# This lives here to allow makefile fragments to contain dependencies.
168b158c 553all:
a3acbf46 554
a3acbf46 555#### host and target specific makefile fragments come in here.
bafecfd6
NN
556@target_makefile_frag@
557@alphaieee_frag@
558@ospace_frag@
559@host_makefile_frag@
a3acbf46
RH
560###
561
f3fd76d4 562# This is the list of directories that may be needed in RPATH_ENVVAR
45ebecda 563# so that programs built for the target machine work.
e1e5148c 564TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
f3fd76d4
PB
565
566@if target-libstdc++-v3
45ebecda 567TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
f3fd76d4
PB
568@endif target-libstdc++-v3
569
570@if target-libmudflap
571TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
572@endif target-libmudflap
573
4c3e061c
PB
574@if target-libssp
575TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
576@endif target-libssp
577
00bc9d7f
PB
578@if target-libgomp
579TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
580@endif target-libgomp
581
f3fd76d4
PB
582
583
584# This is the list of directories that may be needed in RPATH_ENVVAR
585# so that programs built for the host machine work.
5074489a 586HOST_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)
f3fd76d4
PB
587
588# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
589@if gcc
8453fdba 590HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
f3fd76d4
PB
591@endif gcc
592
593
594@if bfd
595HOST_LIB_PATH_bfd = \
5544eee7 596 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
f3fd76d4
PB
597@endif bfd
598
599@if opcodes
600HOST_LIB_PATH_opcodes = \
5544eee7 601 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
f3fd76d4
PB
602@endif opcodes
603
42f55f77
PB
604@if gmp
605HOST_LIB_PATH_gmp = \
606 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
607@endif gmp
608
609@if mpfr
610HOST_LIB_PATH_mpfr = \
611 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
612@endif mpfr
613
121f0eb2
RW
614@if mpc
615HOST_LIB_PATH_mpc = \
616 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
617@endif mpc
618
311b6756
JM
619@if ppl
620HOST_LIB_PATH_ppl = \
5074489a 621 $$r/$(HOST_SUBDIR)/ppl/src/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/src/.libs:
311b6756
JM
622@endif ppl
623
624@if cloog
625HOST_LIB_PATH_cloog = \
626 $$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
627@endif cloog
628
5074489a
AO
629@if libelf
630HOST_LIB_PATH_libelf = \
631 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
632@endif libelf
633
f3fd76d4 634
a3acbf46 635# Flags to pass down to all sub-makes.
a3acbf46 636BASE_FLAGS_TO_PASS = \
8ccfe116 637 "DESTDIR=$(DESTDIR)" \
a3acbf46 638 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
a3acbf46 639 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
a3acbf46
RH
640 "bindir=$(bindir)" \
641 "datadir=$(datadir)" \
642 "exec_prefix=$(exec_prefix)" \
643 "includedir=$(includedir)" \
83c9add4
CD
644 "datarootdir=$(datarootdir)" \
645 "docdir=$(docdir)" \
a3acbf46 646 "infodir=$(infodir)" \
d4954b6d 647 "pdfdir=$(pdfdir)" \
83c9add4 648 "htmldir=$(htmldir)" \
a3acbf46
RH
649 "libdir=$(libdir)" \
650 "libexecdir=$(libexecdir)" \
651 "lispdir=$(lispdir)" \
652 "localstatedir=$(localstatedir)" \
653 "mandir=$(mandir)" \
654 "oldincludedir=$(oldincludedir)" \
655 "prefix=$(prefix)" \
656 "sbindir=$(sbindir)" \
657 "sharedstatedir=$(sharedstatedir)" \
658 "sysconfdir=$(sysconfdir)" \
659 "tooldir=$(tooldir)" \
2ff6d12f 660 "build_tooldir=$(build_tooldir)" \
47cd8327 661 "target_alias=$(target_alias)" \
a8a01987 662 "AWK=$(AWK)" \
47cd8327
NN
663 "BISON=$(BISON)" \
664 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
469b4895 665 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
47cd8327
NN
666 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
667 "EXPECT=$(EXPECT)" \
2cb47d68 668 "FLEX=$(FLEX)" \
47cd8327
NN
669 "INSTALL=$(INSTALL)" \
670 "INSTALL_DATA=$(INSTALL_DATA)" \
671 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
672 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
7d6b567a 673 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
47cd8327
NN
674 "LEX=$(LEX)" \
675 "M4=$(M4)" \
676 "MAKE=$(MAKE)" \
677 "RUNTEST=$(RUNTEST)" \
678 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
a8a01987 679 "SED=$(SED)" \
47cd8327
NN
680 "SHELL=$(SHELL)" \
681 "YACC=$(YACC)" \
ec92c4d6 682 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
9ad2ea2f 683 "ADA_CFLAGS=$(ADA_CFLAGS)" \
47cd8327 684 "AR_FLAGS=$(AR_FLAGS)" \
ec92c4d6 685 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
7e958b2e
PB
686 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
687 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
47cd8327
NN
688 "CFLAGS=$(CFLAGS)" \
689 "CXXFLAGS=$(CXXFLAGS)" \
690 "LDFLAGS=$(LDFLAGS)" \
691 "LIBCFLAGS=$(LIBCFLAGS)" \
692 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
14a1406e 693 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
e3c08f94 694 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
e6659c00
PB
695 "GNATBIND=$(GNATBIND)" \
696 "GNATMAKE=$(GNATMAKE)" \
47cd8327
NN
697 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
698 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
699 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
700 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
ec724188 701 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
47cd8327
NN
702 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
703 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
704 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
c91ae28f 705 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
47cd8327 706 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
cb2333e8 707 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
47cd8327 708 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
6a33f745 709 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
ece7e564 710 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
47cd8327
NN
711 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
712 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
713 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
51c8a213 714 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
47cd8327 715 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
6a33f745 716 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
47cd8327 717 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
bffcbe34 718 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
c91ae28f 719 "BUILD_CONFIG=$(BUILD_CONFIG)" \
ec92c4d6 720 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
e3c08f94 721 "LEAN=$(LEAN)" \
c91ae28f 722 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
5074489a 723 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
724 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
725 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
5074489a 726 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
727 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
728 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
5074489a 729 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
730 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
731 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
5074489a 732 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
c91ae28f
AO
733 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
734 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
5074489a 735 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
736 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
737 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
5074489a 738 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
739 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
740 "TFLAGS=$(TFLAGS)" \
08bf2e60 741 "CONFIG_SHELL=$(SHELL)" \
47cd8327 742 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
a3acbf46 743
5fb28bcc
PB
744# We leave this in just in case, but it is not needed anymore.
745RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
21ff191e 746
a3acbf46
RH
747# Flags to pass down to most sub-makes, in which we're building with
748# the host environment.
a3acbf46
RH
749EXTRA_HOST_FLAGS = \
750 'AR=$(AR)' \
751 'AS=$(AS)' \
752 'CC=$(CC)' \
753 'CXX=$(CXX)' \
754 'DLLTOOL=$(DLLTOOL)' \
c91ae28f
AO
755 'GCJ=$(GCJ)' \
756 'GFORTRAN=$(GFORTRAN)' \
a3acbf46 757 'LD=$(LD)' \
a7dc05b5 758 'LIPO=$(LIPO)' \
a3acbf46 759 'NM=$(NM)' \
e3c08f94 760 'OBJDUMP=$(OBJDUMP)' \
76ab491a 761 'RANLIB=$(RANLIB)' \
a7dc05b5 762 'STRIP=$(STRIP)' \
bffcbe34
NC
763 'WINDRES=$(WINDRES)' \
764 'WINDMC=$(WINDMC)'
a3acbf46
RH
765
766FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
767
768# Flags that are concerned with the location of the X11 include files
769# and library files
770#
771# NOTE: until the top-level is getting the values via autoconf, it only
772# causes problems to have this top-level Makefile overriding the autoconf-set
773# values in child directories. Only variables that don't conflict with
774# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
775#
776X11_FLAGS_TO_PASS = \
777 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
778 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
779
14a1406e
PB
780# Flags to pass to stage2 and later makes.
781
782POSTSTAGE1_FLAGS_TO_PASS = \
121f0eb2
RW
783 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
784 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
785 GNATBIND="$${GNATBIND}" \
5074489a
AO
786 LDFLAGS="$${LDFLAGS}" \
787 HOST_LIBS="$${HOST_LIBS}" \
14a1406e
PB
788 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
789
a3acbf46 790# Flags to pass down to makes which are built with the target environment.
15b527ca
PB
791# The double $ decreases the length of the command line; those variables
792# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
6532abb6
PB
793# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
794# so we expand them here.
a3acbf46
RH
795EXTRA_TARGET_FLAGS = \
796 'AR=$$(AR_FOR_TARGET)' \
15b527ca 797 'AS=$(COMPILER_AS_FOR_TARGET)' \
c91ae28f
AO
798 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
799 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
800 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
801 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
a3acbf46 802 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
c91ae28f
AO
803 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
804 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
15b527ca 805 'LD=$(COMPILER_LD_FOR_TARGET)' \
ece7e564 806 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
c91ae28f
AO
807 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
808 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
15b527ca 809 'NM=$(COMPILER_NM_FOR_TARGET)' \
51c8a213 810 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
a3acbf46 811 'RANLIB=$$(RANLIB_FOR_TARGET)' \
bffcbe34 812 'WINDRES=$$(WINDRES_FOR_TARGET)' \
c91ae28f
AO
813 'WINDMC=$$(WINDMC_FOR_TARGET)' \
814 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
815 "TFLAGS=$$TFLAGS"
a3acbf46
RH
816
817TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
818
819# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
820# unfortunately needs the native compiler and the target ar and
821# ranlib.
822# If any variables are added here, they must be added to do-*, below.
657b58f4 823# The BUILD_* variables are a special case, which are used for the gcc
a3acbf46
RH
824# cross-building scheme.
825EXTRA_GCC_FLAGS = \
a3acbf46 826 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
07bc9e41
NN
827 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
828 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
829 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
830 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
ec92c4d6 831 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
a3acbf46 832
2286046e 833GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
a3acbf46 834
c91ae28f 835@if gcc
55662058 836BUILD_CONFIG = @BUILD_CONFIG@
c91ae28f
AO
837ifneq ($(BUILD_CONFIG),)
838include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
839endif
840@endif gcc
841
9b520963 842.PHONY: configure-host
d5eec917 843configure-host: \
9b520963
NN
844 maybe-configure-ash \
845 maybe-configure-autoconf \
846 maybe-configure-automake \
847 maybe-configure-bash \
848 maybe-configure-bfd \
849 maybe-configure-opcodes \
850 maybe-configure-binutils \
851 maybe-configure-bison \
852 maybe-configure-byacc \
853 maybe-configure-bzip2 \
d0880d62 854 maybe-configure-cgen \
9b520963
NN
855 maybe-configure-dejagnu \
856 maybe-configure-diff \
857 maybe-configure-dosutils \
858 maybe-configure-etc \
859 maybe-configure-fastjar \
860 maybe-configure-fileutils \
861 maybe-configure-findutils \
862 maybe-configure-find \
5350aa8b 863 maybe-configure-fixincludes \
9b520963
NN
864 maybe-configure-flex \
865 maybe-configure-gas \
d5eec917 866 maybe-configure-gcc \
9b520963
NN
867 maybe-configure-gawk \
868 maybe-configure-gettext \
42f55f77
PB
869 maybe-configure-gmp \
870 maybe-configure-mpfr \
121f0eb2 871 maybe-configure-mpc \
311b6756
JM
872 maybe-configure-ppl \
873 maybe-configure-cloog \
5074489a 874 maybe-configure-libelf \
9b520963 875 maybe-configure-gnuserv \
b916272a 876 maybe-configure-gold \
9b520963
NN
877 maybe-configure-gprof \
878 maybe-configure-gzip \
879 maybe-configure-hello \
880 maybe-configure-indent \
881 maybe-configure-intl \
882 maybe-configure-tcl \
883 maybe-configure-itcl \
884 maybe-configure-ld \
c580d516 885 maybe-configure-libcpp \
a7dc05b5 886 maybe-configure-libdecnumber \
9b520963
NN
887 maybe-configure-libgui \
888 maybe-configure-libiberty \
59455d2f 889 maybe-configure-libiconv \
9b520963
NN
890 maybe-configure-libtool \
891 maybe-configure-m4 \
892 maybe-configure-make \
893 maybe-configure-mmalloc \
894 maybe-configure-patch \
895 maybe-configure-perl \
896 maybe-configure-prms \
897 maybe-configure-rcs \
898 maybe-configure-readline \
899 maybe-configure-release \
900 maybe-configure-recode \
901 maybe-configure-sed \
902 maybe-configure-send-pr \
903 maybe-configure-shellutils \
904 maybe-configure-sid \
905 maybe-configure-sim \
906 maybe-configure-tar \
907 maybe-configure-texinfo \
908 maybe-configure-textutils \
909 maybe-configure-time \
910 maybe-configure-uudecode \
911 maybe-configure-wdiff \
912 maybe-configure-zip \
913 maybe-configure-zlib \
914 maybe-configure-gdb \
915 maybe-configure-expect \
916 maybe-configure-guile \
917 maybe-configure-tk \
9b520963 918 maybe-configure-libtermcap \
7fc2ca22 919 maybe-configure-utils \
bd45d6fa
ILT
920 maybe-configure-gnattools \
921 maybe-configure-lto-plugin
9b520963
NN
922.PHONY: configure-target
923configure-target: \
924 maybe-configure-target-libstdc++-v3 \
cb2333e8 925 maybe-configure-target-libmudflap \
4c3e061c 926 maybe-configure-target-libssp \
9b520963 927 maybe-configure-target-newlib \
1f316156 928 maybe-configure-target-libgcc \
cb2333e8 929 maybe-configure-target-libgfortran \
9b520963
NN
930 maybe-configure-target-libobjc \
931 maybe-configure-target-libtermcap \
932 maybe-configure-target-winsup \
933 maybe-configure-target-libgloss \
934 maybe-configure-target-libiberty \
935 maybe-configure-target-gperf \
936 maybe-configure-target-examples \
937 maybe-configure-target-libffi \
938 maybe-configure-target-libjava \
939 maybe-configure-target-zlib \
940 maybe-configure-target-boehm-gc \
941 maybe-configure-target-qthreads \
d832a288 942 maybe-configure-target-rda \
00bc9d7f
PB
943 maybe-configure-target-libada \
944 maybe-configure-target-libgomp
a3acbf46 945
e1666221
PB
946# The target built for a native non-bootstrap build.
947.PHONY: all
168b158c
PB
948all:
949@if gcc-bootstrap
a7dc05b5 950 [ -f stage_final ] || echo stage3 > stage_final
168b158c
PB
951 @r=`${PWD_COMMAND}`; export r; \
952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15b527ca 953 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
168b158c 954@endif gcc-bootstrap
15b527ca 955 @: $(MAKE); $(unstage)
168b158c
PB
956 @r=`${PWD_COMMAND}`; export r; \
957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 958@if gcc-bootstrap
d8f253f9 959 if [ -f stage_last ]; then \
5cf384df 960 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
a7dc05b5 961 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
168b158c 962 else \
c91ae28f 963@endif gcc-bootstrap
d8f253f9
AO
964 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
965@if gcc-bootstrap
966 ; \
8992a8e0 967 fi \
d8f253f9 968@endif gcc-bootstrap
8992a8e0 969 && :
2cb47d68
PB
970
971.PHONY: all-build
ec92c4d6
PB
972
973all-build: maybe-all-build-libiberty
974all-build: maybe-all-build-bison
975all-build: maybe-all-build-byacc
976all-build: maybe-all-build-flex
977all-build: maybe-all-build-m4
978all-build: maybe-all-build-texinfo
979all-build: maybe-all-build-fixincludes
980
9b520963 981.PHONY: all-host
ec92c4d6
PB
982
983all-host: maybe-all-ash
984all-host: maybe-all-autoconf
985all-host: maybe-all-automake
986all-host: maybe-all-bash
987@if bfd-no-bootstrap
988all-host: maybe-all-bfd
989@endif bfd-no-bootstrap
990@if opcodes-no-bootstrap
991all-host: maybe-all-opcodes
992@endif opcodes-no-bootstrap
993@if binutils-no-bootstrap
994all-host: maybe-all-binutils
995@endif binutils-no-bootstrap
996all-host: maybe-all-bison
997all-host: maybe-all-byacc
998all-host: maybe-all-bzip2
d0880d62 999all-host: maybe-all-cgen
ec92c4d6
PB
1000all-host: maybe-all-dejagnu
1001all-host: maybe-all-diff
1002all-host: maybe-all-dosutils
1003all-host: maybe-all-etc
1004all-host: maybe-all-fastjar
1005all-host: maybe-all-fileutils
1006all-host: maybe-all-findutils
1007all-host: maybe-all-find
1008all-host: maybe-all-fixincludes
1009all-host: maybe-all-flex
1010@if gas-no-bootstrap
1011all-host: maybe-all-gas
1012@endif gas-no-bootstrap
1013@if gcc-no-bootstrap
1014all-host: maybe-all-gcc
1015@endif gcc-no-bootstrap
1016all-host: maybe-all-gawk
1017all-host: maybe-all-gettext
42f55f77
PB
1018@if gmp-no-bootstrap
1019all-host: maybe-all-gmp
1020@endif gmp-no-bootstrap
1021@if mpfr-no-bootstrap
1022all-host: maybe-all-mpfr
1023@endif mpfr-no-bootstrap
121f0eb2
RW
1024@if mpc-no-bootstrap
1025all-host: maybe-all-mpc
1026@endif mpc-no-bootstrap
311b6756
JM
1027@if ppl-no-bootstrap
1028all-host: maybe-all-ppl
1029@endif ppl-no-bootstrap
1030@if cloog-no-bootstrap
1031all-host: maybe-all-cloog
1032@endif cloog-no-bootstrap
5074489a
AO
1033@if libelf-no-bootstrap
1034all-host: maybe-all-libelf
1035@endif libelf-no-bootstrap
ec92c4d6 1036all-host: maybe-all-gnuserv
b916272a
ILT
1037@if gold-no-bootstrap
1038all-host: maybe-all-gold
1039@endif gold-no-bootstrap
ec92c4d6
PB
1040all-host: maybe-all-gprof
1041all-host: maybe-all-gzip
1042all-host: maybe-all-hello
1043all-host: maybe-all-indent
1044@if intl-no-bootstrap
1045all-host: maybe-all-intl
1046@endif intl-no-bootstrap
1047all-host: maybe-all-tcl
1048all-host: maybe-all-itcl
1049@if ld-no-bootstrap
1050all-host: maybe-all-ld
1051@endif ld-no-bootstrap
1052@if libcpp-no-bootstrap
1053all-host: maybe-all-libcpp
1054@endif libcpp-no-bootstrap
1055@if libdecnumber-no-bootstrap
1056all-host: maybe-all-libdecnumber
1057@endif libdecnumber-no-bootstrap
1058all-host: maybe-all-libgui
1059@if libiberty-no-bootstrap
1060all-host: maybe-all-libiberty
1061@endif libiberty-no-bootstrap
59455d2f 1062all-host: maybe-all-libiconv
ec92c4d6
PB
1063all-host: maybe-all-libtool
1064all-host: maybe-all-m4
1065all-host: maybe-all-make
1066all-host: maybe-all-mmalloc
1067all-host: maybe-all-patch
1068all-host: maybe-all-perl
1069all-host: maybe-all-prms
1070all-host: maybe-all-rcs
1071all-host: maybe-all-readline
1072all-host: maybe-all-release
1073all-host: maybe-all-recode
1074all-host: maybe-all-sed
1075all-host: maybe-all-send-pr
1076all-host: maybe-all-shellutils
1077all-host: maybe-all-sid
1078all-host: maybe-all-sim
1079all-host: maybe-all-tar
1080all-host: maybe-all-texinfo
1081all-host: maybe-all-textutils
1082all-host: maybe-all-time
1083all-host: maybe-all-uudecode
1084all-host: maybe-all-wdiff
1085all-host: maybe-all-zip
1086@if zlib-no-bootstrap
1087all-host: maybe-all-zlib
1088@endif zlib-no-bootstrap
1089all-host: maybe-all-gdb
1090all-host: maybe-all-expect
1091all-host: maybe-all-guile
1092all-host: maybe-all-tk
1093all-host: maybe-all-libtermcap
1094all-host: maybe-all-utils
1095all-host: maybe-all-gnattools
bd45d6fa
ILT
1096@if lto-plugin-no-bootstrap
1097all-host: maybe-all-lto-plugin
1098@endif lto-plugin-no-bootstrap
ec92c4d6 1099
9b520963 1100.PHONY: all-target
ec92c4d6 1101
121f0eb2 1102@if target-libstdc++-v3-no-bootstrap
ec92c4d6 1103all-target: maybe-all-target-libstdc++-v3
121f0eb2 1104@endif target-libstdc++-v3-no-bootstrap
ec92c4d6
PB
1105all-target: maybe-all-target-libmudflap
1106all-target: maybe-all-target-libssp
ec92c4d6 1107all-target: maybe-all-target-newlib
a1c408a1 1108@if target-libgcc-no-bootstrap
1f316156 1109all-target: maybe-all-target-libgcc
a1c408a1 1110@endif target-libgcc-no-bootstrap
ec92c4d6
PB
1111all-target: maybe-all-target-libgfortran
1112all-target: maybe-all-target-libobjc
1113all-target: maybe-all-target-libtermcap
1114all-target: maybe-all-target-winsup
1115all-target: maybe-all-target-libgloss
1116all-target: maybe-all-target-libiberty
1117all-target: maybe-all-target-gperf
1118all-target: maybe-all-target-examples
1119all-target: maybe-all-target-libffi
1120all-target: maybe-all-target-libjava
1121all-target: maybe-all-target-zlib
1122all-target: maybe-all-target-boehm-gc
1123all-target: maybe-all-target-qthreads
1124all-target: maybe-all-target-rda
1125all-target: maybe-all-target-libada
e894eef9 1126@if target-libgomp-no-bootstrap
ec92c4d6 1127all-target: maybe-all-target-libgomp
e894eef9 1128@endif target-libgomp-no-bootstrap
a3acbf46
RH
1129
1130# Do a target for all the subdirectories. A ``make do-X'' will do a
1131# ``make X'' in all subdirectories (because, in general, there is a
1132# dependency (below) of X upon do-X, a ``make X'' will also do this,
1133# but it may do additional work as well).
d6ebd419 1134
657b58f4 1135.PHONY: do-info
168b158c 1136do-info:
15b527ca 1137 @: $(MAKE); $(unstage)
ecebee48
PB
1138 @r=`${PWD_COMMAND}`; export r; \
1139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1140 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
168b158c 1141 info-target
168b158c 1142
d6ebd419 1143
657b58f4 1144.PHONY: info-host
ec92c4d6
PB
1145
1146info-host: maybe-info-ash
1147info-host: maybe-info-autoconf
1148info-host: maybe-info-automake
1149info-host: maybe-info-bash
1150info-host: maybe-info-bfd
1151info-host: maybe-info-opcodes
1152info-host: maybe-info-binutils
1153info-host: maybe-info-bison
1154info-host: maybe-info-byacc
1155info-host: maybe-info-bzip2
d0880d62 1156info-host: maybe-info-cgen
ec92c4d6
PB
1157info-host: maybe-info-dejagnu
1158info-host: maybe-info-diff
1159info-host: maybe-info-dosutils
1160info-host: maybe-info-etc
1161info-host: maybe-info-fastjar
1162info-host: maybe-info-fileutils
1163info-host: maybe-info-findutils
1164info-host: maybe-info-find
1165info-host: maybe-info-fixincludes
1166info-host: maybe-info-flex
1167info-host: maybe-info-gas
1168info-host: maybe-info-gcc
1169info-host: maybe-info-gawk
1170info-host: maybe-info-gettext
42f55f77
PB
1171info-host: maybe-info-gmp
1172info-host: maybe-info-mpfr
121f0eb2 1173info-host: maybe-info-mpc
311b6756
JM
1174info-host: maybe-info-ppl
1175info-host: maybe-info-cloog
5074489a 1176info-host: maybe-info-libelf
ec92c4d6 1177info-host: maybe-info-gnuserv
b916272a 1178info-host: maybe-info-gold
ec92c4d6
PB
1179info-host: maybe-info-gprof
1180info-host: maybe-info-gzip
1181info-host: maybe-info-hello
1182info-host: maybe-info-indent
1183info-host: maybe-info-intl
1184info-host: maybe-info-tcl
1185info-host: maybe-info-itcl
1186info-host: maybe-info-ld
1187info-host: maybe-info-libcpp
1188info-host: maybe-info-libdecnumber
1189info-host: maybe-info-libgui
1190info-host: maybe-info-libiberty
59455d2f 1191info-host: maybe-info-libiconv
ec92c4d6
PB
1192info-host: maybe-info-libtool
1193info-host: maybe-info-m4
1194info-host: maybe-info-make
1195info-host: maybe-info-mmalloc
1196info-host: maybe-info-patch
1197info-host: maybe-info-perl
1198info-host: maybe-info-prms
1199info-host: maybe-info-rcs
1200info-host: maybe-info-readline
1201info-host: maybe-info-release
1202info-host: maybe-info-recode
1203info-host: maybe-info-sed
1204info-host: maybe-info-send-pr
1205info-host: maybe-info-shellutils
1206info-host: maybe-info-sid
1207info-host: maybe-info-sim
1208info-host: maybe-info-tar
1209info-host: maybe-info-texinfo
1210info-host: maybe-info-textutils
1211info-host: maybe-info-time
1212info-host: maybe-info-uudecode
1213info-host: maybe-info-wdiff
1214info-host: maybe-info-zip
1215info-host: maybe-info-zlib
1216info-host: maybe-info-gdb
1217info-host: maybe-info-expect
1218info-host: maybe-info-guile
1219info-host: maybe-info-tk
1220info-host: maybe-info-libtermcap
1221info-host: maybe-info-utils
1222info-host: maybe-info-gnattools
bd45d6fa 1223info-host: maybe-info-lto-plugin
a3acbf46 1224
657b58f4 1225.PHONY: info-target
ec92c4d6
PB
1226
1227info-target: maybe-info-target-libstdc++-v3
1228info-target: maybe-info-target-libmudflap
1229info-target: maybe-info-target-libssp
ec92c4d6 1230info-target: maybe-info-target-newlib
1f316156 1231info-target: maybe-info-target-libgcc
ec92c4d6
PB
1232info-target: maybe-info-target-libgfortran
1233info-target: maybe-info-target-libobjc
1234info-target: maybe-info-target-libtermcap
1235info-target: maybe-info-target-winsup
1236info-target: maybe-info-target-libgloss
1237info-target: maybe-info-target-libiberty
1238info-target: maybe-info-target-gperf
1239info-target: maybe-info-target-examples
1240info-target: maybe-info-target-libffi
1241info-target: maybe-info-target-libjava
1242info-target: maybe-info-target-zlib
1243info-target: maybe-info-target-boehm-gc
1244info-target: maybe-info-target-qthreads
1245info-target: maybe-info-target-rda
1246info-target: maybe-info-target-libada
1247info-target: maybe-info-target-libgomp
a3acbf46 1248
8ec98d6c 1249.PHONY: do-dvi
168b158c 1250do-dvi:
15b527ca 1251 @: $(MAKE); $(unstage)
ecebee48
PB
1252 @r=`${PWD_COMMAND}`; export r; \
1253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1254 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
168b158c 1255 dvi-target
168b158c 1256
657b58f4 1257
8ec98d6c 1258.PHONY: dvi-host
ec92c4d6
PB
1259
1260dvi-host: maybe-dvi-ash
1261dvi-host: maybe-dvi-autoconf
1262dvi-host: maybe-dvi-automake
1263dvi-host: maybe-dvi-bash
1264dvi-host: maybe-dvi-bfd
1265dvi-host: maybe-dvi-opcodes
1266dvi-host: maybe-dvi-binutils
1267dvi-host: maybe-dvi-bison
1268dvi-host: maybe-dvi-byacc
1269dvi-host: maybe-dvi-bzip2
d0880d62 1270dvi-host: maybe-dvi-cgen
ec92c4d6
PB
1271dvi-host: maybe-dvi-dejagnu
1272dvi-host: maybe-dvi-diff
1273dvi-host: maybe-dvi-dosutils
1274dvi-host: maybe-dvi-etc
1275dvi-host: maybe-dvi-fastjar
1276dvi-host: maybe-dvi-fileutils
1277dvi-host: maybe-dvi-findutils
1278dvi-host: maybe-dvi-find
1279dvi-host: maybe-dvi-fixincludes
1280dvi-host: maybe-dvi-flex
1281dvi-host: maybe-dvi-gas
1282dvi-host: maybe-dvi-gcc
1283dvi-host: maybe-dvi-gawk
1284dvi-host: maybe-dvi-gettext
42f55f77
PB
1285dvi-host: maybe-dvi-gmp
1286dvi-host: maybe-dvi-mpfr
121f0eb2 1287dvi-host: maybe-dvi-mpc
311b6756
JM
1288dvi-host: maybe-dvi-ppl
1289dvi-host: maybe-dvi-cloog
5074489a 1290dvi-host: maybe-dvi-libelf
ec92c4d6 1291dvi-host: maybe-dvi-gnuserv
b916272a 1292dvi-host: maybe-dvi-gold
ec92c4d6
PB
1293dvi-host: maybe-dvi-gprof
1294dvi-host: maybe-dvi-gzip
1295dvi-host: maybe-dvi-hello
1296dvi-host: maybe-dvi-indent
1297dvi-host: maybe-dvi-intl
1298dvi-host: maybe-dvi-tcl
1299dvi-host: maybe-dvi-itcl
1300dvi-host: maybe-dvi-ld
1301dvi-host: maybe-dvi-libcpp
1302dvi-host: maybe-dvi-libdecnumber
1303dvi-host: maybe-dvi-libgui
1304dvi-host: maybe-dvi-libiberty
59455d2f 1305dvi-host: maybe-dvi-libiconv
ec92c4d6
PB
1306dvi-host: maybe-dvi-libtool
1307dvi-host: maybe-dvi-m4
1308dvi-host: maybe-dvi-make
1309dvi-host: maybe-dvi-mmalloc
1310dvi-host: maybe-dvi-patch
1311dvi-host: maybe-dvi-perl
1312dvi-host: maybe-dvi-prms
1313dvi-host: maybe-dvi-rcs
1314dvi-host: maybe-dvi-readline
1315dvi-host: maybe-dvi-release
1316dvi-host: maybe-dvi-recode
1317dvi-host: maybe-dvi-sed
1318dvi-host: maybe-dvi-send-pr
1319dvi-host: maybe-dvi-shellutils
1320dvi-host: maybe-dvi-sid
1321dvi-host: maybe-dvi-sim
1322dvi-host: maybe-dvi-tar
1323dvi-host: maybe-dvi-texinfo
1324dvi-host: maybe-dvi-textutils
1325dvi-host: maybe-dvi-time
1326dvi-host: maybe-dvi-uudecode
1327dvi-host: maybe-dvi-wdiff
1328dvi-host: maybe-dvi-zip
1329dvi-host: maybe-dvi-zlib
1330dvi-host: maybe-dvi-gdb
1331dvi-host: maybe-dvi-expect
1332dvi-host: maybe-dvi-guile
1333dvi-host: maybe-dvi-tk
1334dvi-host: maybe-dvi-libtermcap
1335dvi-host: maybe-dvi-utils
1336dvi-host: maybe-dvi-gnattools
bd45d6fa 1337dvi-host: maybe-dvi-lto-plugin
657b58f4 1338
8ec98d6c 1339.PHONY: dvi-target
ec92c4d6
PB
1340
1341dvi-target: maybe-dvi-target-libstdc++-v3
1342dvi-target: maybe-dvi-target-libmudflap
1343dvi-target: maybe-dvi-target-libssp
ec92c4d6 1344dvi-target: maybe-dvi-target-newlib
1f316156 1345dvi-target: maybe-dvi-target-libgcc
ec92c4d6
PB
1346dvi-target: maybe-dvi-target-libgfortran
1347dvi-target: maybe-dvi-target-libobjc
1348dvi-target: maybe-dvi-target-libtermcap
1349dvi-target: maybe-dvi-target-winsup
1350dvi-target: maybe-dvi-target-libgloss
1351dvi-target: maybe-dvi-target-libiberty
1352dvi-target: maybe-dvi-target-gperf
1353dvi-target: maybe-dvi-target-examples
1354dvi-target: maybe-dvi-target-libffi
1355dvi-target: maybe-dvi-target-libjava
1356dvi-target: maybe-dvi-target-zlib
1357dvi-target: maybe-dvi-target-boehm-gc
1358dvi-target: maybe-dvi-target-qthreads
1359dvi-target: maybe-dvi-target-rda
1360dvi-target: maybe-dvi-target-libada
1361dvi-target: maybe-dvi-target-libgomp
657b58f4 1362
39bbbb69
DD
1363.PHONY: do-pdf
1364do-pdf:
1365 @: $(MAKE); $(unstage)
1366 @r=`${PWD_COMMAND}`; export r; \
1367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1368 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1369 pdf-target
1370
1371
1372.PHONY: pdf-host
1373
1374pdf-host: maybe-pdf-ash
1375pdf-host: maybe-pdf-autoconf
1376pdf-host: maybe-pdf-automake
1377pdf-host: maybe-pdf-bash
1378pdf-host: maybe-pdf-bfd
1379pdf-host: maybe-pdf-opcodes
1380pdf-host: maybe-pdf-binutils
1381pdf-host: maybe-pdf-bison
1382pdf-host: maybe-pdf-byacc
1383pdf-host: maybe-pdf-bzip2
d0880d62 1384pdf-host: maybe-pdf-cgen
39bbbb69
DD
1385pdf-host: maybe-pdf-dejagnu
1386pdf-host: maybe-pdf-diff
1387pdf-host: maybe-pdf-dosutils
1388pdf-host: maybe-pdf-etc
1389pdf-host: maybe-pdf-fastjar
1390pdf-host: maybe-pdf-fileutils
1391pdf-host: maybe-pdf-findutils
1392pdf-host: maybe-pdf-find
1393pdf-host: maybe-pdf-fixincludes
1394pdf-host: maybe-pdf-flex
1395pdf-host: maybe-pdf-gas
1396pdf-host: maybe-pdf-gcc
1397pdf-host: maybe-pdf-gawk
1398pdf-host: maybe-pdf-gettext
42f55f77
PB
1399pdf-host: maybe-pdf-gmp
1400pdf-host: maybe-pdf-mpfr
121f0eb2 1401pdf-host: maybe-pdf-mpc
311b6756
JM
1402pdf-host: maybe-pdf-ppl
1403pdf-host: maybe-pdf-cloog
5074489a 1404pdf-host: maybe-pdf-libelf
39bbbb69 1405pdf-host: maybe-pdf-gnuserv
b916272a 1406pdf-host: maybe-pdf-gold
39bbbb69
DD
1407pdf-host: maybe-pdf-gprof
1408pdf-host: maybe-pdf-gzip
1409pdf-host: maybe-pdf-hello
1410pdf-host: maybe-pdf-indent
1411pdf-host: maybe-pdf-intl
1412pdf-host: maybe-pdf-tcl
1413pdf-host: maybe-pdf-itcl
1414pdf-host: maybe-pdf-ld
1415pdf-host: maybe-pdf-libcpp
1416pdf-host: maybe-pdf-libdecnumber
1417pdf-host: maybe-pdf-libgui
1418pdf-host: maybe-pdf-libiberty
59455d2f 1419pdf-host: maybe-pdf-libiconv
39bbbb69
DD
1420pdf-host: maybe-pdf-libtool
1421pdf-host: maybe-pdf-m4
1422pdf-host: maybe-pdf-make
1423pdf-host: maybe-pdf-mmalloc
1424pdf-host: maybe-pdf-patch
1425pdf-host: maybe-pdf-perl
1426pdf-host: maybe-pdf-prms
1427pdf-host: maybe-pdf-rcs
1428pdf-host: maybe-pdf-readline
1429pdf-host: maybe-pdf-release
1430pdf-host: maybe-pdf-recode
1431pdf-host: maybe-pdf-sed
1432pdf-host: maybe-pdf-send-pr
1433pdf-host: maybe-pdf-shellutils
1434pdf-host: maybe-pdf-sid
1435pdf-host: maybe-pdf-sim
1436pdf-host: maybe-pdf-tar
1437pdf-host: maybe-pdf-texinfo
1438pdf-host: maybe-pdf-textutils
1439pdf-host: maybe-pdf-time
1440pdf-host: maybe-pdf-uudecode
1441pdf-host: maybe-pdf-wdiff
1442pdf-host: maybe-pdf-zip
1443pdf-host: maybe-pdf-zlib
1444pdf-host: maybe-pdf-gdb
1445pdf-host: maybe-pdf-expect
1446pdf-host: maybe-pdf-guile
1447pdf-host: maybe-pdf-tk
1448pdf-host: maybe-pdf-libtermcap
1449pdf-host: maybe-pdf-utils
1450pdf-host: maybe-pdf-gnattools
bd45d6fa 1451pdf-host: maybe-pdf-lto-plugin
39bbbb69
DD
1452
1453.PHONY: pdf-target
1454
1455pdf-target: maybe-pdf-target-libstdc++-v3
1456pdf-target: maybe-pdf-target-libmudflap
1457pdf-target: maybe-pdf-target-libssp
1458pdf-target: maybe-pdf-target-newlib
1f316156 1459pdf-target: maybe-pdf-target-libgcc
39bbbb69
DD
1460pdf-target: maybe-pdf-target-libgfortran
1461pdf-target: maybe-pdf-target-libobjc
1462pdf-target: maybe-pdf-target-libtermcap
1463pdf-target: maybe-pdf-target-winsup
1464pdf-target: maybe-pdf-target-libgloss
1465pdf-target: maybe-pdf-target-libiberty
1466pdf-target: maybe-pdf-target-gperf
1467pdf-target: maybe-pdf-target-examples
1468pdf-target: maybe-pdf-target-libffi
1469pdf-target: maybe-pdf-target-libjava
1470pdf-target: maybe-pdf-target-zlib
1471pdf-target: maybe-pdf-target-boehm-gc
1472pdf-target: maybe-pdf-target-qthreads
1473pdf-target: maybe-pdf-target-rda
1474pdf-target: maybe-pdf-target-libada
1475pdf-target: maybe-pdf-target-libgomp
1476
b6fb961f 1477.PHONY: do-html
168b158c 1478do-html:
15b527ca 1479 @: $(MAKE); $(unstage)
ecebee48
PB
1480 @r=`${PWD_COMMAND}`; export r; \
1481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1482 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
168b158c 1483 html-target
168b158c 1484
b6fb961f
MS
1485
1486.PHONY: html-host
ec92c4d6
PB
1487
1488html-host: maybe-html-ash
1489html-host: maybe-html-autoconf
1490html-host: maybe-html-automake
1491html-host: maybe-html-bash
1492html-host: maybe-html-bfd
1493html-host: maybe-html-opcodes
1494html-host: maybe-html-binutils
1495html-host: maybe-html-bison
1496html-host: maybe-html-byacc
1497html-host: maybe-html-bzip2
d0880d62 1498html-host: maybe-html-cgen
ec92c4d6
PB
1499html-host: maybe-html-dejagnu
1500html-host: maybe-html-diff
1501html-host: maybe-html-dosutils
1502html-host: maybe-html-etc
1503html-host: maybe-html-fastjar
1504html-host: maybe-html-fileutils
1505html-host: maybe-html-findutils
1506html-host: maybe-html-find
1507html-host: maybe-html-fixincludes
1508html-host: maybe-html-flex
1509html-host: maybe-html-gas
1510html-host: maybe-html-gcc
1511html-host: maybe-html-gawk
1512html-host: maybe-html-gettext
42f55f77
PB
1513html-host: maybe-html-gmp
1514html-host: maybe-html-mpfr
121f0eb2 1515html-host: maybe-html-mpc
311b6756
JM
1516html-host: maybe-html-ppl
1517html-host: maybe-html-cloog
5074489a 1518html-host: maybe-html-libelf
ec92c4d6 1519html-host: maybe-html-gnuserv
b916272a 1520html-host: maybe-html-gold
ec92c4d6
PB
1521html-host: maybe-html-gprof
1522html-host: maybe-html-gzip
1523html-host: maybe-html-hello
1524html-host: maybe-html-indent
1525html-host: maybe-html-intl
1526html-host: maybe-html-tcl
1527html-host: maybe-html-itcl
1528html-host: maybe-html-ld
1529html-host: maybe-html-libcpp
1530html-host: maybe-html-libdecnumber
1531html-host: maybe-html-libgui
1532html-host: maybe-html-libiberty
59455d2f 1533html-host: maybe-html-libiconv
ec92c4d6
PB
1534html-host: maybe-html-libtool
1535html-host: maybe-html-m4
1536html-host: maybe-html-make
1537html-host: maybe-html-mmalloc
1538html-host: maybe-html-patch
1539html-host: maybe-html-perl
1540html-host: maybe-html-prms
1541html-host: maybe-html-rcs
1542html-host: maybe-html-readline
1543html-host: maybe-html-release
1544html-host: maybe-html-recode
1545html-host: maybe-html-sed
1546html-host: maybe-html-send-pr
1547html-host: maybe-html-shellutils
1548html-host: maybe-html-sid
1549html-host: maybe-html-sim
1550html-host: maybe-html-tar
1551html-host: maybe-html-texinfo
1552html-host: maybe-html-textutils
1553html-host: maybe-html-time
1554html-host: maybe-html-uudecode
1555html-host: maybe-html-wdiff
1556html-host: maybe-html-zip
1557html-host: maybe-html-zlib
1558html-host: maybe-html-gdb
1559html-host: maybe-html-expect
1560html-host: maybe-html-guile
1561html-host: maybe-html-tk
1562html-host: maybe-html-libtermcap
1563html-host: maybe-html-utils
1564html-host: maybe-html-gnattools
bd45d6fa 1565html-host: maybe-html-lto-plugin
b6fb961f
MS
1566
1567.PHONY: html-target
ec92c4d6
PB
1568
1569html-target: maybe-html-target-libstdc++-v3
1570html-target: maybe-html-target-libmudflap
1571html-target: maybe-html-target-libssp
ec92c4d6 1572html-target: maybe-html-target-newlib
1f316156 1573html-target: maybe-html-target-libgcc
ec92c4d6
PB
1574html-target: maybe-html-target-libgfortran
1575html-target: maybe-html-target-libobjc
1576html-target: maybe-html-target-libtermcap
1577html-target: maybe-html-target-winsup
1578html-target: maybe-html-target-libgloss
1579html-target: maybe-html-target-libiberty
1580html-target: maybe-html-target-gperf
1581html-target: maybe-html-target-examples
1582html-target: maybe-html-target-libffi
1583html-target: maybe-html-target-libjava
1584html-target: maybe-html-target-zlib
1585html-target: maybe-html-target-boehm-gc
1586html-target: maybe-html-target-qthreads
1587html-target: maybe-html-target-rda
1588html-target: maybe-html-target-libada
1589html-target: maybe-html-target-libgomp
b6fb961f 1590
8ec98d6c 1591.PHONY: do-TAGS
168b158c 1592do-TAGS:
15b527ca 1593 @: $(MAKE); $(unstage)
ecebee48
PB
1594 @r=`${PWD_COMMAND}`; export r; \
1595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1596 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
168b158c 1597 TAGS-target
168b158c 1598
657b58f4 1599
8ec98d6c 1600.PHONY: TAGS-host
ec92c4d6
PB
1601
1602TAGS-host: maybe-TAGS-ash
1603TAGS-host: maybe-TAGS-autoconf
1604TAGS-host: maybe-TAGS-automake
1605TAGS-host: maybe-TAGS-bash
1606TAGS-host: maybe-TAGS-bfd
1607TAGS-host: maybe-TAGS-opcodes
1608TAGS-host: maybe-TAGS-binutils
1609TAGS-host: maybe-TAGS-bison
1610TAGS-host: maybe-TAGS-byacc
1611TAGS-host: maybe-TAGS-bzip2
d0880d62 1612TAGS-host: maybe-TAGS-cgen
ec92c4d6
PB
1613TAGS-host: maybe-TAGS-dejagnu
1614TAGS-host: maybe-TAGS-diff
1615TAGS-host: maybe-TAGS-dosutils
1616TAGS-host: maybe-TAGS-etc
1617TAGS-host: maybe-TAGS-fastjar
1618TAGS-host: maybe-TAGS-fileutils
1619TAGS-host: maybe-TAGS-findutils
1620TAGS-host: maybe-TAGS-find
1621TAGS-host: maybe-TAGS-fixincludes
1622TAGS-host: maybe-TAGS-flex
1623TAGS-host: maybe-TAGS-gas
1624TAGS-host: maybe-TAGS-gcc
1625TAGS-host: maybe-TAGS-gawk
1626TAGS-host: maybe-TAGS-gettext
42f55f77
PB
1627TAGS-host: maybe-TAGS-gmp
1628TAGS-host: maybe-TAGS-mpfr
121f0eb2 1629TAGS-host: maybe-TAGS-mpc
311b6756
JM
1630TAGS-host: maybe-TAGS-ppl
1631TAGS-host: maybe-TAGS-cloog
5074489a 1632TAGS-host: maybe-TAGS-libelf
ec92c4d6 1633TAGS-host: maybe-TAGS-gnuserv
b916272a 1634TAGS-host: maybe-TAGS-gold
ec92c4d6
PB
1635TAGS-host: maybe-TAGS-gprof
1636TAGS-host: maybe-TAGS-gzip
1637TAGS-host: maybe-TAGS-hello
1638TAGS-host: maybe-TAGS-indent
1639TAGS-host: maybe-TAGS-intl
1640TAGS-host: maybe-TAGS-tcl
1641TAGS-host: maybe-TAGS-itcl
1642TAGS-host: maybe-TAGS-ld
1643TAGS-host: maybe-TAGS-libcpp
1644TAGS-host: maybe-TAGS-libdecnumber
1645TAGS-host: maybe-TAGS-libgui
1646TAGS-host: maybe-TAGS-libiberty
59455d2f 1647TAGS-host: maybe-TAGS-libiconv
ec92c4d6
PB
1648TAGS-host: maybe-TAGS-libtool
1649TAGS-host: maybe-TAGS-m4
1650TAGS-host: maybe-TAGS-make
1651TAGS-host: maybe-TAGS-mmalloc
1652TAGS-host: maybe-TAGS-patch
1653TAGS-host: maybe-TAGS-perl
1654TAGS-host: maybe-TAGS-prms
1655TAGS-host: maybe-TAGS-rcs
1656TAGS-host: maybe-TAGS-readline
1657TAGS-host: maybe-TAGS-release
1658TAGS-host: maybe-TAGS-recode
1659TAGS-host: maybe-TAGS-sed
1660TAGS-host: maybe-TAGS-send-pr
1661TAGS-host: maybe-TAGS-shellutils
1662TAGS-host: maybe-TAGS-sid
1663TAGS-host: maybe-TAGS-sim
1664TAGS-host: maybe-TAGS-tar
1665TAGS-host: maybe-TAGS-texinfo
1666TAGS-host: maybe-TAGS-textutils
1667TAGS-host: maybe-TAGS-time
1668TAGS-host: maybe-TAGS-uudecode
1669TAGS-host: maybe-TAGS-wdiff
1670TAGS-host: maybe-TAGS-zip
1671TAGS-host: maybe-TAGS-zlib
1672TAGS-host: maybe-TAGS-gdb
1673TAGS-host: maybe-TAGS-expect
1674TAGS-host: maybe-TAGS-guile
1675TAGS-host: maybe-TAGS-tk
1676TAGS-host: maybe-TAGS-libtermcap
1677TAGS-host: maybe-TAGS-utils
1678TAGS-host: maybe-TAGS-gnattools
bd45d6fa 1679TAGS-host: maybe-TAGS-lto-plugin
657b58f4 1680
8ec98d6c 1681.PHONY: TAGS-target
ec92c4d6
PB
1682
1683TAGS-target: maybe-TAGS-target-libstdc++-v3
1684TAGS-target: maybe-TAGS-target-libmudflap
1685TAGS-target: maybe-TAGS-target-libssp
ec92c4d6 1686TAGS-target: maybe-TAGS-target-newlib
1f316156 1687TAGS-target: maybe-TAGS-target-libgcc
ec92c4d6
PB
1688TAGS-target: maybe-TAGS-target-libgfortran
1689TAGS-target: maybe-TAGS-target-libobjc
1690TAGS-target: maybe-TAGS-target-libtermcap
1691TAGS-target: maybe-TAGS-target-winsup
1692TAGS-target: maybe-TAGS-target-libgloss
1693TAGS-target: maybe-TAGS-target-libiberty
1694TAGS-target: maybe-TAGS-target-gperf
1695TAGS-target: maybe-TAGS-target-examples
1696TAGS-target: maybe-TAGS-target-libffi
1697TAGS-target: maybe-TAGS-target-libjava
1698TAGS-target: maybe-TAGS-target-zlib
1699TAGS-target: maybe-TAGS-target-boehm-gc
1700TAGS-target: maybe-TAGS-target-qthreads
1701TAGS-target: maybe-TAGS-target-rda
1702TAGS-target: maybe-TAGS-target-libada
1703TAGS-target: maybe-TAGS-target-libgomp
d832a288 1704
8ec98d6c 1705.PHONY: do-install-info
168b158c 1706do-install-info:
15b527ca 1707 @: $(MAKE); $(unstage)
ecebee48
PB
1708 @r=`${PWD_COMMAND}`; export r; \
1709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1710 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
168b158c 1711 install-info-target
168b158c 1712
d832a288 1713
8ec98d6c 1714.PHONY: install-info-host
ec92c4d6
PB
1715
1716install-info-host: maybe-install-info-ash
1717install-info-host: maybe-install-info-autoconf
1718install-info-host: maybe-install-info-automake
1719install-info-host: maybe-install-info-bash
1720install-info-host: maybe-install-info-bfd
1721install-info-host: maybe-install-info-opcodes
1722install-info-host: maybe-install-info-binutils
1723install-info-host: maybe-install-info-bison
1724install-info-host: maybe-install-info-byacc
1725install-info-host: maybe-install-info-bzip2
d0880d62 1726install-info-host: maybe-install-info-cgen
ec92c4d6
PB
1727install-info-host: maybe-install-info-dejagnu
1728install-info-host: maybe-install-info-diff
1729install-info-host: maybe-install-info-dosutils
1730install-info-host: maybe-install-info-etc
1731install-info-host: maybe-install-info-fastjar
1732install-info-host: maybe-install-info-fileutils
1733install-info-host: maybe-install-info-findutils
1734install-info-host: maybe-install-info-find
1735install-info-host: maybe-install-info-fixincludes
1736install-info-host: maybe-install-info-flex
1737install-info-host: maybe-install-info-gas
1738install-info-host: maybe-install-info-gcc
1739install-info-host: maybe-install-info-gawk
1740install-info-host: maybe-install-info-gettext
42f55f77
PB
1741install-info-host: maybe-install-info-gmp
1742install-info-host: maybe-install-info-mpfr
121f0eb2 1743install-info-host: maybe-install-info-mpc
311b6756
JM
1744install-info-host: maybe-install-info-ppl
1745install-info-host: maybe-install-info-cloog
5074489a 1746install-info-host: maybe-install-info-libelf
ec92c4d6 1747install-info-host: maybe-install-info-gnuserv
b916272a 1748install-info-host: maybe-install-info-gold
ec92c4d6
PB
1749install-info-host: maybe-install-info-gprof
1750install-info-host: maybe-install-info-gzip
1751install-info-host: maybe-install-info-hello
1752install-info-host: maybe-install-info-indent
1753install-info-host: maybe-install-info-intl
1754install-info-host: maybe-install-info-tcl
1755install-info-host: maybe-install-info-itcl
1756install-info-host: maybe-install-info-ld
1757install-info-host: maybe-install-info-libcpp
1758install-info-host: maybe-install-info-libdecnumber
1759install-info-host: maybe-install-info-libgui
1760install-info-host: maybe-install-info-libiberty
59455d2f 1761install-info-host: maybe-install-info-libiconv
ec92c4d6
PB
1762install-info-host: maybe-install-info-libtool
1763install-info-host: maybe-install-info-m4
1764install-info-host: maybe-install-info-make
1765install-info-host: maybe-install-info-mmalloc
1766install-info-host: maybe-install-info-patch
1767install-info-host: maybe-install-info-perl
1768install-info-host: maybe-install-info-prms
1769install-info-host: maybe-install-info-rcs
1770install-info-host: maybe-install-info-readline
1771install-info-host: maybe-install-info-release
1772install-info-host: maybe-install-info-recode
1773install-info-host: maybe-install-info-sed
1774install-info-host: maybe-install-info-send-pr
1775install-info-host: maybe-install-info-shellutils
1776install-info-host: maybe-install-info-sid
1777install-info-host: maybe-install-info-sim
1778install-info-host: maybe-install-info-tar
1779install-info-host: maybe-install-info-texinfo
1780install-info-host: maybe-install-info-textutils
1781install-info-host: maybe-install-info-time
1782install-info-host: maybe-install-info-uudecode
1783install-info-host: maybe-install-info-wdiff
1784install-info-host: maybe-install-info-zip
1785install-info-host: maybe-install-info-zlib
1786install-info-host: maybe-install-info-gdb
1787install-info-host: maybe-install-info-expect
1788install-info-host: maybe-install-info-guile
1789install-info-host: maybe-install-info-tk
1790install-info-host: maybe-install-info-libtermcap
1791install-info-host: maybe-install-info-utils
1792install-info-host: maybe-install-info-gnattools
bd45d6fa 1793install-info-host: maybe-install-info-lto-plugin
d832a288 1794
8ec98d6c 1795.PHONY: install-info-target
ec92c4d6
PB
1796
1797install-info-target: maybe-install-info-target-libstdc++-v3
1798install-info-target: maybe-install-info-target-libmudflap
1799install-info-target: maybe-install-info-target-libssp
ec92c4d6 1800install-info-target: maybe-install-info-target-newlib
1f316156 1801install-info-target: maybe-install-info-target-libgcc
ec92c4d6
PB
1802install-info-target: maybe-install-info-target-libgfortran
1803install-info-target: maybe-install-info-target-libobjc
1804install-info-target: maybe-install-info-target-libtermcap
1805install-info-target: maybe-install-info-target-winsup
1806install-info-target: maybe-install-info-target-libgloss
1807install-info-target: maybe-install-info-target-libiberty
1808install-info-target: maybe-install-info-target-gperf
1809install-info-target: maybe-install-info-target-examples
1810install-info-target: maybe-install-info-target-libffi
1811install-info-target: maybe-install-info-target-libjava
1812install-info-target: maybe-install-info-target-zlib
1813install-info-target: maybe-install-info-target-boehm-gc
1814install-info-target: maybe-install-info-target-qthreads
1815install-info-target: maybe-install-info-target-rda
1816install-info-target: maybe-install-info-target-libada
1817install-info-target: maybe-install-info-target-libgomp
657b58f4 1818
d4954b6d
DD
1819.PHONY: do-install-pdf
1820do-install-pdf:
1821 @: $(MAKE); $(unstage)
1822 @r=`${PWD_COMMAND}`; export r; \
1823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1824 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1825 install-pdf-target
1826
1827
1828.PHONY: install-pdf-host
1829
1830install-pdf-host: maybe-install-pdf-ash
1831install-pdf-host: maybe-install-pdf-autoconf
1832install-pdf-host: maybe-install-pdf-automake
1833install-pdf-host: maybe-install-pdf-bash
1834install-pdf-host: maybe-install-pdf-bfd
1835install-pdf-host: maybe-install-pdf-opcodes
1836install-pdf-host: maybe-install-pdf-binutils
1837install-pdf-host: maybe-install-pdf-bison
1838install-pdf-host: maybe-install-pdf-byacc
1839install-pdf-host: maybe-install-pdf-bzip2
d0880d62 1840install-pdf-host: maybe-install-pdf-cgen
d4954b6d
DD
1841install-pdf-host: maybe-install-pdf-dejagnu
1842install-pdf-host: maybe-install-pdf-diff
1843install-pdf-host: maybe-install-pdf-dosutils
1844install-pdf-host: maybe-install-pdf-etc
1845install-pdf-host: maybe-install-pdf-fastjar
1846install-pdf-host: maybe-install-pdf-fileutils
1847install-pdf-host: maybe-install-pdf-findutils
1848install-pdf-host: maybe-install-pdf-find
1849install-pdf-host: maybe-install-pdf-fixincludes
1850install-pdf-host: maybe-install-pdf-flex
1851install-pdf-host: maybe-install-pdf-gas
1852install-pdf-host: maybe-install-pdf-gcc
1853install-pdf-host: maybe-install-pdf-gawk
1854install-pdf-host: maybe-install-pdf-gettext
1855install-pdf-host: maybe-install-pdf-gmp
1856install-pdf-host: maybe-install-pdf-mpfr
121f0eb2 1857install-pdf-host: maybe-install-pdf-mpc
311b6756
JM
1858install-pdf-host: maybe-install-pdf-ppl
1859install-pdf-host: maybe-install-pdf-cloog
5074489a 1860install-pdf-host: maybe-install-pdf-libelf
d4954b6d 1861install-pdf-host: maybe-install-pdf-gnuserv
b916272a 1862install-pdf-host: maybe-install-pdf-gold
d4954b6d
DD
1863install-pdf-host: maybe-install-pdf-gprof
1864install-pdf-host: maybe-install-pdf-gzip
1865install-pdf-host: maybe-install-pdf-hello
1866install-pdf-host: maybe-install-pdf-indent
1867install-pdf-host: maybe-install-pdf-intl
1868install-pdf-host: maybe-install-pdf-tcl
1869install-pdf-host: maybe-install-pdf-itcl
1870install-pdf-host: maybe-install-pdf-ld
1871install-pdf-host: maybe-install-pdf-libcpp
1872install-pdf-host: maybe-install-pdf-libdecnumber
1873install-pdf-host: maybe-install-pdf-libgui
1874install-pdf-host: maybe-install-pdf-libiberty
59455d2f 1875install-pdf-host: maybe-install-pdf-libiconv
d4954b6d
DD
1876install-pdf-host: maybe-install-pdf-libtool
1877install-pdf-host: maybe-install-pdf-m4
1878install-pdf-host: maybe-install-pdf-make
1879install-pdf-host: maybe-install-pdf-mmalloc
1880install-pdf-host: maybe-install-pdf-patch
1881install-pdf-host: maybe-install-pdf-perl
1882install-pdf-host: maybe-install-pdf-prms
1883install-pdf-host: maybe-install-pdf-rcs
1884install-pdf-host: maybe-install-pdf-readline
1885install-pdf-host: maybe-install-pdf-release
1886install-pdf-host: maybe-install-pdf-recode
1887install-pdf-host: maybe-install-pdf-sed
1888install-pdf-host: maybe-install-pdf-send-pr
1889install-pdf-host: maybe-install-pdf-shellutils
1890install-pdf-host: maybe-install-pdf-sid
1891install-pdf-host: maybe-install-pdf-sim
1892install-pdf-host: maybe-install-pdf-tar
1893install-pdf-host: maybe-install-pdf-texinfo
1894install-pdf-host: maybe-install-pdf-textutils
1895install-pdf-host: maybe-install-pdf-time
1896install-pdf-host: maybe-install-pdf-uudecode
1897install-pdf-host: maybe-install-pdf-wdiff
1898install-pdf-host: maybe-install-pdf-zip
1899install-pdf-host: maybe-install-pdf-zlib
1900install-pdf-host: maybe-install-pdf-gdb
1901install-pdf-host: maybe-install-pdf-expect
1902install-pdf-host: maybe-install-pdf-guile
1903install-pdf-host: maybe-install-pdf-tk
1904install-pdf-host: maybe-install-pdf-libtermcap
1905install-pdf-host: maybe-install-pdf-utils
1906install-pdf-host: maybe-install-pdf-gnattools
bd45d6fa 1907install-pdf-host: maybe-install-pdf-lto-plugin
d4954b6d
DD
1908
1909.PHONY: install-pdf-target
1910
1911install-pdf-target: maybe-install-pdf-target-libstdc++-v3
1912install-pdf-target: maybe-install-pdf-target-libmudflap
1913install-pdf-target: maybe-install-pdf-target-libssp
1914install-pdf-target: maybe-install-pdf-target-newlib
1915install-pdf-target: maybe-install-pdf-target-libgcc
1916install-pdf-target: maybe-install-pdf-target-libgfortran
1917install-pdf-target: maybe-install-pdf-target-libobjc
1918install-pdf-target: maybe-install-pdf-target-libtermcap
1919install-pdf-target: maybe-install-pdf-target-winsup
1920install-pdf-target: maybe-install-pdf-target-libgloss
1921install-pdf-target: maybe-install-pdf-target-libiberty
1922install-pdf-target: maybe-install-pdf-target-gperf
1923install-pdf-target: maybe-install-pdf-target-examples
1924install-pdf-target: maybe-install-pdf-target-libffi
1925install-pdf-target: maybe-install-pdf-target-libjava
1926install-pdf-target: maybe-install-pdf-target-zlib
1927install-pdf-target: maybe-install-pdf-target-boehm-gc
1928install-pdf-target: maybe-install-pdf-target-qthreads
1929install-pdf-target: maybe-install-pdf-target-rda
1930install-pdf-target: maybe-install-pdf-target-libada
1931install-pdf-target: maybe-install-pdf-target-libgomp
1932
83c9add4
CD
1933.PHONY: do-install-html
1934do-install-html:
1935 @: $(MAKE); $(unstage)
1936 @r=`${PWD_COMMAND}`; export r; \
1937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1938 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1939 install-html-target
1940
1941
1942.PHONY: install-html-host
1943
1944install-html-host: maybe-install-html-ash
1945install-html-host: maybe-install-html-autoconf
1946install-html-host: maybe-install-html-automake
1947install-html-host: maybe-install-html-bash
1948install-html-host: maybe-install-html-bfd
1949install-html-host: maybe-install-html-opcodes
1950install-html-host: maybe-install-html-binutils
1951install-html-host: maybe-install-html-bison
1952install-html-host: maybe-install-html-byacc
1953install-html-host: maybe-install-html-bzip2
d0880d62 1954install-html-host: maybe-install-html-cgen
83c9add4
CD
1955install-html-host: maybe-install-html-dejagnu
1956install-html-host: maybe-install-html-diff
1957install-html-host: maybe-install-html-dosutils
1958install-html-host: maybe-install-html-etc
1959install-html-host: maybe-install-html-fastjar
1960install-html-host: maybe-install-html-fileutils
1961install-html-host: maybe-install-html-findutils
1962install-html-host: maybe-install-html-find
1963install-html-host: maybe-install-html-fixincludes
1964install-html-host: maybe-install-html-flex
1965install-html-host: maybe-install-html-gas
1966install-html-host: maybe-install-html-gcc
1967install-html-host: maybe-install-html-gawk
1968install-html-host: maybe-install-html-gettext
42f55f77
PB
1969install-html-host: maybe-install-html-gmp
1970install-html-host: maybe-install-html-mpfr
121f0eb2 1971install-html-host: maybe-install-html-mpc
311b6756
JM
1972install-html-host: maybe-install-html-ppl
1973install-html-host: maybe-install-html-cloog
5074489a 1974install-html-host: maybe-install-html-libelf
83c9add4 1975install-html-host: maybe-install-html-gnuserv
b916272a 1976install-html-host: maybe-install-html-gold
83c9add4
CD
1977install-html-host: maybe-install-html-gprof
1978install-html-host: maybe-install-html-gzip
1979install-html-host: maybe-install-html-hello
1980install-html-host: maybe-install-html-indent
1981install-html-host: maybe-install-html-intl
1982install-html-host: maybe-install-html-tcl
1983install-html-host: maybe-install-html-itcl
1984install-html-host: maybe-install-html-ld
1985install-html-host: maybe-install-html-libcpp
1986install-html-host: maybe-install-html-libdecnumber
1987install-html-host: maybe-install-html-libgui
1988install-html-host: maybe-install-html-libiberty
59455d2f 1989install-html-host: maybe-install-html-libiconv
83c9add4
CD
1990install-html-host: maybe-install-html-libtool
1991install-html-host: maybe-install-html-m4
1992install-html-host: maybe-install-html-make
1993install-html-host: maybe-install-html-mmalloc
1994install-html-host: maybe-install-html-patch
1995install-html-host: maybe-install-html-perl
1996install-html-host: maybe-install-html-prms
1997install-html-host: maybe-install-html-rcs
1998install-html-host: maybe-install-html-readline
1999install-html-host: maybe-install-html-release
2000install-html-host: maybe-install-html-recode
2001install-html-host: maybe-install-html-sed
2002install-html-host: maybe-install-html-send-pr
2003install-html-host: maybe-install-html-shellutils
2004install-html-host: maybe-install-html-sid
2005install-html-host: maybe-install-html-sim
2006install-html-host: maybe-install-html-tar
2007install-html-host: maybe-install-html-texinfo
2008install-html-host: maybe-install-html-textutils
2009install-html-host: maybe-install-html-time
2010install-html-host: maybe-install-html-uudecode
2011install-html-host: maybe-install-html-wdiff
2012install-html-host: maybe-install-html-zip
2013install-html-host: maybe-install-html-zlib
2014install-html-host: maybe-install-html-gdb
2015install-html-host: maybe-install-html-expect
2016install-html-host: maybe-install-html-guile
2017install-html-host: maybe-install-html-tk
2018install-html-host: maybe-install-html-libtermcap
2019install-html-host: maybe-install-html-utils
2020install-html-host: maybe-install-html-gnattools
bd45d6fa 2021install-html-host: maybe-install-html-lto-plugin
83c9add4
CD
2022
2023.PHONY: install-html-target
2024
2025install-html-target: maybe-install-html-target-libstdc++-v3
2026install-html-target: maybe-install-html-target-libmudflap
2027install-html-target: maybe-install-html-target-libssp
83c9add4 2028install-html-target: maybe-install-html-target-newlib
1f316156 2029install-html-target: maybe-install-html-target-libgcc
83c9add4
CD
2030install-html-target: maybe-install-html-target-libgfortran
2031install-html-target: maybe-install-html-target-libobjc
2032install-html-target: maybe-install-html-target-libtermcap
2033install-html-target: maybe-install-html-target-winsup
2034install-html-target: maybe-install-html-target-libgloss
2035install-html-target: maybe-install-html-target-libiberty
2036install-html-target: maybe-install-html-target-gperf
2037install-html-target: maybe-install-html-target-examples
2038install-html-target: maybe-install-html-target-libffi
2039install-html-target: maybe-install-html-target-libjava
2040install-html-target: maybe-install-html-target-zlib
2041install-html-target: maybe-install-html-target-boehm-gc
2042install-html-target: maybe-install-html-target-qthreads
2043install-html-target: maybe-install-html-target-rda
2044install-html-target: maybe-install-html-target-libada
2045install-html-target: maybe-install-html-target-libgomp
2046
657b58f4 2047.PHONY: do-installcheck
168b158c 2048do-installcheck:
15b527ca 2049 @: $(MAKE); $(unstage)
ecebee48
PB
2050 @r=`${PWD_COMMAND}`; export r; \
2051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2052 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
168b158c 2053 installcheck-target
168b158c 2054
657b58f4
NN
2055
2056.PHONY: installcheck-host
ec92c4d6
PB
2057
2058installcheck-host: maybe-installcheck-ash
2059installcheck-host: maybe-installcheck-autoconf
2060installcheck-host: maybe-installcheck-automake
2061installcheck-host: maybe-installcheck-bash
2062installcheck-host: maybe-installcheck-bfd
2063installcheck-host: maybe-installcheck-opcodes
2064installcheck-host: maybe-installcheck-binutils
2065installcheck-host: maybe-installcheck-bison
2066installcheck-host: maybe-installcheck-byacc
2067installcheck-host: maybe-installcheck-bzip2
d0880d62 2068installcheck-host: maybe-installcheck-cgen
ec92c4d6
PB
2069installcheck-host: maybe-installcheck-dejagnu
2070installcheck-host: maybe-installcheck-diff
2071installcheck-host: maybe-installcheck-dosutils
2072installcheck-host: maybe-installcheck-etc
2073installcheck-host: maybe-installcheck-fastjar
2074installcheck-host: maybe-installcheck-fileutils
2075installcheck-host: maybe-installcheck-findutils
2076installcheck-host: maybe-installcheck-find
2077installcheck-host: maybe-installcheck-fixincludes
2078installcheck-host: maybe-installcheck-flex
2079installcheck-host: maybe-installcheck-gas
2080installcheck-host: maybe-installcheck-gcc
2081installcheck-host: maybe-installcheck-gawk
2082installcheck-host: maybe-installcheck-gettext
42f55f77
PB
2083installcheck-host: maybe-installcheck-gmp
2084installcheck-host: maybe-installcheck-mpfr
121f0eb2 2085installcheck-host: maybe-installcheck-mpc
311b6756
JM
2086installcheck-host: maybe-installcheck-ppl
2087installcheck-host: maybe-installcheck-cloog
5074489a 2088installcheck-host: maybe-installcheck-libelf
ec92c4d6 2089installcheck-host: maybe-installcheck-gnuserv
b916272a 2090installcheck-host: maybe-installcheck-gold
ec92c4d6
PB
2091installcheck-host: maybe-installcheck-gprof
2092installcheck-host: maybe-installcheck-gzip
2093installcheck-host: maybe-installcheck-hello
2094installcheck-host: maybe-installcheck-indent
2095installcheck-host: maybe-installcheck-intl
2096installcheck-host: maybe-installcheck-tcl
2097installcheck-host: maybe-installcheck-itcl
2098installcheck-host: maybe-installcheck-ld
2099installcheck-host: maybe-installcheck-libcpp
2100installcheck-host: maybe-installcheck-libdecnumber
2101installcheck-host: maybe-installcheck-libgui
2102installcheck-host: maybe-installcheck-libiberty
59455d2f 2103installcheck-host: maybe-installcheck-libiconv
ec92c4d6
PB
2104installcheck-host: maybe-installcheck-libtool
2105installcheck-host: maybe-installcheck-m4
2106installcheck-host: maybe-installcheck-make
2107installcheck-host: maybe-installcheck-mmalloc
2108installcheck-host: maybe-installcheck-patch
2109installcheck-host: maybe-installcheck-perl
2110installcheck-host: maybe-installcheck-prms
2111installcheck-host: maybe-installcheck-rcs
2112installcheck-host: maybe-installcheck-readline
2113installcheck-host: maybe-installcheck-release
2114installcheck-host: maybe-installcheck-recode
2115installcheck-host: maybe-installcheck-sed
2116installcheck-host: maybe-installcheck-send-pr
2117installcheck-host: maybe-installcheck-shellutils
2118installcheck-host: maybe-installcheck-sid
2119installcheck-host: maybe-installcheck-sim
2120installcheck-host: maybe-installcheck-tar
2121installcheck-host: maybe-installcheck-texinfo
2122installcheck-host: maybe-installcheck-textutils
2123installcheck-host: maybe-installcheck-time
2124installcheck-host: maybe-installcheck-uudecode
2125installcheck-host: maybe-installcheck-wdiff
2126installcheck-host: maybe-installcheck-zip
2127installcheck-host: maybe-installcheck-zlib
2128installcheck-host: maybe-installcheck-gdb
2129installcheck-host: maybe-installcheck-expect
2130installcheck-host: maybe-installcheck-guile
2131installcheck-host: maybe-installcheck-tk
2132installcheck-host: maybe-installcheck-libtermcap
2133installcheck-host: maybe-installcheck-utils
2134installcheck-host: maybe-installcheck-gnattools
bd45d6fa 2135installcheck-host: maybe-installcheck-lto-plugin
657b58f4
NN
2136
2137.PHONY: installcheck-target
ec92c4d6
PB
2138
2139installcheck-target: maybe-installcheck-target-libstdc++-v3
2140installcheck-target: maybe-installcheck-target-libmudflap
2141installcheck-target: maybe-installcheck-target-libssp
ec92c4d6 2142installcheck-target: maybe-installcheck-target-newlib
1f316156 2143installcheck-target: maybe-installcheck-target-libgcc
ec92c4d6
PB
2144installcheck-target: maybe-installcheck-target-libgfortran
2145installcheck-target: maybe-installcheck-target-libobjc
2146installcheck-target: maybe-installcheck-target-libtermcap
2147installcheck-target: maybe-installcheck-target-winsup
2148installcheck-target: maybe-installcheck-target-libgloss
2149installcheck-target: maybe-installcheck-target-libiberty
2150installcheck-target: maybe-installcheck-target-gperf
2151installcheck-target: maybe-installcheck-target-examples
2152installcheck-target: maybe-installcheck-target-libffi
2153installcheck-target: maybe-installcheck-target-libjava
2154installcheck-target: maybe-installcheck-target-zlib
2155installcheck-target: maybe-installcheck-target-boehm-gc
2156installcheck-target: maybe-installcheck-target-qthreads
2157installcheck-target: maybe-installcheck-target-rda
2158installcheck-target: maybe-installcheck-target-libada
2159installcheck-target: maybe-installcheck-target-libgomp
657b58f4 2160
8ec98d6c 2161.PHONY: do-mostlyclean
168b158c 2162do-mostlyclean:
15b527ca 2163 @: $(MAKE); $(unstage)
ecebee48
PB
2164 @r=`${PWD_COMMAND}`; export r; \
2165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2166 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
168b158c 2167 mostlyclean-target
168b158c 2168
657b58f4 2169
8ec98d6c 2170.PHONY: mostlyclean-host
ec92c4d6
PB
2171
2172mostlyclean-host: maybe-mostlyclean-ash
2173mostlyclean-host: maybe-mostlyclean-autoconf
2174mostlyclean-host: maybe-mostlyclean-automake
2175mostlyclean-host: maybe-mostlyclean-bash
2176mostlyclean-host: maybe-mostlyclean-bfd
2177mostlyclean-host: maybe-mostlyclean-opcodes
2178mostlyclean-host: maybe-mostlyclean-binutils
2179mostlyclean-host: maybe-mostlyclean-bison
2180mostlyclean-host: maybe-mostlyclean-byacc
2181mostlyclean-host: maybe-mostlyclean-bzip2
d0880d62 2182mostlyclean-host: maybe-mostlyclean-cgen
ec92c4d6
PB
2183mostlyclean-host: maybe-mostlyclean-dejagnu
2184mostlyclean-host: maybe-mostlyclean-diff
2185mostlyclean-host: maybe-mostlyclean-dosutils
2186mostlyclean-host: maybe-mostlyclean-etc
2187mostlyclean-host: maybe-mostlyclean-fastjar
2188mostlyclean-host: maybe-mostlyclean-fileutils
2189mostlyclean-host: maybe-mostlyclean-findutils
2190mostlyclean-host: maybe-mostlyclean-find
2191mostlyclean-host: maybe-mostlyclean-fixincludes
2192mostlyclean-host: maybe-mostlyclean-flex
2193mostlyclean-host: maybe-mostlyclean-gas
2194mostlyclean-host: maybe-mostlyclean-gcc
2195mostlyclean-host: maybe-mostlyclean-gawk
2196mostlyclean-host: maybe-mostlyclean-gettext
42f55f77
PB
2197mostlyclean-host: maybe-mostlyclean-gmp
2198mostlyclean-host: maybe-mostlyclean-mpfr
121f0eb2 2199mostlyclean-host: maybe-mostlyclean-mpc
311b6756
JM
2200mostlyclean-host: maybe-mostlyclean-ppl
2201mostlyclean-host: maybe-mostlyclean-cloog
5074489a 2202mostlyclean-host: maybe-mostlyclean-libelf
ec92c4d6 2203mostlyclean-host: maybe-mostlyclean-gnuserv
b916272a 2204mostlyclean-host: maybe-mostlyclean-gold
ec92c4d6
PB
2205mostlyclean-host: maybe-mostlyclean-gprof
2206mostlyclean-host: maybe-mostlyclean-gzip
2207mostlyclean-host: maybe-mostlyclean-hello
2208mostlyclean-host: maybe-mostlyclean-indent
2209mostlyclean-host: maybe-mostlyclean-intl
2210mostlyclean-host: maybe-mostlyclean-tcl
2211mostlyclean-host: maybe-mostlyclean-itcl
2212mostlyclean-host: maybe-mostlyclean-ld
2213mostlyclean-host: maybe-mostlyclean-libcpp
2214mostlyclean-host: maybe-mostlyclean-libdecnumber
2215mostlyclean-host: maybe-mostlyclean-libgui
2216mostlyclean-host: maybe-mostlyclean-libiberty
59455d2f 2217mostlyclean-host: maybe-mostlyclean-libiconv
ec92c4d6
PB
2218mostlyclean-host: maybe-mostlyclean-libtool
2219mostlyclean-host: maybe-mostlyclean-m4
2220mostlyclean-host: maybe-mostlyclean-make
2221mostlyclean-host: maybe-mostlyclean-mmalloc
2222mostlyclean-host: maybe-mostlyclean-patch
2223mostlyclean-host: maybe-mostlyclean-perl
2224mostlyclean-host: maybe-mostlyclean-prms
2225mostlyclean-host: maybe-mostlyclean-rcs
2226mostlyclean-host: maybe-mostlyclean-readline
2227mostlyclean-host: maybe-mostlyclean-release
2228mostlyclean-host: maybe-mostlyclean-recode
2229mostlyclean-host: maybe-mostlyclean-sed
2230mostlyclean-host: maybe-mostlyclean-send-pr
2231mostlyclean-host: maybe-mostlyclean-shellutils
2232mostlyclean-host: maybe-mostlyclean-sid
2233mostlyclean-host: maybe-mostlyclean-sim
2234mostlyclean-host: maybe-mostlyclean-tar
2235mostlyclean-host: maybe-mostlyclean-texinfo
2236mostlyclean-host: maybe-mostlyclean-textutils
2237mostlyclean-host: maybe-mostlyclean-time
2238mostlyclean-host: maybe-mostlyclean-uudecode
2239mostlyclean-host: maybe-mostlyclean-wdiff
2240mostlyclean-host: maybe-mostlyclean-zip
2241mostlyclean-host: maybe-mostlyclean-zlib
2242mostlyclean-host: maybe-mostlyclean-gdb
2243mostlyclean-host: maybe-mostlyclean-expect
2244mostlyclean-host: maybe-mostlyclean-guile
2245mostlyclean-host: maybe-mostlyclean-tk
2246mostlyclean-host: maybe-mostlyclean-libtermcap
2247mostlyclean-host: maybe-mostlyclean-utils
2248mostlyclean-host: maybe-mostlyclean-gnattools
bd45d6fa 2249mostlyclean-host: maybe-mostlyclean-lto-plugin
657b58f4 2250
8ec98d6c 2251.PHONY: mostlyclean-target
ec92c4d6
PB
2252
2253mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
2254mostlyclean-target: maybe-mostlyclean-target-libmudflap
2255mostlyclean-target: maybe-mostlyclean-target-libssp
ec92c4d6 2256mostlyclean-target: maybe-mostlyclean-target-newlib
1f316156 2257mostlyclean-target: maybe-mostlyclean-target-libgcc
ec92c4d6
PB
2258mostlyclean-target: maybe-mostlyclean-target-libgfortran
2259mostlyclean-target: maybe-mostlyclean-target-libobjc
2260mostlyclean-target: maybe-mostlyclean-target-libtermcap
2261mostlyclean-target: maybe-mostlyclean-target-winsup
2262mostlyclean-target: maybe-mostlyclean-target-libgloss
2263mostlyclean-target: maybe-mostlyclean-target-libiberty
2264mostlyclean-target: maybe-mostlyclean-target-gperf
2265mostlyclean-target: maybe-mostlyclean-target-examples
2266mostlyclean-target: maybe-mostlyclean-target-libffi
2267mostlyclean-target: maybe-mostlyclean-target-libjava
2268mostlyclean-target: maybe-mostlyclean-target-zlib
2269mostlyclean-target: maybe-mostlyclean-target-boehm-gc
2270mostlyclean-target: maybe-mostlyclean-target-qthreads
2271mostlyclean-target: maybe-mostlyclean-target-rda
2272mostlyclean-target: maybe-mostlyclean-target-libada
2273mostlyclean-target: maybe-mostlyclean-target-libgomp
657b58f4 2274
8ec98d6c 2275.PHONY: do-clean
168b158c 2276do-clean:
15b527ca 2277 @: $(MAKE); $(unstage)
ecebee48
PB
2278 @r=`${PWD_COMMAND}`; export r; \
2279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2280 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
168b158c 2281 clean-target
168b158c 2282
657b58f4 2283
8ec98d6c 2284.PHONY: clean-host
ec92c4d6
PB
2285
2286clean-host: maybe-clean-ash
2287clean-host: maybe-clean-autoconf
2288clean-host: maybe-clean-automake
2289clean-host: maybe-clean-bash
2290clean-host: maybe-clean-bfd
2291clean-host: maybe-clean-opcodes
2292clean-host: maybe-clean-binutils
2293clean-host: maybe-clean-bison
2294clean-host: maybe-clean-byacc
2295clean-host: maybe-clean-bzip2
d0880d62 2296clean-host: maybe-clean-cgen
ec92c4d6
PB
2297clean-host: maybe-clean-dejagnu
2298clean-host: maybe-clean-diff
2299clean-host: maybe-clean-dosutils
2300clean-host: maybe-clean-etc
2301clean-host: maybe-clean-fastjar
2302clean-host: maybe-clean-fileutils
2303clean-host: maybe-clean-findutils
2304clean-host: maybe-clean-find
2305clean-host: maybe-clean-fixincludes
2306clean-host: maybe-clean-flex
2307clean-host: maybe-clean-gas
2308clean-host: maybe-clean-gcc
2309clean-host: maybe-clean-gawk
2310clean-host: maybe-clean-gettext
42f55f77
PB
2311clean-host: maybe-clean-gmp
2312clean-host: maybe-clean-mpfr
121f0eb2 2313clean-host: maybe-clean-mpc
311b6756
JM
2314clean-host: maybe-clean-ppl
2315clean-host: maybe-clean-cloog
5074489a 2316clean-host: maybe-clean-libelf
ec92c4d6 2317clean-host: maybe-clean-gnuserv
b916272a 2318clean-host: maybe-clean-gold
ec92c4d6
PB
2319clean-host: maybe-clean-gprof
2320clean-host: maybe-clean-gzip
2321clean-host: maybe-clean-hello
2322clean-host: maybe-clean-indent
2323clean-host: maybe-clean-intl
2324clean-host: maybe-clean-tcl
2325clean-host: maybe-clean-itcl
2326clean-host: maybe-clean-ld
2327clean-host: maybe-clean-libcpp
2328clean-host: maybe-clean-libdecnumber
2329clean-host: maybe-clean-libgui
2330clean-host: maybe-clean-libiberty
59455d2f 2331clean-host: maybe-clean-libiconv
ec92c4d6
PB
2332clean-host: maybe-clean-libtool
2333clean-host: maybe-clean-m4
2334clean-host: maybe-clean-make
2335clean-host: maybe-clean-mmalloc
2336clean-host: maybe-clean-patch
2337clean-host: maybe-clean-perl
2338clean-host: maybe-clean-prms
2339clean-host: maybe-clean-rcs
2340clean-host: maybe-clean-readline
2341clean-host: maybe-clean-release
2342clean-host: maybe-clean-recode
2343clean-host: maybe-clean-sed
2344clean-host: maybe-clean-send-pr
2345clean-host: maybe-clean-shellutils
2346clean-host: maybe-clean-sid
2347clean-host: maybe-clean-sim
2348clean-host: maybe-clean-tar
2349clean-host: maybe-clean-texinfo
2350clean-host: maybe-clean-textutils
2351clean-host: maybe-clean-time
2352clean-host: maybe-clean-uudecode
2353clean-host: maybe-clean-wdiff
2354clean-host: maybe-clean-zip
2355clean-host: maybe-clean-zlib
2356clean-host: maybe-clean-gdb
2357clean-host: maybe-clean-expect
2358clean-host: maybe-clean-guile
2359clean-host: maybe-clean-tk
2360clean-host: maybe-clean-libtermcap
2361clean-host: maybe-clean-utils
2362clean-host: maybe-clean-gnattools
bd45d6fa 2363clean-host: maybe-clean-lto-plugin
657b58f4 2364
8ec98d6c 2365.PHONY: clean-target
ec92c4d6
PB
2366
2367clean-target: maybe-clean-target-libstdc++-v3
2368clean-target: maybe-clean-target-libmudflap
2369clean-target: maybe-clean-target-libssp
ec92c4d6 2370clean-target: maybe-clean-target-newlib
1f316156 2371clean-target: maybe-clean-target-libgcc
ec92c4d6
PB
2372clean-target: maybe-clean-target-libgfortran
2373clean-target: maybe-clean-target-libobjc
2374clean-target: maybe-clean-target-libtermcap
2375clean-target: maybe-clean-target-winsup
2376clean-target: maybe-clean-target-libgloss
2377clean-target: maybe-clean-target-libiberty
2378clean-target: maybe-clean-target-gperf
2379clean-target: maybe-clean-target-examples
2380clean-target: maybe-clean-target-libffi
2381clean-target: maybe-clean-target-libjava
2382clean-target: maybe-clean-target-zlib
2383clean-target: maybe-clean-target-boehm-gc
2384clean-target: maybe-clean-target-qthreads
2385clean-target: maybe-clean-target-rda
2386clean-target: maybe-clean-target-libada
2387clean-target: maybe-clean-target-libgomp
657b58f4 2388
8ec98d6c 2389.PHONY: do-distclean
168b158c 2390do-distclean:
15b527ca 2391 @: $(MAKE); $(unstage)
ecebee48
PB
2392 @r=`${PWD_COMMAND}`; export r; \
2393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2394 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
168b158c 2395 distclean-target
168b158c 2396
657b58f4 2397
8ec98d6c 2398.PHONY: distclean-host
ec92c4d6
PB
2399
2400distclean-host: maybe-distclean-ash
2401distclean-host: maybe-distclean-autoconf
2402distclean-host: maybe-distclean-automake
2403distclean-host: maybe-distclean-bash
2404distclean-host: maybe-distclean-bfd
2405distclean-host: maybe-distclean-opcodes
2406distclean-host: maybe-distclean-binutils
2407distclean-host: maybe-distclean-bison
2408distclean-host: maybe-distclean-byacc
2409distclean-host: maybe-distclean-bzip2
d0880d62 2410distclean-host: maybe-distclean-cgen
ec92c4d6
PB
2411distclean-host: maybe-distclean-dejagnu
2412distclean-host: maybe-distclean-diff
2413distclean-host: maybe-distclean-dosutils
2414distclean-host: maybe-distclean-etc
2415distclean-host: maybe-distclean-fastjar
2416distclean-host: maybe-distclean-fileutils
2417distclean-host: maybe-distclean-findutils
2418distclean-host: maybe-distclean-find
2419distclean-host: maybe-distclean-fixincludes
2420distclean-host: maybe-distclean-flex
2421distclean-host: maybe-distclean-gas
2422distclean-host: maybe-distclean-gcc
2423distclean-host: maybe-distclean-gawk
2424distclean-host: maybe-distclean-gettext
42f55f77
PB
2425distclean-host: maybe-distclean-gmp
2426distclean-host: maybe-distclean-mpfr
121f0eb2 2427distclean-host: maybe-distclean-mpc
311b6756
JM
2428distclean-host: maybe-distclean-ppl
2429distclean-host: maybe-distclean-cloog
5074489a 2430distclean-host: maybe-distclean-libelf
ec92c4d6 2431distclean-host: maybe-distclean-gnuserv
b916272a 2432distclean-host: maybe-distclean-gold
ec92c4d6
PB
2433distclean-host: maybe-distclean-gprof
2434distclean-host: maybe-distclean-gzip
2435distclean-host: maybe-distclean-hello
2436distclean-host: maybe-distclean-indent
2437distclean-host: maybe-distclean-intl
2438distclean-host: maybe-distclean-tcl
2439distclean-host: maybe-distclean-itcl
2440distclean-host: maybe-distclean-ld
2441distclean-host: maybe-distclean-libcpp
2442distclean-host: maybe-distclean-libdecnumber
2443distclean-host: maybe-distclean-libgui
2444distclean-host: maybe-distclean-libiberty
59455d2f 2445distclean-host: maybe-distclean-libiconv
ec92c4d6
PB
2446distclean-host: maybe-distclean-libtool
2447distclean-host: maybe-distclean-m4
2448distclean-host: maybe-distclean-make
2449distclean-host: maybe-distclean-mmalloc
2450distclean-host: maybe-distclean-patch
2451distclean-host: maybe-distclean-perl
2452distclean-host: maybe-distclean-prms
2453distclean-host: maybe-distclean-rcs
2454distclean-host: maybe-distclean-readline
2455distclean-host: maybe-distclean-release
2456distclean-host: maybe-distclean-recode
2457distclean-host: maybe-distclean-sed
2458distclean-host: maybe-distclean-send-pr
2459distclean-host: maybe-distclean-shellutils
2460distclean-host: maybe-distclean-sid
2461distclean-host: maybe-distclean-sim
2462distclean-host: maybe-distclean-tar
2463distclean-host: maybe-distclean-texinfo
2464distclean-host: maybe-distclean-textutils
2465distclean-host: maybe-distclean-time
2466distclean-host: maybe-distclean-uudecode
2467distclean-host: maybe-distclean-wdiff
2468distclean-host: maybe-distclean-zip
2469distclean-host: maybe-distclean-zlib
2470distclean-host: maybe-distclean-gdb
2471distclean-host: maybe-distclean-expect
2472distclean-host: maybe-distclean-guile
2473distclean-host: maybe-distclean-tk
2474distclean-host: maybe-distclean-libtermcap
2475distclean-host: maybe-distclean-utils
2476distclean-host: maybe-distclean-gnattools
bd45d6fa 2477distclean-host: maybe-distclean-lto-plugin
657b58f4 2478
8ec98d6c 2479.PHONY: distclean-target
ec92c4d6
PB
2480
2481distclean-target: maybe-distclean-target-libstdc++-v3
2482distclean-target: maybe-distclean-target-libmudflap
2483distclean-target: maybe-distclean-target-libssp
ec92c4d6 2484distclean-target: maybe-distclean-target-newlib
1f316156 2485distclean-target: maybe-distclean-target-libgcc
ec92c4d6
PB
2486distclean-target: maybe-distclean-target-libgfortran
2487distclean-target: maybe-distclean-target-libobjc
2488distclean-target: maybe-distclean-target-libtermcap
2489distclean-target: maybe-distclean-target-winsup
2490distclean-target: maybe-distclean-target-libgloss
2491distclean-target: maybe-distclean-target-libiberty
2492distclean-target: maybe-distclean-target-gperf
2493distclean-target: maybe-distclean-target-examples
2494distclean-target: maybe-distclean-target-libffi
2495distclean-target: maybe-distclean-target-libjava
2496distclean-target: maybe-distclean-target-zlib
2497distclean-target: maybe-distclean-target-boehm-gc
2498distclean-target: maybe-distclean-target-qthreads
2499distclean-target: maybe-distclean-target-rda
2500distclean-target: maybe-distclean-target-libada
2501distclean-target: maybe-distclean-target-libgomp
657b58f4 2502
8ec98d6c 2503.PHONY: do-maintainer-clean
168b158c 2504do-maintainer-clean:
15b527ca 2505 @: $(MAKE); $(unstage)
ecebee48
PB
2506 @r=`${PWD_COMMAND}`; export r; \
2507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2508 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
168b158c 2509 maintainer-clean-target
168b158c 2510
657b58f4 2511
8ec98d6c 2512.PHONY: maintainer-clean-host
ec92c4d6
PB
2513
2514maintainer-clean-host: maybe-maintainer-clean-ash
2515maintainer-clean-host: maybe-maintainer-clean-autoconf
2516maintainer-clean-host: maybe-maintainer-clean-automake
2517maintainer-clean-host: maybe-maintainer-clean-bash
2518maintainer-clean-host: maybe-maintainer-clean-bfd
2519maintainer-clean-host: maybe-maintainer-clean-opcodes
2520maintainer-clean-host: maybe-maintainer-clean-binutils
2521maintainer-clean-host: maybe-maintainer-clean-bison
2522maintainer-clean-host: maybe-maintainer-clean-byacc
2523maintainer-clean-host: maybe-maintainer-clean-bzip2
d0880d62 2524maintainer-clean-host: maybe-maintainer-clean-cgen
ec92c4d6
PB
2525maintainer-clean-host: maybe-maintainer-clean-dejagnu
2526maintainer-clean-host: maybe-maintainer-clean-diff
2527maintainer-clean-host: maybe-maintainer-clean-dosutils
2528maintainer-clean-host: maybe-maintainer-clean-etc
2529maintainer-clean-host: maybe-maintainer-clean-fastjar
2530maintainer-clean-host: maybe-maintainer-clean-fileutils
2531maintainer-clean-host: maybe-maintainer-clean-findutils
2532maintainer-clean-host: maybe-maintainer-clean-find
2533maintainer-clean-host: maybe-maintainer-clean-fixincludes
2534maintainer-clean-host: maybe-maintainer-clean-flex
2535maintainer-clean-host: maybe-maintainer-clean-gas
2536maintainer-clean-host: maybe-maintainer-clean-gcc
2537maintainer-clean-host: maybe-maintainer-clean-gawk
2538maintainer-clean-host: maybe-maintainer-clean-gettext
42f55f77
PB
2539maintainer-clean-host: maybe-maintainer-clean-gmp
2540maintainer-clean-host: maybe-maintainer-clean-mpfr
121f0eb2 2541maintainer-clean-host: maybe-maintainer-clean-mpc
311b6756
JM
2542maintainer-clean-host: maybe-maintainer-clean-ppl
2543maintainer-clean-host: maybe-maintainer-clean-cloog
5074489a 2544maintainer-clean-host: maybe-maintainer-clean-libelf
ec92c4d6 2545maintainer-clean-host: maybe-maintainer-clean-gnuserv
b916272a 2546maintainer-clean-host: maybe-maintainer-clean-gold
ec92c4d6
PB
2547maintainer-clean-host: maybe-maintainer-clean-gprof
2548maintainer-clean-host: maybe-maintainer-clean-gzip
2549maintainer-clean-host: maybe-maintainer-clean-hello
2550maintainer-clean-host: maybe-maintainer-clean-indent
2551maintainer-clean-host: maybe-maintainer-clean-intl
2552maintainer-clean-host: maybe-maintainer-clean-tcl
2553maintainer-clean-host: maybe-maintainer-clean-itcl
2554maintainer-clean-host: maybe-maintainer-clean-ld
2555maintainer-clean-host: maybe-maintainer-clean-libcpp
2556maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2557maintainer-clean-host: maybe-maintainer-clean-libgui
2558maintainer-clean-host: maybe-maintainer-clean-libiberty
59455d2f 2559maintainer-clean-host: maybe-maintainer-clean-libiconv
ec92c4d6
PB
2560maintainer-clean-host: maybe-maintainer-clean-libtool
2561maintainer-clean-host: maybe-maintainer-clean-m4
2562maintainer-clean-host: maybe-maintainer-clean-make
2563maintainer-clean-host: maybe-maintainer-clean-mmalloc
2564maintainer-clean-host: maybe-maintainer-clean-patch
2565maintainer-clean-host: maybe-maintainer-clean-perl
2566maintainer-clean-host: maybe-maintainer-clean-prms
2567maintainer-clean-host: maybe-maintainer-clean-rcs
2568maintainer-clean-host: maybe-maintainer-clean-readline
2569maintainer-clean-host: maybe-maintainer-clean-release
2570maintainer-clean-host: maybe-maintainer-clean-recode
2571maintainer-clean-host: maybe-maintainer-clean-sed
2572maintainer-clean-host: maybe-maintainer-clean-send-pr
2573maintainer-clean-host: maybe-maintainer-clean-shellutils
2574maintainer-clean-host: maybe-maintainer-clean-sid
2575maintainer-clean-host: maybe-maintainer-clean-sim
2576maintainer-clean-host: maybe-maintainer-clean-tar
2577maintainer-clean-host: maybe-maintainer-clean-texinfo
2578maintainer-clean-host: maybe-maintainer-clean-textutils
2579maintainer-clean-host: maybe-maintainer-clean-time
2580maintainer-clean-host: maybe-maintainer-clean-uudecode
2581maintainer-clean-host: maybe-maintainer-clean-wdiff
2582maintainer-clean-host: maybe-maintainer-clean-zip
2583maintainer-clean-host: maybe-maintainer-clean-zlib
2584maintainer-clean-host: maybe-maintainer-clean-gdb
2585maintainer-clean-host: maybe-maintainer-clean-expect
2586maintainer-clean-host: maybe-maintainer-clean-guile
2587maintainer-clean-host: maybe-maintainer-clean-tk
2588maintainer-clean-host: maybe-maintainer-clean-libtermcap
2589maintainer-clean-host: maybe-maintainer-clean-utils
2590maintainer-clean-host: maybe-maintainer-clean-gnattools
bd45d6fa 2591maintainer-clean-host: maybe-maintainer-clean-lto-plugin
657b58f4 2592
8ec98d6c 2593.PHONY: maintainer-clean-target
ec92c4d6
PB
2594
2595maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2596maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2597maintainer-clean-target: maybe-maintainer-clean-target-libssp
ec92c4d6 2598maintainer-clean-target: maybe-maintainer-clean-target-newlib
1f316156 2599maintainer-clean-target: maybe-maintainer-clean-target-libgcc
ec92c4d6
PB
2600maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2601maintainer-clean-target: maybe-maintainer-clean-target-libobjc
2602maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2603maintainer-clean-target: maybe-maintainer-clean-target-winsup
2604maintainer-clean-target: maybe-maintainer-clean-target-libgloss
2605maintainer-clean-target: maybe-maintainer-clean-target-libiberty
2606maintainer-clean-target: maybe-maintainer-clean-target-gperf
2607maintainer-clean-target: maybe-maintainer-clean-target-examples
2608maintainer-clean-target: maybe-maintainer-clean-target-libffi
2609maintainer-clean-target: maybe-maintainer-clean-target-libjava
2610maintainer-clean-target: maybe-maintainer-clean-target-zlib
2611maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
2612maintainer-clean-target: maybe-maintainer-clean-target-qthreads
2613maintainer-clean-target: maybe-maintainer-clean-target-rda
2614maintainer-clean-target: maybe-maintainer-clean-target-libada
2615maintainer-clean-target: maybe-maintainer-clean-target-libgomp
657b58f4 2616
657b58f4 2617
8ec98d6c 2618# Here are the targets which correspond to the do-X targets.
657b58f4 2619
d4954b6d
DD
2620.PHONY: info installcheck dvi pdf html
2621.PHONY: install-info install-pdf install-html
8ec98d6c
NN
2622.PHONY: clean distclean mostlyclean maintainer-clean realclean
2623.PHONY: local-clean local-distclean local-maintainer-clean
2624info: do-info
2625installcheck: do-installcheck
2626dvi: do-dvi
39bbbb69 2627pdf: do-pdf
b6fb961f 2628html: do-html
657b58f4 2629
8ec98d6c
NN
2630# Make sure makeinfo is built before we do a `make info', if we're
2631# in fact building texinfo.
2632do-info: maybe-all-texinfo
657b58f4 2633
8ec98d6c 2634install-info: do-install-info dir.info
5230d454 2635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8ec98d6c
NN
2636 if [ -f dir.info ] ; then \
2637 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2638 else true ; fi
657b58f4 2639
d4954b6d
DD
2640install-pdf: do-install-pdf
2641
83c9add4
CD
2642install-html: do-install-html
2643
8ec98d6c
NN
2644local-clean:
2645 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
657b58f4 2646
8ec98d6c
NN
2647local-distclean:
2648 -rm -f Makefile config.status config.cache mh-frag mt-frag
15b527ca 2649 -rm -f maybedep.tmp serdep.tmp
8ec98d6c
NN
2650 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2651 rm -rf $(TARGET_SUBDIR); \
2652 else true; fi
2653 -rm -rf $(BUILD_SUBDIR)
7fc2ca22
PB
2654 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2655 rm -rf $(HOST_SUBDIR); \
2656 else true; fi
8ec98d6c
NN
2657 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2658 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2659 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2660 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2661 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
90db0fb0 2662 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
657b58f4 2663
8ec98d6c
NN
2664local-maintainer-clean:
2665 @echo "This command is intended for maintainers to use;"
2666 @echo "it deletes files that may require special tools to rebuild."
657b58f4 2667
8ec98d6c
NN
2668clean: do-clean local-clean
2669mostlyclean: do-mostlyclean local-clean
2670distclean: do-distclean local-clean local-distclean
2671maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2672maintainer-clean: local-distclean
2673realclean: maintainer-clean
657b58f4 2674
8ec98d6c 2675# Check target.
657b58f4 2676
8ec98d6c
NN
2677.PHONY: check do-check
2678check: do-check
657b58f4 2679
8ec98d6c 2680# Only include modules actually being configured and built.
168b158c
PB
2681.PHONY: check-host
2682check-host: \
8ec98d6c
NN
2683 maybe-check-ash \
2684 maybe-check-autoconf \
2685 maybe-check-automake \
2686 maybe-check-bash \
2687 maybe-check-bfd \
2688 maybe-check-opcodes \
2689 maybe-check-binutils \
2690 maybe-check-bison \
2691 maybe-check-byacc \
2692 maybe-check-bzip2 \
d0880d62 2693 maybe-check-cgen \
8ec98d6c
NN
2694 maybe-check-dejagnu \
2695 maybe-check-diff \
2696 maybe-check-dosutils \
2697 maybe-check-etc \
2698 maybe-check-fastjar \
2699 maybe-check-fileutils \
2700 maybe-check-findutils \
2701 maybe-check-find \
5350aa8b 2702 maybe-check-fixincludes \
8ec98d6c
NN
2703 maybe-check-flex \
2704 maybe-check-gas \
d5eec917 2705 maybe-check-gcc \
8ec98d6c
NN
2706 maybe-check-gawk \
2707 maybe-check-gettext \
42f55f77
PB
2708 maybe-check-gmp \
2709 maybe-check-mpfr \
121f0eb2 2710 maybe-check-mpc \
311b6756
JM
2711 maybe-check-ppl \
2712 maybe-check-cloog \
5074489a 2713 maybe-check-libelf \
8ec98d6c 2714 maybe-check-gnuserv \
b916272a 2715 maybe-check-gold \
8ec98d6c
NN
2716 maybe-check-gprof \
2717 maybe-check-gzip \
2718 maybe-check-hello \
2719 maybe-check-indent \
2720 maybe-check-intl \
2721 maybe-check-tcl \
2722 maybe-check-itcl \
2723 maybe-check-ld \
c580d516 2724 maybe-check-libcpp \
a7dc05b5 2725 maybe-check-libdecnumber \
8ec98d6c
NN
2726 maybe-check-libgui \
2727 maybe-check-libiberty \
59455d2f 2728 maybe-check-libiconv \
8ec98d6c
NN
2729 maybe-check-libtool \
2730 maybe-check-m4 \
2731 maybe-check-make \
2732 maybe-check-mmalloc \
2733 maybe-check-patch \
2734 maybe-check-perl \
2735 maybe-check-prms \
2736 maybe-check-rcs \
2737 maybe-check-readline \
2738 maybe-check-release \
2739 maybe-check-recode \
2740 maybe-check-sed \
2741 maybe-check-send-pr \
2742 maybe-check-shellutils \
2743 maybe-check-sid \
2744 maybe-check-sim \
2745 maybe-check-tar \
2746 maybe-check-texinfo \
2747 maybe-check-textutils \
2748 maybe-check-time \
2749 maybe-check-uudecode \
2750 maybe-check-wdiff \
2751 maybe-check-zip \
2752 maybe-check-zlib \
2753 maybe-check-gdb \
2754 maybe-check-expect \
2755 maybe-check-guile \
2756 maybe-check-tk \
8ec98d6c
NN
2757 maybe-check-libtermcap \
2758 maybe-check-utils \
bd45d6fa
ILT
2759 maybe-check-gnattools \
2760 maybe-check-lto-plugin
168b158c
PB
2761
2762.PHONY: check-target
2763check-target: \
8ec98d6c 2764 maybe-check-target-libstdc++-v3 \
cb2333e8 2765 maybe-check-target-libmudflap \
4c3e061c 2766 maybe-check-target-libssp \
8ec98d6c 2767 maybe-check-target-newlib \
1f316156 2768 maybe-check-target-libgcc \
cb2333e8 2769 maybe-check-target-libgfortran \
8ec98d6c
NN
2770 maybe-check-target-libobjc \
2771 maybe-check-target-libtermcap \
2772 maybe-check-target-winsup \
2773 maybe-check-target-libgloss \
2774 maybe-check-target-libiberty \
2775 maybe-check-target-gperf \
2776 maybe-check-target-examples \
2777 maybe-check-target-libffi \
2778 maybe-check-target-libjava \
2779 maybe-check-target-zlib \
2780 maybe-check-target-boehm-gc \
2781 maybe-check-target-qthreads \
2782 maybe-check-target-rda \
00bc9d7f
PB
2783 maybe-check-target-libada \
2784 maybe-check-target-libgomp
168b158c
PB
2785
2786do-check:
15b527ca 2787 @: $(MAKE); $(unstage)
ecebee48
PB
2788 @r=`${PWD_COMMAND}`; export r; \
2789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2790 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
657b58f4 2791
8ec98d6c 2792# Automated reporting of test results.
657b58f4 2793
8ec98d6c
NN
2794warning.log: build.log
2795 $(srcdir)/contrib/warn_summary build.log > $@
657b58f4 2796
8ec98d6c
NN
2797mail-report.log:
2798 if test x'$(BOOT_CFLAGS)' != x''; then \
2799 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2800 fi; \
2801 $(srcdir)/contrib/test_summary -t >$@
2802 chmod +x $@
2803 echo If you really want to send e-mail, run ./$@ now
657b58f4 2804
8ec98d6c
NN
2805mail-report-with-warnings.log: warning.log
2806 if test x'$(BOOT_CFLAGS)' != x''; then \
2807 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2808 fi; \
2809 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2810 chmod +x $@
2811 echo If you really want to send e-mail, run ./$@ now
657b58f4 2812
8ec98d6c 2813# Installation targets.
657b58f4 2814
8ec98d6c 2815.PHONY: install uninstall
168b158c 2816install:
15b527ca 2817 @: $(MAKE); $(unstage)
ecebee48
PB
2818 @r=`${PWD_COMMAND}`; export r; \
2819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2820 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
657b58f4 2821
8ec98d6c
NN
2822.PHONY: install-host-nogcc
2823install-host-nogcc: \
2824 maybe-install-ash \
2825 maybe-install-autoconf \
2826 maybe-install-automake \
2827 maybe-install-bash \
2828 maybe-install-bfd \
2829 maybe-install-opcodes \
2830 maybe-install-binutils \
2831 maybe-install-bison \
2832 maybe-install-byacc \
2833 maybe-install-bzip2 \
d0880d62 2834 maybe-install-cgen \
8ec98d6c
NN
2835 maybe-install-dejagnu \
2836 maybe-install-diff \
2837 maybe-install-dosutils \
2838 maybe-install-etc \
2839 maybe-install-fastjar \
2840 maybe-install-fileutils \
2841 maybe-install-findutils \
2842 maybe-install-find \
5350aa8b 2843 maybe-install-fixincludes \
8ec98d6c
NN
2844 maybe-install-flex \
2845 maybe-install-gas \
2846 maybe-install-gawk \
2847 maybe-install-gettext \
42f55f77
PB
2848 maybe-install-gmp \
2849 maybe-install-mpfr \
121f0eb2 2850 maybe-install-mpc \
311b6756
JM
2851 maybe-install-ppl \
2852 maybe-install-cloog \
5074489a 2853 maybe-install-libelf \
8ec98d6c 2854 maybe-install-gnuserv \
b916272a 2855 maybe-install-gold \
8ec98d6c
NN
2856 maybe-install-gprof \
2857 maybe-install-gzip \
2858 maybe-install-hello \
2859 maybe-install-indent \
2860 maybe-install-intl \
2861 maybe-install-tcl \
2862 maybe-install-itcl \
2863 maybe-install-ld \
c580d516 2864 maybe-install-libcpp \
a7dc05b5 2865 maybe-install-libdecnumber \
8ec98d6c
NN
2866 maybe-install-libgui \
2867 maybe-install-libiberty \
59455d2f 2868 maybe-install-libiconv \
8ec98d6c
NN
2869 maybe-install-libtool \
2870 maybe-install-m4 \
2871 maybe-install-make \
2872 maybe-install-mmalloc \
2873 maybe-install-patch \
2874 maybe-install-perl \
2875 maybe-install-prms \
2876 maybe-install-rcs \
2877 maybe-install-readline \
2878 maybe-install-release \
2879 maybe-install-recode \
2880 maybe-install-sed \
2881 maybe-install-send-pr \
2882 maybe-install-shellutils \
2883 maybe-install-sid \
2884 maybe-install-sim \
2885 maybe-install-tar \
2886 maybe-install-texinfo \
2887 maybe-install-textutils \
2888 maybe-install-time \
2889 maybe-install-uudecode \
2890 maybe-install-wdiff \
2891 maybe-install-zip \
2892 maybe-install-zlib \
2893 maybe-install-gdb \
2894 maybe-install-expect \
2895 maybe-install-guile \
2896 maybe-install-tk \
8ec98d6c 2897 maybe-install-libtermcap \
7fc2ca22 2898 maybe-install-utils \
bd45d6fa
ILT
2899 maybe-install-gnattools \
2900 maybe-install-lto-plugin
657b58f4 2901
8ec98d6c 2902.PHONY: install-host
d5eec917 2903install-host: \
8ec98d6c
NN
2904 maybe-install-ash \
2905 maybe-install-autoconf \
2906 maybe-install-automake \
2907 maybe-install-bash \
2908 maybe-install-bfd \
2909 maybe-install-opcodes \
2910 maybe-install-binutils \
2911 maybe-install-bison \
2912 maybe-install-byacc \
2913 maybe-install-bzip2 \
d0880d62 2914 maybe-install-cgen \
8ec98d6c
NN
2915 maybe-install-dejagnu \
2916 maybe-install-diff \
2917 maybe-install-dosutils \
2918 maybe-install-etc \
2919 maybe-install-fastjar \
2920 maybe-install-fileutils \
2921 maybe-install-findutils \
2922 maybe-install-find \
5350aa8b 2923 maybe-install-fixincludes \
8ec98d6c
NN
2924 maybe-install-flex \
2925 maybe-install-gas \
d5eec917 2926 maybe-install-gcc \
8ec98d6c
NN
2927 maybe-install-gawk \
2928 maybe-install-gettext \
42f55f77
PB
2929 maybe-install-gmp \
2930 maybe-install-mpfr \
121f0eb2 2931 maybe-install-mpc \
311b6756
JM
2932 maybe-install-ppl \
2933 maybe-install-cloog \
5074489a 2934 maybe-install-libelf \
8ec98d6c 2935 maybe-install-gnuserv \
b916272a 2936 maybe-install-gold \
8ec98d6c
NN
2937 maybe-install-gprof \
2938 maybe-install-gzip \
2939 maybe-install-hello \
2940 maybe-install-indent \
2941 maybe-install-intl \
2942 maybe-install-tcl \
2943 maybe-install-itcl \
2944 maybe-install-ld \
c580d516 2945 maybe-install-libcpp \
a7dc05b5 2946 maybe-install-libdecnumber \
8ec98d6c
NN
2947 maybe-install-libgui \
2948 maybe-install-libiberty \
59455d2f 2949 maybe-install-libiconv \
8ec98d6c
NN
2950 maybe-install-libtool \
2951 maybe-install-m4 \
2952 maybe-install-make \
2953 maybe-install-mmalloc \
2954 maybe-install-patch \
2955 maybe-install-perl \
2956 maybe-install-prms \
2957 maybe-install-rcs \
2958 maybe-install-readline \
2959 maybe-install-release \
2960 maybe-install-recode \
2961 maybe-install-sed \
2962 maybe-install-send-pr \
2963 maybe-install-shellutils \
2964 maybe-install-sid \
2965 maybe-install-sim \
2966 maybe-install-tar \
2967 maybe-install-texinfo \
2968 maybe-install-textutils \
2969 maybe-install-time \
2970 maybe-install-uudecode \
2971 maybe-install-wdiff \
2972 maybe-install-zip \
2973 maybe-install-zlib \
2974 maybe-install-gdb \
2975 maybe-install-expect \
2976 maybe-install-guile \
2977 maybe-install-tk \
8ec98d6c 2978 maybe-install-libtermcap \
7fc2ca22 2979 maybe-install-utils \
bd45d6fa
ILT
2980 maybe-install-gnattools \
2981 maybe-install-lto-plugin
657b58f4 2982
8ec98d6c
NN
2983.PHONY: install-target
2984install-target: \
2985 maybe-install-target-libstdc++-v3 \
cb2333e8 2986 maybe-install-target-libmudflap \
4c3e061c 2987 maybe-install-target-libssp \
8ec98d6c 2988 maybe-install-target-newlib \
1f316156 2989 maybe-install-target-libgcc \
cb2333e8 2990 maybe-install-target-libgfortran \
8ec98d6c
NN
2991 maybe-install-target-libobjc \
2992 maybe-install-target-libtermcap \
2993 maybe-install-target-winsup \
2994 maybe-install-target-libgloss \
2995 maybe-install-target-libiberty \
2996 maybe-install-target-gperf \
2997 maybe-install-target-examples \
2998 maybe-install-target-libffi \
2999 maybe-install-target-libjava \
3000 maybe-install-target-zlib \
3001 maybe-install-target-boehm-gc \
3002 maybe-install-target-qthreads \
3003 maybe-install-target-rda \
00bc9d7f
PB
3004 maybe-install-target-libada \
3005 maybe-install-target-libgomp
657b58f4 3006
8ec98d6c
NN
3007uninstall:
3008 @echo "the uninstall target is not supported in this tree"
657b58f4 3009
8ec98d6c
NN
3010.PHONY: install.all
3011install.all: install-no-fixedincludes
3012 @if [ -f ./gcc/Makefile ] ; then \
3013 r=`${PWD_COMMAND}` ; export r ; \
15b527ca 3014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 3015 $(HOST_EXPORTS) \
8ec98d6c
NN
3016 (cd ./gcc && \
3017 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
3018 else \
3019 true ; \
3020 fi
657b58f4 3021
8ec98d6c
NN
3022# install-no-fixedincludes is used because Cygnus can not distribute
3023# the fixed header files.
3024.PHONY: install-no-fixedincludes
3025install-no-fixedincludes: installdirs install-host-nogcc \
3026 install-target gcc-no-fixedincludes
657b58f4 3027
8ec98d6c 3028### other supporting targets
657b58f4 3029
8ec98d6c
NN
3030MAKEDIRS= \
3031 $(DESTDIR)$(prefix) \
3032 $(DESTDIR)$(exec_prefix)
3033.PHONY: installdirs
3034installdirs: mkinstalldirs
3035 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
657b58f4 3036
8ec98d6c
NN
3037dir.info: do-install-info
3038 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
3039 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
3040 mv -f dir.info.new dir.info ; \
3041 else true ; \
3042 fi
657b58f4 3043
8ec98d6c
NN
3044dist:
3045 @echo "Building a full distribution of this tree isn't done"
3046 @echo "via 'make dist'. Check out the etc/ subdirectory"
657b58f4 3047
8ec98d6c 3048etags tags: TAGS
657b58f4 3049
8ec98d6c
NN
3050# Right now this just builds TAGS in each subdirectory. emacs19 has the
3051# ability to use several tags files at once, so there is probably no need
3052# to combine them into one big TAGS file (like CVS 1.3 does). We could
3053# (if we felt like it) have this Makefile write a piece of elisp which
3054# the user could load to tell emacs19 where all the TAGS files we just
3055# built are.
3056TAGS: do-TAGS
657b58f4 3057
f0fdfd34
PB
3058# ------------------------------------
3059# Macros for configure and all targets
3060# ------------------------------------
3061
3062
3063
3064
3065
8ec98d6c
NN
3066# --------------------------------------
3067# Modules which run on the build machine
3068# --------------------------------------
3069
f0fdfd34 3070
8ec98d6c
NN
3071.PHONY: configure-build-libiberty maybe-configure-build-libiberty
3072maybe-configure-build-libiberty:
e1e5148c
CD
3073@if gcc-bootstrap
3074configure-build-libiberty: stage_current
3075@endif gcc-bootstrap
a7e609d6
PB
3076@if build-libiberty
3077maybe-configure-build-libiberty: configure-build-libiberty
ec92c4d6 3078configure-build-libiberty:
15b527ca 3079 @: $(MAKE); $(unstage)
ec92c4d6 3080 @r=`${PWD_COMMAND}`; export r; \
5230d454 3081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3082 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
3083 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
5074489a 3084 $(BUILD_EXPORTS) \
8ec98d6c
NN
3085 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
3086 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
3087 case $(srcdir) in \
7fc2ca22
PB
3088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3089 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
3090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3091 esac; \
7fc2ca22
PB
3092 srcdiroption="--srcdir=$${topdir}/libiberty"; \
3093 libsrcdir="$$s/libiberty"; \
8ec98d6c
NN
3094 rm -f no-such-file || : ; \
3095 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3096 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3097 --target=${target_alias} $${srcdiroption} \
657b58f4 3098 || exit 1
a7e609d6 3099@endif build-libiberty
657b58f4 3100
f0fdfd34
PB
3101
3102
a8a96878
PB
3103
3104
8ec98d6c
NN
3105.PHONY: all-build-libiberty maybe-all-build-libiberty
3106maybe-all-build-libiberty:
e1e5148c
CD
3107@if gcc-bootstrap
3108all-build-libiberty: stage_current
3109@endif gcc-bootstrap
a7e609d6 3110@if build-libiberty
6a19fd82 3111TARGET-build-libiberty=all
a7e609d6 3112maybe-all-build-libiberty: all-build-libiberty
8ec98d6c 3113all-build-libiberty: configure-build-libiberty
15b527ca 3114 @: $(MAKE); $(unstage)
8ec98d6c 3115 @r=`${PWD_COMMAND}`; export r; \
5230d454 3116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3117 $(BUILD_EXPORTS) \
6a19fd82 3118 (cd $(BUILD_SUBDIR)/libiberty && \
7d6b567a 3119 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3120 $(TARGET-build-libiberty))
a7e609d6 3121@endif build-libiberty
657b58f4 3122
f0fdfd34
PB
3123
3124
a8a96878
PB
3125
3126
2cb47d68
PB
3127.PHONY: configure-build-bison maybe-configure-build-bison
3128maybe-configure-build-bison:
e1e5148c
CD
3129@if gcc-bootstrap
3130configure-build-bison: stage_current
3131@endif gcc-bootstrap
2cb47d68
PB
3132@if build-bison
3133maybe-configure-build-bison: configure-build-bison
ec92c4d6 3134configure-build-bison:
15b527ca 3135 @: $(MAKE); $(unstage)
ec92c4d6 3136 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3138 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
3139 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
5074489a 3140 $(BUILD_EXPORTS) \
2cb47d68
PB
3141 echo Configuring in $(BUILD_SUBDIR)/bison; \
3142 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
3143 case $(srcdir) in \
7fc2ca22
PB
3144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3145 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
3146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3147 esac; \
7fc2ca22
PB
3148 srcdiroption="--srcdir=$${topdir}/bison"; \
3149 libsrcdir="$$s/bison"; \
2cb47d68
PB
3150 rm -f no-such-file || : ; \
3151 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3152 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3153 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3154 || exit 1
3155@endif build-bison
3156
f0fdfd34
PB
3157
3158
a8a96878
PB
3159
3160
2cb47d68
PB
3161.PHONY: all-build-bison maybe-all-build-bison
3162maybe-all-build-bison:
e1e5148c
CD
3163@if gcc-bootstrap
3164all-build-bison: stage_current
3165@endif gcc-bootstrap
2cb47d68 3166@if build-bison
6a19fd82 3167TARGET-build-bison=all
2cb47d68
PB
3168maybe-all-build-bison: all-build-bison
3169all-build-bison: configure-build-bison
15b527ca 3170 @: $(MAKE); $(unstage)
2cb47d68
PB
3171 @r=`${PWD_COMMAND}`; export r; \
3172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3173 $(BUILD_EXPORTS) \
6a19fd82 3174 (cd $(BUILD_SUBDIR)/bison && \
7d6b567a 3175 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3176 $(TARGET-build-bison))
2cb47d68
PB
3177@endif build-bison
3178
f0fdfd34
PB
3179
3180
a8a96878
PB
3181
3182
2cb47d68
PB
3183.PHONY: configure-build-byacc maybe-configure-build-byacc
3184maybe-configure-build-byacc:
e1e5148c
CD
3185@if gcc-bootstrap
3186configure-build-byacc: stage_current
3187@endif gcc-bootstrap
2cb47d68
PB
3188@if build-byacc
3189maybe-configure-build-byacc: configure-build-byacc
ec92c4d6 3190configure-build-byacc:
15b527ca 3191 @: $(MAKE); $(unstage)
ec92c4d6 3192 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3194 test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
3195 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
5074489a 3196 $(BUILD_EXPORTS) \
2cb47d68
PB
3197 echo Configuring in $(BUILD_SUBDIR)/byacc; \
3198 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
3199 case $(srcdir) in \
7fc2ca22
PB
3200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3201 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
3202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3203 esac; \
7fc2ca22
PB
3204 srcdiroption="--srcdir=$${topdir}/byacc"; \
3205 libsrcdir="$$s/byacc"; \
2cb47d68
PB
3206 rm -f no-such-file || : ; \
3207 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3208 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3209 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3210 || exit 1
3211@endif build-byacc
3212
f0fdfd34
PB
3213
3214
a8a96878
PB
3215
3216
2cb47d68
PB
3217.PHONY: all-build-byacc maybe-all-build-byacc
3218maybe-all-build-byacc:
e1e5148c
CD
3219@if gcc-bootstrap
3220all-build-byacc: stage_current
3221@endif gcc-bootstrap
2cb47d68 3222@if build-byacc
6a19fd82 3223TARGET-build-byacc=all
2cb47d68
PB
3224maybe-all-build-byacc: all-build-byacc
3225all-build-byacc: configure-build-byacc
15b527ca 3226 @: $(MAKE); $(unstage)
2cb47d68
PB
3227 @r=`${PWD_COMMAND}`; export r; \
3228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3229 $(BUILD_EXPORTS) \
6a19fd82 3230 (cd $(BUILD_SUBDIR)/byacc && \
7d6b567a 3231 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3232 $(TARGET-build-byacc))
2cb47d68
PB
3233@endif build-byacc
3234
f0fdfd34
PB
3235
3236
a8a96878
PB
3237
3238
2cb47d68
PB
3239.PHONY: configure-build-flex maybe-configure-build-flex
3240maybe-configure-build-flex:
e1e5148c
CD
3241@if gcc-bootstrap
3242configure-build-flex: stage_current
3243@endif gcc-bootstrap
2cb47d68
PB
3244@if build-flex
3245maybe-configure-build-flex: configure-build-flex
ec92c4d6 3246configure-build-flex:
15b527ca 3247 @: $(MAKE); $(unstage)
ec92c4d6 3248 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3250 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
3251 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
5074489a 3252 $(BUILD_EXPORTS) \
2cb47d68
PB
3253 echo Configuring in $(BUILD_SUBDIR)/flex; \
3254 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
3255 case $(srcdir) in \
7fc2ca22
PB
3256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3257 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
3258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3259 esac; \
7fc2ca22
PB
3260 srcdiroption="--srcdir=$${topdir}/flex"; \
3261 libsrcdir="$$s/flex"; \
2cb47d68
PB
3262 rm -f no-such-file || : ; \
3263 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3264 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3265 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3266 || exit 1
3267@endif build-flex
3268
f0fdfd34
PB
3269
3270
a8a96878
PB
3271
3272
2cb47d68
PB
3273.PHONY: all-build-flex maybe-all-build-flex
3274maybe-all-build-flex:
e1e5148c
CD
3275@if gcc-bootstrap
3276all-build-flex: stage_current
3277@endif gcc-bootstrap
2cb47d68 3278@if build-flex
6a19fd82 3279TARGET-build-flex=all
2cb47d68
PB
3280maybe-all-build-flex: all-build-flex
3281all-build-flex: configure-build-flex
15b527ca 3282 @: $(MAKE); $(unstage)
2cb47d68
PB
3283 @r=`${PWD_COMMAND}`; export r; \
3284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3285 $(BUILD_EXPORTS) \
6a19fd82 3286 (cd $(BUILD_SUBDIR)/flex && \
7d6b567a 3287 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3288 $(TARGET-build-flex))
2cb47d68
PB
3289@endif build-flex
3290
f0fdfd34
PB
3291
3292
a8a96878
PB
3293
3294
2cb47d68
PB
3295.PHONY: configure-build-m4 maybe-configure-build-m4
3296maybe-configure-build-m4:
e1e5148c
CD
3297@if gcc-bootstrap
3298configure-build-m4: stage_current
3299@endif gcc-bootstrap
2cb47d68
PB
3300@if build-m4
3301maybe-configure-build-m4: configure-build-m4
ec92c4d6 3302configure-build-m4:
15b527ca 3303 @: $(MAKE); $(unstage)
ec92c4d6 3304 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3306 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
3307 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
5074489a 3308 $(BUILD_EXPORTS) \
2cb47d68
PB
3309 echo Configuring in $(BUILD_SUBDIR)/m4; \
3310 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
3311 case $(srcdir) in \
7fc2ca22
PB
3312 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3313 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
3314 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3315 esac; \
7fc2ca22
PB
3316 srcdiroption="--srcdir=$${topdir}/m4"; \
3317 libsrcdir="$$s/m4"; \
2cb47d68
PB
3318 rm -f no-such-file || : ; \
3319 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3320 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3321 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3322 || exit 1
3323@endif build-m4
3324
f0fdfd34
PB
3325
3326
a8a96878
PB
3327
3328
2cb47d68
PB
3329.PHONY: all-build-m4 maybe-all-build-m4
3330maybe-all-build-m4:
e1e5148c
CD
3331@if gcc-bootstrap
3332all-build-m4: stage_current
3333@endif gcc-bootstrap
2cb47d68 3334@if build-m4
6a19fd82 3335TARGET-build-m4=all
2cb47d68
PB
3336maybe-all-build-m4: all-build-m4
3337all-build-m4: configure-build-m4
15b527ca 3338 @: $(MAKE); $(unstage)
2cb47d68
PB
3339 @r=`${PWD_COMMAND}`; export r; \
3340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3341 $(BUILD_EXPORTS) \
6a19fd82 3342 (cd $(BUILD_SUBDIR)/m4 && \
7d6b567a 3343 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3344 $(TARGET-build-m4))
2cb47d68
PB
3345@endif build-m4
3346
f0fdfd34
PB
3347
3348
a8a96878
PB
3349
3350
2cb47d68
PB
3351.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3352maybe-configure-build-texinfo:
e1e5148c
CD
3353@if gcc-bootstrap
3354configure-build-texinfo: stage_current
3355@endif gcc-bootstrap
2cb47d68
PB
3356@if build-texinfo
3357maybe-configure-build-texinfo: configure-build-texinfo
ec92c4d6 3358configure-build-texinfo:
15b527ca 3359 @: $(MAKE); $(unstage)
ec92c4d6 3360 @r=`${PWD_COMMAND}`; export r; \
2cb47d68 3361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3362 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
3363 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
5074489a 3364 $(BUILD_EXPORTS) \
2cb47d68
PB
3365 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3366 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3367 case $(srcdir) in \
7fc2ca22
PB
3368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3369 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2cb47d68 3371 esac; \
7fc2ca22
PB
3372 srcdiroption="--srcdir=$${topdir}/texinfo"; \
3373 libsrcdir="$$s/texinfo"; \
2cb47d68
PB
3374 rm -f no-such-file || : ; \
3375 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3376 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3377 --target=${target_alias} $${srcdiroption} \
2cb47d68
PB
3378 || exit 1
3379@endif build-texinfo
3380
f0fdfd34
PB
3381
3382
a8a96878
PB
3383
3384
2cb47d68
PB
3385.PHONY: all-build-texinfo maybe-all-build-texinfo
3386maybe-all-build-texinfo:
e1e5148c
CD
3387@if gcc-bootstrap
3388all-build-texinfo: stage_current
3389@endif gcc-bootstrap
2cb47d68 3390@if build-texinfo
6a19fd82 3391TARGET-build-texinfo=all
2cb47d68
PB
3392maybe-all-build-texinfo: all-build-texinfo
3393all-build-texinfo: configure-build-texinfo
15b527ca 3394 @: $(MAKE); $(unstage)
2cb47d68
PB
3395 @r=`${PWD_COMMAND}`; export r; \
3396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3397 $(BUILD_EXPORTS) \
6a19fd82 3398 (cd $(BUILD_SUBDIR)/texinfo && \
7d6b567a 3399 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3400 $(TARGET-build-texinfo))
2cb47d68
PB
3401@endif build-texinfo
3402
f0fdfd34
PB
3403
3404
a8a96878
PB
3405
3406
607d4caf
PB
3407.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3408maybe-configure-build-fixincludes:
e1e5148c
CD
3409@if gcc-bootstrap
3410configure-build-fixincludes: stage_current
3411@endif gcc-bootstrap
607d4caf
PB
3412@if build-fixincludes
3413maybe-configure-build-fixincludes: configure-build-fixincludes
ec92c4d6 3414configure-build-fixincludes:
15b527ca 3415 @: $(MAKE); $(unstage)
ec92c4d6 3416 @r=`${PWD_COMMAND}`; export r; \
607d4caf 3417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3418 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
3419 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
5074489a 3420 $(BUILD_EXPORTS) \
607d4caf
PB
3421 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3422 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3423 case $(srcdir) in \
7fc2ca22
PB
3424 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3425 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3426 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
607d4caf 3427 esac; \
7fc2ca22
PB
3428 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
3429 libsrcdir="$$s/fixincludes"; \
607d4caf
PB
3430 rm -f no-such-file || : ; \
3431 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3432 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3433 --target=${target_alias} $${srcdiroption} \
607d4caf
PB
3434 || exit 1
3435@endif build-fixincludes
3436
f0fdfd34
PB
3437
3438
a8a96878
PB
3439
3440
607d4caf
PB
3441.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3442maybe-all-build-fixincludes:
e1e5148c
CD
3443@if gcc-bootstrap
3444all-build-fixincludes: stage_current
3445@endif gcc-bootstrap
607d4caf
PB
3446@if build-fixincludes
3447TARGET-build-fixincludes=all
3448maybe-all-build-fixincludes: all-build-fixincludes
3449all-build-fixincludes: configure-build-fixincludes
15b527ca 3450 @: $(MAKE); $(unstage)
607d4caf
PB
3451 @r=`${PWD_COMMAND}`; export r; \
3452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3453 $(BUILD_EXPORTS) \
607d4caf 3454 (cd $(BUILD_SUBDIR)/fixincludes && \
7d6b567a 3455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
6532abb6 3456 $(TARGET-build-fixincludes))
607d4caf
PB
3457@endif build-fixincludes
3458
657b58f4 3459
f0fdfd34 3460
a8a96878
PB
3461
3462
8ec98d6c
NN
3463# --------------------------------------
3464# Modules which run on the host machine
3465# --------------------------------------
657b58f4 3466
f0fdfd34 3467
8ec98d6c
NN
3468.PHONY: configure-ash maybe-configure-ash
3469maybe-configure-ash:
e1e5148c
CD
3470@if gcc-bootstrap
3471configure-ash: stage_current
3472@endif gcc-bootstrap
a7e609d6
PB
3473@if ash
3474maybe-configure-ash: configure-ash
ec92c4d6 3475configure-ash:
15b527ca 3476 @: $(MAKE); $(unstage)
ec92c4d6 3477 @r=`${PWD_COMMAND}`; export r; \
5230d454 3478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3479 test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
3480 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
5074489a 3481 $(HOST_EXPORTS) \
f0fdfd34
PB
3482 echo Configuring in $(HOST_SUBDIR)/ash; \
3483 cd "$(HOST_SUBDIR)/ash" || exit 1; \
8ec98d6c 3484 case $(srcdir) in \
7fc2ca22
PB
3485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3486 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
3487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3488 esac; \
7fc2ca22
PB
3489 srcdiroption="--srcdir=$${topdir}/ash"; \
3490 libsrcdir="$$s/ash"; \
8ec98d6c 3491 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3492 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3493 --target=${target_alias} $${srcdiroption} \
657b58f4 3494 || exit 1
a7e609d6 3495@endif ash
657b58f4 3496
f0fdfd34
PB
3497
3498
a8a96878
PB
3499
3500
8ec98d6c
NN
3501.PHONY: all-ash maybe-all-ash
3502maybe-all-ash:
e1e5148c
CD
3503@if gcc-bootstrap
3504all-ash: stage_current
3505@endif gcc-bootstrap
a7e609d6 3506@if ash
5e6b1f07 3507TARGET-ash=all
a7e609d6 3508maybe-all-ash: all-ash
8ec98d6c 3509all-ash: configure-ash
15b527ca 3510 @: $(MAKE); $(unstage)
8ec98d6c
NN
3511 @r=`${PWD_COMMAND}`; export r; \
3512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3513 $(HOST_EXPORTS) \
7fc2ca22 3514 (cd $(HOST_SUBDIR)/ash && \
6532abb6
PB
3515 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3516 $(TARGET-ash))
a7e609d6 3517@endif ash
657b58f4 3518
f0fdfd34 3519
a8a96878
PB
3520
3521
8ec98d6c
NN
3522.PHONY: check-ash maybe-check-ash
3523maybe-check-ash:
a7e609d6
PB
3524@if ash
3525maybe-check-ash: check-ash
657b58f4 3526
8ec98d6c 3527check-ash:
15b527ca 3528 @: $(MAKE); $(unstage)
8ec98d6c 3529 @r=`${PWD_COMMAND}`; export r; \
5230d454 3530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3531 $(HOST_EXPORTS) \
7fc2ca22
PB
3532 (cd $(HOST_SUBDIR)/ash && \
3533 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3534
a7e609d6 3535@endif ash
657b58f4 3536
8ec98d6c
NN
3537.PHONY: install-ash maybe-install-ash
3538maybe-install-ash:
a7e609d6
PB
3539@if ash
3540maybe-install-ash: install-ash
657b58f4 3541
8ec98d6c 3542install-ash: installdirs
15b527ca 3543 @: $(MAKE); $(unstage)
8ec98d6c 3544 @r=`${PWD_COMMAND}`; export r; \
5230d454 3545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3546 $(HOST_EXPORTS) \
7fc2ca22 3547 (cd $(HOST_SUBDIR)/ash && \
93c60b6d 3548 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3549
a7e609d6 3550@endif ash
657b58f4 3551
39bbbb69 3552# Other targets (info, dvi, pdf, etc.)
657b58f4 3553
8ec98d6c
NN
3554.PHONY: maybe-info-ash info-ash
3555maybe-info-ash:
a7e609d6
PB
3556@if ash
3557maybe-info-ash: info-ash
8ec98d6c
NN
3558
3559info-ash: \
3560 configure-ash
15b527ca 3561 @: $(MAKE); $(unstage)
8ec98d6c 3562 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3563 r=`${PWD_COMMAND}`; export r; \
3564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3565 $(HOST_EXPORTS) \
d5eec917 3566 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3568 done; \
8ec98d6c 3569 echo "Doing info in ash" ; \
7fc2ca22 3570 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3573 "RANLIB=$${RANLIB}" \
bffcbe34 3574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3575 info) \
657b58f4
NN
3576 || exit 1
3577
a7e609d6 3578@endif ash
657b58f4 3579
8ec98d6c
NN
3580.PHONY: maybe-dvi-ash dvi-ash
3581maybe-dvi-ash:
a7e609d6
PB
3582@if ash
3583maybe-dvi-ash: dvi-ash
657b58f4 3584
8ec98d6c
NN
3585dvi-ash: \
3586 configure-ash
15b527ca 3587 @: $(MAKE); $(unstage)
8ec98d6c 3588 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3589 r=`${PWD_COMMAND}`; export r; \
3590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3591 $(HOST_EXPORTS) \
d5eec917 3592 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3594 done; \
8ec98d6c 3595 echo "Doing dvi in ash" ; \
7fc2ca22 3596 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3599 "RANLIB=$${RANLIB}" \
bffcbe34 3600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3601 dvi) \
657b58f4
NN
3602 || exit 1
3603
a7e609d6 3604@endif ash
657b58f4 3605
39bbbb69
DD
3606.PHONY: maybe-pdf-ash pdf-ash
3607maybe-pdf-ash:
3608@if ash
3609maybe-pdf-ash: pdf-ash
3610
3611pdf-ash: \
3612 configure-ash
3613 @: $(MAKE); $(unstage)
3614 @[ -f ./ash/Makefile ] || exit 0; \
3615 r=`${PWD_COMMAND}`; export r; \
3616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3617 $(HOST_EXPORTS) \
3618 for flag in $(EXTRA_HOST_FLAGS) ; do \
3619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3620 done; \
3621 echo "Doing pdf in ash" ; \
3622 (cd $(HOST_SUBDIR)/ash && \
3623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3625 "RANLIB=$${RANLIB}" \
bffcbe34 3626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
3627 pdf) \
3628 || exit 1
3629
3630@endif ash
3631
b6fb961f
MS
3632.PHONY: maybe-html-ash html-ash
3633maybe-html-ash:
3634@if ash
3635maybe-html-ash: html-ash
3636
3637html-ash: \
3638 configure-ash
15b527ca 3639 @: $(MAKE); $(unstage)
b6fb961f
MS
3640 @[ -f ./ash/Makefile ] || exit 0; \
3641 r=`${PWD_COMMAND}`; export r; \
3642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
3643 $(HOST_EXPORTS) \
3644 for flag in $(EXTRA_HOST_FLAGS) ; do \
3645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3646 done; \
3647 echo "Doing html in ash" ; \
7fc2ca22 3648 (cd $(HOST_SUBDIR)/ash && \
b6fb961f
MS
3649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3651 "RANLIB=$${RANLIB}" \
bffcbe34 3652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
3653 html) \
3654 || exit 1
3655
3656@endif ash
3657
8ec98d6c
NN
3658.PHONY: maybe-TAGS-ash TAGS-ash
3659maybe-TAGS-ash:
a7e609d6
PB
3660@if ash
3661maybe-TAGS-ash: TAGS-ash
657b58f4 3662
8ec98d6c
NN
3663TAGS-ash: \
3664 configure-ash
15b527ca 3665 @: $(MAKE); $(unstage)
8ec98d6c 3666 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3667 r=`${PWD_COMMAND}`; export r; \
3668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3669 $(HOST_EXPORTS) \
d5eec917 3670 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3672 done; \
8ec98d6c 3673 echo "Doing TAGS in ash" ; \
7fc2ca22 3674 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3677 "RANLIB=$${RANLIB}" \
bffcbe34 3678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3679 TAGS) \
657b58f4
NN
3680 || exit 1
3681
a7e609d6 3682@endif ash
657b58f4 3683
8ec98d6c
NN
3684.PHONY: maybe-install-info-ash install-info-ash
3685maybe-install-info-ash:
a7e609d6
PB
3686@if ash
3687maybe-install-info-ash: install-info-ash
657b58f4 3688
8ec98d6c
NN
3689install-info-ash: \
3690 configure-ash \
3691 info-ash
15b527ca 3692 @: $(MAKE); $(unstage)
8ec98d6c 3693 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3694 r=`${PWD_COMMAND}`; export r; \
3695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3696 $(HOST_EXPORTS) \
d5eec917 3697 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3699 done; \
8ec98d6c 3700 echo "Doing install-info in ash" ; \
7fc2ca22 3701 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3704 "RANLIB=$${RANLIB}" \
bffcbe34 3705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3706 install-info) \
657b58f4
NN
3707 || exit 1
3708
a7e609d6 3709@endif ash
657b58f4 3710
d4954b6d
DD
3711.PHONY: maybe-install-pdf-ash install-pdf-ash
3712maybe-install-pdf-ash:
3713@if ash
3714maybe-install-pdf-ash: install-pdf-ash
3715
3716install-pdf-ash: \
3717 configure-ash \
3718 pdf-ash
3719 @: $(MAKE); $(unstage)
3720 @[ -f ./ash/Makefile ] || exit 0; \
3721 r=`${PWD_COMMAND}`; export r; \
3722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3723 $(HOST_EXPORTS) \
3724 for flag in $(EXTRA_HOST_FLAGS) ; do \
3725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3726 done; \
3727 echo "Doing install-pdf in ash" ; \
3728 (cd $(HOST_SUBDIR)/ash && \
3729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3731 "RANLIB=$${RANLIB}" \
bffcbe34 3732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
3733 install-pdf) \
3734 || exit 1
3735
3736@endif ash
3737
83c9add4
CD
3738.PHONY: maybe-install-html-ash install-html-ash
3739maybe-install-html-ash:
3740@if ash
3741maybe-install-html-ash: install-html-ash
3742
3743install-html-ash: \
3744 configure-ash \
3745 html-ash
3746 @: $(MAKE); $(unstage)
3747 @[ -f ./ash/Makefile ] || exit 0; \
3748 r=`${PWD_COMMAND}`; export r; \
3749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3750 $(HOST_EXPORTS) \
3751 for flag in $(EXTRA_HOST_FLAGS) ; do \
3752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3753 done; \
3754 echo "Doing install-html in ash" ; \
3755 (cd $(HOST_SUBDIR)/ash && \
3756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3758 "RANLIB=$${RANLIB}" \
bffcbe34 3759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
3760 install-html) \
3761 || exit 1
3762
3763@endif ash
3764
8ec98d6c
NN
3765.PHONY: maybe-installcheck-ash installcheck-ash
3766maybe-installcheck-ash:
a7e609d6
PB
3767@if ash
3768maybe-installcheck-ash: installcheck-ash
657b58f4 3769
8ec98d6c
NN
3770installcheck-ash: \
3771 configure-ash
15b527ca 3772 @: $(MAKE); $(unstage)
8ec98d6c 3773 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3774 r=`${PWD_COMMAND}`; export r; \
3775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3776 $(HOST_EXPORTS) \
d5eec917 3777 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3779 done; \
8ec98d6c 3780 echo "Doing installcheck in ash" ; \
7fc2ca22 3781 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3784 "RANLIB=$${RANLIB}" \
bffcbe34 3785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3786 installcheck) \
657b58f4
NN
3787 || exit 1
3788
a7e609d6 3789@endif ash
657b58f4 3790
8ec98d6c
NN
3791.PHONY: maybe-mostlyclean-ash mostlyclean-ash
3792maybe-mostlyclean-ash:
a7e609d6
PB
3793@if ash
3794maybe-mostlyclean-ash: mostlyclean-ash
657b58f4 3795
8ec98d6c 3796mostlyclean-ash:
15b527ca 3797 @: $(MAKE); $(unstage)
8ec98d6c 3798 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3799 r=`${PWD_COMMAND}`; export r; \
3800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3801 $(HOST_EXPORTS) \
d5eec917 3802 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 done; \
8ec98d6c 3805 echo "Doing mostlyclean in ash" ; \
7fc2ca22 3806 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3809 "RANLIB=$${RANLIB}" \
bffcbe34 3810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3811 mostlyclean) \
657b58f4
NN
3812 || exit 1
3813
a7e609d6 3814@endif ash
657b58f4 3815
8ec98d6c
NN
3816.PHONY: maybe-clean-ash clean-ash
3817maybe-clean-ash:
a7e609d6
PB
3818@if ash
3819maybe-clean-ash: clean-ash
657b58f4 3820
8ec98d6c 3821clean-ash:
15b527ca 3822 @: $(MAKE); $(unstage)
8ec98d6c 3823 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3824 r=`${PWD_COMMAND}`; export r; \
3825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3826 $(HOST_EXPORTS) \
d5eec917 3827 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3829 done; \
8ec98d6c 3830 echo "Doing clean in ash" ; \
7fc2ca22 3831 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3834 "RANLIB=$${RANLIB}" \
bffcbe34 3835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3836 clean) \
657b58f4
NN
3837 || exit 1
3838
a7e609d6 3839@endif ash
657b58f4 3840
8ec98d6c
NN
3841.PHONY: maybe-distclean-ash distclean-ash
3842maybe-distclean-ash:
a7e609d6
PB
3843@if ash
3844maybe-distclean-ash: distclean-ash
657b58f4 3845
8ec98d6c 3846distclean-ash:
15b527ca 3847 @: $(MAKE); $(unstage)
8ec98d6c 3848 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3849 r=`${PWD_COMMAND}`; export r; \
3850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3851 $(HOST_EXPORTS) \
d5eec917 3852 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3854 done; \
8ec98d6c 3855 echo "Doing distclean in ash" ; \
7fc2ca22 3856 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3859 "RANLIB=$${RANLIB}" \
bffcbe34 3860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3861 distclean) \
657b58f4
NN
3862 || exit 1
3863
a7e609d6 3864@endif ash
657b58f4 3865
8ec98d6c
NN
3866.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
3867maybe-maintainer-clean-ash:
a7e609d6
PB
3868@if ash
3869maybe-maintainer-clean-ash: maintainer-clean-ash
657b58f4 3870
8ec98d6c 3871maintainer-clean-ash:
15b527ca 3872 @: $(MAKE); $(unstage)
8ec98d6c 3873 @[ -f ./ash/Makefile ] || exit 0; \
5230d454
L
3874 r=`${PWD_COMMAND}`; export r; \
3875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3876 $(HOST_EXPORTS) \
d5eec917 3877 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3879 done; \
8ec98d6c 3880 echo "Doing maintainer-clean in ash" ; \
7fc2ca22 3881 (cd $(HOST_SUBDIR)/ash && \
657b58f4
NN
3882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3884 "RANLIB=$${RANLIB}" \
bffcbe34 3885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 3886 maintainer-clean) \
657b58f4
NN
3887 || exit 1
3888
a7e609d6 3889@endif ash
657b58f4 3890
657b58f4 3891
f0fdfd34 3892
8ec98d6c
NN
3893.PHONY: configure-autoconf maybe-configure-autoconf
3894maybe-configure-autoconf:
e1e5148c
CD
3895@if gcc-bootstrap
3896configure-autoconf: stage_current
3897@endif gcc-bootstrap
a7e609d6
PB
3898@if autoconf
3899maybe-configure-autoconf: configure-autoconf
ec92c4d6 3900configure-autoconf:
15b527ca 3901 @: $(MAKE); $(unstage)
ec92c4d6 3902 @r=`${PWD_COMMAND}`; export r; \
5230d454 3903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
3904 test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
3905 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
5074489a 3906 $(HOST_EXPORTS) \
f0fdfd34
PB
3907 echo Configuring in $(HOST_SUBDIR)/autoconf; \
3908 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
8ec98d6c 3909 case $(srcdir) in \
7fc2ca22
PB
3910 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3911 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
3912 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 3913 esac; \
7fc2ca22
PB
3914 srcdiroption="--srcdir=$${topdir}/autoconf"; \
3915 libsrcdir="$$s/autoconf"; \
8ec98d6c 3916 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
3917 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3918 --target=${target_alias} $${srcdiroption} \
657b58f4 3919 || exit 1
a7e609d6 3920@endif autoconf
657b58f4 3921
f0fdfd34
PB
3922
3923
a8a96878
PB
3924
3925
8ec98d6c
NN
3926.PHONY: all-autoconf maybe-all-autoconf
3927maybe-all-autoconf:
e1e5148c
CD
3928@if gcc-bootstrap
3929all-autoconf: stage_current
3930@endif gcc-bootstrap
a7e609d6 3931@if autoconf
5e6b1f07 3932TARGET-autoconf=all
a7e609d6 3933maybe-all-autoconf: all-autoconf
8ec98d6c 3934all-autoconf: configure-autoconf
15b527ca 3935 @: $(MAKE); $(unstage)
8ec98d6c
NN
3936 @r=`${PWD_COMMAND}`; export r; \
3937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 3938 $(HOST_EXPORTS) \
7fc2ca22 3939 (cd $(HOST_SUBDIR)/autoconf && \
6532abb6
PB
3940 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
3941 $(TARGET-autoconf))
a7e609d6 3942@endif autoconf
657b58f4 3943
f0fdfd34 3944
a8a96878
PB
3945
3946
8ec98d6c
NN
3947.PHONY: check-autoconf maybe-check-autoconf
3948maybe-check-autoconf:
a7e609d6
PB
3949@if autoconf
3950maybe-check-autoconf: check-autoconf
657b58f4 3951
8ec98d6c 3952check-autoconf:
15b527ca 3953 @: $(MAKE); $(unstage)
8ec98d6c 3954 @r=`${PWD_COMMAND}`; export r; \
5230d454 3955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3956 $(HOST_EXPORTS) \
7fc2ca22
PB
3957 (cd $(HOST_SUBDIR)/autoconf && \
3958 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 3959
a7e609d6 3960@endif autoconf
657b58f4 3961
8ec98d6c
NN
3962.PHONY: install-autoconf maybe-install-autoconf
3963maybe-install-autoconf:
a7e609d6
PB
3964@if autoconf
3965maybe-install-autoconf: install-autoconf
657b58f4 3966
8ec98d6c 3967install-autoconf: installdirs
15b527ca 3968 @: $(MAKE); $(unstage)
8ec98d6c 3969 @r=`${PWD_COMMAND}`; export r; \
5230d454 3970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3971 $(HOST_EXPORTS) \
7fc2ca22 3972 (cd $(HOST_SUBDIR)/autoconf && \
93c60b6d 3973 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 3974
a7e609d6 3975@endif autoconf
657b58f4 3976
39bbbb69 3977# Other targets (info, dvi, pdf, etc.)
657b58f4 3978
8ec98d6c
NN
3979.PHONY: maybe-info-autoconf info-autoconf
3980maybe-info-autoconf:
a7e609d6
PB
3981@if autoconf
3982maybe-info-autoconf: info-autoconf
8ec98d6c
NN
3983
3984info-autoconf: \
3985 configure-autoconf
15b527ca 3986 @: $(MAKE); $(unstage)
8ec98d6c 3987 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
3988 r=`${PWD_COMMAND}`; export r; \
3989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 3990 $(HOST_EXPORTS) \
d5eec917 3991 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
3992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3993 done; \
8ec98d6c 3994 echo "Doing info in autoconf" ; \
7fc2ca22 3995 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
3996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3998 "RANLIB=$${RANLIB}" \
bffcbe34 3999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4000 info) \
657b58f4
NN
4001 || exit 1
4002
a7e609d6 4003@endif autoconf
657b58f4 4004
8ec98d6c
NN
4005.PHONY: maybe-dvi-autoconf dvi-autoconf
4006maybe-dvi-autoconf:
a7e609d6
PB
4007@if autoconf
4008maybe-dvi-autoconf: dvi-autoconf
657b58f4 4009
8ec98d6c
NN
4010dvi-autoconf: \
4011 configure-autoconf
15b527ca 4012 @: $(MAKE); $(unstage)
8ec98d6c 4013 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4014 r=`${PWD_COMMAND}`; export r; \
4015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4016 $(HOST_EXPORTS) \
d5eec917 4017 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4019 done; \
8ec98d6c 4020 echo "Doing dvi in autoconf" ; \
7fc2ca22 4021 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4024 "RANLIB=$${RANLIB}" \
bffcbe34 4025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4026 dvi) \
657b58f4
NN
4027 || exit 1
4028
a7e609d6 4029@endif autoconf
657b58f4 4030
39bbbb69
DD
4031.PHONY: maybe-pdf-autoconf pdf-autoconf
4032maybe-pdf-autoconf:
4033@if autoconf
4034maybe-pdf-autoconf: pdf-autoconf
4035
4036pdf-autoconf: \
4037 configure-autoconf
4038 @: $(MAKE); $(unstage)
4039 @[ -f ./autoconf/Makefile ] || exit 0; \
4040 r=`${PWD_COMMAND}`; export r; \
4041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4042 $(HOST_EXPORTS) \
4043 for flag in $(EXTRA_HOST_FLAGS) ; do \
4044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4045 done; \
4046 echo "Doing pdf in autoconf" ; \
4047 (cd $(HOST_SUBDIR)/autoconf && \
4048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4050 "RANLIB=$${RANLIB}" \
bffcbe34 4051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
4052 pdf) \
4053 || exit 1
4054
4055@endif autoconf
4056
b6fb961f
MS
4057.PHONY: maybe-html-autoconf html-autoconf
4058maybe-html-autoconf:
4059@if autoconf
4060maybe-html-autoconf: html-autoconf
4061
4062html-autoconf: \
4063 configure-autoconf
15b527ca 4064 @: $(MAKE); $(unstage)
b6fb961f
MS
4065 @[ -f ./autoconf/Makefile ] || exit 0; \
4066 r=`${PWD_COMMAND}`; export r; \
4067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
4068 $(HOST_EXPORTS) \
4069 for flag in $(EXTRA_HOST_FLAGS) ; do \
4070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4071 done; \
4072 echo "Doing html in autoconf" ; \
7fc2ca22 4073 (cd $(HOST_SUBDIR)/autoconf && \
b6fb961f
MS
4074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4076 "RANLIB=$${RANLIB}" \
bffcbe34 4077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
4078 html) \
4079 || exit 1
4080
4081@endif autoconf
4082
8ec98d6c
NN
4083.PHONY: maybe-TAGS-autoconf TAGS-autoconf
4084maybe-TAGS-autoconf:
a7e609d6
PB
4085@if autoconf
4086maybe-TAGS-autoconf: TAGS-autoconf
657b58f4 4087
8ec98d6c
NN
4088TAGS-autoconf: \
4089 configure-autoconf
15b527ca 4090 @: $(MAKE); $(unstage)
8ec98d6c 4091 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4092 r=`${PWD_COMMAND}`; export r; \
4093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4094 $(HOST_EXPORTS) \
d5eec917 4095 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4097 done; \
8ec98d6c 4098 echo "Doing TAGS in autoconf" ; \
7fc2ca22 4099 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4102 "RANLIB=$${RANLIB}" \
bffcbe34 4103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4104 TAGS) \
657b58f4
NN
4105 || exit 1
4106
a7e609d6 4107@endif autoconf
657b58f4 4108
8ec98d6c
NN
4109.PHONY: maybe-install-info-autoconf install-info-autoconf
4110maybe-install-info-autoconf:
a7e609d6
PB
4111@if autoconf
4112maybe-install-info-autoconf: install-info-autoconf
657b58f4 4113
8ec98d6c
NN
4114install-info-autoconf: \
4115 configure-autoconf \
4116 info-autoconf
15b527ca 4117 @: $(MAKE); $(unstage)
8ec98d6c 4118 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4119 r=`${PWD_COMMAND}`; export r; \
4120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4121 $(HOST_EXPORTS) \
d5eec917 4122 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4124 done; \
8ec98d6c 4125 echo "Doing install-info in autoconf" ; \
7fc2ca22 4126 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4129 "RANLIB=$${RANLIB}" \
bffcbe34 4130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4131 install-info) \
657b58f4
NN
4132 || exit 1
4133
a7e609d6 4134@endif autoconf
657b58f4 4135
d4954b6d
DD
4136.PHONY: maybe-install-pdf-autoconf install-pdf-autoconf
4137maybe-install-pdf-autoconf:
4138@if autoconf
4139maybe-install-pdf-autoconf: install-pdf-autoconf
4140
4141install-pdf-autoconf: \
4142 configure-autoconf \
4143 pdf-autoconf
4144 @: $(MAKE); $(unstage)
4145 @[ -f ./autoconf/Makefile ] || exit 0; \
4146 r=`${PWD_COMMAND}`; export r; \
4147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4148 $(HOST_EXPORTS) \
4149 for flag in $(EXTRA_HOST_FLAGS) ; do \
4150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4151 done; \
4152 echo "Doing install-pdf in autoconf" ; \
4153 (cd $(HOST_SUBDIR)/autoconf && \
4154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4156 "RANLIB=$${RANLIB}" \
bffcbe34 4157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
4158 install-pdf) \
4159 || exit 1
4160
4161@endif autoconf
4162
83c9add4
CD
4163.PHONY: maybe-install-html-autoconf install-html-autoconf
4164maybe-install-html-autoconf:
4165@if autoconf
4166maybe-install-html-autoconf: install-html-autoconf
4167
4168install-html-autoconf: \
4169 configure-autoconf \
4170 html-autoconf
4171 @: $(MAKE); $(unstage)
4172 @[ -f ./autoconf/Makefile ] || exit 0; \
4173 r=`${PWD_COMMAND}`; export r; \
4174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4175 $(HOST_EXPORTS) \
4176 for flag in $(EXTRA_HOST_FLAGS) ; do \
4177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4178 done; \
4179 echo "Doing install-html in autoconf" ; \
4180 (cd $(HOST_SUBDIR)/autoconf && \
4181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4183 "RANLIB=$${RANLIB}" \
bffcbe34 4184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
4185 install-html) \
4186 || exit 1
4187
4188@endif autoconf
4189
8ec98d6c
NN
4190.PHONY: maybe-installcheck-autoconf installcheck-autoconf
4191maybe-installcheck-autoconf:
a7e609d6
PB
4192@if autoconf
4193maybe-installcheck-autoconf: installcheck-autoconf
657b58f4 4194
8ec98d6c
NN
4195installcheck-autoconf: \
4196 configure-autoconf
15b527ca 4197 @: $(MAKE); $(unstage)
8ec98d6c 4198 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4199 r=`${PWD_COMMAND}`; export r; \
4200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4201 $(HOST_EXPORTS) \
d5eec917 4202 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4204 done; \
8ec98d6c 4205 echo "Doing installcheck in autoconf" ; \
7fc2ca22 4206 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4209 "RANLIB=$${RANLIB}" \
bffcbe34 4210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4211 installcheck) \
657b58f4
NN
4212 || exit 1
4213
a7e609d6 4214@endif autoconf
657b58f4 4215
8ec98d6c
NN
4216.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
4217maybe-mostlyclean-autoconf:
a7e609d6
PB
4218@if autoconf
4219maybe-mostlyclean-autoconf: mostlyclean-autoconf
657b58f4 4220
8ec98d6c 4221mostlyclean-autoconf:
15b527ca 4222 @: $(MAKE); $(unstage)
8ec98d6c 4223 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4224 r=`${PWD_COMMAND}`; export r; \
4225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4226 $(HOST_EXPORTS) \
d5eec917 4227 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4229 done; \
8ec98d6c 4230 echo "Doing mostlyclean in autoconf" ; \
7fc2ca22 4231 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4234 "RANLIB=$${RANLIB}" \
bffcbe34 4235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4236 mostlyclean) \
657b58f4
NN
4237 || exit 1
4238
a7e609d6 4239@endif autoconf
657b58f4 4240
8ec98d6c
NN
4241.PHONY: maybe-clean-autoconf clean-autoconf
4242maybe-clean-autoconf:
a7e609d6
PB
4243@if autoconf
4244maybe-clean-autoconf: clean-autoconf
657b58f4 4245
8ec98d6c 4246clean-autoconf:
15b527ca 4247 @: $(MAKE); $(unstage)
8ec98d6c 4248 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4249 r=`${PWD_COMMAND}`; export r; \
4250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4251 $(HOST_EXPORTS) \
d5eec917 4252 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4254 done; \
8ec98d6c 4255 echo "Doing clean in autoconf" ; \
7fc2ca22 4256 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4259 "RANLIB=$${RANLIB}" \
bffcbe34 4260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4261 clean) \
657b58f4
NN
4262 || exit 1
4263
a7e609d6 4264@endif autoconf
657b58f4 4265
8ec98d6c
NN
4266.PHONY: maybe-distclean-autoconf distclean-autoconf
4267maybe-distclean-autoconf:
a7e609d6
PB
4268@if autoconf
4269maybe-distclean-autoconf: distclean-autoconf
657b58f4 4270
8ec98d6c 4271distclean-autoconf:
15b527ca 4272 @: $(MAKE); $(unstage)
8ec98d6c 4273 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4274 r=`${PWD_COMMAND}`; export r; \
4275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4276 $(HOST_EXPORTS) \
d5eec917 4277 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4279 done; \
8ec98d6c 4280 echo "Doing distclean in autoconf" ; \
7fc2ca22 4281 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4284 "RANLIB=$${RANLIB}" \
bffcbe34 4285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4286 distclean) \
657b58f4
NN
4287 || exit 1
4288
a7e609d6 4289@endif autoconf
657b58f4 4290
8ec98d6c
NN
4291.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
4292maybe-maintainer-clean-autoconf:
a7e609d6
PB
4293@if autoconf
4294maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
657b58f4 4295
8ec98d6c 4296maintainer-clean-autoconf:
15b527ca 4297 @: $(MAKE); $(unstage)
8ec98d6c 4298 @[ -f ./autoconf/Makefile ] || exit 0; \
5230d454
L
4299 r=`${PWD_COMMAND}`; export r; \
4300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4301 $(HOST_EXPORTS) \
d5eec917 4302 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4304 done; \
8ec98d6c 4305 echo "Doing maintainer-clean in autoconf" ; \
7fc2ca22 4306 (cd $(HOST_SUBDIR)/autoconf && \
657b58f4
NN
4307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4309 "RANLIB=$${RANLIB}" \
bffcbe34 4310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4311 maintainer-clean) \
657b58f4
NN
4312 || exit 1
4313
a7e609d6 4314@endif autoconf
657b58f4 4315
657b58f4 4316
f0fdfd34 4317
8ec98d6c
NN
4318.PHONY: configure-automake maybe-configure-automake
4319maybe-configure-automake:
e1e5148c
CD
4320@if gcc-bootstrap
4321configure-automake: stage_current
4322@endif gcc-bootstrap
a7e609d6
PB
4323@if automake
4324maybe-configure-automake: configure-automake
ec92c4d6 4325configure-automake:
15b527ca 4326 @: $(MAKE); $(unstage)
ec92c4d6 4327 @r=`${PWD_COMMAND}`; export r; \
5230d454 4328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
4329 test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
4330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
5074489a 4331 $(HOST_EXPORTS) \
f0fdfd34
PB
4332 echo Configuring in $(HOST_SUBDIR)/automake; \
4333 cd "$(HOST_SUBDIR)/automake" || exit 1; \
8ec98d6c 4334 case $(srcdir) in \
7fc2ca22
PB
4335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4336 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
4337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4338 esac; \
7fc2ca22
PB
4339 srcdiroption="--srcdir=$${topdir}/automake"; \
4340 libsrcdir="$$s/automake"; \
8ec98d6c 4341 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4342 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4343 --target=${target_alias} $${srcdiroption} \
657b58f4 4344 || exit 1
a7e609d6 4345@endif automake
657b58f4 4346
f0fdfd34
PB
4347
4348
a8a96878
PB
4349
4350
8ec98d6c
NN
4351.PHONY: all-automake maybe-all-automake
4352maybe-all-automake:
e1e5148c
CD
4353@if gcc-bootstrap
4354all-automake: stage_current
4355@endif gcc-bootstrap
a7e609d6 4356@if automake
5e6b1f07 4357TARGET-automake=all
a7e609d6 4358maybe-all-automake: all-automake
8ec98d6c 4359all-automake: configure-automake
15b527ca 4360 @: $(MAKE); $(unstage)
8ec98d6c
NN
4361 @r=`${PWD_COMMAND}`; export r; \
4362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 4363 $(HOST_EXPORTS) \
7fc2ca22 4364 (cd $(HOST_SUBDIR)/automake && \
6532abb6
PB
4365 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
4366 $(TARGET-automake))
a7e609d6 4367@endif automake
657b58f4 4368
f0fdfd34 4369
a8a96878
PB
4370
4371
8ec98d6c
NN
4372.PHONY: check-automake maybe-check-automake
4373maybe-check-automake:
a7e609d6
PB
4374@if automake
4375maybe-check-automake: check-automake
657b58f4 4376
8ec98d6c 4377check-automake:
15b527ca 4378 @: $(MAKE); $(unstage)
8ec98d6c 4379 @r=`${PWD_COMMAND}`; export r; \
5230d454 4380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4381 $(HOST_EXPORTS) \
7fc2ca22
PB
4382 (cd $(HOST_SUBDIR)/automake && \
4383 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 4384
a7e609d6 4385@endif automake
8ec98d6c
NN
4386
4387.PHONY: install-automake maybe-install-automake
4388maybe-install-automake:
a7e609d6
PB
4389@if automake
4390maybe-install-automake: install-automake
657b58f4 4391
8ec98d6c 4392install-automake: installdirs
15b527ca 4393 @: $(MAKE); $(unstage)
8ec98d6c
NN
4394 @r=`${PWD_COMMAND}`; export r; \
4395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4396 $(HOST_EXPORTS) \
7fc2ca22 4397 (cd $(HOST_SUBDIR)/automake && \
93c60b6d 4398 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4399
a7e609d6 4400@endif automake
657b58f4 4401
39bbbb69 4402# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
4403
4404.PHONY: maybe-info-automake info-automake
4405maybe-info-automake:
a7e609d6
PB
4406@if automake
4407maybe-info-automake: info-automake
8ec98d6c
NN
4408
4409info-automake: \
4410 configure-automake
15b527ca 4411 @: $(MAKE); $(unstage)
8ec98d6c 4412 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4413 r=`${PWD_COMMAND}`; export r; \
4414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4415 $(HOST_EXPORTS) \
d5eec917 4416 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4418 done; \
8ec98d6c 4419 echo "Doing info in automake" ; \
7fc2ca22 4420 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4423 "RANLIB=$${RANLIB}" \
bffcbe34 4424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4425 info) \
657b58f4
NN
4426 || exit 1
4427
a7e609d6 4428@endif automake
657b58f4 4429
8ec98d6c
NN
4430.PHONY: maybe-dvi-automake dvi-automake
4431maybe-dvi-automake:
a7e609d6
PB
4432@if automake
4433maybe-dvi-automake: dvi-automake
657b58f4 4434
8ec98d6c
NN
4435dvi-automake: \
4436 configure-automake
15b527ca 4437 @: $(MAKE); $(unstage)
8ec98d6c 4438 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4439 r=`${PWD_COMMAND}`; export r; \
4440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4441 $(HOST_EXPORTS) \
d5eec917 4442 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4444 done; \
8ec98d6c 4445 echo "Doing dvi in automake" ; \
7fc2ca22 4446 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4449 "RANLIB=$${RANLIB}" \
bffcbe34 4450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4451 dvi) \
657b58f4
NN
4452 || exit 1
4453
a7e609d6 4454@endif automake
657b58f4 4455
39bbbb69
DD
4456.PHONY: maybe-pdf-automake pdf-automake
4457maybe-pdf-automake:
4458@if automake
4459maybe-pdf-automake: pdf-automake
4460
4461pdf-automake: \
4462 configure-automake
4463 @: $(MAKE); $(unstage)
4464 @[ -f ./automake/Makefile ] || exit 0; \
4465 r=`${PWD_COMMAND}`; export r; \
4466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4467 $(HOST_EXPORTS) \
4468 for flag in $(EXTRA_HOST_FLAGS) ; do \
4469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4470 done; \
4471 echo "Doing pdf in automake" ; \
4472 (cd $(HOST_SUBDIR)/automake && \
4473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4475 "RANLIB=$${RANLIB}" \
bffcbe34 4476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
4477 pdf) \
4478 || exit 1
4479
4480@endif automake
4481
b6fb961f
MS
4482.PHONY: maybe-html-automake html-automake
4483maybe-html-automake:
4484@if automake
4485maybe-html-automake: html-automake
4486
4487html-automake: \
4488 configure-automake
15b527ca 4489 @: $(MAKE); $(unstage)
b6fb961f
MS
4490 @[ -f ./automake/Makefile ] || exit 0; \
4491 r=`${PWD_COMMAND}`; export r; \
4492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
4493 $(HOST_EXPORTS) \
4494 for flag in $(EXTRA_HOST_FLAGS) ; do \
4495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4496 done; \
4497 echo "Doing html in automake" ; \
7fc2ca22 4498 (cd $(HOST_SUBDIR)/automake && \
b6fb961f
MS
4499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4501 "RANLIB=$${RANLIB}" \
bffcbe34 4502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
4503 html) \
4504 || exit 1
4505
4506@endif automake
4507
8ec98d6c
NN
4508.PHONY: maybe-TAGS-automake TAGS-automake
4509maybe-TAGS-automake:
a7e609d6
PB
4510@if automake
4511maybe-TAGS-automake: TAGS-automake
657b58f4 4512
8ec98d6c
NN
4513TAGS-automake: \
4514 configure-automake
15b527ca 4515 @: $(MAKE); $(unstage)
8ec98d6c 4516 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4517 r=`${PWD_COMMAND}`; export r; \
4518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4519 $(HOST_EXPORTS) \
d5eec917 4520 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4522 done; \
8ec98d6c 4523 echo "Doing TAGS in automake" ; \
7fc2ca22 4524 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4527 "RANLIB=$${RANLIB}" \
bffcbe34 4528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4529 TAGS) \
657b58f4
NN
4530 || exit 1
4531
a7e609d6 4532@endif automake
657b58f4 4533
8ec98d6c
NN
4534.PHONY: maybe-install-info-automake install-info-automake
4535maybe-install-info-automake:
a7e609d6
PB
4536@if automake
4537maybe-install-info-automake: install-info-automake
657b58f4 4538
8ec98d6c
NN
4539install-info-automake: \
4540 configure-automake \
4541 info-automake
15b527ca 4542 @: $(MAKE); $(unstage)
8ec98d6c 4543 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4544 r=`${PWD_COMMAND}`; export r; \
4545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4546 $(HOST_EXPORTS) \
d5eec917 4547 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4549 done; \
8ec98d6c 4550 echo "Doing install-info in automake" ; \
7fc2ca22 4551 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4554 "RANLIB=$${RANLIB}" \
bffcbe34 4555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4556 install-info) \
657b58f4
NN
4557 || exit 1
4558
a7e609d6 4559@endif automake
657b58f4 4560
d4954b6d
DD
4561.PHONY: maybe-install-pdf-automake install-pdf-automake
4562maybe-install-pdf-automake:
4563@if automake
4564maybe-install-pdf-automake: install-pdf-automake
4565
4566install-pdf-automake: \
4567 configure-automake \
4568 pdf-automake
4569 @: $(MAKE); $(unstage)
4570 @[ -f ./automake/Makefile ] || exit 0; \
4571 r=`${PWD_COMMAND}`; export r; \
4572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4573 $(HOST_EXPORTS) \
4574 for flag in $(EXTRA_HOST_FLAGS) ; do \
4575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4576 done; \
4577 echo "Doing install-pdf in automake" ; \
4578 (cd $(HOST_SUBDIR)/automake && \
4579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4581 "RANLIB=$${RANLIB}" \
bffcbe34 4582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
4583 install-pdf) \
4584 || exit 1
4585
4586@endif automake
4587
83c9add4
CD
4588.PHONY: maybe-install-html-automake install-html-automake
4589maybe-install-html-automake:
4590@if automake
4591maybe-install-html-automake: install-html-automake
4592
4593install-html-automake: \
4594 configure-automake \
4595 html-automake
4596 @: $(MAKE); $(unstage)
4597 @[ -f ./automake/Makefile ] || exit 0; \
4598 r=`${PWD_COMMAND}`; export r; \
4599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4600 $(HOST_EXPORTS) \
4601 for flag in $(EXTRA_HOST_FLAGS) ; do \
4602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4603 done; \
4604 echo "Doing install-html in automake" ; \
4605 (cd $(HOST_SUBDIR)/automake && \
4606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4608 "RANLIB=$${RANLIB}" \
bffcbe34 4609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
4610 install-html) \
4611 || exit 1
4612
4613@endif automake
4614
8ec98d6c
NN
4615.PHONY: maybe-installcheck-automake installcheck-automake
4616maybe-installcheck-automake:
a7e609d6
PB
4617@if automake
4618maybe-installcheck-automake: installcheck-automake
657b58f4 4619
8ec98d6c
NN
4620installcheck-automake: \
4621 configure-automake
15b527ca 4622 @: $(MAKE); $(unstage)
8ec98d6c 4623 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4624 r=`${PWD_COMMAND}`; export r; \
4625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4626 $(HOST_EXPORTS) \
d5eec917 4627 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4629 done; \
8ec98d6c 4630 echo "Doing installcheck in automake" ; \
7fc2ca22 4631 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4634 "RANLIB=$${RANLIB}" \
bffcbe34 4635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4636 installcheck) \
657b58f4
NN
4637 || exit 1
4638
a7e609d6 4639@endif automake
657b58f4 4640
8ec98d6c
NN
4641.PHONY: maybe-mostlyclean-automake mostlyclean-automake
4642maybe-mostlyclean-automake:
a7e609d6
PB
4643@if automake
4644maybe-mostlyclean-automake: mostlyclean-automake
657b58f4 4645
8ec98d6c 4646mostlyclean-automake:
15b527ca 4647 @: $(MAKE); $(unstage)
8ec98d6c 4648 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4649 r=`${PWD_COMMAND}`; export r; \
4650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4651 $(HOST_EXPORTS) \
d5eec917 4652 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4654 done; \
8ec98d6c 4655 echo "Doing mostlyclean in automake" ; \
7fc2ca22 4656 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4659 "RANLIB=$${RANLIB}" \
bffcbe34 4660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4661 mostlyclean) \
657b58f4
NN
4662 || exit 1
4663
a7e609d6 4664@endif automake
657b58f4 4665
8ec98d6c
NN
4666.PHONY: maybe-clean-automake clean-automake
4667maybe-clean-automake:
a7e609d6
PB
4668@if automake
4669maybe-clean-automake: clean-automake
657b58f4 4670
8ec98d6c 4671clean-automake:
15b527ca 4672 @: $(MAKE); $(unstage)
8ec98d6c 4673 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4674 r=`${PWD_COMMAND}`; export r; \
4675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4676 $(HOST_EXPORTS) \
d5eec917 4677 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4679 done; \
8ec98d6c 4680 echo "Doing clean in automake" ; \
7fc2ca22 4681 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4684 "RANLIB=$${RANLIB}" \
bffcbe34 4685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4686 clean) \
657b58f4
NN
4687 || exit 1
4688
a7e609d6 4689@endif automake
657b58f4 4690
8ec98d6c
NN
4691.PHONY: maybe-distclean-automake distclean-automake
4692maybe-distclean-automake:
a7e609d6
PB
4693@if automake
4694maybe-distclean-automake: distclean-automake
657b58f4 4695
8ec98d6c 4696distclean-automake:
15b527ca 4697 @: $(MAKE); $(unstage)
8ec98d6c 4698 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4699 r=`${PWD_COMMAND}`; export r; \
4700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4701 $(HOST_EXPORTS) \
d5eec917 4702 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4704 done; \
8ec98d6c 4705 echo "Doing distclean in automake" ; \
7fc2ca22 4706 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4709 "RANLIB=$${RANLIB}" \
bffcbe34 4710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4711 distclean) \
657b58f4
NN
4712 || exit 1
4713
a7e609d6 4714@endif automake
657b58f4 4715
8ec98d6c
NN
4716.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
4717maybe-maintainer-clean-automake:
a7e609d6
PB
4718@if automake
4719maybe-maintainer-clean-automake: maintainer-clean-automake
657b58f4 4720
8ec98d6c 4721maintainer-clean-automake:
15b527ca 4722 @: $(MAKE); $(unstage)
8ec98d6c 4723 @[ -f ./automake/Makefile ] || exit 0; \
5230d454
L
4724 r=`${PWD_COMMAND}`; export r; \
4725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4726 $(HOST_EXPORTS) \
d5eec917 4727 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4729 done; \
8ec98d6c 4730 echo "Doing maintainer-clean in automake" ; \
7fc2ca22 4731 (cd $(HOST_SUBDIR)/automake && \
657b58f4
NN
4732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4734 "RANLIB=$${RANLIB}" \
bffcbe34 4735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4736 maintainer-clean) \
657b58f4
NN
4737 || exit 1
4738
a7e609d6 4739@endif automake
657b58f4 4740
657b58f4 4741
f0fdfd34 4742
8ec98d6c
NN
4743.PHONY: configure-bash maybe-configure-bash
4744maybe-configure-bash:
e1e5148c
CD
4745@if gcc-bootstrap
4746configure-bash: stage_current
4747@endif gcc-bootstrap
a7e609d6
PB
4748@if bash
4749maybe-configure-bash: configure-bash
ec92c4d6 4750configure-bash:
15b527ca 4751 @: $(MAKE); $(unstage)
ec92c4d6 4752 @r=`${PWD_COMMAND}`; export r; \
5230d454 4753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
4754 test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
4755 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
5074489a 4756 $(HOST_EXPORTS) \
f0fdfd34
PB
4757 echo Configuring in $(HOST_SUBDIR)/bash; \
4758 cd "$(HOST_SUBDIR)/bash" || exit 1; \
8ec98d6c 4759 case $(srcdir) in \
7fc2ca22
PB
4760 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4761 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
4762 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 4763 esac; \
7fc2ca22
PB
4764 srcdiroption="--srcdir=$${topdir}/bash"; \
4765 libsrcdir="$$s/bash"; \
8ec98d6c 4766 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
4767 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4768 --target=${target_alias} $${srcdiroption} \
657b58f4 4769 || exit 1
a7e609d6 4770@endif bash
657b58f4 4771
f0fdfd34
PB
4772
4773
a8a96878
PB
4774
4775
8ec98d6c
NN
4776.PHONY: all-bash maybe-all-bash
4777maybe-all-bash:
e1e5148c
CD
4778@if gcc-bootstrap
4779all-bash: stage_current
4780@endif gcc-bootstrap
a7e609d6 4781@if bash
5e6b1f07 4782TARGET-bash=all
a7e609d6 4783maybe-all-bash: all-bash
8ec98d6c 4784all-bash: configure-bash
15b527ca 4785 @: $(MAKE); $(unstage)
8ec98d6c
NN
4786 @r=`${PWD_COMMAND}`; export r; \
4787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 4788 $(HOST_EXPORTS) \
7fc2ca22 4789 (cd $(HOST_SUBDIR)/bash && \
6532abb6
PB
4790 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
4791 $(TARGET-bash))
a7e609d6 4792@endif bash
657b58f4 4793
f0fdfd34 4794
a8a96878
PB
4795
4796
8ec98d6c
NN
4797.PHONY: check-bash maybe-check-bash
4798maybe-check-bash:
a7e609d6
PB
4799@if bash
4800maybe-check-bash: check-bash
657b58f4 4801
8ec98d6c 4802check-bash:
15b527ca 4803 @: $(MAKE); $(unstage)
8ec98d6c 4804 @r=`${PWD_COMMAND}`; export r; \
5230d454 4805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4806 $(HOST_EXPORTS) \
7fc2ca22
PB
4807 (cd $(HOST_SUBDIR)/bash && \
4808 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 4809
a7e609d6 4810@endif bash
657b58f4 4811
8ec98d6c
NN
4812.PHONY: install-bash maybe-install-bash
4813maybe-install-bash:
a7e609d6
PB
4814@if bash
4815maybe-install-bash: install-bash
657b58f4 4816
8ec98d6c 4817install-bash: installdirs
15b527ca 4818 @: $(MAKE); $(unstage)
8ec98d6c 4819 @r=`${PWD_COMMAND}`; export r; \
5230d454 4820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4821 $(HOST_EXPORTS) \
7fc2ca22 4822 (cd $(HOST_SUBDIR)/bash && \
93c60b6d 4823 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 4824
a7e609d6 4825@endif bash
657b58f4 4826
39bbbb69 4827# Other targets (info, dvi, pdf, etc.)
657b58f4 4828
8ec98d6c
NN
4829.PHONY: maybe-info-bash info-bash
4830maybe-info-bash:
a7e609d6
PB
4831@if bash
4832maybe-info-bash: info-bash
8ec98d6c
NN
4833
4834info-bash: \
4835 configure-bash
15b527ca 4836 @: $(MAKE); $(unstage)
8ec98d6c 4837 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4838 r=`${PWD_COMMAND}`; export r; \
4839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4840 $(HOST_EXPORTS) \
d5eec917 4841 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4843 done; \
8ec98d6c 4844 echo "Doing info in bash" ; \
7fc2ca22 4845 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4848 "RANLIB=$${RANLIB}" \
bffcbe34 4849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4850 info) \
657b58f4
NN
4851 || exit 1
4852
a7e609d6 4853@endif bash
657b58f4 4854
8ec98d6c
NN
4855.PHONY: maybe-dvi-bash dvi-bash
4856maybe-dvi-bash:
a7e609d6
PB
4857@if bash
4858maybe-dvi-bash: dvi-bash
657b58f4 4859
8ec98d6c
NN
4860dvi-bash: \
4861 configure-bash
15b527ca 4862 @: $(MAKE); $(unstage)
8ec98d6c 4863 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4864 r=`${PWD_COMMAND}`; export r; \
4865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4866 $(HOST_EXPORTS) \
d5eec917 4867 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4869 done; \
8ec98d6c 4870 echo "Doing dvi in bash" ; \
7fc2ca22 4871 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4874 "RANLIB=$${RANLIB}" \
bffcbe34 4875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4876 dvi) \
657b58f4
NN
4877 || exit 1
4878
a7e609d6 4879@endif bash
657b58f4 4880
39bbbb69
DD
4881.PHONY: maybe-pdf-bash pdf-bash
4882maybe-pdf-bash:
4883@if bash
4884maybe-pdf-bash: pdf-bash
4885
4886pdf-bash: \
4887 configure-bash
4888 @: $(MAKE); $(unstage)
4889 @[ -f ./bash/Makefile ] || exit 0; \
4890 r=`${PWD_COMMAND}`; export r; \
4891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4892 $(HOST_EXPORTS) \
4893 for flag in $(EXTRA_HOST_FLAGS) ; do \
4894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4895 done; \
4896 echo "Doing pdf in bash" ; \
4897 (cd $(HOST_SUBDIR)/bash && \
4898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4900 "RANLIB=$${RANLIB}" \
bffcbe34 4901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
4902 pdf) \
4903 || exit 1
4904
4905@endif bash
4906
b6fb961f
MS
4907.PHONY: maybe-html-bash html-bash
4908maybe-html-bash:
4909@if bash
4910maybe-html-bash: html-bash
4911
4912html-bash: \
4913 configure-bash
15b527ca 4914 @: $(MAKE); $(unstage)
b6fb961f
MS
4915 @[ -f ./bash/Makefile ] || exit 0; \
4916 r=`${PWD_COMMAND}`; export r; \
4917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
4918 $(HOST_EXPORTS) \
4919 for flag in $(EXTRA_HOST_FLAGS) ; do \
4920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4921 done; \
4922 echo "Doing html in bash" ; \
7fc2ca22 4923 (cd $(HOST_SUBDIR)/bash && \
b6fb961f
MS
4924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4926 "RANLIB=$${RANLIB}" \
bffcbe34 4927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
4928 html) \
4929 || exit 1
4930
4931@endif bash
4932
8ec98d6c
NN
4933.PHONY: maybe-TAGS-bash TAGS-bash
4934maybe-TAGS-bash:
a7e609d6
PB
4935@if bash
4936maybe-TAGS-bash: TAGS-bash
657b58f4 4937
8ec98d6c
NN
4938TAGS-bash: \
4939 configure-bash
15b527ca 4940 @: $(MAKE); $(unstage)
8ec98d6c 4941 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4942 r=`${PWD_COMMAND}`; export r; \
4943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4944 $(HOST_EXPORTS) \
d5eec917 4945 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4947 done; \
8ec98d6c 4948 echo "Doing TAGS in bash" ; \
7fc2ca22 4949 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4952 "RANLIB=$${RANLIB}" \
bffcbe34 4953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4954 TAGS) \
657b58f4
NN
4955 || exit 1
4956
a7e609d6 4957@endif bash
657b58f4 4958
8ec98d6c
NN
4959.PHONY: maybe-install-info-bash install-info-bash
4960maybe-install-info-bash:
a7e609d6
PB
4961@if bash
4962maybe-install-info-bash: install-info-bash
657b58f4 4963
8ec98d6c
NN
4964install-info-bash: \
4965 configure-bash \
4966 info-bash
15b527ca 4967 @: $(MAKE); $(unstage)
8ec98d6c 4968 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
4969 r=`${PWD_COMMAND}`; export r; \
4970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 4971 $(HOST_EXPORTS) \
d5eec917 4972 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
4973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4974 done; \
8ec98d6c 4975 echo "Doing install-info in bash" ; \
7fc2ca22 4976 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
4977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4979 "RANLIB=$${RANLIB}" \
bffcbe34 4980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 4981 install-info) \
657b58f4
NN
4982 || exit 1
4983
a7e609d6 4984@endif bash
657b58f4 4985
d4954b6d
DD
4986.PHONY: maybe-install-pdf-bash install-pdf-bash
4987maybe-install-pdf-bash:
4988@if bash
4989maybe-install-pdf-bash: install-pdf-bash
4990
4991install-pdf-bash: \
4992 configure-bash \
4993 pdf-bash
4994 @: $(MAKE); $(unstage)
4995 @[ -f ./bash/Makefile ] || exit 0; \
4996 r=`${PWD_COMMAND}`; export r; \
4997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4998 $(HOST_EXPORTS) \
4999 for flag in $(EXTRA_HOST_FLAGS) ; do \
5000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5001 done; \
5002 echo "Doing install-pdf in bash" ; \
5003 (cd $(HOST_SUBDIR)/bash && \
5004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5006 "RANLIB=$${RANLIB}" \
bffcbe34 5007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
5008 install-pdf) \
5009 || exit 1
5010
5011@endif bash
5012
83c9add4
CD
5013.PHONY: maybe-install-html-bash install-html-bash
5014maybe-install-html-bash:
5015@if bash
5016maybe-install-html-bash: install-html-bash
5017
5018install-html-bash: \
5019 configure-bash \
5020 html-bash
5021 @: $(MAKE); $(unstage)
5022 @[ -f ./bash/Makefile ] || exit 0; \
5023 r=`${PWD_COMMAND}`; export r; \
5024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5025 $(HOST_EXPORTS) \
5026 for flag in $(EXTRA_HOST_FLAGS) ; do \
5027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5028 done; \
5029 echo "Doing install-html in bash" ; \
5030 (cd $(HOST_SUBDIR)/bash && \
5031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5033 "RANLIB=$${RANLIB}" \
bffcbe34 5034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
5035 install-html) \
5036 || exit 1
5037
5038@endif bash
5039
8ec98d6c
NN
5040.PHONY: maybe-installcheck-bash installcheck-bash
5041maybe-installcheck-bash:
a7e609d6
PB
5042@if bash
5043maybe-installcheck-bash: installcheck-bash
657b58f4 5044
8ec98d6c
NN
5045installcheck-bash: \
5046 configure-bash
15b527ca 5047 @: $(MAKE); $(unstage)
8ec98d6c 5048 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
5049 r=`${PWD_COMMAND}`; export r; \
5050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5051 $(HOST_EXPORTS) \
d5eec917 5052 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5054 done; \
8ec98d6c 5055 echo "Doing installcheck in bash" ; \
7fc2ca22 5056 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
5057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5059 "RANLIB=$${RANLIB}" \
bffcbe34 5060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5061 installcheck) \
657b58f4
NN
5062 || exit 1
5063
a7e609d6 5064@endif bash
657b58f4 5065
8ec98d6c
NN
5066.PHONY: maybe-mostlyclean-bash mostlyclean-bash
5067maybe-mostlyclean-bash:
a7e609d6
PB
5068@if bash
5069maybe-mostlyclean-bash: mostlyclean-bash
657b58f4 5070
8ec98d6c 5071mostlyclean-bash:
15b527ca 5072 @: $(MAKE); $(unstage)
8ec98d6c 5073 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
5074 r=`${PWD_COMMAND}`; export r; \
5075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5076 $(HOST_EXPORTS) \
d5eec917 5077 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5079 done; \
8ec98d6c 5080 echo "Doing mostlyclean in bash" ; \
7fc2ca22 5081 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
5082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5084 "RANLIB=$${RANLIB}" \
bffcbe34 5085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5086 mostlyclean) \
657b58f4
NN
5087 || exit 1
5088
a7e609d6 5089@endif bash
657b58f4 5090
8ec98d6c
NN
5091.PHONY: maybe-clean-bash clean-bash
5092maybe-clean-bash:
a7e609d6
PB
5093@if bash
5094maybe-clean-bash: clean-bash
657b58f4 5095
8ec98d6c 5096clean-bash:
15b527ca 5097 @: $(MAKE); $(unstage)
8ec98d6c 5098 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
5099 r=`${PWD_COMMAND}`; export r; \
5100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5101 $(HOST_EXPORTS) \
d5eec917 5102 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5104 done; \
8ec98d6c 5105 echo "Doing clean in bash" ; \
7fc2ca22 5106 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
5107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5109 "RANLIB=$${RANLIB}" \
bffcbe34 5110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5111 clean) \
657b58f4
NN
5112 || exit 1
5113
a7e609d6 5114@endif bash
657b58f4 5115
8ec98d6c
NN
5116.PHONY: maybe-distclean-bash distclean-bash
5117maybe-distclean-bash:
a7e609d6
PB
5118@if bash
5119maybe-distclean-bash: distclean-bash
657b58f4 5120
8ec98d6c 5121distclean-bash:
15b527ca 5122 @: $(MAKE); $(unstage)
8ec98d6c 5123 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
5124 r=`${PWD_COMMAND}`; export r; \
5125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5126 $(HOST_EXPORTS) \
d5eec917 5127 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5129 done; \
8ec98d6c 5130 echo "Doing distclean in bash" ; \
7fc2ca22 5131 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
5132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5134 "RANLIB=$${RANLIB}" \
bffcbe34 5135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5136 distclean) \
657b58f4
NN
5137 || exit 1
5138
a7e609d6 5139@endif bash
657b58f4 5140
8ec98d6c
NN
5141.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
5142maybe-maintainer-clean-bash:
a7e609d6
PB
5143@if bash
5144maybe-maintainer-clean-bash: maintainer-clean-bash
657b58f4 5145
8ec98d6c 5146maintainer-clean-bash:
15b527ca 5147 @: $(MAKE); $(unstage)
8ec98d6c 5148 @[ -f ./bash/Makefile ] || exit 0; \
5230d454
L
5149 r=`${PWD_COMMAND}`; export r; \
5150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5151 $(HOST_EXPORTS) \
d5eec917 5152 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5154 done; \
8ec98d6c 5155 echo "Doing maintainer-clean in bash" ; \
7fc2ca22 5156 (cd $(HOST_SUBDIR)/bash && \
657b58f4
NN
5157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5159 "RANLIB=$${RANLIB}" \
bffcbe34 5160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5161 maintainer-clean) \
657b58f4
NN
5162 || exit 1
5163
a7e609d6 5164@endif bash
657b58f4 5165
657b58f4 5166
f0fdfd34 5167
8ec98d6c
NN
5168.PHONY: configure-bfd maybe-configure-bfd
5169maybe-configure-bfd:
e1e5148c
CD
5170@if gcc-bootstrap
5171configure-bfd: stage_current
5172@endif gcc-bootstrap
a7e609d6
PB
5173@if bfd
5174maybe-configure-bfd: configure-bfd
ec92c4d6 5175configure-bfd:
ec92c4d6
PB
5176 @r=`${PWD_COMMAND}`; export r; \
5177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
5178 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
5179 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
5074489a 5180 $(HOST_EXPORTS) \
f0fdfd34
PB
5181 echo Configuring in $(HOST_SUBDIR)/bfd; \
5182 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
8ec98d6c 5183 case $(srcdir) in \
7fc2ca22
PB
5184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5185 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 5187 esac; \
7fc2ca22
PB
5188 srcdiroption="--srcdir=$${topdir}/bfd"; \
5189 libsrcdir="$$s/bfd"; \
8ec98d6c 5190 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5191 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5192 --target=${target_alias} $${srcdiroption} \
657b58f4 5193 || exit 1
a7e609d6 5194@endif bfd
657b58f4 5195
f0fdfd34
PB
5196
5197
a8a96878
PB
5198.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
5199maybe-configure-stage1-bfd:
5200@if bfd-bootstrap
5201maybe-configure-stage1-bfd: configure-stage1-bfd
15b527ca 5202configure-stage1-bfd:
ec92c4d6 5203 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 5204 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5205 @r=`${PWD_COMMAND}`; export r; \
5206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5207 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 5208 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
c91ae28f 5209 $(HOST_EXPORTS) \
2ba09444 5210 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
5211 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
5212 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 5213 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5215 cd $(HOST_SUBDIR)/bfd || exit 1; \
5216 case $(srcdir) in \
5217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5218 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5220 esac; \
5221 srcdiroption="--srcdir=$${topdir}/bfd"; \
5222 libsrcdir="$$s/bfd"; \
5223 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5225 --target=${target_alias} $${srcdiroption} \
c91ae28f 5226 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
5227@endif bfd-bootstrap
5228
5229.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
5230maybe-configure-stage2-bfd:
5231@if bfd-bootstrap
5232maybe-configure-stage2-bfd: configure-stage2-bfd
15b527ca 5233configure-stage2-bfd:
ec92c4d6 5234 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 5235 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5236 @r=`${PWD_COMMAND}`; export r; \
5237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5238 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 5239 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5240 $(HOST_EXPORTS) \
c91ae28f 5241 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5242 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
5243 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5244 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 5245 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5246 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5247 cd $(HOST_SUBDIR)/bfd || exit 1; \
5248 case $(srcdir) in \
5249 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5250 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5251 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5252 esac; \
5253 srcdiroption="--srcdir=$${topdir}/bfd"; \
5254 libsrcdir="$$s/bfd"; \
5255 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5256 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5257 --target=${target_alias} $${srcdiroption} \
380e48e5 5258 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 5259 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
5260@endif bfd-bootstrap
5261
a8a96878
PB
5262.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
5263maybe-configure-stage3-bfd:
5264@if bfd-bootstrap
5265maybe-configure-stage3-bfd: configure-stage3-bfd
15b527ca 5266configure-stage3-bfd:
ec92c4d6 5267 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 5268 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5269 @r=`${PWD_COMMAND}`; export r; \
5270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5271 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 5272 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5273 $(HOST_EXPORTS) \
c91ae28f 5274 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5275 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
5276 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5277 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 5278 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5279 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5280 cd $(HOST_SUBDIR)/bfd || exit 1; \
5281 case $(srcdir) in \
5282 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5283 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5284 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5285 esac; \
5286 srcdiroption="--srcdir=$${topdir}/bfd"; \
5287 libsrcdir="$$s/bfd"; \
5288 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5289 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5290 --target=${target_alias} $${srcdiroption} \
380e48e5 5291 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 5292 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
5293@endif bfd-bootstrap
5294
a8a96878
PB
5295.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
5296maybe-configure-stage4-bfd:
5297@if bfd-bootstrap
5298maybe-configure-stage4-bfd: configure-stage4-bfd
15b527ca 5299configure-stage4-bfd:
ec92c4d6 5300 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 5301 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5302 @r=`${PWD_COMMAND}`; export r; \
5303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5304 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 5305 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5306 $(HOST_EXPORTS) \
c91ae28f 5307 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 5308 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
5309 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5310 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 5311 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
15b527ca 5312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5313 cd $(HOST_SUBDIR)/bfd || exit 1; \
5314 case $(srcdir) in \
5315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5316 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5318 esac; \
5319 srcdiroption="--srcdir=$${topdir}/bfd"; \
5320 libsrcdir="$$s/bfd"; \
5321 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5323 --target=${target_alias} $${srcdiroption} \
380e48e5 5324 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 5325 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
5326@endif bfd-bootstrap
5327
5328.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
5329maybe-configure-stageprofile-bfd:
5330@if bfd-bootstrap
5331maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
15b527ca 5332configure-stageprofile-bfd:
ec92c4d6 5333 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 5334 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5335 @r=`${PWD_COMMAND}`; export r; \
5336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5337 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 5338 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5339 $(HOST_EXPORTS) \
c91ae28f
AO
5340 $(POSTSTAGE1_HOST_EXPORTS) \
5341 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
5342 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5343 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 5344 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
15b527ca 5345 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5346 cd $(HOST_SUBDIR)/bfd || exit 1; \
5347 case $(srcdir) in \
5348 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5349 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5350 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5351 esac; \
5352 srcdiroption="--srcdir=$${topdir}/bfd"; \
5353 libsrcdir="$$s/bfd"; \
5354 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5355 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5356 --target=${target_alias} $${srcdiroption} \
380e48e5 5357 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 5358 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
5359@endif bfd-bootstrap
5360
5361.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
5362maybe-configure-stagefeedback-bfd:
5363@if bfd-bootstrap
5364maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
15b527ca 5365configure-stagefeedback-bfd:
ec92c4d6 5366 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 5367 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
ec92c4d6
PB
5368 @r=`${PWD_COMMAND}`; export r; \
5369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5370 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 5371 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
a8a96878 5372 $(HOST_EXPORTS) \
c91ae28f
AO
5373 $(POSTSTAGE1_HOST_EXPORTS) \
5374 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
5375 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5376 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 5377 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
15b527ca 5378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
a8a96878
PB
5379 cd $(HOST_SUBDIR)/bfd || exit 1; \
5380 case $(srcdir) in \
5381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5382 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
5383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5384 esac; \
5385 srcdiroption="--srcdir=$${topdir}/bfd"; \
5386 libsrcdir="$$s/bfd"; \
5387 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
5388 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5389 --target=${target_alias} $${srcdiroption} \
380e48e5 5390 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 5391 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
5392@endif bfd-bootstrap
5393
5394
5395
5396
5397
8ec98d6c
NN
5398.PHONY: all-bfd maybe-all-bfd
5399maybe-all-bfd:
e1e5148c
CD
5400@if gcc-bootstrap
5401all-bfd: stage_current
5402@endif gcc-bootstrap
a7e609d6 5403@if bfd
5e6b1f07 5404TARGET-bfd=all
a7e609d6 5405maybe-all-bfd: all-bfd
8ec98d6c 5406all-bfd: configure-bfd
ec92c4d6 5407 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 5408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 5409 $(HOST_EXPORTS) \
7fc2ca22 5410 (cd $(HOST_SUBDIR)/bfd && \
6532abb6
PB
5411 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
5412 $(TARGET-bfd))
a7e609d6 5413@endif bfd
657b58f4 5414
f0fdfd34 5415
a8a96878
PB
5416
5417.PHONY: all-stage1-bfd maybe-all-stage1-bfd
5418.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
5419maybe-all-stage1-bfd:
5420maybe-clean-stage1-bfd:
5421@if bfd-bootstrap
5422maybe-all-stage1-bfd: all-stage1-bfd
5423all-stage1: all-stage1-bfd
168b158c 5424TARGET-stage1-bfd = $(TARGET-bfd)
a8a96878 5425all-stage1-bfd: configure-stage1-bfd
ec92c4d6 5426 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
5427 @r=`${PWD_COMMAND}`; export r; \
5428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5429 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 5430 $(HOST_EXPORTS) \
a8a96878 5431 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5432 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5433 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 5434 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
5435 LIBCFLAGS="$(LIBCFLAGS)" \
5436 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5437 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5438 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5439 $(EXTRA_HOST_FLAGS) \
5440 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 5441 $(TARGET-stage1-bfd)
a8a96878
PB
5442
5443maybe-clean-stage1-bfd: clean-stage1-bfd
5444clean-stage1: clean-stage1-bfd
5445clean-stage1-bfd:
a6a4e782
DD
5446 @if [ $(current_stage) = stage1 ]; then \
5447 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5448 else \
5449 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
5450 $(MAKE) stage1-start; \
5451 fi; \
a8a96878 5452 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5453 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 5454 clean
a8a96878
PB
5455@endif bfd-bootstrap
5456
5457
5458.PHONY: all-stage2-bfd maybe-all-stage2-bfd
5459.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
5460maybe-all-stage2-bfd:
5461maybe-clean-stage2-bfd:
5462@if bfd-bootstrap
5463maybe-all-stage2-bfd: all-stage2-bfd
5464all-stage2: all-stage2-bfd
168b158c 5465TARGET-stage2-bfd = $(TARGET-bfd)
a8a96878 5466all-stage2-bfd: configure-stage2-bfd
ec92c4d6 5467 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
5468 @r=`${PWD_COMMAND}`; export r; \
5469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5470 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 5471 $(HOST_EXPORTS) \
5074489a 5472 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 5473 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5474 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5475 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 5476 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
5477 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5478 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5479 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5480 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5481 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5482 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 5483 $(TARGET-stage2-bfd)
a8a96878
PB
5484
5485maybe-clean-stage2-bfd: clean-stage2-bfd
5486clean-stage2: clean-stage2-bfd
5487clean-stage2-bfd:
a6a4e782
DD
5488 @if [ $(current_stage) = stage2 ]; then \
5489 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5490 else \
5491 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
5492 $(MAKE) stage2-start; \
5493 fi; \
a8a96878 5494 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5495 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5496 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5497 clean
a8a96878
PB
5498@endif bfd-bootstrap
5499
5500
5501.PHONY: all-stage3-bfd maybe-all-stage3-bfd
5502.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
5503maybe-all-stage3-bfd:
5504maybe-clean-stage3-bfd:
5505@if bfd-bootstrap
5506maybe-all-stage3-bfd: all-stage3-bfd
5507all-stage3: all-stage3-bfd
168b158c 5508TARGET-stage3-bfd = $(TARGET-bfd)
a8a96878 5509all-stage3-bfd: configure-stage3-bfd
ec92c4d6 5510 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
5511 @r=`${PWD_COMMAND}`; export r; \
5512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5513 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 5514 $(HOST_EXPORTS) \
5074489a 5515 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 5516 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5518 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 5519 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
5520 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5524 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5525 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 5526 $(TARGET-stage3-bfd)
a8a96878
PB
5527
5528maybe-clean-stage3-bfd: clean-stage3-bfd
5529clean-stage3: clean-stage3-bfd
5530clean-stage3-bfd:
a6a4e782
DD
5531 @if [ $(current_stage) = stage3 ]; then \
5532 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5533 else \
5534 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
5535 $(MAKE) stage3-start; \
5536 fi; \
a8a96878 5537 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5538 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5539 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5540 clean
a8a96878
PB
5541@endif bfd-bootstrap
5542
5543
5544.PHONY: all-stage4-bfd maybe-all-stage4-bfd
5545.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
5546maybe-all-stage4-bfd:
5547maybe-clean-stage4-bfd:
5548@if bfd-bootstrap
5549maybe-all-stage4-bfd: all-stage4-bfd
5550all-stage4: all-stage4-bfd
168b158c 5551TARGET-stage4-bfd = $(TARGET-bfd)
a8a96878 5552all-stage4-bfd: configure-stage4-bfd
ec92c4d6 5553 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
5554 @r=`${PWD_COMMAND}`; export r; \
5555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5556 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 5557 $(HOST_EXPORTS) \
5074489a 5558 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 5559 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5560 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5561 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 5562 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 5563 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
5564 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5565 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5566 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5567 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5568 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 5569 $(TARGET-stage4-bfd)
a8a96878
PB
5570
5571maybe-clean-stage4-bfd: clean-stage4-bfd
5572clean-stage4: clean-stage4-bfd
5573clean-stage4-bfd:
a6a4e782
DD
5574 @if [ $(current_stage) = stage4 ]; then \
5575 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5576 else \
5577 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
5578 $(MAKE) stage4-start; \
5579 fi; \
a8a96878 5580 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5581 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5582 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5583 clean
a8a96878
PB
5584@endif bfd-bootstrap
5585
5586
5587.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
5588.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
5589maybe-all-stageprofile-bfd:
5590maybe-clean-stageprofile-bfd:
5591@if bfd-bootstrap
5592maybe-all-stageprofile-bfd: all-stageprofile-bfd
5593all-stageprofile: all-stageprofile-bfd
168b158c 5594TARGET-stageprofile-bfd = $(TARGET-bfd)
a8a96878 5595all-stageprofile-bfd: configure-stageprofile-bfd
ec92c4d6 5596 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
5597 @r=`${PWD_COMMAND}`; export r; \
5598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5599 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 5600 $(HOST_EXPORTS) \
5074489a 5601 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 5602 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5603 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5604 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 5605 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
5606 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5607 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5608 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5609 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5610 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5611 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 5612 $(TARGET-stageprofile-bfd)
a8a96878
PB
5613
5614maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
5615clean-stageprofile: clean-stageprofile-bfd
5616clean-stageprofile-bfd:
a6a4e782
DD
5617 @if [ $(current_stage) = stageprofile ]; then \
5618 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5619 else \
5620 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
5621 $(MAKE) stageprofile-start; \
5622 fi; \
a8a96878 5623 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5624 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5625 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5626 clean
a8a96878
PB
5627@endif bfd-bootstrap
5628
5629
5630.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
5631.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
5632maybe-all-stagefeedback-bfd:
5633maybe-clean-stagefeedback-bfd:
5634@if bfd-bootstrap
5635maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
5636all-stagefeedback: all-stagefeedback-bfd
168b158c 5637TARGET-stagefeedback-bfd = $(TARGET-bfd)
a8a96878 5638all-stagefeedback-bfd: configure-stagefeedback-bfd
ec92c4d6 5639 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
5640 @r=`${PWD_COMMAND}`; export r; \
5641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 5642 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 5643 $(HOST_EXPORTS) \
5074489a 5644 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 5645 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5646 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 5647 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 5648 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
5649 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5650 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5651 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5652 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5653 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5654 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 5655 $(TARGET-stagefeedback-bfd)
a8a96878
PB
5656
5657maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
5658clean-stagefeedback: clean-stagefeedback-bfd
5659clean-stagefeedback-bfd:
a6a4e782
DD
5660 @if [ $(current_stage) = stagefeedback ]; then \
5661 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
5662 else \
5663 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
5664 $(MAKE) stagefeedback-start; \
5665 fi; \
a8a96878 5666 cd $(HOST_SUBDIR)/bfd && \
6532abb6 5667 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 5668 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 5669 clean
a8a96878
PB
5670@endif bfd-bootstrap
5671
5672
5673
5674
5675
8ec98d6c
NN
5676.PHONY: check-bfd maybe-check-bfd
5677maybe-check-bfd:
a7e609d6
PB
5678@if bfd
5679maybe-check-bfd: check-bfd
657b58f4 5680
8ec98d6c 5681check-bfd:
15b527ca 5682 @: $(MAKE); $(unstage)
8ec98d6c 5683 @r=`${PWD_COMMAND}`; export r; \
5230d454 5684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5685 $(HOST_EXPORTS) \
7fc2ca22
PB
5686 (cd $(HOST_SUBDIR)/bfd && \
5687 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 5688
a7e609d6 5689@endif bfd
657b58f4 5690
8ec98d6c
NN
5691.PHONY: install-bfd maybe-install-bfd
5692maybe-install-bfd:
a7e609d6
PB
5693@if bfd
5694maybe-install-bfd: install-bfd
657b58f4 5695
8ec98d6c 5696install-bfd: installdirs
15b527ca 5697 @: $(MAKE); $(unstage)
8ec98d6c 5698 @r=`${PWD_COMMAND}`; export r; \
5230d454 5699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5700 $(HOST_EXPORTS) \
7fc2ca22 5701 (cd $(HOST_SUBDIR)/bfd && \
93c60b6d 5702 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 5703
a7e609d6 5704@endif bfd
657b58f4 5705
39bbbb69 5706# Other targets (info, dvi, pdf, etc.)
657b58f4 5707
8ec98d6c
NN
5708.PHONY: maybe-info-bfd info-bfd
5709maybe-info-bfd:
a7e609d6
PB
5710@if bfd
5711maybe-info-bfd: info-bfd
8ec98d6c
NN
5712
5713info-bfd: \
5714 configure-bfd
5715 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5716 r=`${PWD_COMMAND}`; export r; \
5717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5718 $(HOST_EXPORTS) \
d5eec917 5719 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5721 done; \
8ec98d6c 5722 echo "Doing info in bfd" ; \
7fc2ca22 5723 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5726 "RANLIB=$${RANLIB}" \
bffcbe34 5727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5728 info) \
657b58f4
NN
5729 || exit 1
5730
a7e609d6 5731@endif bfd
657b58f4 5732
8ec98d6c
NN
5733.PHONY: maybe-dvi-bfd dvi-bfd
5734maybe-dvi-bfd:
a7e609d6
PB
5735@if bfd
5736maybe-dvi-bfd: dvi-bfd
657b58f4 5737
8ec98d6c
NN
5738dvi-bfd: \
5739 configure-bfd
5740 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5741 r=`${PWD_COMMAND}`; export r; \
5742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5743 $(HOST_EXPORTS) \
d5eec917 5744 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5746 done; \
8ec98d6c 5747 echo "Doing dvi in bfd" ; \
7fc2ca22 5748 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5751 "RANLIB=$${RANLIB}" \
bffcbe34 5752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5753 dvi) \
657b58f4
NN
5754 || exit 1
5755
a7e609d6 5756@endif bfd
657b58f4 5757
39bbbb69
DD
5758.PHONY: maybe-pdf-bfd pdf-bfd
5759maybe-pdf-bfd:
5760@if bfd
5761maybe-pdf-bfd: pdf-bfd
5762
5763pdf-bfd: \
5764 configure-bfd
5765 @[ -f ./bfd/Makefile ] || exit 0; \
5766 r=`${PWD_COMMAND}`; export r; \
5767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5768 $(HOST_EXPORTS) \
5769 for flag in $(EXTRA_HOST_FLAGS) ; do \
5770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5771 done; \
5772 echo "Doing pdf in bfd" ; \
5773 (cd $(HOST_SUBDIR)/bfd && \
5774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5776 "RANLIB=$${RANLIB}" \
bffcbe34 5777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
5778 pdf) \
5779 || exit 1
5780
5781@endif bfd
5782
b6fb961f
MS
5783.PHONY: maybe-html-bfd html-bfd
5784maybe-html-bfd:
5785@if bfd
5786maybe-html-bfd: html-bfd
5787
5788html-bfd: \
5789 configure-bfd
5790 @[ -f ./bfd/Makefile ] || exit 0; \
5791 r=`${PWD_COMMAND}`; export r; \
5792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
5793 $(HOST_EXPORTS) \
5794 for flag in $(EXTRA_HOST_FLAGS) ; do \
5795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5796 done; \
5797 echo "Doing html in bfd" ; \
7fc2ca22 5798 (cd $(HOST_SUBDIR)/bfd && \
b6fb961f
MS
5799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5801 "RANLIB=$${RANLIB}" \
bffcbe34 5802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
5803 html) \
5804 || exit 1
5805
5806@endif bfd
5807
8ec98d6c
NN
5808.PHONY: maybe-TAGS-bfd TAGS-bfd
5809maybe-TAGS-bfd:
a7e609d6
PB
5810@if bfd
5811maybe-TAGS-bfd: TAGS-bfd
657b58f4 5812
8ec98d6c
NN
5813TAGS-bfd: \
5814 configure-bfd
5815 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5816 r=`${PWD_COMMAND}`; export r; \
5817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5818 $(HOST_EXPORTS) \
d5eec917 5819 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5821 done; \
8ec98d6c 5822 echo "Doing TAGS in bfd" ; \
7fc2ca22 5823 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5826 "RANLIB=$${RANLIB}" \
bffcbe34 5827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5828 TAGS) \
657b58f4
NN
5829 || exit 1
5830
a7e609d6 5831@endif bfd
657b58f4 5832
8ec98d6c
NN
5833.PHONY: maybe-install-info-bfd install-info-bfd
5834maybe-install-info-bfd:
a7e609d6
PB
5835@if bfd
5836maybe-install-info-bfd: install-info-bfd
657b58f4 5837
8ec98d6c
NN
5838install-info-bfd: \
5839 configure-bfd \
5840 info-bfd
5841 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5842 r=`${PWD_COMMAND}`; export r; \
5843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5844 $(HOST_EXPORTS) \
d5eec917 5845 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5847 done; \
8ec98d6c 5848 echo "Doing install-info in bfd" ; \
7fc2ca22 5849 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5852 "RANLIB=$${RANLIB}" \
bffcbe34 5853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5854 install-info) \
657b58f4
NN
5855 || exit 1
5856
a7e609d6 5857@endif bfd
657b58f4 5858
d4954b6d
DD
5859.PHONY: maybe-install-pdf-bfd install-pdf-bfd
5860maybe-install-pdf-bfd:
5861@if bfd
5862maybe-install-pdf-bfd: install-pdf-bfd
5863
5864install-pdf-bfd: \
5865 configure-bfd \
5866 pdf-bfd
5867 @[ -f ./bfd/Makefile ] || exit 0; \
5868 r=`${PWD_COMMAND}`; export r; \
5869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5870 $(HOST_EXPORTS) \
5871 for flag in $(EXTRA_HOST_FLAGS) ; do \
5872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5873 done; \
5874 echo "Doing install-pdf in bfd" ; \
5875 (cd $(HOST_SUBDIR)/bfd && \
5876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5878 "RANLIB=$${RANLIB}" \
bffcbe34 5879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
5880 install-pdf) \
5881 || exit 1
5882
5883@endif bfd
5884
83c9add4
CD
5885.PHONY: maybe-install-html-bfd install-html-bfd
5886maybe-install-html-bfd:
5887@if bfd
5888maybe-install-html-bfd: install-html-bfd
5889
5890install-html-bfd: \
5891 configure-bfd \
5892 html-bfd
5893 @[ -f ./bfd/Makefile ] || exit 0; \
5894 r=`${PWD_COMMAND}`; export r; \
5895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5896 $(HOST_EXPORTS) \
5897 for flag in $(EXTRA_HOST_FLAGS) ; do \
5898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5899 done; \
5900 echo "Doing install-html in bfd" ; \
5901 (cd $(HOST_SUBDIR)/bfd && \
5902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5904 "RANLIB=$${RANLIB}" \
bffcbe34 5905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
5906 install-html) \
5907 || exit 1
5908
5909@endif bfd
5910
8ec98d6c
NN
5911.PHONY: maybe-installcheck-bfd installcheck-bfd
5912maybe-installcheck-bfd:
a7e609d6
PB
5913@if bfd
5914maybe-installcheck-bfd: installcheck-bfd
657b58f4 5915
8ec98d6c
NN
5916installcheck-bfd: \
5917 configure-bfd
5918 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5919 r=`${PWD_COMMAND}`; export r; \
5920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5921 $(HOST_EXPORTS) \
d5eec917 5922 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5924 done; \
8ec98d6c 5925 echo "Doing installcheck in bfd" ; \
7fc2ca22 5926 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5929 "RANLIB=$${RANLIB}" \
bffcbe34 5930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5931 installcheck) \
657b58f4
NN
5932 || exit 1
5933
a7e609d6 5934@endif bfd
657b58f4 5935
8ec98d6c
NN
5936.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
5937maybe-mostlyclean-bfd:
a7e609d6
PB
5938@if bfd
5939maybe-mostlyclean-bfd: mostlyclean-bfd
657b58f4 5940
8ec98d6c
NN
5941mostlyclean-bfd:
5942 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5943 r=`${PWD_COMMAND}`; export r; \
5944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5945 $(HOST_EXPORTS) \
d5eec917 5946 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5948 done; \
8ec98d6c 5949 echo "Doing mostlyclean in bfd" ; \
7fc2ca22 5950 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5953 "RANLIB=$${RANLIB}" \
bffcbe34 5954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5955 mostlyclean) \
657b58f4
NN
5956 || exit 1
5957
a7e609d6 5958@endif bfd
657b58f4 5959
8ec98d6c
NN
5960.PHONY: maybe-clean-bfd clean-bfd
5961maybe-clean-bfd:
a7e609d6
PB
5962@if bfd
5963maybe-clean-bfd: clean-bfd
657b58f4 5964
8ec98d6c
NN
5965clean-bfd:
5966 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5967 r=`${PWD_COMMAND}`; export r; \
5968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5969 $(HOST_EXPORTS) \
d5eec917 5970 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5972 done; \
8ec98d6c 5973 echo "Doing clean in bfd" ; \
7fc2ca22 5974 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5977 "RANLIB=$${RANLIB}" \
bffcbe34 5978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 5979 clean) \
657b58f4
NN
5980 || exit 1
5981
a7e609d6 5982@endif bfd
657b58f4 5983
8ec98d6c
NN
5984.PHONY: maybe-distclean-bfd distclean-bfd
5985maybe-distclean-bfd:
a7e609d6
PB
5986@if bfd
5987maybe-distclean-bfd: distclean-bfd
657b58f4 5988
8ec98d6c
NN
5989distclean-bfd:
5990 @[ -f ./bfd/Makefile ] || exit 0; \
5230d454
L
5991 r=`${PWD_COMMAND}`; export r; \
5992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 5993 $(HOST_EXPORTS) \
d5eec917 5994 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
5995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5996 done; \
8ec98d6c 5997 echo "Doing distclean in bfd" ; \
7fc2ca22 5998 (cd $(HOST_SUBDIR)/bfd && \
657b58f4
NN
5999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6001 "RANLIB=$${RANLIB}" \
bffcbe34 6002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6003 distclean) \
657b58f4
NN
6004 || exit 1
6005
a7e609d6 6006@endif bfd
657b58f4 6007
8ec98d6c
NN
6008.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
6009maybe-maintainer-clean-bfd:
a7e609d6
PB
6010@if bfd
6011maybe-maintainer-clean-bfd: maintainer-clean-bfd
d832a288 6012
8ec98d6c
NN
6013maintainer-clean-bfd:
6014 @[ -f ./bfd/Makefile ] || exit 0; \
d832a288
DD
6015 r=`${PWD_COMMAND}`; export r; \
6016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6017 $(HOST_EXPORTS) \
d5eec917 6018 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
6019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6020 done; \
8ec98d6c 6021 echo "Doing maintainer-clean in bfd" ; \
7fc2ca22 6022 (cd $(HOST_SUBDIR)/bfd && \
d832a288
DD
6023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6025 "RANLIB=$${RANLIB}" \
bffcbe34 6026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6027 maintainer-clean) \
d832a288
DD
6028 || exit 1
6029
a7e609d6 6030@endif bfd
d832a288 6031
657b58f4 6032
f0fdfd34 6033
8ec98d6c
NN
6034.PHONY: configure-opcodes maybe-configure-opcodes
6035maybe-configure-opcodes:
e1e5148c
CD
6036@if gcc-bootstrap
6037configure-opcodes: stage_current
6038@endif gcc-bootstrap
a7e609d6
PB
6039@if opcodes
6040maybe-configure-opcodes: configure-opcodes
ec92c4d6 6041configure-opcodes:
ec92c4d6
PB
6042 @r=`${PWD_COMMAND}`; export r; \
6043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
6044 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
6045 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
5074489a 6046 $(HOST_EXPORTS) \
f0fdfd34
PB
6047 echo Configuring in $(HOST_SUBDIR)/opcodes; \
6048 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
8ec98d6c 6049 case $(srcdir) in \
7fc2ca22
PB
6050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6051 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6053 esac; \
7fc2ca22
PB
6054 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6055 libsrcdir="$$s/opcodes"; \
8ec98d6c 6056 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6058 --target=${target_alias} $${srcdiroption} \
8ec98d6c 6059 || exit 1
a7e609d6 6060@endif opcodes
657b58f4 6061
f0fdfd34
PB
6062
6063
a8a96878
PB
6064.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
6065maybe-configure-stage1-opcodes:
6066@if opcodes-bootstrap
6067maybe-configure-stage1-opcodes: configure-stage1-opcodes
15b527ca 6068configure-stage1-opcodes:
ec92c4d6 6069 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 6070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6071 @r=`${PWD_COMMAND}`; export r; \
6072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6073 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 6074 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
c91ae28f 6075 $(HOST_EXPORTS) \
2ba09444 6076 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
6077 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
6078 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 6079 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6081 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6082 case $(srcdir) in \
6083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6084 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6086 esac; \
6087 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6088 libsrcdir="$$s/opcodes"; \
6089 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6091 --target=${target_alias} $${srcdiroption} \
c91ae28f 6092 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
6093@endif opcodes-bootstrap
6094
6095.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
6096maybe-configure-stage2-opcodes:
6097@if opcodes-bootstrap
6098maybe-configure-stage2-opcodes: configure-stage2-opcodes
15b527ca 6099configure-stage2-opcodes:
ec92c4d6 6100 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 6101 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6102 @r=`${PWD_COMMAND}`; export r; \
6103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6104 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 6105 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6106 $(HOST_EXPORTS) \
c91ae28f 6107 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6108 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
6109 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
6110 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6111 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6113 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6114 case $(srcdir) in \
6115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6116 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6118 esac; \
6119 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6120 libsrcdir="$$s/opcodes"; \
6121 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6122 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6123 --target=${target_alias} $${srcdiroption} \
380e48e5 6124 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6125 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
6126@endif opcodes-bootstrap
6127
a8a96878
PB
6128.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
6129maybe-configure-stage3-opcodes:
6130@if opcodes-bootstrap
6131maybe-configure-stage3-opcodes: configure-stage3-opcodes
15b527ca 6132configure-stage3-opcodes:
ec92c4d6 6133 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 6134 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6135 @r=`${PWD_COMMAND}`; export r; \
6136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6137 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 6138 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6139 $(HOST_EXPORTS) \
c91ae28f 6140 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6141 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
6142 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
6143 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6144 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6145 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6146 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6147 case $(srcdir) in \
6148 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6149 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6150 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6151 esac; \
6152 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6153 libsrcdir="$$s/opcodes"; \
6154 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6155 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6156 --target=${target_alias} $${srcdiroption} \
380e48e5 6157 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6158 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
6159@endif opcodes-bootstrap
6160
a8a96878
PB
6161.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
6162maybe-configure-stage4-opcodes:
6163@if opcodes-bootstrap
6164maybe-configure-stage4-opcodes: configure-stage4-opcodes
15b527ca 6165configure-stage4-opcodes:
ec92c4d6 6166 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 6167 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6168 @r=`${PWD_COMMAND}`; export r; \
6169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6170 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 6171 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6172 $(HOST_EXPORTS) \
c91ae28f 6173 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6174 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
6175 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
6176 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6177 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6178 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6179 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6180 case $(srcdir) in \
6181 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6182 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6183 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6184 esac; \
6185 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6186 libsrcdir="$$s/opcodes"; \
6187 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6188 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6189 --target=${target_alias} $${srcdiroption} \
380e48e5 6190 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6191 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
6192@endif opcodes-bootstrap
6193
6194.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
6195maybe-configure-stageprofile-opcodes:
6196@if opcodes-bootstrap
6197maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
15b527ca 6198configure-stageprofile-opcodes:
ec92c4d6 6199 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 6200 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6201 @r=`${PWD_COMMAND}`; export r; \
6202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6203 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 6204 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6205 $(HOST_EXPORTS) \
c91ae28f
AO
6206 $(POSTSTAGE1_HOST_EXPORTS) \
6207 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
6208 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
6209 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6210 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6211 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6212 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6213 case $(srcdir) in \
6214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6215 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6217 esac; \
6218 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6219 libsrcdir="$$s/opcodes"; \
6220 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6221 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6222 --target=${target_alias} $${srcdiroption} \
380e48e5 6223 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6224 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
6225@endif opcodes-bootstrap
6226
6227.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
6228maybe-configure-stagefeedback-opcodes:
6229@if opcodes-bootstrap
6230maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
15b527ca 6231configure-stagefeedback-opcodes:
ec92c4d6 6232 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 6233 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
ec92c4d6
PB
6234 @r=`${PWD_COMMAND}`; export r; \
6235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6236 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 6237 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
a8a96878 6238 $(HOST_EXPORTS) \
c91ae28f
AO
6239 $(POSTSTAGE1_HOST_EXPORTS) \
6240 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
6241 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
6242 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6243 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
15b527ca 6244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
a8a96878
PB
6245 cd $(HOST_SUBDIR)/opcodes || exit 1; \
6246 case $(srcdir) in \
6247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6248 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
6249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6250 esac; \
6251 srcdiroption="--srcdir=$${topdir}/opcodes"; \
6252 libsrcdir="$$s/opcodes"; \
6253 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6255 --target=${target_alias} $${srcdiroption} \
380e48e5 6256 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6257 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
6258@endif opcodes-bootstrap
6259
6260
6261
6262
6263
8ec98d6c
NN
6264.PHONY: all-opcodes maybe-all-opcodes
6265maybe-all-opcodes:
e1e5148c
CD
6266@if gcc-bootstrap
6267all-opcodes: stage_current
6268@endif gcc-bootstrap
a7e609d6 6269@if opcodes
5e6b1f07 6270TARGET-opcodes=all
a7e609d6 6271maybe-all-opcodes: all-opcodes
8ec98d6c 6272all-opcodes: configure-opcodes
ec92c4d6 6273 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 6274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 6275 $(HOST_EXPORTS) \
7fc2ca22 6276 (cd $(HOST_SUBDIR)/opcodes && \
6532abb6
PB
6277 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
6278 $(TARGET-opcodes))
a7e609d6 6279@endif opcodes
657b58f4 6280
f0fdfd34 6281
a8a96878
PB
6282
6283.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
6284.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
6285maybe-all-stage1-opcodes:
6286maybe-clean-stage1-opcodes:
6287@if opcodes-bootstrap
6288maybe-all-stage1-opcodes: all-stage1-opcodes
6289all-stage1: all-stage1-opcodes
168b158c 6290TARGET-stage1-opcodes = $(TARGET-opcodes)
a8a96878 6291all-stage1-opcodes: configure-stage1-opcodes
ec92c4d6 6292 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
6293 @r=`${PWD_COMMAND}`; export r; \
6294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6295 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 6296 $(HOST_EXPORTS) \
a8a96878 6297 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6298 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6299 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 6300 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
6301 LIBCFLAGS="$(LIBCFLAGS)" \
6302 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6303 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6304 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6305 $(EXTRA_HOST_FLAGS) \
6306 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 6307 $(TARGET-stage1-opcodes)
a8a96878
PB
6308
6309maybe-clean-stage1-opcodes: clean-stage1-opcodes
6310clean-stage1: clean-stage1-opcodes
6311clean-stage1-opcodes:
a6a4e782
DD
6312 @if [ $(current_stage) = stage1 ]; then \
6313 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6314 else \
6315 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
6316 $(MAKE) stage1-start; \
6317 fi; \
a8a96878 6318 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6319 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 6320 clean
a8a96878
PB
6321@endif opcodes-bootstrap
6322
6323
6324.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
6325.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
6326maybe-all-stage2-opcodes:
6327maybe-clean-stage2-opcodes:
6328@if opcodes-bootstrap
6329maybe-all-stage2-opcodes: all-stage2-opcodes
6330all-stage2: all-stage2-opcodes
168b158c 6331TARGET-stage2-opcodes = $(TARGET-opcodes)
a8a96878 6332all-stage2-opcodes: configure-stage2-opcodes
ec92c4d6 6333 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
6334 @r=`${PWD_COMMAND}`; export r; \
6335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6336 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 6337 $(HOST_EXPORTS) \
5074489a 6338 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 6339 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6341 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 6342 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
6343 LIBCFLAGS="$(STAGE2_CFLAGS)" \
6344 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6345 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6346 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6347 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6348 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 6349 $(TARGET-stage2-opcodes)
a8a96878
PB
6350
6351maybe-clean-stage2-opcodes: clean-stage2-opcodes
6352clean-stage2: clean-stage2-opcodes
6353clean-stage2-opcodes:
a6a4e782
DD
6354 @if [ $(current_stage) = stage2 ]; then \
6355 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6356 else \
6357 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
6358 $(MAKE) stage2-start; \
6359 fi; \
a8a96878 6360 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6361 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6362 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6363 clean
a8a96878
PB
6364@endif opcodes-bootstrap
6365
6366
6367.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
6368.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
6369maybe-all-stage3-opcodes:
6370maybe-clean-stage3-opcodes:
6371@if opcodes-bootstrap
6372maybe-all-stage3-opcodes: all-stage3-opcodes
6373all-stage3: all-stage3-opcodes
168b158c 6374TARGET-stage3-opcodes = $(TARGET-opcodes)
a8a96878 6375all-stage3-opcodes: configure-stage3-opcodes
ec92c4d6 6376 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
6377 @r=`${PWD_COMMAND}`; export r; \
6378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6379 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 6380 $(HOST_EXPORTS) \
5074489a 6381 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 6382 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6383 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6384 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 6385 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
6386 LIBCFLAGS="$(STAGE3_CFLAGS)" \
6387 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6388 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6389 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6390 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6391 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 6392 $(TARGET-stage3-opcodes)
a8a96878
PB
6393
6394maybe-clean-stage3-opcodes: clean-stage3-opcodes
6395clean-stage3: clean-stage3-opcodes
6396clean-stage3-opcodes:
a6a4e782
DD
6397 @if [ $(current_stage) = stage3 ]; then \
6398 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6399 else \
6400 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
6401 $(MAKE) stage3-start; \
6402 fi; \
a8a96878 6403 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6404 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6405 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6406 clean
a8a96878
PB
6407@endif opcodes-bootstrap
6408
6409
6410.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
6411.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
6412maybe-all-stage4-opcodes:
6413maybe-clean-stage4-opcodes:
6414@if opcodes-bootstrap
6415maybe-all-stage4-opcodes: all-stage4-opcodes
6416all-stage4: all-stage4-opcodes
168b158c 6417TARGET-stage4-opcodes = $(TARGET-opcodes)
a8a96878 6418all-stage4-opcodes: configure-stage4-opcodes
ec92c4d6 6419 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
6420 @r=`${PWD_COMMAND}`; export r; \
6421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6422 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 6423 $(HOST_EXPORTS) \
5074489a 6424 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 6425 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6426 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6427 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 6428 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 6429 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
6430 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6431 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6432 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6433 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6434 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 6435 $(TARGET-stage4-opcodes)
a8a96878
PB
6436
6437maybe-clean-stage4-opcodes: clean-stage4-opcodes
6438clean-stage4: clean-stage4-opcodes
6439clean-stage4-opcodes:
a6a4e782
DD
6440 @if [ $(current_stage) = stage4 ]; then \
6441 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6442 else \
6443 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
6444 $(MAKE) stage4-start; \
6445 fi; \
a8a96878 6446 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6447 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6448 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6449 clean
a8a96878
PB
6450@endif opcodes-bootstrap
6451
6452
6453.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
6454.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
6455maybe-all-stageprofile-opcodes:
6456maybe-clean-stageprofile-opcodes:
6457@if opcodes-bootstrap
6458maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
6459all-stageprofile: all-stageprofile-opcodes
168b158c 6460TARGET-stageprofile-opcodes = $(TARGET-opcodes)
a8a96878 6461all-stageprofile-opcodes: configure-stageprofile-opcodes
ec92c4d6 6462 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
6463 @r=`${PWD_COMMAND}`; export r; \
6464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6465 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 6466 $(HOST_EXPORTS) \
5074489a 6467 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 6468 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6470 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 6471 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
6472 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
6473 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6474 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6475 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6476 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6477 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 6478 $(TARGET-stageprofile-opcodes)
a8a96878
PB
6479
6480maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
6481clean-stageprofile: clean-stageprofile-opcodes
6482clean-stageprofile-opcodes:
a6a4e782
DD
6483 @if [ $(current_stage) = stageprofile ]; then \
6484 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6485 else \
6486 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
6487 $(MAKE) stageprofile-start; \
6488 fi; \
a8a96878 6489 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6490 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6491 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6492 clean
a8a96878
PB
6493@endif opcodes-bootstrap
6494
6495
6496.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
6497.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
6498maybe-all-stagefeedback-opcodes:
6499maybe-clean-stagefeedback-opcodes:
6500@if opcodes-bootstrap
6501maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
6502all-stagefeedback: all-stagefeedback-opcodes
168b158c 6503TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
a8a96878 6504all-stagefeedback-opcodes: configure-stagefeedback-opcodes
ec92c4d6 6505 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
6506 @r=`${PWD_COMMAND}`; export r; \
6507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6508 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 6509 $(HOST_EXPORTS) \
5074489a 6510 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 6511 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6512 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 6513 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 6514 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
6515 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
6516 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6517 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6518 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6519 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6520 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 6521 $(TARGET-stagefeedback-opcodes)
a8a96878
PB
6522
6523maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
6524clean-stagefeedback: clean-stagefeedback-opcodes
6525clean-stagefeedback-opcodes:
a6a4e782
DD
6526 @if [ $(current_stage) = stagefeedback ]; then \
6527 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
6528 else \
6529 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
6530 $(MAKE) stagefeedback-start; \
6531 fi; \
a8a96878 6532 cd $(HOST_SUBDIR)/opcodes && \
6532abb6 6533 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 6534 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 6535 clean
a8a96878
PB
6536@endif opcodes-bootstrap
6537
6538
6539
6540
6541
8ec98d6c
NN
6542.PHONY: check-opcodes maybe-check-opcodes
6543maybe-check-opcodes:
a7e609d6
PB
6544@if opcodes
6545maybe-check-opcodes: check-opcodes
8ec98d6c
NN
6546
6547check-opcodes:
15b527ca 6548 @: $(MAKE); $(unstage)
8ec98d6c 6549 @r=`${PWD_COMMAND}`; export r; \
5230d454 6550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6551 $(HOST_EXPORTS) \
7fc2ca22
PB
6552 (cd $(HOST_SUBDIR)/opcodes && \
6553 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 6554
a7e609d6 6555@endif opcodes
657b58f4 6556
8ec98d6c
NN
6557.PHONY: install-opcodes maybe-install-opcodes
6558maybe-install-opcodes:
a7e609d6
PB
6559@if opcodes
6560maybe-install-opcodes: install-opcodes
657b58f4 6561
8ec98d6c 6562install-opcodes: installdirs
15b527ca 6563 @: $(MAKE); $(unstage)
8ec98d6c
NN
6564 @r=`${PWD_COMMAND}`; export r; \
6565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6566 $(HOST_EXPORTS) \
7fc2ca22 6567 (cd $(HOST_SUBDIR)/opcodes && \
93c60b6d 6568 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 6569
a7e609d6 6570@endif opcodes
8ec98d6c 6571
39bbbb69 6572# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
6573
6574.PHONY: maybe-info-opcodes info-opcodes
6575maybe-info-opcodes:
a7e609d6
PB
6576@if opcodes
6577maybe-info-opcodes: info-opcodes
8ec98d6c
NN
6578
6579info-opcodes: \
6580 configure-opcodes
6581 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6582 r=`${PWD_COMMAND}`; export r; \
6583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6584 $(HOST_EXPORTS) \
d5eec917 6585 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6587 done; \
8ec98d6c 6588 echo "Doing info in opcodes" ; \
7fc2ca22 6589 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6592 "RANLIB=$${RANLIB}" \
bffcbe34 6593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6594 info) \
657b58f4
NN
6595 || exit 1
6596
a7e609d6 6597@endif opcodes
657b58f4 6598
8ec98d6c
NN
6599.PHONY: maybe-dvi-opcodes dvi-opcodes
6600maybe-dvi-opcodes:
a7e609d6
PB
6601@if opcodes
6602maybe-dvi-opcodes: dvi-opcodes
657b58f4 6603
8ec98d6c
NN
6604dvi-opcodes: \
6605 configure-opcodes
6606 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6607 r=`${PWD_COMMAND}`; export r; \
6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6609 $(HOST_EXPORTS) \
d5eec917 6610 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6612 done; \
8ec98d6c 6613 echo "Doing dvi in opcodes" ; \
7fc2ca22 6614 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6617 "RANLIB=$${RANLIB}" \
bffcbe34 6618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6619 dvi) \
657b58f4
NN
6620 || exit 1
6621
a7e609d6 6622@endif opcodes
657b58f4 6623
39bbbb69
DD
6624.PHONY: maybe-pdf-opcodes pdf-opcodes
6625maybe-pdf-opcodes:
6626@if opcodes
6627maybe-pdf-opcodes: pdf-opcodes
6628
6629pdf-opcodes: \
6630 configure-opcodes
6631 @[ -f ./opcodes/Makefile ] || exit 0; \
6632 r=`${PWD_COMMAND}`; export r; \
6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6634 $(HOST_EXPORTS) \
6635 for flag in $(EXTRA_HOST_FLAGS) ; do \
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
6638 echo "Doing pdf in opcodes" ; \
6639 (cd $(HOST_SUBDIR)/opcodes && \
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
bffcbe34 6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
6644 pdf) \
6645 || exit 1
6646
6647@endif opcodes
6648
b6fb961f
MS
6649.PHONY: maybe-html-opcodes html-opcodes
6650maybe-html-opcodes:
6651@if opcodes
6652maybe-html-opcodes: html-opcodes
6653
6654html-opcodes: \
6655 configure-opcodes
6656 @[ -f ./opcodes/Makefile ] || exit 0; \
6657 r=`${PWD_COMMAND}`; export r; \
6658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
6659 $(HOST_EXPORTS) \
6660 for flag in $(EXTRA_HOST_FLAGS) ; do \
6661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6662 done; \
6663 echo "Doing html in opcodes" ; \
7fc2ca22 6664 (cd $(HOST_SUBDIR)/opcodes && \
b6fb961f
MS
6665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6667 "RANLIB=$${RANLIB}" \
bffcbe34 6668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
6669 html) \
6670 || exit 1
6671
6672@endif opcodes
6673
8ec98d6c
NN
6674.PHONY: maybe-TAGS-opcodes TAGS-opcodes
6675maybe-TAGS-opcodes:
a7e609d6
PB
6676@if opcodes
6677maybe-TAGS-opcodes: TAGS-opcodes
657b58f4 6678
8ec98d6c
NN
6679TAGS-opcodes: \
6680 configure-opcodes
6681 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6682 r=`${PWD_COMMAND}`; export r; \
6683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6684 $(HOST_EXPORTS) \
d5eec917 6685 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6687 done; \
8ec98d6c 6688 echo "Doing TAGS in opcodes" ; \
7fc2ca22 6689 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6692 "RANLIB=$${RANLIB}" \
bffcbe34 6693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6694 TAGS) \
657b58f4
NN
6695 || exit 1
6696
a7e609d6 6697@endif opcodes
657b58f4 6698
8ec98d6c
NN
6699.PHONY: maybe-install-info-opcodes install-info-opcodes
6700maybe-install-info-opcodes:
a7e609d6
PB
6701@if opcodes
6702maybe-install-info-opcodes: install-info-opcodes
657b58f4 6703
8ec98d6c
NN
6704install-info-opcodes: \
6705 configure-opcodes \
6706 info-opcodes
6707 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6708 r=`${PWD_COMMAND}`; export r; \
6709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6710 $(HOST_EXPORTS) \
d5eec917 6711 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6713 done; \
8ec98d6c 6714 echo "Doing install-info in opcodes" ; \
7fc2ca22 6715 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6718 "RANLIB=$${RANLIB}" \
bffcbe34 6719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6720 install-info) \
657b58f4
NN
6721 || exit 1
6722
a7e609d6 6723@endif opcodes
657b58f4 6724
d4954b6d
DD
6725.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
6726maybe-install-pdf-opcodes:
6727@if opcodes
6728maybe-install-pdf-opcodes: install-pdf-opcodes
6729
6730install-pdf-opcodes: \
6731 configure-opcodes \
6732 pdf-opcodes
6733 @[ -f ./opcodes/Makefile ] || exit 0; \
6734 r=`${PWD_COMMAND}`; export r; \
6735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6736 $(HOST_EXPORTS) \
6737 for flag in $(EXTRA_HOST_FLAGS) ; do \
6738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6739 done; \
6740 echo "Doing install-pdf in opcodes" ; \
6741 (cd $(HOST_SUBDIR)/opcodes && \
6742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6744 "RANLIB=$${RANLIB}" \
bffcbe34 6745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
6746 install-pdf) \
6747 || exit 1
6748
6749@endif opcodes
6750
83c9add4
CD
6751.PHONY: maybe-install-html-opcodes install-html-opcodes
6752maybe-install-html-opcodes:
6753@if opcodes
6754maybe-install-html-opcodes: install-html-opcodes
6755
6756install-html-opcodes: \
6757 configure-opcodes \
6758 html-opcodes
6759 @[ -f ./opcodes/Makefile ] || exit 0; \
6760 r=`${PWD_COMMAND}`; export r; \
6761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6762 $(HOST_EXPORTS) \
6763 for flag in $(EXTRA_HOST_FLAGS) ; do \
6764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6765 done; \
6766 echo "Doing install-html in opcodes" ; \
6767 (cd $(HOST_SUBDIR)/opcodes && \
6768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6770 "RANLIB=$${RANLIB}" \
bffcbe34 6771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
6772 install-html) \
6773 || exit 1
6774
6775@endif opcodes
6776
8ec98d6c
NN
6777.PHONY: maybe-installcheck-opcodes installcheck-opcodes
6778maybe-installcheck-opcodes:
a7e609d6
PB
6779@if opcodes
6780maybe-installcheck-opcodes: installcheck-opcodes
657b58f4 6781
8ec98d6c
NN
6782installcheck-opcodes: \
6783 configure-opcodes
6784 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6785 r=`${PWD_COMMAND}`; export r; \
6786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6787 $(HOST_EXPORTS) \
d5eec917 6788 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6790 done; \
8ec98d6c 6791 echo "Doing installcheck in opcodes" ; \
7fc2ca22 6792 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6795 "RANLIB=$${RANLIB}" \
bffcbe34 6796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6797 installcheck) \
657b58f4
NN
6798 || exit 1
6799
a7e609d6 6800@endif opcodes
657b58f4
NN
6801
6802.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
6803maybe-mostlyclean-opcodes:
a7e609d6
PB
6804@if opcodes
6805maybe-mostlyclean-opcodes: mostlyclean-opcodes
657b58f4
NN
6806
6807mostlyclean-opcodes:
6808 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6809 r=`${PWD_COMMAND}`; export r; \
6810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6811 $(HOST_EXPORTS) \
d5eec917 6812 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6814 done; \
6815 echo "Doing mostlyclean in opcodes" ; \
7fc2ca22 6816 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6819 "RANLIB=$${RANLIB}" \
bffcbe34 6820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6821 mostlyclean) \
657b58f4
NN
6822 || exit 1
6823
a7e609d6 6824@endif opcodes
657b58f4 6825
8ec98d6c
NN
6826.PHONY: maybe-clean-opcodes clean-opcodes
6827maybe-clean-opcodes:
a7e609d6
PB
6828@if opcodes
6829maybe-clean-opcodes: clean-opcodes
657b58f4 6830
8ec98d6c
NN
6831clean-opcodes:
6832 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6833 r=`${PWD_COMMAND}`; export r; \
6834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6835 $(HOST_EXPORTS) \
d5eec917 6836 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6838 done; \
8ec98d6c 6839 echo "Doing clean in opcodes" ; \
7fc2ca22 6840 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6843 "RANLIB=$${RANLIB}" \
bffcbe34 6844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6845 clean) \
657b58f4
NN
6846 || exit 1
6847
a7e609d6 6848@endif opcodes
657b58f4 6849
8ec98d6c
NN
6850.PHONY: maybe-distclean-opcodes distclean-opcodes
6851maybe-distclean-opcodes:
a7e609d6
PB
6852@if opcodes
6853maybe-distclean-opcodes: distclean-opcodes
657b58f4 6854
8ec98d6c
NN
6855distclean-opcodes:
6856 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6857 r=`${PWD_COMMAND}`; export r; \
6858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6859 $(HOST_EXPORTS) \
d5eec917 6860 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6862 done; \
8ec98d6c 6863 echo "Doing distclean in opcodes" ; \
7fc2ca22 6864 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6867 "RANLIB=$${RANLIB}" \
bffcbe34 6868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6869 distclean) \
657b58f4
NN
6870 || exit 1
6871
a7e609d6 6872@endif opcodes
657b58f4 6873
8ec98d6c
NN
6874.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
6875maybe-maintainer-clean-opcodes:
a7e609d6
PB
6876@if opcodes
6877maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
657b58f4 6878
8ec98d6c
NN
6879maintainer-clean-opcodes:
6880 @[ -f ./opcodes/Makefile ] || exit 0; \
5230d454
L
6881 r=`${PWD_COMMAND}`; export r; \
6882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 6883 $(HOST_EXPORTS) \
d5eec917 6884 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
6885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6886 done; \
8ec98d6c 6887 echo "Doing maintainer-clean in opcodes" ; \
7fc2ca22 6888 (cd $(HOST_SUBDIR)/opcodes && \
657b58f4
NN
6889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6891 "RANLIB=$${RANLIB}" \
bffcbe34 6892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 6893 maintainer-clean) \
657b58f4
NN
6894 || exit 1
6895
a7e609d6 6896@endif opcodes
657b58f4 6897
657b58f4 6898
f0fdfd34 6899
8ec98d6c
NN
6900.PHONY: configure-binutils maybe-configure-binutils
6901maybe-configure-binutils:
e1e5148c
CD
6902@if gcc-bootstrap
6903configure-binutils: stage_current
6904@endif gcc-bootstrap
a7e609d6
PB
6905@if binutils
6906maybe-configure-binutils: configure-binutils
ec92c4d6 6907configure-binutils:
ec92c4d6
PB
6908 @r=`${PWD_COMMAND}`; export r; \
6909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
6910 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
6911 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5074489a 6912 $(HOST_EXPORTS) \
f0fdfd34
PB
6913 echo Configuring in $(HOST_SUBDIR)/binutils; \
6914 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
8ec98d6c 6915 case $(srcdir) in \
7fc2ca22
PB
6916 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6917 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6918 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 6919 esac; \
7fc2ca22
PB
6920 srcdiroption="--srcdir=$${topdir}/binutils"; \
6921 libsrcdir="$$s/binutils"; \
8ec98d6c 6922 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6923 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6924 --target=${target_alias} $${srcdiroption} \
657b58f4 6925 || exit 1
a7e609d6 6926@endif binutils
657b58f4 6927
f0fdfd34
PB
6928
6929
a8a96878
PB
6930.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
6931maybe-configure-stage1-binutils:
6932@if binutils-bootstrap
6933maybe-configure-stage1-binutils: configure-stage1-binutils
15b527ca 6934configure-stage1-binutils:
ec92c4d6 6935 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 6936 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
6937 @r=`${PWD_COMMAND}`; export r; \
6938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6939 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 6940 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
c91ae28f 6941 $(HOST_EXPORTS) \
2ba09444 6942 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
6943 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
6944 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 6945 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
15b527ca 6946 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
6947 cd $(HOST_SUBDIR)/binutils || exit 1; \
6948 case $(srcdir) in \
6949 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6950 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6951 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6952 esac; \
6953 srcdiroption="--srcdir=$${topdir}/binutils"; \
6954 libsrcdir="$$s/binutils"; \
6955 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6956 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6957 --target=${target_alias} $${srcdiroption} \
c91ae28f 6958 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
6959@endif binutils-bootstrap
6960
6961.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
6962maybe-configure-stage2-binutils:
6963@if binutils-bootstrap
6964maybe-configure-stage2-binutils: configure-stage2-binutils
15b527ca 6965configure-stage2-binutils:
ec92c4d6 6966 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 6967 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
6968 @r=`${PWD_COMMAND}`; export r; \
6969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 6970 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 6971 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 6972 $(HOST_EXPORTS) \
c91ae28f 6973 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 6974 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
6975 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
6976 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 6977 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
15b527ca 6978 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
6979 cd $(HOST_SUBDIR)/binutils || exit 1; \
6980 case $(srcdir) in \
6981 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6982 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6983 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6984 esac; \
6985 srcdiroption="--srcdir=$${topdir}/binutils"; \
6986 libsrcdir="$$s/binutils"; \
6987 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
6988 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6989 --target=${target_alias} $${srcdiroption} \
380e48e5 6990 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 6991 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
6992@endif binutils-bootstrap
6993
a8a96878
PB
6994.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
6995maybe-configure-stage3-binutils:
6996@if binutils-bootstrap
6997maybe-configure-stage3-binutils: configure-stage3-binutils
15b527ca 6998configure-stage3-binutils:
ec92c4d6 6999 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 7000 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7001 @r=`${PWD_COMMAND}`; export r; \
7002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7003 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 7004 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7005 $(HOST_EXPORTS) \
c91ae28f 7006 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 7007 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
7008 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
7009 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 7010 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
15b527ca 7011 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7012 cd $(HOST_SUBDIR)/binutils || exit 1; \
7013 case $(srcdir) in \
7014 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7015 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7016 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7017 esac; \
7018 srcdiroption="--srcdir=$${topdir}/binutils"; \
7019 libsrcdir="$$s/binutils"; \
7020 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7021 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7022 --target=${target_alias} $${srcdiroption} \
380e48e5 7023 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 7024 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
7025@endif binutils-bootstrap
7026
a8a96878
PB
7027.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
7028maybe-configure-stage4-binutils:
7029@if binutils-bootstrap
7030maybe-configure-stage4-binutils: configure-stage4-binutils
15b527ca 7031configure-stage4-binutils:
ec92c4d6 7032 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 7033 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7034 @r=`${PWD_COMMAND}`; export r; \
7035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7036 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 7037 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7038 $(HOST_EXPORTS) \
c91ae28f 7039 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 7040 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
7041 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
7042 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 7043 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
15b527ca 7044 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7045 cd $(HOST_SUBDIR)/binutils || exit 1; \
7046 case $(srcdir) in \
7047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7048 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7050 esac; \
7051 srcdiroption="--srcdir=$${topdir}/binutils"; \
7052 libsrcdir="$$s/binutils"; \
7053 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7054 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7055 --target=${target_alias} $${srcdiroption} \
380e48e5 7056 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 7057 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
7058@endif binutils-bootstrap
7059
7060.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
7061maybe-configure-stageprofile-binutils:
7062@if binutils-bootstrap
7063maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
15b527ca 7064configure-stageprofile-binutils:
ec92c4d6 7065 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 7066 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7067 @r=`${PWD_COMMAND}`; export r; \
7068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7069 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 7070 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7071 $(HOST_EXPORTS) \
c91ae28f
AO
7072 $(POSTSTAGE1_HOST_EXPORTS) \
7073 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
7074 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
7075 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 7076 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
15b527ca 7077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7078 cd $(HOST_SUBDIR)/binutils || exit 1; \
7079 case $(srcdir) in \
7080 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7081 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7082 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7083 esac; \
7084 srcdiroption="--srcdir=$${topdir}/binutils"; \
7085 libsrcdir="$$s/binutils"; \
7086 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7087 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7088 --target=${target_alias} $${srcdiroption} \
380e48e5 7089 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 7090 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
7091@endif binutils-bootstrap
7092
7093.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
7094maybe-configure-stagefeedback-binutils:
7095@if binutils-bootstrap
7096maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
15b527ca 7097configure-stagefeedback-binutils:
ec92c4d6 7098 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 7099 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
ec92c4d6
PB
7100 @r=`${PWD_COMMAND}`; export r; \
7101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7102 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 7103 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
a8a96878 7104 $(HOST_EXPORTS) \
c91ae28f
AO
7105 $(POSTSTAGE1_HOST_EXPORTS) \
7106 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
7107 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
7108 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 7109 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
15b527ca 7110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
a8a96878
PB
7111 cd $(HOST_SUBDIR)/binutils || exit 1; \
7112 case $(srcdir) in \
7113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7114 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
7115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7116 esac; \
7117 srcdiroption="--srcdir=$${topdir}/binutils"; \
7118 libsrcdir="$$s/binutils"; \
7119 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7120 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7121 --target=${target_alias} $${srcdiroption} \
380e48e5 7122 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 7123 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
7124@endif binutils-bootstrap
7125
7126
7127
7128
7129
8ec98d6c
NN
7130.PHONY: all-binutils maybe-all-binutils
7131maybe-all-binutils:
e1e5148c
CD
7132@if gcc-bootstrap
7133all-binutils: stage_current
7134@endif gcc-bootstrap
a7e609d6 7135@if binutils
5e6b1f07 7136TARGET-binutils=all
a7e609d6 7137maybe-all-binutils: all-binutils
8ec98d6c 7138all-binutils: configure-binutils
ec92c4d6 7139 @r=`${PWD_COMMAND}`; export r; \
5230d454 7140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 7141 $(HOST_EXPORTS) \
7fc2ca22 7142 (cd $(HOST_SUBDIR)/binutils && \
6532abb6
PB
7143 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
7144 $(TARGET-binutils))
a7e609d6 7145@endif binutils
8ec98d6c 7146
f0fdfd34 7147
8ec98d6c 7148
a8a96878
PB
7149.PHONY: all-stage1-binutils maybe-all-stage1-binutils
7150.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
7151maybe-all-stage1-binutils:
7152maybe-clean-stage1-binutils:
7153@if binutils-bootstrap
7154maybe-all-stage1-binutils: all-stage1-binutils
7155all-stage1: all-stage1-binutils
168b158c 7156TARGET-stage1-binutils = $(TARGET-binutils)
a8a96878 7157all-stage1-binutils: configure-stage1-binutils
ec92c4d6 7158 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8ec98d6c
NN
7159 @r=`${PWD_COMMAND}`; export r; \
7160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7161 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 7162 $(HOST_EXPORTS) \
a8a96878 7163 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7164 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7165 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 7166 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
7167 LIBCFLAGS="$(LIBCFLAGS)" \
7168 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7169 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7170 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7171 $(EXTRA_HOST_FLAGS) \
7172 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 7173 $(TARGET-stage1-binutils)
657b58f4 7174
a8a96878
PB
7175maybe-clean-stage1-binutils: clean-stage1-binutils
7176clean-stage1: clean-stage1-binutils
7177clean-stage1-binutils:
a6a4e782
DD
7178 @if [ $(current_stage) = stage1 ]; then \
7179 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7180 else \
7181 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
7182 $(MAKE) stage1-start; \
7183 fi; \
a8a96878 7184 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7185 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 7186 clean
a8a96878 7187@endif binutils-bootstrap
657b58f4 7188
657b58f4 7189
a8a96878
PB
7190.PHONY: all-stage2-binutils maybe-all-stage2-binutils
7191.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
7192maybe-all-stage2-binutils:
7193maybe-clean-stage2-binutils:
7194@if binutils-bootstrap
7195maybe-all-stage2-binutils: all-stage2-binutils
7196all-stage2: all-stage2-binutils
168b158c 7197TARGET-stage2-binutils = $(TARGET-binutils)
a8a96878 7198all-stage2-binutils: configure-stage2-binutils
ec92c4d6 7199 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8ec98d6c 7200 @r=`${PWD_COMMAND}`; export r; \
5230d454 7201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7202 TFLAGS="$(STAGE2_TFLAGS)"; \
a675b75a 7203 $(HOST_EXPORTS) \
5074489a 7204 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 7205 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7206 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7207 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 7208 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
7209 LIBCFLAGS="$(STAGE2_CFLAGS)" \
7210 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7211 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7212 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7213 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
7214 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 7215 $(TARGET-stage2-binutils)
657b58f4 7216
a8a96878
PB
7217maybe-clean-stage2-binutils: clean-stage2-binutils
7218clean-stage2: clean-stage2-binutils
7219clean-stage2-binutils:
a6a4e782
DD
7220 @if [ $(current_stage) = stage2 ]; then \
7221 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7222 else \
7223 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
7224 $(MAKE) stage2-start; \
7225 fi; \
a8a96878 7226 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7227 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7228 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7229 clean
a8a96878 7230@endif binutils-bootstrap
657b58f4 7231
8ec98d6c 7232
a8a96878
PB
7233.PHONY: all-stage3-binutils maybe-all-stage3-binutils
7234.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
7235maybe-all-stage3-binutils:
7236maybe-clean-stage3-binutils:
7237@if binutils-bootstrap
7238maybe-all-stage3-binutils: all-stage3-binutils
7239all-stage3: all-stage3-binutils
168b158c 7240TARGET-stage3-binutils = $(TARGET-binutils)
a8a96878 7241all-stage3-binutils: configure-stage3-binutils
ec92c4d6 7242 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878 7243 @r=`${PWD_COMMAND}`; export r; \
5230d454 7244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7245 TFLAGS="$(STAGE3_TFLAGS)"; \
a675b75a 7246 $(HOST_EXPORTS) \
5074489a 7247 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 7248 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7249 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7250 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 7251 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
7252 LIBCFLAGS="$(STAGE3_CFLAGS)" \
7253 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7254 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7255 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7256 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
7257 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 7258 $(TARGET-stage3-binutils)
657b58f4 7259
a8a96878
PB
7260maybe-clean-stage3-binutils: clean-stage3-binutils
7261clean-stage3: clean-stage3-binutils
7262clean-stage3-binutils:
a6a4e782
DD
7263 @if [ $(current_stage) = stage3 ]; then \
7264 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7265 else \
7266 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
7267 $(MAKE) stage3-start; \
7268 fi; \
a8a96878 7269 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7270 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7271 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7272 clean
a8a96878 7273@endif binutils-bootstrap
657b58f4 7274
657b58f4 7275
a8a96878
PB
7276.PHONY: all-stage4-binutils maybe-all-stage4-binutils
7277.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
7278maybe-all-stage4-binutils:
7279maybe-clean-stage4-binutils:
7280@if binutils-bootstrap
7281maybe-all-stage4-binutils: all-stage4-binutils
7282all-stage4: all-stage4-binutils
168b158c 7283TARGET-stage4-binutils = $(TARGET-binutils)
a8a96878 7284all-stage4-binutils: configure-stage4-binutils
ec92c4d6 7285 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878 7286 @r=`${PWD_COMMAND}`; export r; \
5230d454 7287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7288 TFLAGS="$(STAGE4_TFLAGS)"; \
a675b75a 7289 $(HOST_EXPORTS) \
5074489a 7290 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 7291 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7292 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7293 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 7294 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 7295 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
7296 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7297 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7298 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7299 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
7300 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 7301 $(TARGET-stage4-binutils)
a8a96878
PB
7302
7303maybe-clean-stage4-binutils: clean-stage4-binutils
7304clean-stage4: clean-stage4-binutils
7305clean-stage4-binutils:
a6a4e782
DD
7306 @if [ $(current_stage) = stage4 ]; then \
7307 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7308 else \
7309 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
7310 $(MAKE) stage4-start; \
7311 fi; \
a8a96878 7312 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7313 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7314 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7315 clean
a8a96878
PB
7316@endif binutils-bootstrap
7317
7318
7319.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
7320.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
7321maybe-all-stageprofile-binutils:
7322maybe-clean-stageprofile-binutils:
7323@if binutils-bootstrap
7324maybe-all-stageprofile-binutils: all-stageprofile-binutils
7325all-stageprofile: all-stageprofile-binutils
168b158c 7326TARGET-stageprofile-binutils = $(TARGET-binutils)
a8a96878 7327all-stageprofile-binutils: configure-stageprofile-binutils
ec92c4d6 7328 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
7329 @r=`${PWD_COMMAND}`; export r; \
7330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7331 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 7332 $(HOST_EXPORTS) \
5074489a 7333 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 7334 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7335 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7336 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 7337 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
7338 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
7339 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7340 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7341 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7342 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
7343 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 7344 $(TARGET-stageprofile-binutils)
a8a96878
PB
7345
7346maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
7347clean-stageprofile: clean-stageprofile-binutils
7348clean-stageprofile-binutils:
a6a4e782
DD
7349 @if [ $(current_stage) = stageprofile ]; then \
7350 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7351 else \
7352 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
7353 $(MAKE) stageprofile-start; \
7354 fi; \
a8a96878 7355 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7356 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7357 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7358 clean
a8a96878
PB
7359@endif binutils-bootstrap
7360
7361
7362.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
7363.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
7364maybe-all-stagefeedback-binutils:
7365maybe-clean-stagefeedback-binutils:
7366@if binutils-bootstrap
7367maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
7368all-stagefeedback: all-stagefeedback-binutils
168b158c 7369TARGET-stagefeedback-binutils = $(TARGET-binutils)
a8a96878 7370all-stagefeedback-binutils: configure-stagefeedback-binutils
ec92c4d6 7371 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
7372 @r=`${PWD_COMMAND}`; export r; \
7373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 7374 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 7375 $(HOST_EXPORTS) \
5074489a 7376 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 7377 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7378 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 7379 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 7380 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
7381 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
7382 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
7383 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
7384 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7385 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
7386 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 7387 $(TARGET-stagefeedback-binutils)
a8a96878
PB
7388
7389maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
7390clean-stagefeedback: clean-stagefeedback-binutils
7391clean-stagefeedback-binutils:
a6a4e782
DD
7392 @if [ $(current_stage) = stagefeedback ]; then \
7393 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
7394 else \
7395 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
7396 $(MAKE) stagefeedback-start; \
7397 fi; \
a8a96878 7398 cd $(HOST_SUBDIR)/binutils && \
6532abb6 7399 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 7400 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 7401 clean
a8a96878
PB
7402@endif binutils-bootstrap
7403
7404
7405
7406
7407
7408.PHONY: check-binutils maybe-check-binutils
7409maybe-check-binutils:
7410@if binutils
7411maybe-check-binutils: check-binutils
7412
7413check-binutils:
15b527ca 7414 @: $(MAKE); $(unstage)
a8a96878
PB
7415 @r=`${PWD_COMMAND}`; export r; \
7416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7417 $(HOST_EXPORTS) \
7418 (cd $(HOST_SUBDIR)/binutils && \
7419 $(MAKE) $(FLAGS_TO_PASS) check)
7420
7421@endif binutils
7422
7423.PHONY: install-binutils maybe-install-binutils
7424maybe-install-binutils:
7425@if binutils
7426maybe-install-binutils: install-binutils
7427
7428install-binutils: installdirs
15b527ca 7429 @: $(MAKE); $(unstage)
a8a96878
PB
7430 @r=`${PWD_COMMAND}`; export r; \
7431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7432 $(HOST_EXPORTS) \
7433 (cd $(HOST_SUBDIR)/binutils && \
7434 $(MAKE) $(FLAGS_TO_PASS) install)
7435
7436@endif binutils
7437
39bbbb69 7438# Other targets (info, dvi, pdf, etc.)
a8a96878
PB
7439
7440.PHONY: maybe-info-binutils info-binutils
7441maybe-info-binutils:
7442@if binutils
7443maybe-info-binutils: info-binutils
7444
7445info-binutils: \
7446 configure-binutils
7447 @[ -f ./binutils/Makefile ] || exit 0; \
7448 r=`${PWD_COMMAND}`; export r; \
7449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7450 $(HOST_EXPORTS) \
7451 for flag in $(EXTRA_HOST_FLAGS) ; do \
7452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7453 done; \
7454 echo "Doing info in binutils" ; \
7455 (cd $(HOST_SUBDIR)/binutils && \
7456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7458 "RANLIB=$${RANLIB}" \
bffcbe34 7459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a8a96878
PB
7460 info) \
7461 || exit 1
7462
7463@endif binutils
7464
7465.PHONY: maybe-dvi-binutils dvi-binutils
7466maybe-dvi-binutils:
7467@if binutils
7468maybe-dvi-binutils: dvi-binutils
7469
7470dvi-binutils: \
7471 configure-binutils
7472 @[ -f ./binutils/Makefile ] || exit 0; \
7473 r=`${PWD_COMMAND}`; export r; \
7474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7475 $(HOST_EXPORTS) \
7476 for flag in $(EXTRA_HOST_FLAGS) ; do \
7477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7478 done; \
7479 echo "Doing dvi in binutils" ; \
7480 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7483 "RANLIB=$${RANLIB}" \
bffcbe34 7484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7485 dvi) \
657b58f4
NN
7486 || exit 1
7487
a7e609d6 7488@endif binutils
657b58f4 7489
39bbbb69
DD
7490.PHONY: maybe-pdf-binutils pdf-binutils
7491maybe-pdf-binutils:
7492@if binutils
7493maybe-pdf-binutils: pdf-binutils
7494
7495pdf-binutils: \
7496 configure-binutils
7497 @[ -f ./binutils/Makefile ] || exit 0; \
7498 r=`${PWD_COMMAND}`; export r; \
7499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7500 $(HOST_EXPORTS) \
7501 for flag in $(EXTRA_HOST_FLAGS) ; do \
7502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7503 done; \
7504 echo "Doing pdf in binutils" ; \
7505 (cd $(HOST_SUBDIR)/binutils && \
7506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7508 "RANLIB=$${RANLIB}" \
bffcbe34 7509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
7510 pdf) \
7511 || exit 1
7512
7513@endif binutils
7514
b6fb961f
MS
7515.PHONY: maybe-html-binutils html-binutils
7516maybe-html-binutils:
7517@if binutils
7518maybe-html-binutils: html-binutils
7519
7520html-binutils: \
7521 configure-binutils
7522 @[ -f ./binutils/Makefile ] || exit 0; \
7523 r=`${PWD_COMMAND}`; export r; \
7524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
7525 $(HOST_EXPORTS) \
7526 for flag in $(EXTRA_HOST_FLAGS) ; do \
7527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7528 done; \
7529 echo "Doing html in binutils" ; \
7fc2ca22 7530 (cd $(HOST_SUBDIR)/binutils && \
b6fb961f
MS
7531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7533 "RANLIB=$${RANLIB}" \
bffcbe34 7534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
7535 html) \
7536 || exit 1
7537
7538@endif binutils
7539
8ec98d6c
NN
7540.PHONY: maybe-TAGS-binutils TAGS-binutils
7541maybe-TAGS-binutils:
a7e609d6
PB
7542@if binutils
7543maybe-TAGS-binutils: TAGS-binutils
657b58f4 7544
8ec98d6c
NN
7545TAGS-binutils: \
7546 configure-binutils
7547 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7548 r=`${PWD_COMMAND}`; export r; \
7549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7550 $(HOST_EXPORTS) \
d5eec917 7551 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7553 done; \
8ec98d6c 7554 echo "Doing TAGS in binutils" ; \
7fc2ca22 7555 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7558 "RANLIB=$${RANLIB}" \
bffcbe34 7559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7560 TAGS) \
657b58f4
NN
7561 || exit 1
7562
a7e609d6 7563@endif binutils
657b58f4 7564
8ec98d6c
NN
7565.PHONY: maybe-install-info-binutils install-info-binutils
7566maybe-install-info-binutils:
a7e609d6
PB
7567@if binutils
7568maybe-install-info-binutils: install-info-binutils
657b58f4 7569
8ec98d6c
NN
7570install-info-binutils: \
7571 configure-binutils \
7572 info-binutils
7573 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7574 r=`${PWD_COMMAND}`; export r; \
7575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7576 $(HOST_EXPORTS) \
d5eec917 7577 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7579 done; \
8ec98d6c 7580 echo "Doing install-info in binutils" ; \
7fc2ca22 7581 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7584 "RANLIB=$${RANLIB}" \
bffcbe34 7585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7586 install-info) \
657b58f4
NN
7587 || exit 1
7588
a7e609d6 7589@endif binutils
657b58f4 7590
d4954b6d
DD
7591.PHONY: maybe-install-pdf-binutils install-pdf-binutils
7592maybe-install-pdf-binutils:
7593@if binutils
7594maybe-install-pdf-binutils: install-pdf-binutils
7595
7596install-pdf-binutils: \
7597 configure-binutils \
7598 pdf-binutils
7599 @[ -f ./binutils/Makefile ] || exit 0; \
7600 r=`${PWD_COMMAND}`; export r; \
7601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7602 $(HOST_EXPORTS) \
7603 for flag in $(EXTRA_HOST_FLAGS) ; do \
7604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7605 done; \
7606 echo "Doing install-pdf in binutils" ; \
7607 (cd $(HOST_SUBDIR)/binutils && \
7608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7610 "RANLIB=$${RANLIB}" \
bffcbe34 7611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
7612 install-pdf) \
7613 || exit 1
7614
7615@endif binutils
7616
83c9add4
CD
7617.PHONY: maybe-install-html-binutils install-html-binutils
7618maybe-install-html-binutils:
7619@if binutils
7620maybe-install-html-binutils: install-html-binutils
7621
7622install-html-binutils: \
7623 configure-binutils \
7624 html-binutils
7625 @[ -f ./binutils/Makefile ] || exit 0; \
7626 r=`${PWD_COMMAND}`; export r; \
7627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7628 $(HOST_EXPORTS) \
7629 for flag in $(EXTRA_HOST_FLAGS) ; do \
7630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7631 done; \
7632 echo "Doing install-html in binutils" ; \
7633 (cd $(HOST_SUBDIR)/binutils && \
7634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7636 "RANLIB=$${RANLIB}" \
bffcbe34 7637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
7638 install-html) \
7639 || exit 1
7640
7641@endif binutils
7642
8ec98d6c
NN
7643.PHONY: maybe-installcheck-binutils installcheck-binutils
7644maybe-installcheck-binutils:
a7e609d6
PB
7645@if binutils
7646maybe-installcheck-binutils: installcheck-binutils
657b58f4 7647
8ec98d6c
NN
7648installcheck-binutils: \
7649 configure-binutils
7650 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7651 r=`${PWD_COMMAND}`; export r; \
7652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7653 $(HOST_EXPORTS) \
d5eec917 7654 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7656 done; \
8ec98d6c 7657 echo "Doing installcheck in binutils" ; \
7fc2ca22 7658 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7661 "RANLIB=$${RANLIB}" \
bffcbe34 7662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7663 installcheck) \
657b58f4
NN
7664 || exit 1
7665
a7e609d6 7666@endif binutils
657b58f4 7667
8ec98d6c
NN
7668.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
7669maybe-mostlyclean-binutils:
a7e609d6
PB
7670@if binutils
7671maybe-mostlyclean-binutils: mostlyclean-binutils
657b58f4 7672
8ec98d6c
NN
7673mostlyclean-binutils:
7674 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7675 r=`${PWD_COMMAND}`; export r; \
7676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7677 $(HOST_EXPORTS) \
d5eec917 7678 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7680 done; \
8ec98d6c 7681 echo "Doing mostlyclean in binutils" ; \
7fc2ca22 7682 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7685 "RANLIB=$${RANLIB}" \
bffcbe34 7686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7687 mostlyclean) \
657b58f4
NN
7688 || exit 1
7689
a7e609d6 7690@endif binutils
657b58f4 7691
8ec98d6c
NN
7692.PHONY: maybe-clean-binutils clean-binutils
7693maybe-clean-binutils:
a7e609d6
PB
7694@if binutils
7695maybe-clean-binutils: clean-binutils
657b58f4 7696
8ec98d6c
NN
7697clean-binutils:
7698 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7699 r=`${PWD_COMMAND}`; export r; \
7700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7701 $(HOST_EXPORTS) \
d5eec917 7702 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7704 done; \
8ec98d6c 7705 echo "Doing clean in binutils" ; \
7fc2ca22 7706 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7709 "RANLIB=$${RANLIB}" \
bffcbe34 7710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7711 clean) \
657b58f4
NN
7712 || exit 1
7713
a7e609d6 7714@endif binutils
657b58f4 7715
8ec98d6c
NN
7716.PHONY: maybe-distclean-binutils distclean-binutils
7717maybe-distclean-binutils:
a7e609d6
PB
7718@if binutils
7719maybe-distclean-binutils: distclean-binutils
657b58f4 7720
8ec98d6c
NN
7721distclean-binutils:
7722 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7723 r=`${PWD_COMMAND}`; export r; \
7724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7725 $(HOST_EXPORTS) \
d5eec917 7726 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7728 done; \
8ec98d6c 7729 echo "Doing distclean in binutils" ; \
7fc2ca22 7730 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7733 "RANLIB=$${RANLIB}" \
bffcbe34 7734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7735 distclean) \
657b58f4
NN
7736 || exit 1
7737
a7e609d6 7738@endif binutils
657b58f4 7739
8ec98d6c
NN
7740.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
7741maybe-maintainer-clean-binutils:
a7e609d6
PB
7742@if binutils
7743maybe-maintainer-clean-binutils: maintainer-clean-binutils
657b58f4 7744
8ec98d6c
NN
7745maintainer-clean-binutils:
7746 @[ -f ./binutils/Makefile ] || exit 0; \
5230d454
L
7747 r=`${PWD_COMMAND}`; export r; \
7748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7749 $(HOST_EXPORTS) \
d5eec917 7750 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7752 done; \
8ec98d6c 7753 echo "Doing maintainer-clean in binutils" ; \
7fc2ca22 7754 (cd $(HOST_SUBDIR)/binutils && \
657b58f4
NN
7755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7757 "RANLIB=$${RANLIB}" \
bffcbe34 7758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7759 maintainer-clean) \
657b58f4
NN
7760 || exit 1
7761
a7e609d6 7762@endif binutils
657b58f4 7763
657b58f4 7764
f0fdfd34 7765
8ec98d6c
NN
7766.PHONY: configure-bison maybe-configure-bison
7767maybe-configure-bison:
e1e5148c
CD
7768@if gcc-bootstrap
7769configure-bison: stage_current
7770@endif gcc-bootstrap
a7e609d6
PB
7771@if bison
7772maybe-configure-bison: configure-bison
ec92c4d6 7773configure-bison:
15b527ca 7774 @: $(MAKE); $(unstage)
ec92c4d6 7775 @r=`${PWD_COMMAND}`; export r; \
5230d454 7776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
7777 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
7778 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
5074489a 7779 $(HOST_EXPORTS) \
f0fdfd34
PB
7780 echo Configuring in $(HOST_SUBDIR)/bison; \
7781 cd "$(HOST_SUBDIR)/bison" || exit 1; \
8ec98d6c 7782 case $(srcdir) in \
7fc2ca22
PB
7783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7784 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
7785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 7786 esac; \
7fc2ca22
PB
7787 srcdiroption="--srcdir=$${topdir}/bison"; \
7788 libsrcdir="$$s/bison"; \
8ec98d6c 7789 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
7790 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7791 --target=${target_alias} $${srcdiroption} \
657b58f4 7792 || exit 1
a7e609d6 7793@endif bison
657b58f4 7794
f0fdfd34
PB
7795
7796
a8a96878
PB
7797
7798
8ec98d6c
NN
7799.PHONY: all-bison maybe-all-bison
7800maybe-all-bison:
e1e5148c
CD
7801@if gcc-bootstrap
7802all-bison: stage_current
7803@endif gcc-bootstrap
a7e609d6 7804@if bison
5e6b1f07 7805TARGET-bison=all
a7e609d6 7806maybe-all-bison: all-bison
8ec98d6c 7807all-bison: configure-bison
15b527ca 7808 @: $(MAKE); $(unstage)
8ec98d6c
NN
7809 @r=`${PWD_COMMAND}`; export r; \
7810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 7811 $(HOST_EXPORTS) \
7fc2ca22 7812 (cd $(HOST_SUBDIR)/bison && \
6532abb6
PB
7813 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
7814 $(TARGET-bison))
a7e609d6 7815@endif bison
657b58f4 7816
f0fdfd34 7817
a8a96878
PB
7818
7819
8ec98d6c
NN
7820.PHONY: check-bison maybe-check-bison
7821maybe-check-bison:
a7e609d6
PB
7822@if bison
7823maybe-check-bison: check-bison
657b58f4 7824
8ec98d6c
NN
7825# This module is only tested in a native toolchain.
7826check-bison:
15b527ca 7827 @: $(MAKE); $(unstage)
8ec98d6c
NN
7828 @if [ '$(host)' = '$(target)' ] ; then \
7829 r=`${PWD_COMMAND}`; export r; \
7830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7831 $(HOST_EXPORTS) \
7fc2ca22 7832 (cd $(HOST_SUBDIR)/bison && \
80e4c577 7833 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
7834 fi
7835
a7e609d6 7836@endif bison
8ec98d6c
NN
7837
7838.PHONY: install-bison maybe-install-bison
7839maybe-install-bison:
a7e609d6
PB
7840@if bison
7841maybe-install-bison: install-bison
8ec98d6c
NN
7842
7843install-bison: installdirs
15b527ca 7844 @: $(MAKE); $(unstage)
8ec98d6c 7845 @r=`${PWD_COMMAND}`; export r; \
5230d454 7846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7847 $(HOST_EXPORTS) \
7fc2ca22 7848 (cd $(HOST_SUBDIR)/bison && \
93c60b6d 7849 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 7850
a7e609d6 7851@endif bison
657b58f4 7852
39bbbb69 7853# Other targets (info, dvi, pdf, etc.)
657b58f4 7854
8ec98d6c
NN
7855.PHONY: maybe-info-bison info-bison
7856maybe-info-bison:
a7e609d6
PB
7857@if bison
7858maybe-info-bison: info-bison
8ec98d6c
NN
7859
7860info-bison: \
7861 configure-bison
15b527ca 7862 @: $(MAKE); $(unstage)
8ec98d6c 7863 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7864 r=`${PWD_COMMAND}`; export r; \
7865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7866 $(HOST_EXPORTS) \
d5eec917 7867 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7869 done; \
8ec98d6c 7870 echo "Doing info in bison" ; \
7fc2ca22 7871 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7874 "RANLIB=$${RANLIB}" \
bffcbe34 7875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7876 info) \
657b58f4
NN
7877 || exit 1
7878
a7e609d6 7879@endif bison
657b58f4 7880
8ec98d6c
NN
7881.PHONY: maybe-dvi-bison dvi-bison
7882maybe-dvi-bison:
a7e609d6
PB
7883@if bison
7884maybe-dvi-bison: dvi-bison
657b58f4 7885
8ec98d6c
NN
7886dvi-bison: \
7887 configure-bison
15b527ca 7888 @: $(MAKE); $(unstage)
8ec98d6c 7889 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7890 r=`${PWD_COMMAND}`; export r; \
7891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7892 $(HOST_EXPORTS) \
d5eec917 7893 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7895 done; \
8ec98d6c 7896 echo "Doing dvi in bison" ; \
7fc2ca22 7897 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7900 "RANLIB=$${RANLIB}" \
bffcbe34 7901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7902 dvi) \
657b58f4
NN
7903 || exit 1
7904
a7e609d6 7905@endif bison
657b58f4 7906
39bbbb69
DD
7907.PHONY: maybe-pdf-bison pdf-bison
7908maybe-pdf-bison:
7909@if bison
7910maybe-pdf-bison: pdf-bison
7911
7912pdf-bison: \
7913 configure-bison
7914 @: $(MAKE); $(unstage)
7915 @[ -f ./bison/Makefile ] || exit 0; \
7916 r=`${PWD_COMMAND}`; export r; \
7917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7918 $(HOST_EXPORTS) \
7919 for flag in $(EXTRA_HOST_FLAGS) ; do \
7920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7921 done; \
7922 echo "Doing pdf in bison" ; \
7923 (cd $(HOST_SUBDIR)/bison && \
7924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7926 "RANLIB=$${RANLIB}" \
bffcbe34 7927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
7928 pdf) \
7929 || exit 1
7930
7931@endif bison
7932
b6fb961f
MS
7933.PHONY: maybe-html-bison html-bison
7934maybe-html-bison:
7935@if bison
7936maybe-html-bison: html-bison
7937
7938html-bison: \
7939 configure-bison
15b527ca 7940 @: $(MAKE); $(unstage)
b6fb961f
MS
7941 @[ -f ./bison/Makefile ] || exit 0; \
7942 r=`${PWD_COMMAND}`; export r; \
7943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
7944 $(HOST_EXPORTS) \
7945 for flag in $(EXTRA_HOST_FLAGS) ; do \
7946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7947 done; \
7948 echo "Doing html in bison" ; \
7fc2ca22 7949 (cd $(HOST_SUBDIR)/bison && \
b6fb961f
MS
7950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7952 "RANLIB=$${RANLIB}" \
bffcbe34 7953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
7954 html) \
7955 || exit 1
7956
7957@endif bison
7958
8ec98d6c
NN
7959.PHONY: maybe-TAGS-bison TAGS-bison
7960maybe-TAGS-bison:
a7e609d6
PB
7961@if bison
7962maybe-TAGS-bison: TAGS-bison
657b58f4 7963
8ec98d6c
NN
7964TAGS-bison: \
7965 configure-bison
15b527ca 7966 @: $(MAKE); $(unstage)
8ec98d6c 7967 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7968 r=`${PWD_COMMAND}`; export r; \
7969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7970 $(HOST_EXPORTS) \
d5eec917 7971 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7973 done; \
8ec98d6c 7974 echo "Doing TAGS in bison" ; \
7fc2ca22 7975 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
7976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7978 "RANLIB=$${RANLIB}" \
bffcbe34 7979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 7980 TAGS) \
657b58f4
NN
7981 || exit 1
7982
a7e609d6 7983@endif bison
657b58f4 7984
8ec98d6c
NN
7985.PHONY: maybe-install-info-bison install-info-bison
7986maybe-install-info-bison:
a7e609d6
PB
7987@if bison
7988maybe-install-info-bison: install-info-bison
657b58f4 7989
8ec98d6c
NN
7990install-info-bison: \
7991 configure-bison \
7992 info-bison
15b527ca 7993 @: $(MAKE); $(unstage)
8ec98d6c 7994 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
7995 r=`${PWD_COMMAND}`; export r; \
7996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 7997 $(HOST_EXPORTS) \
d5eec917 7998 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
7999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8000 done; \
8ec98d6c 8001 echo "Doing install-info in bison" ; \
7fc2ca22 8002 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8005 "RANLIB=$${RANLIB}" \
bffcbe34 8006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8007 install-info) \
657b58f4
NN
8008 || exit 1
8009
a7e609d6 8010@endif bison
657b58f4 8011
d4954b6d
DD
8012.PHONY: maybe-install-pdf-bison install-pdf-bison
8013maybe-install-pdf-bison:
8014@if bison
8015maybe-install-pdf-bison: install-pdf-bison
8016
8017install-pdf-bison: \
8018 configure-bison \
8019 pdf-bison
8020 @: $(MAKE); $(unstage)
8021 @[ -f ./bison/Makefile ] || exit 0; \
8022 r=`${PWD_COMMAND}`; export r; \
8023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8024 $(HOST_EXPORTS) \
8025 for flag in $(EXTRA_HOST_FLAGS) ; do \
8026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8027 done; \
8028 echo "Doing install-pdf in bison" ; \
8029 (cd $(HOST_SUBDIR)/bison && \
8030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8032 "RANLIB=$${RANLIB}" \
bffcbe34 8033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8034 install-pdf) \
8035 || exit 1
8036
8037@endif bison
8038
83c9add4
CD
8039.PHONY: maybe-install-html-bison install-html-bison
8040maybe-install-html-bison:
8041@if bison
8042maybe-install-html-bison: install-html-bison
8043
8044install-html-bison: \
8045 configure-bison \
8046 html-bison
8047 @: $(MAKE); $(unstage)
8048 @[ -f ./bison/Makefile ] || exit 0; \
8049 r=`${PWD_COMMAND}`; export r; \
8050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8051 $(HOST_EXPORTS) \
8052 for flag in $(EXTRA_HOST_FLAGS) ; do \
8053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8054 done; \
8055 echo "Doing install-html in bison" ; \
8056 (cd $(HOST_SUBDIR)/bison && \
8057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8059 "RANLIB=$${RANLIB}" \
bffcbe34 8060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8061 install-html) \
8062 || exit 1
8063
8064@endif bison
8065
8ec98d6c
NN
8066.PHONY: maybe-installcheck-bison installcheck-bison
8067maybe-installcheck-bison:
a7e609d6
PB
8068@if bison
8069maybe-installcheck-bison: installcheck-bison
657b58f4 8070
8ec98d6c
NN
8071installcheck-bison: \
8072 configure-bison
15b527ca 8073 @: $(MAKE); $(unstage)
8ec98d6c 8074 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8075 r=`${PWD_COMMAND}`; export r; \
8076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8077 $(HOST_EXPORTS) \
d5eec917 8078 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8080 done; \
8ec98d6c 8081 echo "Doing installcheck in bison" ; \
7fc2ca22 8082 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8085 "RANLIB=$${RANLIB}" \
bffcbe34 8086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8087 installcheck) \
657b58f4
NN
8088 || exit 1
8089
a7e609d6 8090@endif bison
657b58f4 8091
8ec98d6c
NN
8092.PHONY: maybe-mostlyclean-bison mostlyclean-bison
8093maybe-mostlyclean-bison:
a7e609d6
PB
8094@if bison
8095maybe-mostlyclean-bison: mostlyclean-bison
657b58f4 8096
8ec98d6c 8097mostlyclean-bison:
15b527ca 8098 @: $(MAKE); $(unstage)
8ec98d6c 8099 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8100 r=`${PWD_COMMAND}`; export r; \
8101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8102 $(HOST_EXPORTS) \
d5eec917 8103 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8105 done; \
8ec98d6c 8106 echo "Doing mostlyclean in bison" ; \
7fc2ca22 8107 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8110 "RANLIB=$${RANLIB}" \
bffcbe34 8111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8112 mostlyclean) \
657b58f4
NN
8113 || exit 1
8114
a7e609d6 8115@endif bison
657b58f4 8116
8ec98d6c
NN
8117.PHONY: maybe-clean-bison clean-bison
8118maybe-clean-bison:
a7e609d6
PB
8119@if bison
8120maybe-clean-bison: clean-bison
657b58f4 8121
8ec98d6c 8122clean-bison:
15b527ca 8123 @: $(MAKE); $(unstage)
8ec98d6c 8124 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8125 r=`${PWD_COMMAND}`; export r; \
8126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8127 $(HOST_EXPORTS) \
d5eec917 8128 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8130 done; \
8ec98d6c 8131 echo "Doing clean in bison" ; \
7fc2ca22 8132 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8135 "RANLIB=$${RANLIB}" \
bffcbe34 8136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8137 clean) \
657b58f4
NN
8138 || exit 1
8139
a7e609d6 8140@endif bison
657b58f4 8141
8ec98d6c
NN
8142.PHONY: maybe-distclean-bison distclean-bison
8143maybe-distclean-bison:
a7e609d6
PB
8144@if bison
8145maybe-distclean-bison: distclean-bison
657b58f4 8146
8ec98d6c 8147distclean-bison:
15b527ca 8148 @: $(MAKE); $(unstage)
8ec98d6c 8149 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8150 r=`${PWD_COMMAND}`; export r; \
8151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8152 $(HOST_EXPORTS) \
d5eec917 8153 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8155 done; \
8ec98d6c 8156 echo "Doing distclean in bison" ; \
7fc2ca22 8157 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8160 "RANLIB=$${RANLIB}" \
bffcbe34 8161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8162 distclean) \
657b58f4
NN
8163 || exit 1
8164
a7e609d6 8165@endif bison
657b58f4 8166
8ec98d6c
NN
8167.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
8168maybe-maintainer-clean-bison:
a7e609d6
PB
8169@if bison
8170maybe-maintainer-clean-bison: maintainer-clean-bison
657b58f4 8171
8ec98d6c 8172maintainer-clean-bison:
15b527ca 8173 @: $(MAKE); $(unstage)
8ec98d6c 8174 @[ -f ./bison/Makefile ] || exit 0; \
5230d454
L
8175 r=`${PWD_COMMAND}`; export r; \
8176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8177 $(HOST_EXPORTS) \
d5eec917 8178 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8180 done; \
8ec98d6c 8181 echo "Doing maintainer-clean in bison" ; \
7fc2ca22 8182 (cd $(HOST_SUBDIR)/bison && \
657b58f4
NN
8183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8185 "RANLIB=$${RANLIB}" \
bffcbe34 8186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8187 maintainer-clean) \
657b58f4
NN
8188 || exit 1
8189
a7e609d6 8190@endif bison
657b58f4 8191
657b58f4 8192
f0fdfd34 8193
8ec98d6c
NN
8194.PHONY: configure-byacc maybe-configure-byacc
8195maybe-configure-byacc:
e1e5148c
CD
8196@if gcc-bootstrap
8197configure-byacc: stage_current
8198@endif gcc-bootstrap
a7e609d6
PB
8199@if byacc
8200maybe-configure-byacc: configure-byacc
ec92c4d6 8201configure-byacc:
15b527ca 8202 @: $(MAKE); $(unstage)
ec92c4d6 8203 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 8204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
8205 test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
8206 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
5074489a 8207 $(HOST_EXPORTS) \
f0fdfd34
PB
8208 echo Configuring in $(HOST_SUBDIR)/byacc; \
8209 cd "$(HOST_SUBDIR)/byacc" || exit 1; \
8ec98d6c 8210 case $(srcdir) in \
7fc2ca22
PB
8211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8212 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
8213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8214 esac; \
7fc2ca22
PB
8215 srcdiroption="--srcdir=$${topdir}/byacc"; \
8216 libsrcdir="$$s/byacc"; \
8ec98d6c 8217 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
8218 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8219 --target=${target_alias} $${srcdiroption} \
8ec98d6c 8220 || exit 1
a7e609d6 8221@endif byacc
8ec98d6c 8222
f0fdfd34
PB
8223
8224
a8a96878
PB
8225
8226
8ec98d6c
NN
8227.PHONY: all-byacc maybe-all-byacc
8228maybe-all-byacc:
e1e5148c
CD
8229@if gcc-bootstrap
8230all-byacc: stage_current
8231@endif gcc-bootstrap
a7e609d6 8232@if byacc
5e6b1f07 8233TARGET-byacc=all
a7e609d6 8234maybe-all-byacc: all-byacc
8ec98d6c 8235all-byacc: configure-byacc
15b527ca 8236 @: $(MAKE); $(unstage)
8ec98d6c
NN
8237 @r=`${PWD_COMMAND}`; export r; \
8238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 8239 $(HOST_EXPORTS) \
7fc2ca22 8240 (cd $(HOST_SUBDIR)/byacc && \
6532abb6
PB
8241 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
8242 $(TARGET-byacc))
a7e609d6 8243@endif byacc
8ec98d6c 8244
f0fdfd34 8245
a8a96878
PB
8246
8247
8ec98d6c
NN
8248.PHONY: check-byacc maybe-check-byacc
8249maybe-check-byacc:
a7e609d6
PB
8250@if byacc
8251maybe-check-byacc: check-byacc
8ec98d6c
NN
8252
8253# This module is only tested in a native toolchain.
8254check-byacc:
15b527ca 8255 @: $(MAKE); $(unstage)
8ec98d6c
NN
8256 @if [ '$(host)' = '$(target)' ] ; then \
8257 r=`${PWD_COMMAND}`; export r; \
8258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8259 $(HOST_EXPORTS) \
7fc2ca22 8260 (cd $(HOST_SUBDIR)/byacc && \
80e4c577 8261 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
8262 fi
8263
a7e609d6 8264@endif byacc
8ec98d6c
NN
8265
8266.PHONY: install-byacc maybe-install-byacc
8267maybe-install-byacc:
a7e609d6
PB
8268@if byacc
8269maybe-install-byacc: install-byacc
8ec98d6c
NN
8270
8271install-byacc: installdirs
15b527ca 8272 @: $(MAKE); $(unstage)
8ec98d6c
NN
8273 @r=`${PWD_COMMAND}`; export r; \
8274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8275 $(HOST_EXPORTS) \
7fc2ca22 8276 (cd $(HOST_SUBDIR)/byacc && \
93c60b6d 8277 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8278
a7e609d6 8279@endif byacc
8ec98d6c 8280
39bbbb69 8281# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
8282
8283.PHONY: maybe-info-byacc info-byacc
8284maybe-info-byacc:
a7e609d6
PB
8285@if byacc
8286maybe-info-byacc: info-byacc
8ec98d6c
NN
8287
8288info-byacc: \
8289 configure-byacc
15b527ca 8290 @: $(MAKE); $(unstage)
8ec98d6c 8291 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8292 r=`${PWD_COMMAND}`; export r; \
8293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8294 $(HOST_EXPORTS) \
d5eec917 8295 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8297 done; \
8ec98d6c 8298 echo "Doing info in byacc" ; \
7fc2ca22 8299 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8302 "RANLIB=$${RANLIB}" \
bffcbe34 8303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8304 info) \
657b58f4
NN
8305 || exit 1
8306
a7e609d6 8307@endif byacc
657b58f4 8308
8ec98d6c
NN
8309.PHONY: maybe-dvi-byacc dvi-byacc
8310maybe-dvi-byacc:
a7e609d6
PB
8311@if byacc
8312maybe-dvi-byacc: dvi-byacc
657b58f4 8313
8ec98d6c
NN
8314dvi-byacc: \
8315 configure-byacc
15b527ca 8316 @: $(MAKE); $(unstage)
8ec98d6c 8317 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8318 r=`${PWD_COMMAND}`; export r; \
8319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8320 $(HOST_EXPORTS) \
d5eec917 8321 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8323 done; \
8ec98d6c 8324 echo "Doing dvi in byacc" ; \
7fc2ca22 8325 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8328 "RANLIB=$${RANLIB}" \
bffcbe34 8329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8330 dvi) \
657b58f4
NN
8331 || exit 1
8332
a7e609d6 8333@endif byacc
657b58f4 8334
39bbbb69
DD
8335.PHONY: maybe-pdf-byacc pdf-byacc
8336maybe-pdf-byacc:
8337@if byacc
8338maybe-pdf-byacc: pdf-byacc
8339
8340pdf-byacc: \
8341 configure-byacc
8342 @: $(MAKE); $(unstage)
8343 @[ -f ./byacc/Makefile ] || exit 0; \
8344 r=`${PWD_COMMAND}`; export r; \
8345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8346 $(HOST_EXPORTS) \
8347 for flag in $(EXTRA_HOST_FLAGS) ; do \
8348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8349 done; \
8350 echo "Doing pdf in byacc" ; \
8351 (cd $(HOST_SUBDIR)/byacc && \
8352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8354 "RANLIB=$${RANLIB}" \
bffcbe34 8355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
8356 pdf) \
8357 || exit 1
8358
8359@endif byacc
8360
b6fb961f
MS
8361.PHONY: maybe-html-byacc html-byacc
8362maybe-html-byacc:
8363@if byacc
8364maybe-html-byacc: html-byacc
8365
8366html-byacc: \
8367 configure-byacc
15b527ca 8368 @: $(MAKE); $(unstage)
b6fb961f
MS
8369 @[ -f ./byacc/Makefile ] || exit 0; \
8370 r=`${PWD_COMMAND}`; export r; \
8371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
8372 $(HOST_EXPORTS) \
8373 for flag in $(EXTRA_HOST_FLAGS) ; do \
8374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8375 done; \
8376 echo "Doing html in byacc" ; \
7fc2ca22 8377 (cd $(HOST_SUBDIR)/byacc && \
b6fb961f
MS
8378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8380 "RANLIB=$${RANLIB}" \
bffcbe34 8381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
8382 html) \
8383 || exit 1
8384
8385@endif byacc
8386
8ec98d6c
NN
8387.PHONY: maybe-TAGS-byacc TAGS-byacc
8388maybe-TAGS-byacc:
a7e609d6
PB
8389@if byacc
8390maybe-TAGS-byacc: TAGS-byacc
657b58f4 8391
8ec98d6c
NN
8392TAGS-byacc: \
8393 configure-byacc
15b527ca 8394 @: $(MAKE); $(unstage)
8ec98d6c 8395 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8396 r=`${PWD_COMMAND}`; export r; \
8397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8398 $(HOST_EXPORTS) \
d5eec917 8399 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8401 done; \
8ec98d6c 8402 echo "Doing TAGS in byacc" ; \
7fc2ca22 8403 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8406 "RANLIB=$${RANLIB}" \
bffcbe34 8407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8408 TAGS) \
657b58f4
NN
8409 || exit 1
8410
a7e609d6 8411@endif byacc
657b58f4 8412
8ec98d6c
NN
8413.PHONY: maybe-install-info-byacc install-info-byacc
8414maybe-install-info-byacc:
a7e609d6
PB
8415@if byacc
8416maybe-install-info-byacc: install-info-byacc
657b58f4 8417
8ec98d6c
NN
8418install-info-byacc: \
8419 configure-byacc \
8420 info-byacc
15b527ca 8421 @: $(MAKE); $(unstage)
8ec98d6c 8422 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8423 r=`${PWD_COMMAND}`; export r; \
8424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8425 $(HOST_EXPORTS) \
d5eec917 8426 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8428 done; \
8ec98d6c 8429 echo "Doing install-info in byacc" ; \
7fc2ca22 8430 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8433 "RANLIB=$${RANLIB}" \
bffcbe34 8434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8435 install-info) \
657b58f4
NN
8436 || exit 1
8437
a7e609d6 8438@endif byacc
657b58f4 8439
d4954b6d
DD
8440.PHONY: maybe-install-pdf-byacc install-pdf-byacc
8441maybe-install-pdf-byacc:
8442@if byacc
8443maybe-install-pdf-byacc: install-pdf-byacc
8444
8445install-pdf-byacc: \
8446 configure-byacc \
8447 pdf-byacc
8448 @: $(MAKE); $(unstage)
8449 @[ -f ./byacc/Makefile ] || exit 0; \
8450 r=`${PWD_COMMAND}`; export r; \
8451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8452 $(HOST_EXPORTS) \
8453 for flag in $(EXTRA_HOST_FLAGS) ; do \
8454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8455 done; \
8456 echo "Doing install-pdf in byacc" ; \
8457 (cd $(HOST_SUBDIR)/byacc && \
8458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8460 "RANLIB=$${RANLIB}" \
bffcbe34 8461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8462 install-pdf) \
8463 || exit 1
8464
8465@endif byacc
8466
83c9add4
CD
8467.PHONY: maybe-install-html-byacc install-html-byacc
8468maybe-install-html-byacc:
8469@if byacc
8470maybe-install-html-byacc: install-html-byacc
8471
8472install-html-byacc: \
8473 configure-byacc \
8474 html-byacc
8475 @: $(MAKE); $(unstage)
8476 @[ -f ./byacc/Makefile ] || exit 0; \
8477 r=`${PWD_COMMAND}`; export r; \
8478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8479 $(HOST_EXPORTS) \
8480 for flag in $(EXTRA_HOST_FLAGS) ; do \
8481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8482 done; \
8483 echo "Doing install-html in byacc" ; \
8484 (cd $(HOST_SUBDIR)/byacc && \
8485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8487 "RANLIB=$${RANLIB}" \
bffcbe34 8488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8489 install-html) \
8490 || exit 1
8491
8492@endif byacc
8493
8ec98d6c
NN
8494.PHONY: maybe-installcheck-byacc installcheck-byacc
8495maybe-installcheck-byacc:
a7e609d6
PB
8496@if byacc
8497maybe-installcheck-byacc: installcheck-byacc
657b58f4 8498
8ec98d6c
NN
8499installcheck-byacc: \
8500 configure-byacc
15b527ca 8501 @: $(MAKE); $(unstage)
8ec98d6c 8502 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8503 r=`${PWD_COMMAND}`; export r; \
8504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8505 $(HOST_EXPORTS) \
d5eec917 8506 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8508 done; \
8ec98d6c 8509 echo "Doing installcheck in byacc" ; \
7fc2ca22 8510 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8513 "RANLIB=$${RANLIB}" \
bffcbe34 8514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8515 installcheck) \
657b58f4
NN
8516 || exit 1
8517
a7e609d6 8518@endif byacc
657b58f4 8519
8ec98d6c
NN
8520.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
8521maybe-mostlyclean-byacc:
a7e609d6
PB
8522@if byacc
8523maybe-mostlyclean-byacc: mostlyclean-byacc
657b58f4 8524
8ec98d6c 8525mostlyclean-byacc:
15b527ca 8526 @: $(MAKE); $(unstage)
8ec98d6c 8527 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8528 r=`${PWD_COMMAND}`; export r; \
8529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8530 $(HOST_EXPORTS) \
d5eec917 8531 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8533 done; \
8ec98d6c 8534 echo "Doing mostlyclean in byacc" ; \
7fc2ca22 8535 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8538 "RANLIB=$${RANLIB}" \
bffcbe34 8539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8540 mostlyclean) \
657b58f4
NN
8541 || exit 1
8542
a7e609d6 8543@endif byacc
657b58f4 8544
8ec98d6c
NN
8545.PHONY: maybe-clean-byacc clean-byacc
8546maybe-clean-byacc:
a7e609d6
PB
8547@if byacc
8548maybe-clean-byacc: clean-byacc
657b58f4 8549
8ec98d6c 8550clean-byacc:
15b527ca 8551 @: $(MAKE); $(unstage)
8ec98d6c 8552 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8553 r=`${PWD_COMMAND}`; export r; \
8554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8555 $(HOST_EXPORTS) \
d5eec917 8556 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8558 done; \
8ec98d6c 8559 echo "Doing clean in byacc" ; \
7fc2ca22 8560 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8563 "RANLIB=$${RANLIB}" \
bffcbe34 8564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8565 clean) \
657b58f4
NN
8566 || exit 1
8567
a7e609d6 8568@endif byacc
657b58f4 8569
8ec98d6c
NN
8570.PHONY: maybe-distclean-byacc distclean-byacc
8571maybe-distclean-byacc:
a7e609d6
PB
8572@if byacc
8573maybe-distclean-byacc: distclean-byacc
657b58f4 8574
8ec98d6c 8575distclean-byacc:
15b527ca 8576 @: $(MAKE); $(unstage)
8ec98d6c 8577 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8578 r=`${PWD_COMMAND}`; export r; \
8579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8580 $(HOST_EXPORTS) \
d5eec917 8581 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8583 done; \
8ec98d6c 8584 echo "Doing distclean in byacc" ; \
7fc2ca22 8585 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8588 "RANLIB=$${RANLIB}" \
bffcbe34 8589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8590 distclean) \
657b58f4
NN
8591 || exit 1
8592
a7e609d6 8593@endif byacc
657b58f4 8594
8ec98d6c
NN
8595.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
8596maybe-maintainer-clean-byacc:
a7e609d6
PB
8597@if byacc
8598maybe-maintainer-clean-byacc: maintainer-clean-byacc
657b58f4 8599
8ec98d6c 8600maintainer-clean-byacc:
15b527ca 8601 @: $(MAKE); $(unstage)
8ec98d6c 8602 @[ -f ./byacc/Makefile ] || exit 0; \
5230d454
L
8603 r=`${PWD_COMMAND}`; export r; \
8604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8605 $(HOST_EXPORTS) \
d5eec917 8606 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8608 done; \
8ec98d6c 8609 echo "Doing maintainer-clean in byacc" ; \
7fc2ca22 8610 (cd $(HOST_SUBDIR)/byacc && \
657b58f4
NN
8611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8613 "RANLIB=$${RANLIB}" \
bffcbe34 8614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8615 maintainer-clean) \
657b58f4
NN
8616 || exit 1
8617
a7e609d6 8618@endif byacc
657b58f4 8619
657b58f4 8620
f0fdfd34 8621
8ec98d6c
NN
8622.PHONY: configure-bzip2 maybe-configure-bzip2
8623maybe-configure-bzip2:
e1e5148c
CD
8624@if gcc-bootstrap
8625configure-bzip2: stage_current
8626@endif gcc-bootstrap
a7e609d6
PB
8627@if bzip2
8628maybe-configure-bzip2: configure-bzip2
ec92c4d6 8629configure-bzip2:
15b527ca 8630 @: $(MAKE); $(unstage)
ec92c4d6 8631 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 8632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
8633 test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
8634 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
5074489a 8635 $(HOST_EXPORTS) \
f0fdfd34
PB
8636 echo Configuring in $(HOST_SUBDIR)/bzip2; \
8637 cd "$(HOST_SUBDIR)/bzip2" || exit 1; \
8ec98d6c 8638 case $(srcdir) in \
7fc2ca22
PB
8639 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8640 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
8641 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 8642 esac; \
7fc2ca22
PB
8643 srcdiroption="--srcdir=$${topdir}/bzip2"; \
8644 libsrcdir="$$s/bzip2"; \
8ec98d6c 8645 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
8646 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8647 --target=${target_alias} $${srcdiroption} \
8ec98d6c 8648 || exit 1
a7e609d6 8649@endif bzip2
8ec98d6c 8650
f0fdfd34
PB
8651
8652
a8a96878
PB
8653
8654
8ec98d6c
NN
8655.PHONY: all-bzip2 maybe-all-bzip2
8656maybe-all-bzip2:
e1e5148c
CD
8657@if gcc-bootstrap
8658all-bzip2: stage_current
8659@endif gcc-bootstrap
a7e609d6 8660@if bzip2
5e6b1f07 8661TARGET-bzip2=all
a7e609d6 8662maybe-all-bzip2: all-bzip2
8ec98d6c 8663all-bzip2: configure-bzip2
15b527ca 8664 @: $(MAKE); $(unstage)
8ec98d6c
NN
8665 @r=`${PWD_COMMAND}`; export r; \
8666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 8667 $(HOST_EXPORTS) \
7fc2ca22 8668 (cd $(HOST_SUBDIR)/bzip2 && \
6532abb6
PB
8669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
8670 $(TARGET-bzip2))
a7e609d6 8671@endif bzip2
8ec98d6c 8672
f0fdfd34 8673
a8a96878
PB
8674
8675
8ec98d6c
NN
8676.PHONY: check-bzip2 maybe-check-bzip2
8677maybe-check-bzip2:
a7e609d6
PB
8678@if bzip2
8679maybe-check-bzip2: check-bzip2
8ec98d6c
NN
8680
8681check-bzip2:
15b527ca 8682 @: $(MAKE); $(unstage)
8ec98d6c
NN
8683 @r=`${PWD_COMMAND}`; export r; \
8684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8685 $(HOST_EXPORTS) \
7fc2ca22
PB
8686 (cd $(HOST_SUBDIR)/bzip2 && \
8687 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 8688
a7e609d6 8689@endif bzip2
8ec98d6c
NN
8690
8691.PHONY: install-bzip2 maybe-install-bzip2
8692maybe-install-bzip2:
a7e609d6
PB
8693@if bzip2
8694maybe-install-bzip2: install-bzip2
8ec98d6c
NN
8695
8696install-bzip2: installdirs
15b527ca 8697 @: $(MAKE); $(unstage)
8ec98d6c
NN
8698 @r=`${PWD_COMMAND}`; export r; \
8699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8700 $(HOST_EXPORTS) \
7fc2ca22 8701 (cd $(HOST_SUBDIR)/bzip2 && \
93c60b6d 8702 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 8703
a7e609d6 8704@endif bzip2
8ec98d6c 8705
39bbbb69 8706# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
8707
8708.PHONY: maybe-info-bzip2 info-bzip2
8709maybe-info-bzip2:
a7e609d6
PB
8710@if bzip2
8711maybe-info-bzip2: info-bzip2
8ec98d6c
NN
8712
8713info-bzip2: \
8714 configure-bzip2
15b527ca 8715 @: $(MAKE); $(unstage)
8ec98d6c 8716 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8717 r=`${PWD_COMMAND}`; export r; \
8718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8719 $(HOST_EXPORTS) \
d5eec917 8720 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8722 done; \
8ec98d6c 8723 echo "Doing info in bzip2" ; \
7fc2ca22 8724 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8727 "RANLIB=$${RANLIB}" \
bffcbe34 8728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8729 info) \
657b58f4
NN
8730 || exit 1
8731
a7e609d6 8732@endif bzip2
657b58f4 8733
8ec98d6c
NN
8734.PHONY: maybe-dvi-bzip2 dvi-bzip2
8735maybe-dvi-bzip2:
a7e609d6
PB
8736@if bzip2
8737maybe-dvi-bzip2: dvi-bzip2
657b58f4 8738
8ec98d6c
NN
8739dvi-bzip2: \
8740 configure-bzip2
15b527ca 8741 @: $(MAKE); $(unstage)
8ec98d6c 8742 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8743 r=`${PWD_COMMAND}`; export r; \
8744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8745 $(HOST_EXPORTS) \
d5eec917 8746 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8748 done; \
8ec98d6c 8749 echo "Doing dvi in bzip2" ; \
7fc2ca22 8750 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8753 "RANLIB=$${RANLIB}" \
bffcbe34 8754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8755 dvi) \
657b58f4
NN
8756 || exit 1
8757
a7e609d6 8758@endif bzip2
657b58f4 8759
39bbbb69
DD
8760.PHONY: maybe-pdf-bzip2 pdf-bzip2
8761maybe-pdf-bzip2:
8762@if bzip2
8763maybe-pdf-bzip2: pdf-bzip2
8764
8765pdf-bzip2: \
8766 configure-bzip2
8767 @: $(MAKE); $(unstage)
8768 @[ -f ./bzip2/Makefile ] || exit 0; \
8769 r=`${PWD_COMMAND}`; export r; \
8770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8771 $(HOST_EXPORTS) \
8772 for flag in $(EXTRA_HOST_FLAGS) ; do \
8773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8774 done; \
8775 echo "Doing pdf in bzip2" ; \
8776 (cd $(HOST_SUBDIR)/bzip2 && \
8777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8779 "RANLIB=$${RANLIB}" \
bffcbe34 8780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
8781 pdf) \
8782 || exit 1
8783
8784@endif bzip2
8785
b6fb961f
MS
8786.PHONY: maybe-html-bzip2 html-bzip2
8787maybe-html-bzip2:
8788@if bzip2
8789maybe-html-bzip2: html-bzip2
8790
8791html-bzip2: \
8792 configure-bzip2
15b527ca 8793 @: $(MAKE); $(unstage)
b6fb961f
MS
8794 @[ -f ./bzip2/Makefile ] || exit 0; \
8795 r=`${PWD_COMMAND}`; export r; \
8796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
8797 $(HOST_EXPORTS) \
8798 for flag in $(EXTRA_HOST_FLAGS) ; do \
8799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8800 done; \
8801 echo "Doing html in bzip2" ; \
7fc2ca22 8802 (cd $(HOST_SUBDIR)/bzip2 && \
b6fb961f
MS
8803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8805 "RANLIB=$${RANLIB}" \
bffcbe34 8806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
8807 html) \
8808 || exit 1
8809
8810@endif bzip2
8811
8ec98d6c
NN
8812.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
8813maybe-TAGS-bzip2:
a7e609d6
PB
8814@if bzip2
8815maybe-TAGS-bzip2: TAGS-bzip2
657b58f4 8816
8ec98d6c
NN
8817TAGS-bzip2: \
8818 configure-bzip2
15b527ca 8819 @: $(MAKE); $(unstage)
8ec98d6c 8820 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8821 r=`${PWD_COMMAND}`; export r; \
8822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8823 $(HOST_EXPORTS) \
d5eec917 8824 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8826 done; \
8ec98d6c 8827 echo "Doing TAGS in bzip2" ; \
7fc2ca22 8828 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8831 "RANLIB=$${RANLIB}" \
bffcbe34 8832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8833 TAGS) \
657b58f4
NN
8834 || exit 1
8835
a7e609d6 8836@endif bzip2
657b58f4 8837
8ec98d6c
NN
8838.PHONY: maybe-install-info-bzip2 install-info-bzip2
8839maybe-install-info-bzip2:
a7e609d6
PB
8840@if bzip2
8841maybe-install-info-bzip2: install-info-bzip2
657b58f4 8842
8ec98d6c
NN
8843install-info-bzip2: \
8844 configure-bzip2 \
8845 info-bzip2
15b527ca 8846 @: $(MAKE); $(unstage)
8ec98d6c 8847 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8848 r=`${PWD_COMMAND}`; export r; \
8849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8850 $(HOST_EXPORTS) \
d5eec917 8851 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8853 done; \
8ec98d6c 8854 echo "Doing install-info in bzip2" ; \
7fc2ca22 8855 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8858 "RANLIB=$${RANLIB}" \
bffcbe34 8859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8860 install-info) \
657b58f4
NN
8861 || exit 1
8862
a7e609d6 8863@endif bzip2
657b58f4 8864
d4954b6d
DD
8865.PHONY: maybe-install-pdf-bzip2 install-pdf-bzip2
8866maybe-install-pdf-bzip2:
8867@if bzip2
8868maybe-install-pdf-bzip2: install-pdf-bzip2
8869
8870install-pdf-bzip2: \
8871 configure-bzip2 \
8872 pdf-bzip2
8873 @: $(MAKE); $(unstage)
8874 @[ -f ./bzip2/Makefile ] || exit 0; \
8875 r=`${PWD_COMMAND}`; export r; \
8876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8877 $(HOST_EXPORTS) \
8878 for flag in $(EXTRA_HOST_FLAGS) ; do \
8879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8880 done; \
8881 echo "Doing install-pdf in bzip2" ; \
8882 (cd $(HOST_SUBDIR)/bzip2 && \
8883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8885 "RANLIB=$${RANLIB}" \
bffcbe34 8886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
8887 install-pdf) \
8888 || exit 1
8889
8890@endif bzip2
8891
83c9add4
CD
8892.PHONY: maybe-install-html-bzip2 install-html-bzip2
8893maybe-install-html-bzip2:
8894@if bzip2
8895maybe-install-html-bzip2: install-html-bzip2
8896
8897install-html-bzip2: \
8898 configure-bzip2 \
8899 html-bzip2
8900 @: $(MAKE); $(unstage)
8901 @[ -f ./bzip2/Makefile ] || exit 0; \
8902 r=`${PWD_COMMAND}`; export r; \
8903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8904 $(HOST_EXPORTS) \
8905 for flag in $(EXTRA_HOST_FLAGS) ; do \
8906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8907 done; \
8908 echo "Doing install-html in bzip2" ; \
8909 (cd $(HOST_SUBDIR)/bzip2 && \
8910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8912 "RANLIB=$${RANLIB}" \
bffcbe34 8913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
8914 install-html) \
8915 || exit 1
8916
8917@endif bzip2
8918
8ec98d6c
NN
8919.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
8920maybe-installcheck-bzip2:
a7e609d6
PB
8921@if bzip2
8922maybe-installcheck-bzip2: installcheck-bzip2
657b58f4 8923
8ec98d6c
NN
8924installcheck-bzip2: \
8925 configure-bzip2
15b527ca 8926 @: $(MAKE); $(unstage)
8ec98d6c 8927 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8928 r=`${PWD_COMMAND}`; export r; \
8929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8930 $(HOST_EXPORTS) \
d5eec917 8931 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8933 done; \
8ec98d6c 8934 echo "Doing installcheck in bzip2" ; \
7fc2ca22 8935 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8938 "RANLIB=$${RANLIB}" \
bffcbe34 8939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8940 installcheck) \
657b58f4
NN
8941 || exit 1
8942
a7e609d6 8943@endif bzip2
657b58f4 8944
8ec98d6c
NN
8945.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
8946maybe-mostlyclean-bzip2:
a7e609d6
PB
8947@if bzip2
8948maybe-mostlyclean-bzip2: mostlyclean-bzip2
657b58f4 8949
8ec98d6c 8950mostlyclean-bzip2:
15b527ca 8951 @: $(MAKE); $(unstage)
8ec98d6c 8952 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8953 r=`${PWD_COMMAND}`; export r; \
8954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8955 $(HOST_EXPORTS) \
d5eec917 8956 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8958 done; \
8ec98d6c 8959 echo "Doing mostlyclean in bzip2" ; \
7fc2ca22 8960 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8963 "RANLIB=$${RANLIB}" \
bffcbe34 8964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8965 mostlyclean) \
657b58f4
NN
8966 || exit 1
8967
a7e609d6 8968@endif bzip2
657b58f4 8969
8ec98d6c
NN
8970.PHONY: maybe-clean-bzip2 clean-bzip2
8971maybe-clean-bzip2:
a7e609d6
PB
8972@if bzip2
8973maybe-clean-bzip2: clean-bzip2
657b58f4 8974
8ec98d6c 8975clean-bzip2:
15b527ca 8976 @: $(MAKE); $(unstage)
8ec98d6c 8977 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
8978 r=`${PWD_COMMAND}`; export r; \
8979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 8980 $(HOST_EXPORTS) \
d5eec917 8981 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
8982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8983 done; \
8ec98d6c 8984 echo "Doing clean in bzip2" ; \
7fc2ca22 8985 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
8986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8988 "RANLIB=$${RANLIB}" \
bffcbe34 8989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 8990 clean) \
657b58f4
NN
8991 || exit 1
8992
a7e609d6 8993@endif bzip2
657b58f4 8994
8ec98d6c
NN
8995.PHONY: maybe-distclean-bzip2 distclean-bzip2
8996maybe-distclean-bzip2:
a7e609d6
PB
8997@if bzip2
8998maybe-distclean-bzip2: distclean-bzip2
657b58f4 8999
8ec98d6c 9000distclean-bzip2:
15b527ca 9001 @: $(MAKE); $(unstage)
8ec98d6c 9002 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
9003 r=`${PWD_COMMAND}`; export r; \
9004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9005 $(HOST_EXPORTS) \
d5eec917 9006 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9008 done; \
8ec98d6c 9009 echo "Doing distclean in bzip2" ; \
7fc2ca22 9010 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
9011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9013 "RANLIB=$${RANLIB}" \
bffcbe34 9014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9015 distclean) \
657b58f4
NN
9016 || exit 1
9017
a7e609d6 9018@endif bzip2
657b58f4 9019
8ec98d6c
NN
9020.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
9021maybe-maintainer-clean-bzip2:
a7e609d6
PB
9022@if bzip2
9023maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
657b58f4 9024
8ec98d6c 9025maintainer-clean-bzip2:
15b527ca 9026 @: $(MAKE); $(unstage)
8ec98d6c 9027 @[ -f ./bzip2/Makefile ] || exit 0; \
5230d454
L
9028 r=`${PWD_COMMAND}`; export r; \
9029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9030 $(HOST_EXPORTS) \
d5eec917 9031 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9033 done; \
8ec98d6c 9034 echo "Doing maintainer-clean in bzip2" ; \
7fc2ca22 9035 (cd $(HOST_SUBDIR)/bzip2 && \
657b58f4
NN
9036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9038 "RANLIB=$${RANLIB}" \
bffcbe34 9039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9040 maintainer-clean) \
657b58f4
NN
9041 || exit 1
9042
a7e609d6 9043@endif bzip2
657b58f4 9044
657b58f4 9045
f0fdfd34 9046
d0880d62
DE
9047.PHONY: configure-cgen maybe-configure-cgen
9048maybe-configure-cgen:
9049@if gcc-bootstrap
9050configure-cgen: stage_current
9051@endif gcc-bootstrap
9052@if cgen
9053maybe-configure-cgen: configure-cgen
9054configure-cgen:
9055 @: $(MAKE); $(unstage)
9056 @r=`${PWD_COMMAND}`; export r; \
9057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9058 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
9059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen ; \
5074489a 9060 $(HOST_EXPORTS) \
d0880d62
DE
9061 echo Configuring in $(HOST_SUBDIR)/cgen; \
9062 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
9063 case $(srcdir) in \
9064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9065 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
9066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9067 esac; \
9068 srcdiroption="--srcdir=$${topdir}/cgen"; \
9069 libsrcdir="$$s/cgen"; \
9070 $(SHELL) $${libsrcdir}/configure \
9071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9072 --target=${target_alias} $${srcdiroption} \
9073 || exit 1
9074@endif cgen
9075
9076
9077
9078
9079
9080.PHONY: all-cgen maybe-all-cgen
9081maybe-all-cgen:
9082@if gcc-bootstrap
9083all-cgen: stage_current
9084@endif gcc-bootstrap
9085@if cgen
9086TARGET-cgen=all
9087maybe-all-cgen: all-cgen
9088all-cgen: configure-cgen
9089 @: $(MAKE); $(unstage)
9090 @r=`${PWD_COMMAND}`; export r; \
9091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 9092 $(HOST_EXPORTS) \
d0880d62
DE
9093 (cd $(HOST_SUBDIR)/cgen && \
9094 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9095 $(TARGET-cgen))
9096@endif cgen
9097
9098
9099
9100
9101.PHONY: check-cgen maybe-check-cgen
9102maybe-check-cgen:
9103@if cgen
9104maybe-check-cgen: check-cgen
9105
9106check-cgen:
9107 @: $(MAKE); $(unstage)
9108 @r=`${PWD_COMMAND}`; export r; \
9109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9110 $(HOST_EXPORTS) \
9111 (cd $(HOST_SUBDIR)/cgen && \
9112 $(MAKE) $(FLAGS_TO_PASS) check)
9113
9114@endif cgen
9115
9116.PHONY: install-cgen maybe-install-cgen
9117maybe-install-cgen:
9118@if cgen
9119maybe-install-cgen: install-cgen
9120
9121install-cgen: installdirs
9122 @: $(MAKE); $(unstage)
9123 @r=`${PWD_COMMAND}`; export r; \
9124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9125 $(HOST_EXPORTS) \
9126 (cd $(HOST_SUBDIR)/cgen && \
9127 $(MAKE) $(FLAGS_TO_PASS) install)
9128
9129@endif cgen
9130
9131# Other targets (info, dvi, pdf, etc.)
9132
9133.PHONY: maybe-info-cgen info-cgen
9134maybe-info-cgen:
9135@if cgen
9136maybe-info-cgen: info-cgen
9137
9138info-cgen: \
9139 configure-cgen
9140 @: $(MAKE); $(unstage)
9141 @[ -f ./cgen/Makefile ] || exit 0; \
9142 r=`${PWD_COMMAND}`; export r; \
9143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9144 $(HOST_EXPORTS) \
9145 for flag in $(EXTRA_HOST_FLAGS) ; do \
9146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9147 done; \
9148 echo "Doing info in cgen" ; \
9149 (cd $(HOST_SUBDIR)/cgen && \
9150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9152 "RANLIB=$${RANLIB}" \
9153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9154 info) \
9155 || exit 1
9156
9157@endif cgen
9158
9159.PHONY: maybe-dvi-cgen dvi-cgen
9160maybe-dvi-cgen:
9161@if cgen
9162maybe-dvi-cgen: dvi-cgen
9163
9164dvi-cgen: \
9165 configure-cgen
9166 @: $(MAKE); $(unstage)
9167 @[ -f ./cgen/Makefile ] || exit 0; \
9168 r=`${PWD_COMMAND}`; export r; \
9169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9170 $(HOST_EXPORTS) \
9171 for flag in $(EXTRA_HOST_FLAGS) ; do \
9172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9173 done; \
9174 echo "Doing dvi in cgen" ; \
9175 (cd $(HOST_SUBDIR)/cgen && \
9176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9178 "RANLIB=$${RANLIB}" \
9179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9180 dvi) \
9181 || exit 1
9182
9183@endif cgen
9184
9185.PHONY: maybe-pdf-cgen pdf-cgen
9186maybe-pdf-cgen:
9187@if cgen
9188maybe-pdf-cgen: pdf-cgen
9189
9190pdf-cgen: \
9191 configure-cgen
9192 @: $(MAKE); $(unstage)
9193 @[ -f ./cgen/Makefile ] || exit 0; \
9194 r=`${PWD_COMMAND}`; export r; \
9195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9196 $(HOST_EXPORTS) \
9197 for flag in $(EXTRA_HOST_FLAGS) ; do \
9198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9199 done; \
9200 echo "Doing pdf in cgen" ; \
9201 (cd $(HOST_SUBDIR)/cgen && \
9202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9204 "RANLIB=$${RANLIB}" \
9205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9206 pdf) \
9207 || exit 1
9208
9209@endif cgen
9210
9211.PHONY: maybe-html-cgen html-cgen
9212maybe-html-cgen:
9213@if cgen
9214maybe-html-cgen: html-cgen
9215
9216html-cgen: \
9217 configure-cgen
9218 @: $(MAKE); $(unstage)
9219 @[ -f ./cgen/Makefile ] || exit 0; \
9220 r=`${PWD_COMMAND}`; export r; \
9221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9222 $(HOST_EXPORTS) \
9223 for flag in $(EXTRA_HOST_FLAGS) ; do \
9224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9225 done; \
9226 echo "Doing html in cgen" ; \
9227 (cd $(HOST_SUBDIR)/cgen && \
9228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9230 "RANLIB=$${RANLIB}" \
9231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9232 html) \
9233 || exit 1
9234
9235@endif cgen
9236
9237.PHONY: maybe-TAGS-cgen TAGS-cgen
9238maybe-TAGS-cgen:
9239@if cgen
9240maybe-TAGS-cgen: TAGS-cgen
9241
9242TAGS-cgen: \
9243 configure-cgen
9244 @: $(MAKE); $(unstage)
9245 @[ -f ./cgen/Makefile ] || exit 0; \
9246 r=`${PWD_COMMAND}`; export r; \
9247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9248 $(HOST_EXPORTS) \
9249 for flag in $(EXTRA_HOST_FLAGS) ; do \
9250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9251 done; \
9252 echo "Doing TAGS in cgen" ; \
9253 (cd $(HOST_SUBDIR)/cgen && \
9254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9256 "RANLIB=$${RANLIB}" \
9257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9258 TAGS) \
9259 || exit 1
9260
9261@endif cgen
9262
9263.PHONY: maybe-install-info-cgen install-info-cgen
9264maybe-install-info-cgen:
9265@if cgen
9266maybe-install-info-cgen: install-info-cgen
9267
9268install-info-cgen: \
9269 configure-cgen \
9270 info-cgen
9271 @: $(MAKE); $(unstage)
9272 @[ -f ./cgen/Makefile ] || exit 0; \
9273 r=`${PWD_COMMAND}`; export r; \
9274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9275 $(HOST_EXPORTS) \
9276 for flag in $(EXTRA_HOST_FLAGS) ; do \
9277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9278 done; \
9279 echo "Doing install-info in cgen" ; \
9280 (cd $(HOST_SUBDIR)/cgen && \
9281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9283 "RANLIB=$${RANLIB}" \
9284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9285 install-info) \
9286 || exit 1
9287
9288@endif cgen
9289
9290.PHONY: maybe-install-pdf-cgen install-pdf-cgen
9291maybe-install-pdf-cgen:
9292@if cgen
9293maybe-install-pdf-cgen: install-pdf-cgen
9294
9295install-pdf-cgen: \
9296 configure-cgen \
9297 pdf-cgen
9298 @: $(MAKE); $(unstage)
9299 @[ -f ./cgen/Makefile ] || exit 0; \
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; \
9306 echo "Doing install-pdf in cgen" ; \
9307 (cd $(HOST_SUBDIR)/cgen && \
9308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9310 "RANLIB=$${RANLIB}" \
9311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9312 install-pdf) \
9313 || exit 1
9314
9315@endif cgen
9316
9317.PHONY: maybe-install-html-cgen install-html-cgen
9318maybe-install-html-cgen:
9319@if cgen
9320maybe-install-html-cgen: install-html-cgen
9321
9322install-html-cgen: \
9323 configure-cgen \
9324 html-cgen
9325 @: $(MAKE); $(unstage)
9326 @[ -f ./cgen/Makefile ] || exit 0; \
9327 r=`${PWD_COMMAND}`; export r; \
9328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9329 $(HOST_EXPORTS) \
9330 for flag in $(EXTRA_HOST_FLAGS) ; do \
9331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9332 done; \
9333 echo "Doing install-html in cgen" ; \
9334 (cd $(HOST_SUBDIR)/cgen && \
9335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9337 "RANLIB=$${RANLIB}" \
9338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9339 install-html) \
9340 || exit 1
9341
9342@endif cgen
9343
9344.PHONY: maybe-installcheck-cgen installcheck-cgen
9345maybe-installcheck-cgen:
9346@if cgen
9347maybe-installcheck-cgen: installcheck-cgen
9348
9349installcheck-cgen: \
9350 configure-cgen
9351 @: $(MAKE); $(unstage)
9352 @[ -f ./cgen/Makefile ] || exit 0; \
9353 r=`${PWD_COMMAND}`; export r; \
9354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9355 $(HOST_EXPORTS) \
9356 for flag in $(EXTRA_HOST_FLAGS) ; do \
9357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9358 done; \
9359 echo "Doing installcheck in cgen" ; \
9360 (cd $(HOST_SUBDIR)/cgen && \
9361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9363 "RANLIB=$${RANLIB}" \
9364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9365 installcheck) \
9366 || exit 1
9367
9368@endif cgen
9369
9370.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
9371maybe-mostlyclean-cgen:
9372@if cgen
9373maybe-mostlyclean-cgen: mostlyclean-cgen
9374
9375mostlyclean-cgen:
9376 @: $(MAKE); $(unstage)
9377 @[ -f ./cgen/Makefile ] || exit 0; \
9378 r=`${PWD_COMMAND}`; export r; \
9379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9380 $(HOST_EXPORTS) \
9381 for flag in $(EXTRA_HOST_FLAGS) ; do \
9382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9383 done; \
9384 echo "Doing mostlyclean in cgen" ; \
9385 (cd $(HOST_SUBDIR)/cgen && \
9386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9388 "RANLIB=$${RANLIB}" \
9389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9390 mostlyclean) \
9391 || exit 1
9392
9393@endif cgen
9394
9395.PHONY: maybe-clean-cgen clean-cgen
9396maybe-clean-cgen:
9397@if cgen
9398maybe-clean-cgen: clean-cgen
9399
9400clean-cgen:
9401 @: $(MAKE); $(unstage)
9402 @[ -f ./cgen/Makefile ] || exit 0; \
9403 r=`${PWD_COMMAND}`; export r; \
9404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9405 $(HOST_EXPORTS) \
9406 for flag in $(EXTRA_HOST_FLAGS) ; do \
9407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9408 done; \
9409 echo "Doing clean in cgen" ; \
9410 (cd $(HOST_SUBDIR)/cgen && \
9411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9413 "RANLIB=$${RANLIB}" \
9414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9415 clean) \
9416 || exit 1
9417
9418@endif cgen
9419
9420.PHONY: maybe-distclean-cgen distclean-cgen
9421maybe-distclean-cgen:
9422@if cgen
9423maybe-distclean-cgen: distclean-cgen
9424
9425distclean-cgen:
9426 @: $(MAKE); $(unstage)
9427 @[ -f ./cgen/Makefile ] || exit 0; \
9428 r=`${PWD_COMMAND}`; export r; \
9429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9430 $(HOST_EXPORTS) \
9431 for flag in $(EXTRA_HOST_FLAGS) ; do \
9432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9433 done; \
9434 echo "Doing distclean in cgen" ; \
9435 (cd $(HOST_SUBDIR)/cgen && \
9436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9438 "RANLIB=$${RANLIB}" \
9439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9440 distclean) \
9441 || exit 1
9442
9443@endif cgen
9444
9445.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
9446maybe-maintainer-clean-cgen:
9447@if cgen
9448maybe-maintainer-clean-cgen: maintainer-clean-cgen
9449
9450maintainer-clean-cgen:
9451 @: $(MAKE); $(unstage)
9452 @[ -f ./cgen/Makefile ] || exit 0; \
9453 r=`${PWD_COMMAND}`; export r; \
9454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9455 $(HOST_EXPORTS) \
9456 for flag in $(EXTRA_HOST_FLAGS) ; do \
9457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9458 done; \
9459 echo "Doing maintainer-clean in cgen" ; \
9460 (cd $(HOST_SUBDIR)/cgen && \
9461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9463 "RANLIB=$${RANLIB}" \
9464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9465 maintainer-clean) \
9466 || exit 1
9467
9468@endif cgen
9469
9470
9471
8ec98d6c
NN
9472.PHONY: configure-dejagnu maybe-configure-dejagnu
9473maybe-configure-dejagnu:
e1e5148c
CD
9474@if gcc-bootstrap
9475configure-dejagnu: stage_current
9476@endif gcc-bootstrap
a7e609d6
PB
9477@if dejagnu
9478maybe-configure-dejagnu: configure-dejagnu
ec92c4d6 9479configure-dejagnu:
15b527ca 9480 @: $(MAKE); $(unstage)
ec92c4d6 9481 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 9482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
9483 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
9484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
5074489a 9485 $(HOST_EXPORTS) \
f0fdfd34
PB
9486 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
9487 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
8ec98d6c 9488 case $(srcdir) in \
7fc2ca22
PB
9489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9490 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
9491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9492 esac; \
7fc2ca22
PB
9493 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
9494 libsrcdir="$$s/dejagnu"; \
8ec98d6c 9495 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
9496 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9497 --target=${target_alias} $${srcdiroption} \
8ec98d6c 9498 || exit 1
a7e609d6 9499@endif dejagnu
8ec98d6c 9500
f0fdfd34
PB
9501
9502
a8a96878
PB
9503
9504
8ec98d6c
NN
9505.PHONY: all-dejagnu maybe-all-dejagnu
9506maybe-all-dejagnu:
e1e5148c
CD
9507@if gcc-bootstrap
9508all-dejagnu: stage_current
9509@endif gcc-bootstrap
a7e609d6 9510@if dejagnu
5e6b1f07 9511TARGET-dejagnu=all
a7e609d6 9512maybe-all-dejagnu: all-dejagnu
8ec98d6c 9513all-dejagnu: configure-dejagnu
15b527ca 9514 @: $(MAKE); $(unstage)
8ec98d6c
NN
9515 @r=`${PWD_COMMAND}`; export r; \
9516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 9517 $(HOST_EXPORTS) \
7fc2ca22 9518 (cd $(HOST_SUBDIR)/dejagnu && \
6532abb6
PB
9519 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9520 $(TARGET-dejagnu))
a7e609d6 9521@endif dejagnu
8ec98d6c 9522
f0fdfd34 9523
a8a96878
PB
9524
9525
8ec98d6c
NN
9526.PHONY: check-dejagnu maybe-check-dejagnu
9527maybe-check-dejagnu:
a7e609d6
PB
9528@if dejagnu
9529maybe-check-dejagnu: check-dejagnu
8ec98d6c
NN
9530
9531check-dejagnu:
15b527ca 9532 @: $(MAKE); $(unstage)
8ec98d6c
NN
9533 @r=`${PWD_COMMAND}`; export r; \
9534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9535 $(HOST_EXPORTS) \
7fc2ca22
PB
9536 (cd $(HOST_SUBDIR)/dejagnu && \
9537 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 9538
a7e609d6 9539@endif dejagnu
8ec98d6c
NN
9540
9541.PHONY: install-dejagnu maybe-install-dejagnu
9542maybe-install-dejagnu:
a7e609d6
PB
9543@if dejagnu
9544maybe-install-dejagnu: install-dejagnu
8ec98d6c
NN
9545
9546install-dejagnu: installdirs
15b527ca 9547 @: $(MAKE); $(unstage)
8ec98d6c
NN
9548 @r=`${PWD_COMMAND}`; export r; \
9549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9550 $(HOST_EXPORTS) \
7fc2ca22 9551 (cd $(HOST_SUBDIR)/dejagnu && \
93c60b6d 9552 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 9553
a7e609d6 9554@endif dejagnu
8ec98d6c 9555
39bbbb69 9556# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
9557
9558.PHONY: maybe-info-dejagnu info-dejagnu
9559maybe-info-dejagnu:
a7e609d6
PB
9560@if dejagnu
9561maybe-info-dejagnu: info-dejagnu
8ec98d6c
NN
9562
9563info-dejagnu: \
9564 configure-dejagnu
15b527ca 9565 @: $(MAKE); $(unstage)
8ec98d6c 9566 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9567 r=`${PWD_COMMAND}`; export r; \
9568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9569 $(HOST_EXPORTS) \
d5eec917 9570 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9572 done; \
8ec98d6c 9573 echo "Doing info in dejagnu" ; \
7fc2ca22 9574 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9577 "RANLIB=$${RANLIB}" \
bffcbe34 9578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9579 info) \
657b58f4
NN
9580 || exit 1
9581
a7e609d6 9582@endif dejagnu
657b58f4 9583
8ec98d6c
NN
9584.PHONY: maybe-dvi-dejagnu dvi-dejagnu
9585maybe-dvi-dejagnu:
a7e609d6
PB
9586@if dejagnu
9587maybe-dvi-dejagnu: dvi-dejagnu
657b58f4 9588
8ec98d6c
NN
9589dvi-dejagnu: \
9590 configure-dejagnu
15b527ca 9591 @: $(MAKE); $(unstage)
8ec98d6c 9592 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9593 r=`${PWD_COMMAND}`; export r; \
9594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9595 $(HOST_EXPORTS) \
d5eec917 9596 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9598 done; \
8ec98d6c 9599 echo "Doing dvi in dejagnu" ; \
7fc2ca22 9600 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9603 "RANLIB=$${RANLIB}" \
bffcbe34 9604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9605 dvi) \
657b58f4
NN
9606 || exit 1
9607
a7e609d6 9608@endif dejagnu
657b58f4 9609
39bbbb69
DD
9610.PHONY: maybe-pdf-dejagnu pdf-dejagnu
9611maybe-pdf-dejagnu:
9612@if dejagnu
9613maybe-pdf-dejagnu: pdf-dejagnu
9614
9615pdf-dejagnu: \
9616 configure-dejagnu
9617 @: $(MAKE); $(unstage)
9618 @[ -f ./dejagnu/Makefile ] || exit 0; \
9619 r=`${PWD_COMMAND}`; export r; \
9620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9621 $(HOST_EXPORTS) \
9622 for flag in $(EXTRA_HOST_FLAGS) ; do \
9623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9624 done; \
9625 echo "Doing pdf in dejagnu" ; \
9626 (cd $(HOST_SUBDIR)/dejagnu && \
9627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9629 "RANLIB=$${RANLIB}" \
bffcbe34 9630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
9631 pdf) \
9632 || exit 1
9633
9634@endif dejagnu
9635
b6fb961f
MS
9636.PHONY: maybe-html-dejagnu html-dejagnu
9637maybe-html-dejagnu:
9638@if dejagnu
9639maybe-html-dejagnu: html-dejagnu
9640
9641html-dejagnu: \
9642 configure-dejagnu
15b527ca 9643 @: $(MAKE); $(unstage)
b6fb961f
MS
9644 @[ -f ./dejagnu/Makefile ] || exit 0; \
9645 r=`${PWD_COMMAND}`; export r; \
9646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
9647 $(HOST_EXPORTS) \
9648 for flag in $(EXTRA_HOST_FLAGS) ; do \
9649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9650 done; \
9651 echo "Doing html in dejagnu" ; \
7fc2ca22 9652 (cd $(HOST_SUBDIR)/dejagnu && \
b6fb961f
MS
9653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9655 "RANLIB=$${RANLIB}" \
bffcbe34 9656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
9657 html) \
9658 || exit 1
9659
9660@endif dejagnu
9661
8ec98d6c
NN
9662.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
9663maybe-TAGS-dejagnu:
a7e609d6
PB
9664@if dejagnu
9665maybe-TAGS-dejagnu: TAGS-dejagnu
657b58f4 9666
8ec98d6c
NN
9667TAGS-dejagnu: \
9668 configure-dejagnu
15b527ca 9669 @: $(MAKE); $(unstage)
8ec98d6c 9670 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9671 r=`${PWD_COMMAND}`; export r; \
9672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9673 $(HOST_EXPORTS) \
d5eec917 9674 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9676 done; \
8ec98d6c 9677 echo "Doing TAGS in dejagnu" ; \
7fc2ca22 9678 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9681 "RANLIB=$${RANLIB}" \
bffcbe34 9682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9683 TAGS) \
657b58f4
NN
9684 || exit 1
9685
a7e609d6 9686@endif dejagnu
657b58f4 9687
8ec98d6c
NN
9688.PHONY: maybe-install-info-dejagnu install-info-dejagnu
9689maybe-install-info-dejagnu:
a7e609d6
PB
9690@if dejagnu
9691maybe-install-info-dejagnu: install-info-dejagnu
657b58f4 9692
8ec98d6c
NN
9693install-info-dejagnu: \
9694 configure-dejagnu \
9695 info-dejagnu
15b527ca 9696 @: $(MAKE); $(unstage)
8ec98d6c 9697 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9698 r=`${PWD_COMMAND}`; export r; \
9699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9700 $(HOST_EXPORTS) \
d5eec917 9701 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9703 done; \
8ec98d6c 9704 echo "Doing install-info in dejagnu" ; \
7fc2ca22 9705 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9708 "RANLIB=$${RANLIB}" \
bffcbe34 9709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9710 install-info) \
657b58f4
NN
9711 || exit 1
9712
a7e609d6 9713@endif dejagnu
657b58f4 9714
d4954b6d
DD
9715.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
9716maybe-install-pdf-dejagnu:
9717@if dejagnu
9718maybe-install-pdf-dejagnu: install-pdf-dejagnu
9719
9720install-pdf-dejagnu: \
9721 configure-dejagnu \
9722 pdf-dejagnu
9723 @: $(MAKE); $(unstage)
9724 @[ -f ./dejagnu/Makefile ] || exit 0; \
9725 r=`${PWD_COMMAND}`; export r; \
9726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9727 $(HOST_EXPORTS) \
9728 for flag in $(EXTRA_HOST_FLAGS) ; do \
9729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9730 done; \
9731 echo "Doing install-pdf in dejagnu" ; \
9732 (cd $(HOST_SUBDIR)/dejagnu && \
9733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9735 "RANLIB=$${RANLIB}" \
bffcbe34 9736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
9737 install-pdf) \
9738 || exit 1
9739
9740@endif dejagnu
9741
83c9add4
CD
9742.PHONY: maybe-install-html-dejagnu install-html-dejagnu
9743maybe-install-html-dejagnu:
9744@if dejagnu
9745maybe-install-html-dejagnu: install-html-dejagnu
9746
9747install-html-dejagnu: \
9748 configure-dejagnu \
9749 html-dejagnu
9750 @: $(MAKE); $(unstage)
9751 @[ -f ./dejagnu/Makefile ] || exit 0; \
9752 r=`${PWD_COMMAND}`; export r; \
9753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9754 $(HOST_EXPORTS) \
9755 for flag in $(EXTRA_HOST_FLAGS) ; do \
9756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9757 done; \
9758 echo "Doing install-html in dejagnu" ; \
9759 (cd $(HOST_SUBDIR)/dejagnu && \
9760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9762 "RANLIB=$${RANLIB}" \
bffcbe34 9763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
9764 install-html) \
9765 || exit 1
9766
9767@endif dejagnu
9768
8ec98d6c
NN
9769.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
9770maybe-installcheck-dejagnu:
a7e609d6
PB
9771@if dejagnu
9772maybe-installcheck-dejagnu: installcheck-dejagnu
657b58f4 9773
8ec98d6c
NN
9774installcheck-dejagnu: \
9775 configure-dejagnu
15b527ca 9776 @: $(MAKE); $(unstage)
8ec98d6c 9777 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9778 r=`${PWD_COMMAND}`; export r; \
9779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9780 $(HOST_EXPORTS) \
d5eec917 9781 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9783 done; \
8ec98d6c 9784 echo "Doing installcheck in dejagnu" ; \
7fc2ca22 9785 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9788 "RANLIB=$${RANLIB}" \
bffcbe34 9789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9790 installcheck) \
657b58f4
NN
9791 || exit 1
9792
a7e609d6 9793@endif dejagnu
657b58f4 9794
8ec98d6c
NN
9795.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
9796maybe-mostlyclean-dejagnu:
a7e609d6
PB
9797@if dejagnu
9798maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
657b58f4 9799
8ec98d6c 9800mostlyclean-dejagnu:
15b527ca 9801 @: $(MAKE); $(unstage)
8ec98d6c 9802 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9803 r=`${PWD_COMMAND}`; export r; \
9804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9805 $(HOST_EXPORTS) \
d5eec917 9806 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9808 done; \
8ec98d6c 9809 echo "Doing mostlyclean in dejagnu" ; \
7fc2ca22 9810 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9813 "RANLIB=$${RANLIB}" \
bffcbe34 9814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9815 mostlyclean) \
657b58f4
NN
9816 || exit 1
9817
a7e609d6 9818@endif dejagnu
657b58f4 9819
8ec98d6c
NN
9820.PHONY: maybe-clean-dejagnu clean-dejagnu
9821maybe-clean-dejagnu:
a7e609d6
PB
9822@if dejagnu
9823maybe-clean-dejagnu: clean-dejagnu
657b58f4 9824
8ec98d6c 9825clean-dejagnu:
15b527ca 9826 @: $(MAKE); $(unstage)
8ec98d6c 9827 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9828 r=`${PWD_COMMAND}`; export r; \
9829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9830 $(HOST_EXPORTS) \
d5eec917 9831 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9833 done; \
8ec98d6c 9834 echo "Doing clean in dejagnu" ; \
7fc2ca22 9835 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9838 "RANLIB=$${RANLIB}" \
bffcbe34 9839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9840 clean) \
657b58f4
NN
9841 || exit 1
9842
a7e609d6 9843@endif dejagnu
657b58f4 9844
8ec98d6c
NN
9845.PHONY: maybe-distclean-dejagnu distclean-dejagnu
9846maybe-distclean-dejagnu:
a7e609d6
PB
9847@if dejagnu
9848maybe-distclean-dejagnu: distclean-dejagnu
657b58f4 9849
8ec98d6c 9850distclean-dejagnu:
15b527ca 9851 @: $(MAKE); $(unstage)
8ec98d6c 9852 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9853 r=`${PWD_COMMAND}`; export r; \
9854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9855 $(HOST_EXPORTS) \
d5eec917 9856 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9858 done; \
8ec98d6c 9859 echo "Doing distclean in dejagnu" ; \
7fc2ca22 9860 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9863 "RANLIB=$${RANLIB}" \
bffcbe34 9864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9865 distclean) \
657b58f4
NN
9866 || exit 1
9867
a7e609d6 9868@endif dejagnu
657b58f4 9869
8ec98d6c
NN
9870.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
9871maybe-maintainer-clean-dejagnu:
a7e609d6
PB
9872@if dejagnu
9873maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
657b58f4 9874
8ec98d6c 9875maintainer-clean-dejagnu:
15b527ca 9876 @: $(MAKE); $(unstage)
8ec98d6c 9877 @[ -f ./dejagnu/Makefile ] || exit 0; \
5230d454
L
9878 r=`${PWD_COMMAND}`; export r; \
9879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9880 $(HOST_EXPORTS) \
d5eec917 9881 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9883 done; \
8ec98d6c 9884 echo "Doing maintainer-clean in dejagnu" ; \
7fc2ca22 9885 (cd $(HOST_SUBDIR)/dejagnu && \
657b58f4
NN
9886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9888 "RANLIB=$${RANLIB}" \
bffcbe34 9889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 9890 maintainer-clean) \
8ec98d6c
NN
9891 || exit 1
9892
a7e609d6 9893@endif dejagnu
8ec98d6c
NN
9894
9895
f0fdfd34 9896
8ec98d6c
NN
9897.PHONY: configure-diff maybe-configure-diff
9898maybe-configure-diff:
e1e5148c
CD
9899@if gcc-bootstrap
9900configure-diff: stage_current
9901@endif gcc-bootstrap
a7e609d6
PB
9902@if diff
9903maybe-configure-diff: configure-diff
ec92c4d6 9904configure-diff:
15b527ca 9905 @: $(MAKE); $(unstage)
ec92c4d6 9906 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 9907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
9908 test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
9909 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
5074489a 9910 $(HOST_EXPORTS) \
f0fdfd34
PB
9911 echo Configuring in $(HOST_SUBDIR)/diff; \
9912 cd "$(HOST_SUBDIR)/diff" || exit 1; \
8ec98d6c 9913 case $(srcdir) in \
7fc2ca22
PB
9914 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9915 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
9916 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 9917 esac; \
7fc2ca22
PB
9918 srcdiroption="--srcdir=$${topdir}/diff"; \
9919 libsrcdir="$$s/diff"; \
8ec98d6c 9920 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
9921 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9922 --target=${target_alias} $${srcdiroption} \
657b58f4 9923 || exit 1
a7e609d6 9924@endif diff
657b58f4 9925
f0fdfd34
PB
9926
9927
a8a96878
PB
9928
9929
8ec98d6c
NN
9930.PHONY: all-diff maybe-all-diff
9931maybe-all-diff:
e1e5148c
CD
9932@if gcc-bootstrap
9933all-diff: stage_current
9934@endif gcc-bootstrap
a7e609d6 9935@if diff
5e6b1f07 9936TARGET-diff=all
a7e609d6 9937maybe-all-diff: all-diff
8ec98d6c 9938all-diff: configure-diff
15b527ca 9939 @: $(MAKE); $(unstage)
8ec98d6c
NN
9940 @r=`${PWD_COMMAND}`; export r; \
9941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 9942 $(HOST_EXPORTS) \
7fc2ca22 9943 (cd $(HOST_SUBDIR)/diff && \
6532abb6
PB
9944 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
9945 $(TARGET-diff))
a7e609d6 9946@endif diff
657b58f4 9947
f0fdfd34 9948
a8a96878
PB
9949
9950
8ec98d6c
NN
9951.PHONY: check-diff maybe-check-diff
9952maybe-check-diff:
a7e609d6
PB
9953@if diff
9954maybe-check-diff: check-diff
657b58f4 9955
8ec98d6c 9956check-diff:
15b527ca 9957 @: $(MAKE); $(unstage)
8ec98d6c 9958 @r=`${PWD_COMMAND}`; export r; \
5230d454 9959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9960 $(HOST_EXPORTS) \
7fc2ca22
PB
9961 (cd $(HOST_SUBDIR)/diff && \
9962 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 9963
a7e609d6 9964@endif diff
657b58f4 9965
8ec98d6c
NN
9966.PHONY: install-diff maybe-install-diff
9967maybe-install-diff:
a7e609d6
PB
9968@if diff
9969maybe-install-diff: install-diff
657b58f4 9970
8ec98d6c 9971install-diff: installdirs
15b527ca 9972 @: $(MAKE); $(unstage)
8ec98d6c 9973 @r=`${PWD_COMMAND}`; export r; \
5230d454 9974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9975 $(HOST_EXPORTS) \
7fc2ca22 9976 (cd $(HOST_SUBDIR)/diff && \
93c60b6d 9977 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 9978
a7e609d6 9979@endif diff
657b58f4 9980
39bbbb69 9981# Other targets (info, dvi, pdf, etc.)
657b58f4 9982
8ec98d6c
NN
9983.PHONY: maybe-info-diff info-diff
9984maybe-info-diff:
a7e609d6
PB
9985@if diff
9986maybe-info-diff: info-diff
657b58f4 9987
8ec98d6c
NN
9988info-diff: \
9989 configure-diff
15b527ca 9990 @: $(MAKE); $(unstage)
8ec98d6c 9991 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
9992 r=`${PWD_COMMAND}`; export r; \
9993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 9994 $(HOST_EXPORTS) \
d5eec917 9995 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
9996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9997 done; \
8ec98d6c 9998 echo "Doing info in diff" ; \
7fc2ca22 9999 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10002 "RANLIB=$${RANLIB}" \
bffcbe34 10003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10004 info) \
657b58f4
NN
10005 || exit 1
10006
a7e609d6 10007@endif diff
657b58f4 10008
8ec98d6c
NN
10009.PHONY: maybe-dvi-diff dvi-diff
10010maybe-dvi-diff:
a7e609d6
PB
10011@if diff
10012maybe-dvi-diff: dvi-diff
657b58f4 10013
8ec98d6c
NN
10014dvi-diff: \
10015 configure-diff
15b527ca 10016 @: $(MAKE); $(unstage)
8ec98d6c 10017 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10018 r=`${PWD_COMMAND}`; export r; \
10019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10020 $(HOST_EXPORTS) \
d5eec917 10021 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10023 done; \
8ec98d6c 10024 echo "Doing dvi in diff" ; \
7fc2ca22 10025 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10028 "RANLIB=$${RANLIB}" \
bffcbe34 10029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10030 dvi) \
657b58f4
NN
10031 || exit 1
10032
a7e609d6 10033@endif diff
657b58f4 10034
39bbbb69
DD
10035.PHONY: maybe-pdf-diff pdf-diff
10036maybe-pdf-diff:
10037@if diff
10038maybe-pdf-diff: pdf-diff
10039
10040pdf-diff: \
10041 configure-diff
10042 @: $(MAKE); $(unstage)
10043 @[ -f ./diff/Makefile ] || exit 0; \
10044 r=`${PWD_COMMAND}`; export r; \
10045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10046 $(HOST_EXPORTS) \
10047 for flag in $(EXTRA_HOST_FLAGS) ; do \
10048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10049 done; \
10050 echo "Doing pdf in diff" ; \
10051 (cd $(HOST_SUBDIR)/diff && \
10052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10054 "RANLIB=$${RANLIB}" \
bffcbe34 10055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10056 pdf) \
10057 || exit 1
10058
10059@endif diff
10060
b6fb961f
MS
10061.PHONY: maybe-html-diff html-diff
10062maybe-html-diff:
10063@if diff
10064maybe-html-diff: html-diff
10065
10066html-diff: \
10067 configure-diff
15b527ca 10068 @: $(MAKE); $(unstage)
b6fb961f
MS
10069 @[ -f ./diff/Makefile ] || exit 0; \
10070 r=`${PWD_COMMAND}`; export r; \
10071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10072 $(HOST_EXPORTS) \
10073 for flag in $(EXTRA_HOST_FLAGS) ; do \
10074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10075 done; \
10076 echo "Doing html in diff" ; \
7fc2ca22 10077 (cd $(HOST_SUBDIR)/diff && \
b6fb961f
MS
10078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10080 "RANLIB=$${RANLIB}" \
bffcbe34 10081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10082 html) \
10083 || exit 1
10084
10085@endif diff
10086
8ec98d6c
NN
10087.PHONY: maybe-TAGS-diff TAGS-diff
10088maybe-TAGS-diff:
a7e609d6
PB
10089@if diff
10090maybe-TAGS-diff: TAGS-diff
657b58f4 10091
8ec98d6c
NN
10092TAGS-diff: \
10093 configure-diff
15b527ca 10094 @: $(MAKE); $(unstage)
8ec98d6c 10095 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10096 r=`${PWD_COMMAND}`; export r; \
10097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10098 $(HOST_EXPORTS) \
d5eec917 10099 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10101 done; \
8ec98d6c 10102 echo "Doing TAGS in diff" ; \
7fc2ca22 10103 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10106 "RANLIB=$${RANLIB}" \
bffcbe34 10107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10108 TAGS) \
657b58f4
NN
10109 || exit 1
10110
a7e609d6 10111@endif diff
657b58f4 10112
8ec98d6c
NN
10113.PHONY: maybe-install-info-diff install-info-diff
10114maybe-install-info-diff:
a7e609d6
PB
10115@if diff
10116maybe-install-info-diff: install-info-diff
657b58f4 10117
8ec98d6c
NN
10118install-info-diff: \
10119 configure-diff \
10120 info-diff
15b527ca 10121 @: $(MAKE); $(unstage)
8ec98d6c 10122 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10123 r=`${PWD_COMMAND}`; export r; \
10124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10125 $(HOST_EXPORTS) \
d5eec917 10126 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10128 done; \
8ec98d6c 10129 echo "Doing install-info in diff" ; \
7fc2ca22 10130 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10133 "RANLIB=$${RANLIB}" \
bffcbe34 10134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10135 install-info) \
657b58f4
NN
10136 || exit 1
10137
a7e609d6 10138@endif diff
657b58f4 10139
d4954b6d
DD
10140.PHONY: maybe-install-pdf-diff install-pdf-diff
10141maybe-install-pdf-diff:
10142@if diff
10143maybe-install-pdf-diff: install-pdf-diff
10144
10145install-pdf-diff: \
10146 configure-diff \
10147 pdf-diff
10148 @: $(MAKE); $(unstage)
10149 @[ -f ./diff/Makefile ] || exit 0; \
10150 r=`${PWD_COMMAND}`; export r; \
10151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10152 $(HOST_EXPORTS) \
10153 for flag in $(EXTRA_HOST_FLAGS) ; do \
10154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10155 done; \
10156 echo "Doing install-pdf in diff" ; \
10157 (cd $(HOST_SUBDIR)/diff && \
10158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10160 "RANLIB=$${RANLIB}" \
bffcbe34 10161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
10162 install-pdf) \
10163 || exit 1
10164
10165@endif diff
10166
83c9add4
CD
10167.PHONY: maybe-install-html-diff install-html-diff
10168maybe-install-html-diff:
10169@if diff
10170maybe-install-html-diff: install-html-diff
10171
10172install-html-diff: \
10173 configure-diff \
10174 html-diff
10175 @: $(MAKE); $(unstage)
10176 @[ -f ./diff/Makefile ] || exit 0; \
10177 r=`${PWD_COMMAND}`; export r; \
10178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10179 $(HOST_EXPORTS) \
10180 for flag in $(EXTRA_HOST_FLAGS) ; do \
10181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10182 done; \
10183 echo "Doing install-html in diff" ; \
10184 (cd $(HOST_SUBDIR)/diff && \
10185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10187 "RANLIB=$${RANLIB}" \
bffcbe34 10188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
10189 install-html) \
10190 || exit 1
10191
10192@endif diff
10193
8ec98d6c
NN
10194.PHONY: maybe-installcheck-diff installcheck-diff
10195maybe-installcheck-diff:
a7e609d6
PB
10196@if diff
10197maybe-installcheck-diff: installcheck-diff
657b58f4 10198
8ec98d6c
NN
10199installcheck-diff: \
10200 configure-diff
15b527ca 10201 @: $(MAKE); $(unstage)
8ec98d6c 10202 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10203 r=`${PWD_COMMAND}`; export r; \
10204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10205 $(HOST_EXPORTS) \
d5eec917 10206 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10208 done; \
8ec98d6c 10209 echo "Doing installcheck in diff" ; \
7fc2ca22 10210 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10213 "RANLIB=$${RANLIB}" \
bffcbe34 10214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10215 installcheck) \
657b58f4
NN
10216 || exit 1
10217
a7e609d6 10218@endif diff
657b58f4 10219
8ec98d6c
NN
10220.PHONY: maybe-mostlyclean-diff mostlyclean-diff
10221maybe-mostlyclean-diff:
a7e609d6
PB
10222@if diff
10223maybe-mostlyclean-diff: mostlyclean-diff
657b58f4 10224
8ec98d6c 10225mostlyclean-diff:
15b527ca 10226 @: $(MAKE); $(unstage)
8ec98d6c 10227 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10228 r=`${PWD_COMMAND}`; export r; \
10229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10230 $(HOST_EXPORTS) \
d5eec917 10231 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10233 done; \
8ec98d6c 10234 echo "Doing mostlyclean in diff" ; \
7fc2ca22 10235 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10238 "RANLIB=$${RANLIB}" \
bffcbe34 10239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10240 mostlyclean) \
657b58f4
NN
10241 || exit 1
10242
a7e609d6 10243@endif diff
657b58f4 10244
8ec98d6c
NN
10245.PHONY: maybe-clean-diff clean-diff
10246maybe-clean-diff:
a7e609d6
PB
10247@if diff
10248maybe-clean-diff: clean-diff
657b58f4 10249
8ec98d6c 10250clean-diff:
15b527ca 10251 @: $(MAKE); $(unstage)
8ec98d6c 10252 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10253 r=`${PWD_COMMAND}`; export r; \
10254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10255 $(HOST_EXPORTS) \
d5eec917 10256 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10258 done; \
8ec98d6c 10259 echo "Doing clean in diff" ; \
7fc2ca22 10260 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10263 "RANLIB=$${RANLIB}" \
bffcbe34 10264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10265 clean) \
657b58f4
NN
10266 || exit 1
10267
a7e609d6 10268@endif diff
657b58f4 10269
8ec98d6c
NN
10270.PHONY: maybe-distclean-diff distclean-diff
10271maybe-distclean-diff:
a7e609d6
PB
10272@if diff
10273maybe-distclean-diff: distclean-diff
657b58f4 10274
8ec98d6c 10275distclean-diff:
15b527ca 10276 @: $(MAKE); $(unstage)
8ec98d6c 10277 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10278 r=`${PWD_COMMAND}`; export r; \
10279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10280 $(HOST_EXPORTS) \
d5eec917 10281 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10283 done; \
8ec98d6c 10284 echo "Doing distclean in diff" ; \
7fc2ca22 10285 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10288 "RANLIB=$${RANLIB}" \
bffcbe34 10289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10290 distclean) \
657b58f4
NN
10291 || exit 1
10292
a7e609d6 10293@endif diff
657b58f4 10294
8ec98d6c
NN
10295.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
10296maybe-maintainer-clean-diff:
a7e609d6
PB
10297@if diff
10298maybe-maintainer-clean-diff: maintainer-clean-diff
657b58f4 10299
8ec98d6c 10300maintainer-clean-diff:
15b527ca 10301 @: $(MAKE); $(unstage)
8ec98d6c 10302 @[ -f ./diff/Makefile ] || exit 0; \
5230d454
L
10303 r=`${PWD_COMMAND}`; export r; \
10304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10305 $(HOST_EXPORTS) \
d5eec917 10306 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10308 done; \
8ec98d6c 10309 echo "Doing maintainer-clean in diff" ; \
7fc2ca22 10310 (cd $(HOST_SUBDIR)/diff && \
657b58f4
NN
10311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10313 "RANLIB=$${RANLIB}" \
bffcbe34 10314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10315 maintainer-clean) \
657b58f4
NN
10316 || exit 1
10317
a7e609d6 10318@endif diff
657b58f4 10319
657b58f4 10320
f0fdfd34 10321
8ec98d6c
NN
10322.PHONY: configure-dosutils maybe-configure-dosutils
10323maybe-configure-dosutils:
e1e5148c
CD
10324@if gcc-bootstrap
10325configure-dosutils: stage_current
10326@endif gcc-bootstrap
a7e609d6
PB
10327@if dosutils
10328maybe-configure-dosutils: configure-dosutils
ec92c4d6 10329configure-dosutils:
15b527ca 10330 @: $(MAKE); $(unstage)
ec92c4d6 10331 @r=`${PWD_COMMAND}`; export r; \
5230d454 10332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
10333 test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
10334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
5074489a 10335 $(HOST_EXPORTS) \
f0fdfd34
PB
10336 echo Configuring in $(HOST_SUBDIR)/dosutils; \
10337 cd "$(HOST_SUBDIR)/dosutils" || exit 1; \
8ec98d6c 10338 case $(srcdir) in \
7fc2ca22
PB
10339 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10340 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
10341 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10342 esac; \
7fc2ca22
PB
10343 srcdiroption="--srcdir=$${topdir}/dosutils"; \
10344 libsrcdir="$$s/dosutils"; \
8ec98d6c 10345 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
10346 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10347 --target=${target_alias} $${srcdiroption} \
8ec98d6c 10348 || exit 1
a7e609d6 10349@endif dosutils
8ec98d6c 10350
f0fdfd34
PB
10351
10352
a8a96878
PB
10353
10354
8ec98d6c
NN
10355.PHONY: all-dosutils maybe-all-dosutils
10356maybe-all-dosutils:
e1e5148c
CD
10357@if gcc-bootstrap
10358all-dosutils: stage_current
10359@endif gcc-bootstrap
a7e609d6 10360@if dosutils
5e6b1f07 10361TARGET-dosutils=all
a7e609d6 10362maybe-all-dosutils: all-dosutils
8ec98d6c 10363all-dosutils: configure-dosutils
15b527ca 10364 @: $(MAKE); $(unstage)
8ec98d6c
NN
10365 @r=`${PWD_COMMAND}`; export r; \
10366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 10367 $(HOST_EXPORTS) \
7fc2ca22 10368 (cd $(HOST_SUBDIR)/dosutils && \
6532abb6
PB
10369 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
10370 $(TARGET-dosutils))
a7e609d6 10371@endif dosutils
8ec98d6c 10372
f0fdfd34 10373
a8a96878
PB
10374
10375
8ec98d6c
NN
10376.PHONY: check-dosutils maybe-check-dosutils
10377maybe-check-dosutils:
a7e609d6
PB
10378@if dosutils
10379maybe-check-dosutils: check-dosutils
657b58f4 10380
8ec98d6c 10381check-dosutils:
657b58f4 10382
a7e609d6 10383@endif dosutils
657b58f4 10384
8ec98d6c
NN
10385.PHONY: install-dosutils maybe-install-dosutils
10386maybe-install-dosutils:
a7e609d6
PB
10387@if dosutils
10388maybe-install-dosutils: install-dosutils
8ec98d6c
NN
10389
10390install-dosutils: installdirs
15b527ca 10391 @: $(MAKE); $(unstage)
8ec98d6c 10392 @r=`${PWD_COMMAND}`; export r; \
5230d454 10393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10394 $(HOST_EXPORTS) \
7fc2ca22 10395 (cd $(HOST_SUBDIR)/dosutils && \
93c60b6d 10396 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 10397
a7e609d6 10398@endif dosutils
657b58f4 10399
39bbbb69 10400# Other targets (info, dvi, pdf, etc.)
657b58f4 10401
8ec98d6c
NN
10402.PHONY: maybe-info-dosutils info-dosutils
10403maybe-info-dosutils:
a7e609d6
PB
10404@if dosutils
10405maybe-info-dosutils: info-dosutils
8ec98d6c
NN
10406
10407info-dosutils: \
10408 configure-dosutils
15b527ca 10409 @: $(MAKE); $(unstage)
8ec98d6c 10410 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10411 r=`${PWD_COMMAND}`; export r; \
10412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10413 $(HOST_EXPORTS) \
d5eec917 10414 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10416 done; \
8ec98d6c 10417 echo "Doing info in dosutils" ; \
7fc2ca22 10418 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10421 "RANLIB=$${RANLIB}" \
bffcbe34 10422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10423 info) \
657b58f4
NN
10424 || exit 1
10425
a7e609d6 10426@endif dosutils
657b58f4 10427
8ec98d6c
NN
10428.PHONY: maybe-dvi-dosutils dvi-dosutils
10429maybe-dvi-dosutils:
a7e609d6
PB
10430@if dosutils
10431maybe-dvi-dosutils: dvi-dosutils
657b58f4 10432
8ec98d6c
NN
10433dvi-dosutils: \
10434 configure-dosutils
15b527ca 10435 @: $(MAKE); $(unstage)
8ec98d6c 10436 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10437 r=`${PWD_COMMAND}`; export r; \
10438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10439 $(HOST_EXPORTS) \
d5eec917 10440 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10442 done; \
8ec98d6c 10443 echo "Doing dvi in dosutils" ; \
7fc2ca22 10444 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10447 "RANLIB=$${RANLIB}" \
bffcbe34 10448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10449 dvi) \
657b58f4
NN
10450 || exit 1
10451
a7e609d6 10452@endif dosutils
657b58f4 10453
39bbbb69
DD
10454.PHONY: maybe-pdf-dosutils pdf-dosutils
10455maybe-pdf-dosutils:
10456@if dosutils
10457maybe-pdf-dosutils: pdf-dosutils
10458
10459pdf-dosutils: \
10460 configure-dosutils
10461 @: $(MAKE); $(unstage)
10462 @[ -f ./dosutils/Makefile ] || exit 0; \
10463 r=`${PWD_COMMAND}`; export r; \
10464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10465 $(HOST_EXPORTS) \
10466 for flag in $(EXTRA_HOST_FLAGS) ; do \
10467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10468 done; \
10469 echo "Doing pdf in dosutils" ; \
10470 (cd $(HOST_SUBDIR)/dosutils && \
10471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10473 "RANLIB=$${RANLIB}" \
bffcbe34 10474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10475 pdf) \
10476 || exit 1
10477
10478@endif dosutils
10479
b6fb961f
MS
10480.PHONY: maybe-html-dosutils html-dosutils
10481maybe-html-dosutils:
a7e609d6 10482@if dosutils
b6fb961f 10483maybe-html-dosutils: html-dosutils
657b58f4 10484
b6fb961f 10485html-dosutils: \
8ec98d6c 10486 configure-dosutils
15b527ca 10487 @: $(MAKE); $(unstage)
8ec98d6c 10488 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10489 r=`${PWD_COMMAND}`; export r; \
10490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10491 $(HOST_EXPORTS) \
d5eec917 10492 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10494 done; \
b6fb961f 10495 echo "Doing html in dosutils" ; \
7fc2ca22 10496 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10499 "RANLIB=$${RANLIB}" \
bffcbe34 10500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 10501 html) \
657b58f4
NN
10502 || exit 1
10503
a7e609d6 10504@endif dosutils
657b58f4 10505
b6fb961f
MS
10506.PHONY: maybe-TAGS-dosutils TAGS-dosutils
10507maybe-TAGS-dosutils:
a7e609d6 10508@if dosutils
b6fb961f 10509maybe-TAGS-dosutils: TAGS-dosutils
657b58f4 10510
b6fb961f
MS
10511TAGS-dosutils: \
10512 configure-dosutils
15b527ca 10513 @: $(MAKE); $(unstage)
b6fb961f
MS
10514 @[ -f ./dosutils/Makefile ] || exit 0; \
10515 r=`${PWD_COMMAND}`; export r; \
10516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10517 $(HOST_EXPORTS) \
10518 for flag in $(EXTRA_HOST_FLAGS) ; do \
10519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10520 done; \
10521 echo "Doing TAGS in dosutils" ; \
7fc2ca22 10522 (cd $(HOST_SUBDIR)/dosutils && \
b6fb961f
MS
10523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10525 "RANLIB=$${RANLIB}" \
bffcbe34 10526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10527 TAGS) \
10528 || exit 1
10529
10530@endif dosutils
10531
10532.PHONY: maybe-install-info-dosutils install-info-dosutils
10533maybe-install-info-dosutils:
10534@if dosutils
10535maybe-install-info-dosutils: install-info-dosutils
10536
10537install-info-dosutils: \
10538 configure-dosutils \
10539 info-dosutils
15b527ca 10540 @: $(MAKE); $(unstage)
8ec98d6c 10541 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10542 r=`${PWD_COMMAND}`; export r; \
10543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10544 $(HOST_EXPORTS) \
d5eec917 10545 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10547 done; \
8ec98d6c 10548 echo "Doing install-info in dosutils" ; \
7fc2ca22 10549 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10552 "RANLIB=$${RANLIB}" \
bffcbe34 10553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10554 install-info) \
657b58f4
NN
10555 || exit 1
10556
a7e609d6 10557@endif dosutils
657b58f4 10558
d4954b6d
DD
10559.PHONY: maybe-install-pdf-dosutils install-pdf-dosutils
10560maybe-install-pdf-dosutils:
10561@if dosutils
10562maybe-install-pdf-dosutils: install-pdf-dosutils
10563
10564install-pdf-dosutils: \
10565 configure-dosutils \
10566 pdf-dosutils
10567 @: $(MAKE); $(unstage)
10568 @[ -f ./dosutils/Makefile ] || exit 0; \
10569 r=`${PWD_COMMAND}`; export r; \
10570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10571 $(HOST_EXPORTS) \
10572 for flag in $(EXTRA_HOST_FLAGS) ; do \
10573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10574 done; \
10575 echo "Doing install-pdf in dosutils" ; \
10576 (cd $(HOST_SUBDIR)/dosutils && \
10577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10579 "RANLIB=$${RANLIB}" \
bffcbe34 10580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
10581 install-pdf) \
10582 || exit 1
10583
10584@endif dosutils
10585
83c9add4
CD
10586.PHONY: maybe-install-html-dosutils install-html-dosutils
10587maybe-install-html-dosutils:
10588@if dosutils
10589maybe-install-html-dosutils: install-html-dosutils
10590
10591install-html-dosutils: \
10592 configure-dosutils \
10593 html-dosutils
10594 @: $(MAKE); $(unstage)
10595 @[ -f ./dosutils/Makefile ] || exit 0; \
10596 r=`${PWD_COMMAND}`; export r; \
10597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10598 $(HOST_EXPORTS) \
10599 for flag in $(EXTRA_HOST_FLAGS) ; do \
10600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10601 done; \
10602 echo "Doing install-html in dosutils" ; \
10603 (cd $(HOST_SUBDIR)/dosutils && \
10604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10606 "RANLIB=$${RANLIB}" \
bffcbe34 10607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
10608 install-html) \
10609 || exit 1
10610
10611@endif dosutils
10612
8ec98d6c
NN
10613.PHONY: maybe-installcheck-dosutils installcheck-dosutils
10614maybe-installcheck-dosutils:
a7e609d6
PB
10615@if dosutils
10616maybe-installcheck-dosutils: installcheck-dosutils
657b58f4 10617
8ec98d6c
NN
10618installcheck-dosutils: \
10619 configure-dosutils
15b527ca 10620 @: $(MAKE); $(unstage)
8ec98d6c 10621 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10622 r=`${PWD_COMMAND}`; export r; \
10623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10624 $(HOST_EXPORTS) \
d5eec917 10625 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10627 done; \
8ec98d6c 10628 echo "Doing installcheck in dosutils" ; \
7fc2ca22 10629 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10632 "RANLIB=$${RANLIB}" \
bffcbe34 10633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10634 installcheck) \
657b58f4
NN
10635 || exit 1
10636
a7e609d6 10637@endif dosutils
657b58f4 10638
8ec98d6c
NN
10639.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
10640maybe-mostlyclean-dosutils:
a7e609d6
PB
10641@if dosutils
10642maybe-mostlyclean-dosutils: mostlyclean-dosutils
d832a288 10643
8ec98d6c 10644mostlyclean-dosutils:
15b527ca 10645 @: $(MAKE); $(unstage)
8ec98d6c 10646 @[ -f ./dosutils/Makefile ] || exit 0; \
d832a288
DD
10647 r=`${PWD_COMMAND}`; export r; \
10648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10649 $(HOST_EXPORTS) \
d5eec917 10650 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
10651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10652 done; \
8ec98d6c 10653 echo "Doing mostlyclean in dosutils" ; \
7fc2ca22 10654 (cd $(HOST_SUBDIR)/dosutils && \
d832a288
DD
10655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10657 "RANLIB=$${RANLIB}" \
bffcbe34 10658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10659 mostlyclean) \
d832a288
DD
10660 || exit 1
10661
a7e609d6 10662@endif dosutils
d832a288 10663
8ec98d6c
NN
10664.PHONY: maybe-clean-dosutils clean-dosutils
10665maybe-clean-dosutils:
a7e609d6
PB
10666@if dosutils
10667maybe-clean-dosutils: clean-dosutils
657b58f4 10668
8ec98d6c 10669clean-dosutils:
15b527ca 10670 @: $(MAKE); $(unstage)
8ec98d6c 10671 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10672 r=`${PWD_COMMAND}`; export r; \
10673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10674 $(HOST_EXPORTS) \
d5eec917 10675 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10677 done; \
8ec98d6c 10678 echo "Doing clean in dosutils" ; \
7fc2ca22 10679 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10682 "RANLIB=$${RANLIB}" \
bffcbe34 10683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10684 clean) \
657b58f4
NN
10685 || exit 1
10686
a7e609d6 10687@endif dosutils
657b58f4 10688
8ec98d6c
NN
10689.PHONY: maybe-distclean-dosutils distclean-dosutils
10690maybe-distclean-dosutils:
a7e609d6
PB
10691@if dosutils
10692maybe-distclean-dosutils: distclean-dosutils
657b58f4 10693
8ec98d6c 10694distclean-dosutils:
15b527ca 10695 @: $(MAKE); $(unstage)
8ec98d6c 10696 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10697 r=`${PWD_COMMAND}`; export r; \
10698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10699 $(HOST_EXPORTS) \
d5eec917 10700 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10702 done; \
8ec98d6c 10703 echo "Doing distclean in dosutils" ; \
7fc2ca22 10704 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10707 "RANLIB=$${RANLIB}" \
bffcbe34 10708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10709 distclean) \
657b58f4
NN
10710 || exit 1
10711
a7e609d6 10712@endif dosutils
657b58f4 10713
8ec98d6c
NN
10714.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
10715maybe-maintainer-clean-dosutils:
a7e609d6
PB
10716@if dosutils
10717maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
657b58f4 10718
8ec98d6c 10719maintainer-clean-dosutils:
15b527ca 10720 @: $(MAKE); $(unstage)
8ec98d6c 10721 @[ -f ./dosutils/Makefile ] || exit 0; \
5230d454
L
10722 r=`${PWD_COMMAND}`; export r; \
10723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10724 $(HOST_EXPORTS) \
d5eec917 10725 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10727 done; \
8ec98d6c 10728 echo "Doing maintainer-clean in dosutils" ; \
7fc2ca22 10729 (cd $(HOST_SUBDIR)/dosutils && \
657b58f4
NN
10730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10732 "RANLIB=$${RANLIB}" \
bffcbe34 10733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10734 maintainer-clean) \
657b58f4
NN
10735 || exit 1
10736
a7e609d6 10737@endif dosutils
657b58f4 10738
657b58f4 10739
f0fdfd34 10740
8ec98d6c
NN
10741.PHONY: configure-etc maybe-configure-etc
10742maybe-configure-etc:
e1e5148c
CD
10743@if gcc-bootstrap
10744configure-etc: stage_current
10745@endif gcc-bootstrap
a7e609d6
PB
10746@if etc
10747maybe-configure-etc: configure-etc
ec92c4d6 10748configure-etc:
15b527ca 10749 @: $(MAKE); $(unstage)
ec92c4d6 10750 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 10751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
10752 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
10753 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
5074489a 10754 $(HOST_EXPORTS) \
f0fdfd34
PB
10755 echo Configuring in $(HOST_SUBDIR)/etc; \
10756 cd "$(HOST_SUBDIR)/etc" || exit 1; \
8ec98d6c 10757 case $(srcdir) in \
7fc2ca22
PB
10758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10759 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
10760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 10761 esac; \
7fc2ca22
PB
10762 srcdiroption="--srcdir=$${topdir}/etc"; \
10763 libsrcdir="$$s/etc"; \
8ec98d6c 10764 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
10765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10766 --target=${target_alias} $${srcdiroption} \
8ec98d6c 10767 || exit 1
a7e609d6 10768@endif etc
8ec98d6c 10769
f0fdfd34
PB
10770
10771
a8a96878
PB
10772
10773
8ec98d6c
NN
10774.PHONY: all-etc maybe-all-etc
10775maybe-all-etc:
e1e5148c
CD
10776@if gcc-bootstrap
10777all-etc: stage_current
10778@endif gcc-bootstrap
a7e609d6 10779@if etc
5e6b1f07 10780TARGET-etc=all
a7e609d6 10781maybe-all-etc: all-etc
8ec98d6c 10782all-etc: configure-etc
15b527ca 10783 @: $(MAKE); $(unstage)
8ec98d6c
NN
10784 @r=`${PWD_COMMAND}`; export r; \
10785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 10786 $(HOST_EXPORTS) \
7fc2ca22 10787 (cd $(HOST_SUBDIR)/etc && \
6532abb6
PB
10788 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
10789 $(TARGET-etc))
a7e609d6 10790@endif etc
8ec98d6c 10791
f0fdfd34 10792
a8a96878
PB
10793
10794
8ec98d6c
NN
10795.PHONY: check-etc maybe-check-etc
10796maybe-check-etc:
a7e609d6
PB
10797@if etc
10798maybe-check-etc: check-etc
8ec98d6c
NN
10799
10800check-etc:
15b527ca 10801 @: $(MAKE); $(unstage)
8ec98d6c
NN
10802 @r=`${PWD_COMMAND}`; export r; \
10803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10804 $(HOST_EXPORTS) \
7fc2ca22
PB
10805 (cd $(HOST_SUBDIR)/etc && \
10806 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 10807
a7e609d6 10808@endif etc
8ec98d6c
NN
10809
10810.PHONY: install-etc maybe-install-etc
10811maybe-install-etc:
a7e609d6
PB
10812@if etc
10813maybe-install-etc: install-etc
8ec98d6c
NN
10814
10815install-etc: installdirs
15b527ca 10816 @: $(MAKE); $(unstage)
8ec98d6c
NN
10817 @r=`${PWD_COMMAND}`; export r; \
10818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10819 $(HOST_EXPORTS) \
7fc2ca22 10820 (cd $(HOST_SUBDIR)/etc && \
93c60b6d 10821 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 10822
a7e609d6 10823@endif etc
8ec98d6c 10824
39bbbb69 10825# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
10826
10827.PHONY: maybe-info-etc info-etc
10828maybe-info-etc:
a7e609d6
PB
10829@if etc
10830maybe-info-etc: info-etc
8ec98d6c
NN
10831
10832info-etc: \
10833 configure-etc
15b527ca 10834 @: $(MAKE); $(unstage)
8ec98d6c 10835 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10836 r=`${PWD_COMMAND}`; export r; \
10837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10838 $(HOST_EXPORTS) \
d5eec917 10839 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10841 done; \
8ec98d6c 10842 echo "Doing info in etc" ; \
7fc2ca22 10843 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10846 "RANLIB=$${RANLIB}" \
bffcbe34 10847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10848 info) \
657b58f4
NN
10849 || exit 1
10850
a7e609d6 10851@endif etc
657b58f4 10852
8ec98d6c
NN
10853.PHONY: maybe-dvi-etc dvi-etc
10854maybe-dvi-etc:
a7e609d6
PB
10855@if etc
10856maybe-dvi-etc: dvi-etc
657b58f4 10857
8ec98d6c
NN
10858dvi-etc: \
10859 configure-etc
15b527ca 10860 @: $(MAKE); $(unstage)
8ec98d6c 10861 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10862 r=`${PWD_COMMAND}`; export r; \
10863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10864 $(HOST_EXPORTS) \
d5eec917 10865 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10867 done; \
8ec98d6c 10868 echo "Doing dvi in etc" ; \
7fc2ca22 10869 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10872 "RANLIB=$${RANLIB}" \
bffcbe34 10873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10874 dvi) \
657b58f4
NN
10875 || exit 1
10876
a7e609d6 10877@endif etc
657b58f4 10878
39bbbb69
DD
10879.PHONY: maybe-pdf-etc pdf-etc
10880maybe-pdf-etc:
10881@if etc
10882maybe-pdf-etc: pdf-etc
10883
10884pdf-etc: \
10885 configure-etc
10886 @: $(MAKE); $(unstage)
10887 @[ -f ./etc/Makefile ] || exit 0; \
10888 r=`${PWD_COMMAND}`; export r; \
10889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10890 $(HOST_EXPORTS) \
10891 for flag in $(EXTRA_HOST_FLAGS) ; do \
10892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10893 done; \
10894 echo "Doing pdf in etc" ; \
10895 (cd $(HOST_SUBDIR)/etc && \
10896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10898 "RANLIB=$${RANLIB}" \
bffcbe34 10899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
10900 pdf) \
10901 || exit 1
10902
10903@endif etc
10904
b6fb961f
MS
10905.PHONY: maybe-html-etc html-etc
10906maybe-html-etc:
10907@if etc
10908maybe-html-etc: html-etc
10909
10910html-etc: \
10911 configure-etc
15b527ca 10912 @: $(MAKE); $(unstage)
b6fb961f
MS
10913 @[ -f ./etc/Makefile ] || exit 0; \
10914 r=`${PWD_COMMAND}`; export r; \
10915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
10916 $(HOST_EXPORTS) \
10917 for flag in $(EXTRA_HOST_FLAGS) ; do \
10918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10919 done; \
10920 echo "Doing html in etc" ; \
7fc2ca22 10921 (cd $(HOST_SUBDIR)/etc && \
b6fb961f
MS
10922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10924 "RANLIB=$${RANLIB}" \
bffcbe34 10925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
10926 html) \
10927 || exit 1
10928
10929@endif etc
10930
8ec98d6c
NN
10931.PHONY: maybe-TAGS-etc TAGS-etc
10932maybe-TAGS-etc:
a7e609d6
PB
10933@if etc
10934maybe-TAGS-etc: TAGS-etc
657b58f4 10935
8ec98d6c
NN
10936TAGS-etc: \
10937 configure-etc
15b527ca 10938 @: $(MAKE); $(unstage)
8ec98d6c 10939 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10940 r=`${PWD_COMMAND}`; export r; \
10941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10942 $(HOST_EXPORTS) \
d5eec917 10943 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10945 done; \
8ec98d6c 10946 echo "Doing TAGS in etc" ; \
7fc2ca22 10947 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10950 "RANLIB=$${RANLIB}" \
bffcbe34 10951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10952 TAGS) \
657b58f4
NN
10953 || exit 1
10954
a7e609d6 10955@endif etc
657b58f4 10956
8ec98d6c
NN
10957.PHONY: maybe-install-info-etc install-info-etc
10958maybe-install-info-etc:
a7e609d6
PB
10959@if etc
10960maybe-install-info-etc: install-info-etc
657b58f4 10961
8ec98d6c
NN
10962install-info-etc: \
10963 configure-etc \
10964 info-etc
15b527ca 10965 @: $(MAKE); $(unstage)
8ec98d6c 10966 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
10967 r=`${PWD_COMMAND}`; export r; \
10968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 10969 $(HOST_EXPORTS) \
d5eec917 10970 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
10971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10972 done; \
8ec98d6c 10973 echo "Doing install-info in etc" ; \
7fc2ca22 10974 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
10975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10977 "RANLIB=$${RANLIB}" \
bffcbe34 10978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 10979 install-info) \
657b58f4
NN
10980 || exit 1
10981
a7e609d6 10982@endif etc
657b58f4 10983
d4954b6d
DD
10984.PHONY: maybe-install-pdf-etc install-pdf-etc
10985maybe-install-pdf-etc:
10986@if etc
10987maybe-install-pdf-etc: install-pdf-etc
10988
10989install-pdf-etc: \
10990 configure-etc \
10991 pdf-etc
10992 @: $(MAKE); $(unstage)
10993 @[ -f ./etc/Makefile ] || exit 0; \
10994 r=`${PWD_COMMAND}`; export r; \
10995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10996 $(HOST_EXPORTS) \
10997 for flag in $(EXTRA_HOST_FLAGS) ; do \
10998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10999 done; \
11000 echo "Doing install-pdf in etc" ; \
11001 (cd $(HOST_SUBDIR)/etc && \
11002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11004 "RANLIB=$${RANLIB}" \
bffcbe34 11005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11006 install-pdf) \
11007 || exit 1
11008
11009@endif etc
11010
83c9add4
CD
11011.PHONY: maybe-install-html-etc install-html-etc
11012maybe-install-html-etc:
11013@if etc
11014maybe-install-html-etc: install-html-etc
11015
11016install-html-etc: \
11017 configure-etc \
11018 html-etc
11019 @: $(MAKE); $(unstage)
11020 @[ -f ./etc/Makefile ] || exit 0; \
11021 r=`${PWD_COMMAND}`; export r; \
11022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11023 $(HOST_EXPORTS) \
11024 for flag in $(EXTRA_HOST_FLAGS) ; do \
11025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11026 done; \
11027 echo "Doing install-html in etc" ; \
11028 (cd $(HOST_SUBDIR)/etc && \
11029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11031 "RANLIB=$${RANLIB}" \
bffcbe34 11032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11033 install-html) \
11034 || exit 1
11035
11036@endif etc
11037
8ec98d6c
NN
11038.PHONY: maybe-installcheck-etc installcheck-etc
11039maybe-installcheck-etc:
a7e609d6
PB
11040@if etc
11041maybe-installcheck-etc: installcheck-etc
657b58f4 11042
8ec98d6c
NN
11043installcheck-etc: \
11044 configure-etc
15b527ca 11045 @: $(MAKE); $(unstage)
8ec98d6c 11046 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
11047 r=`${PWD_COMMAND}`; export r; \
11048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11049 $(HOST_EXPORTS) \
d5eec917 11050 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11052 done; \
8ec98d6c 11053 echo "Doing installcheck in etc" ; \
7fc2ca22 11054 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
11055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11057 "RANLIB=$${RANLIB}" \
bffcbe34 11058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11059 installcheck) \
657b58f4
NN
11060 || exit 1
11061
a7e609d6 11062@endif etc
657b58f4 11063
8ec98d6c
NN
11064.PHONY: maybe-mostlyclean-etc mostlyclean-etc
11065maybe-mostlyclean-etc:
a7e609d6
PB
11066@if etc
11067maybe-mostlyclean-etc: mostlyclean-etc
657b58f4 11068
8ec98d6c 11069mostlyclean-etc:
15b527ca 11070 @: $(MAKE); $(unstage)
8ec98d6c 11071 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
11072 r=`${PWD_COMMAND}`; export r; \
11073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11074 $(HOST_EXPORTS) \
d5eec917 11075 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11077 done; \
8ec98d6c 11078 echo "Doing mostlyclean in etc" ; \
7fc2ca22 11079 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
11080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11082 "RANLIB=$${RANLIB}" \
bffcbe34 11083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11084 mostlyclean) \
657b58f4
NN
11085 || exit 1
11086
a7e609d6 11087@endif etc
657b58f4 11088
8ec98d6c
NN
11089.PHONY: maybe-clean-etc clean-etc
11090maybe-clean-etc:
a7e609d6
PB
11091@if etc
11092maybe-clean-etc: clean-etc
657b58f4 11093
8ec98d6c 11094clean-etc:
15b527ca 11095 @: $(MAKE); $(unstage)
8ec98d6c 11096 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
11097 r=`${PWD_COMMAND}`; export r; \
11098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11099 $(HOST_EXPORTS) \
d5eec917 11100 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11102 done; \
8ec98d6c 11103 echo "Doing clean in etc" ; \
7fc2ca22 11104 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
11105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11107 "RANLIB=$${RANLIB}" \
bffcbe34 11108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11109 clean) \
657b58f4
NN
11110 || exit 1
11111
a7e609d6 11112@endif etc
657b58f4 11113
8ec98d6c
NN
11114.PHONY: maybe-distclean-etc distclean-etc
11115maybe-distclean-etc:
a7e609d6
PB
11116@if etc
11117maybe-distclean-etc: distclean-etc
657b58f4 11118
8ec98d6c 11119distclean-etc:
15b527ca 11120 @: $(MAKE); $(unstage)
8ec98d6c 11121 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
11122 r=`${PWD_COMMAND}`; export r; \
11123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11124 $(HOST_EXPORTS) \
d5eec917 11125 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11127 done; \
8ec98d6c 11128 echo "Doing distclean in etc" ; \
7fc2ca22 11129 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
11130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11132 "RANLIB=$${RANLIB}" \
bffcbe34 11133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11134 distclean) \
657b58f4
NN
11135 || exit 1
11136
a7e609d6 11137@endif etc
657b58f4 11138
8ec98d6c
NN
11139.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
11140maybe-maintainer-clean-etc:
a7e609d6
PB
11141@if etc
11142maybe-maintainer-clean-etc: maintainer-clean-etc
657b58f4 11143
8ec98d6c 11144maintainer-clean-etc:
15b527ca 11145 @: $(MAKE); $(unstage)
8ec98d6c 11146 @[ -f ./etc/Makefile ] || exit 0; \
5230d454
L
11147 r=`${PWD_COMMAND}`; export r; \
11148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11149 $(HOST_EXPORTS) \
d5eec917 11150 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11152 done; \
8ec98d6c 11153 echo "Doing maintainer-clean in etc" ; \
7fc2ca22 11154 (cd $(HOST_SUBDIR)/etc && \
657b58f4
NN
11155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11157 "RANLIB=$${RANLIB}" \
bffcbe34 11158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11159 maintainer-clean) \
657b58f4
NN
11160 || exit 1
11161
a7e609d6 11162@endif etc
657b58f4 11163
657b58f4 11164
f0fdfd34 11165
8ec98d6c
NN
11166.PHONY: configure-fastjar maybe-configure-fastjar
11167maybe-configure-fastjar:
e1e5148c
CD
11168@if gcc-bootstrap
11169configure-fastjar: stage_current
11170@endif gcc-bootstrap
a7e609d6
PB
11171@if fastjar
11172maybe-configure-fastjar: configure-fastjar
ec92c4d6 11173configure-fastjar:
15b527ca 11174 @: $(MAKE); $(unstage)
ec92c4d6 11175 @r=`${PWD_COMMAND}`; export r; \
5230d454 11176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
11177 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
11178 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
5074489a 11179 $(HOST_EXPORTS) \
f0fdfd34
PB
11180 echo Configuring in $(HOST_SUBDIR)/fastjar; \
11181 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
8ec98d6c 11182 case $(srcdir) in \
7fc2ca22
PB
11183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11184 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
11185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11186 esac; \
7fc2ca22
PB
11187 srcdiroption="--srcdir=$${topdir}/fastjar"; \
11188 libsrcdir="$$s/fastjar"; \
8ec98d6c 11189 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
11190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11191 --target=${target_alias} $${srcdiroption} \
8ec98d6c 11192 || exit 1
a7e609d6 11193@endif fastjar
8ec98d6c 11194
f0fdfd34
PB
11195
11196
a8a96878
PB
11197
11198
8ec98d6c
NN
11199.PHONY: all-fastjar maybe-all-fastjar
11200maybe-all-fastjar:
e1e5148c
CD
11201@if gcc-bootstrap
11202all-fastjar: stage_current
11203@endif gcc-bootstrap
a7e609d6 11204@if fastjar
5e6b1f07 11205TARGET-fastjar=all
a7e609d6 11206maybe-all-fastjar: all-fastjar
8ec98d6c 11207all-fastjar: configure-fastjar
15b527ca 11208 @: $(MAKE); $(unstage)
8ec98d6c
NN
11209 @r=`${PWD_COMMAND}`; export r; \
11210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 11211 $(HOST_EXPORTS) \
7fc2ca22 11212 (cd $(HOST_SUBDIR)/fastjar && \
6532abb6
PB
11213 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
11214 $(TARGET-fastjar))
a7e609d6 11215@endif fastjar
657b58f4 11216
f0fdfd34 11217
a8a96878
PB
11218
11219
8ec98d6c
NN
11220.PHONY: check-fastjar maybe-check-fastjar
11221maybe-check-fastjar:
a7e609d6
PB
11222@if fastjar
11223maybe-check-fastjar: check-fastjar
657b58f4 11224
8ec98d6c
NN
11225# This module is only tested in a native toolchain.
11226check-fastjar:
15b527ca 11227 @: $(MAKE); $(unstage)
8ec98d6c
NN
11228 @if [ '$(host)' = '$(target)' ] ; then \
11229 r=`${PWD_COMMAND}`; export r; \
11230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11231 $(HOST_EXPORTS) \
7fc2ca22 11232 (cd $(HOST_SUBDIR)/fastjar && \
80e4c577 11233 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c 11234 fi
657b58f4 11235
a7e609d6 11236@endif fastjar
8ec98d6c
NN
11237
11238.PHONY: install-fastjar maybe-install-fastjar
11239maybe-install-fastjar:
a7e609d6
PB
11240@if fastjar
11241maybe-install-fastjar: install-fastjar
8ec98d6c
NN
11242
11243install-fastjar: installdirs
15b527ca 11244 @: $(MAKE); $(unstage)
8ec98d6c 11245 @r=`${PWD_COMMAND}`; export r; \
5230d454 11246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11247 $(HOST_EXPORTS) \
7fc2ca22 11248 (cd $(HOST_SUBDIR)/fastjar && \
93c60b6d 11249 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 11250
a7e609d6 11251@endif fastjar
657b58f4 11252
39bbbb69 11253# Other targets (info, dvi, pdf, etc.)
657b58f4 11254
8ec98d6c
NN
11255.PHONY: maybe-info-fastjar info-fastjar
11256maybe-info-fastjar:
a7e609d6
PB
11257@if fastjar
11258maybe-info-fastjar: info-fastjar
8ec98d6c
NN
11259
11260info-fastjar: \
11261 configure-fastjar
15b527ca 11262 @: $(MAKE); $(unstage)
8ec98d6c 11263 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11264 r=`${PWD_COMMAND}`; export r; \
11265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11266 $(HOST_EXPORTS) \
d5eec917 11267 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11269 done; \
8ec98d6c 11270 echo "Doing info in fastjar" ; \
7fc2ca22 11271 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11274 "RANLIB=$${RANLIB}" \
bffcbe34 11275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11276 info) \
657b58f4
NN
11277 || exit 1
11278
a7e609d6 11279@endif fastjar
657b58f4 11280
8ec98d6c
NN
11281.PHONY: maybe-dvi-fastjar dvi-fastjar
11282maybe-dvi-fastjar:
a7e609d6
PB
11283@if fastjar
11284maybe-dvi-fastjar: dvi-fastjar
657b58f4 11285
8ec98d6c
NN
11286dvi-fastjar: \
11287 configure-fastjar
15b527ca 11288 @: $(MAKE); $(unstage)
657b58f4 11289 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11290 r=`${PWD_COMMAND}`; export r; \
11291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11292 $(HOST_EXPORTS) \
d5eec917 11293 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11295 done; \
8ec98d6c 11296 echo "Doing dvi in fastjar" ; \
7fc2ca22 11297 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11300 "RANLIB=$${RANLIB}" \
bffcbe34 11301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11302 dvi) \
657b58f4
NN
11303 || exit 1
11304
a7e609d6 11305@endif fastjar
657b58f4 11306
39bbbb69
DD
11307.PHONY: maybe-pdf-fastjar pdf-fastjar
11308maybe-pdf-fastjar:
11309@if fastjar
11310maybe-pdf-fastjar: pdf-fastjar
11311
11312pdf-fastjar: \
11313 configure-fastjar
11314 @: $(MAKE); $(unstage)
11315 @[ -f ./fastjar/Makefile ] || exit 0; \
11316 r=`${PWD_COMMAND}`; export r; \
11317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11318 $(HOST_EXPORTS) \
11319 for flag in $(EXTRA_HOST_FLAGS) ; do \
11320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11321 done; \
11322 echo "Doing pdf in fastjar" ; \
11323 (cd $(HOST_SUBDIR)/fastjar && \
11324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11326 "RANLIB=$${RANLIB}" \
bffcbe34 11327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
11328 pdf) \
11329 || exit 1
11330
11331@endif fastjar
11332
b6fb961f
MS
11333.PHONY: maybe-html-fastjar html-fastjar
11334maybe-html-fastjar:
11335@if fastjar
11336maybe-html-fastjar: html-fastjar
11337
11338html-fastjar: \
11339 configure-fastjar
15b527ca 11340 @: $(MAKE); $(unstage)
b6fb961f
MS
11341 @[ -f ./fastjar/Makefile ] || exit 0; \
11342 r=`${PWD_COMMAND}`; export r; \
11343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
11344 $(HOST_EXPORTS) \
11345 for flag in $(EXTRA_HOST_FLAGS) ; do \
11346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11347 done; \
11348 echo "Doing html in fastjar" ; \
7fc2ca22 11349 (cd $(HOST_SUBDIR)/fastjar && \
b6fb961f
MS
11350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11352 "RANLIB=$${RANLIB}" \
bffcbe34 11353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
11354 html) \
11355 || exit 1
11356
11357@endif fastjar
11358
8ec98d6c
NN
11359.PHONY: maybe-TAGS-fastjar TAGS-fastjar
11360maybe-TAGS-fastjar:
a7e609d6
PB
11361@if fastjar
11362maybe-TAGS-fastjar: TAGS-fastjar
657b58f4 11363
8ec98d6c
NN
11364TAGS-fastjar: \
11365 configure-fastjar
15b527ca 11366 @: $(MAKE); $(unstage)
8ec98d6c 11367 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11368 r=`${PWD_COMMAND}`; export r; \
11369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11370 $(HOST_EXPORTS) \
d5eec917 11371 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11373 done; \
8ec98d6c 11374 echo "Doing TAGS in fastjar" ; \
7fc2ca22 11375 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11378 "RANLIB=$${RANLIB}" \
bffcbe34 11379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11380 TAGS) \
657b58f4
NN
11381 || exit 1
11382
a7e609d6 11383@endif fastjar
657b58f4 11384
8ec98d6c
NN
11385.PHONY: maybe-install-info-fastjar install-info-fastjar
11386maybe-install-info-fastjar:
a7e609d6
PB
11387@if fastjar
11388maybe-install-info-fastjar: install-info-fastjar
657b58f4 11389
8ec98d6c
NN
11390install-info-fastjar: \
11391 configure-fastjar \
11392 info-fastjar
15b527ca 11393 @: $(MAKE); $(unstage)
8ec98d6c 11394 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11395 r=`${PWD_COMMAND}`; export r; \
11396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11397 $(HOST_EXPORTS) \
d5eec917 11398 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11400 done; \
8ec98d6c 11401 echo "Doing install-info in fastjar" ; \
7fc2ca22 11402 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11405 "RANLIB=$${RANLIB}" \
bffcbe34 11406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11407 install-info) \
657b58f4
NN
11408 || exit 1
11409
a7e609d6 11410@endif fastjar
657b58f4 11411
d4954b6d
DD
11412.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
11413maybe-install-pdf-fastjar:
11414@if fastjar
11415maybe-install-pdf-fastjar: install-pdf-fastjar
11416
11417install-pdf-fastjar: \
11418 configure-fastjar \
11419 pdf-fastjar
11420 @: $(MAKE); $(unstage)
11421 @[ -f ./fastjar/Makefile ] || exit 0; \
11422 r=`${PWD_COMMAND}`; export r; \
11423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11424 $(HOST_EXPORTS) \
11425 for flag in $(EXTRA_HOST_FLAGS) ; do \
11426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11427 done; \
11428 echo "Doing install-pdf in fastjar" ; \
11429 (cd $(HOST_SUBDIR)/fastjar && \
11430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11432 "RANLIB=$${RANLIB}" \
bffcbe34 11433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11434 install-pdf) \
11435 || exit 1
11436
11437@endif fastjar
11438
83c9add4
CD
11439.PHONY: maybe-install-html-fastjar install-html-fastjar
11440maybe-install-html-fastjar:
11441@if fastjar
11442maybe-install-html-fastjar: install-html-fastjar
11443
11444install-html-fastjar: \
11445 configure-fastjar \
11446 html-fastjar
11447 @: $(MAKE); $(unstage)
11448 @[ -f ./fastjar/Makefile ] || exit 0; \
11449 r=`${PWD_COMMAND}`; export r; \
11450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11451 $(HOST_EXPORTS) \
11452 for flag in $(EXTRA_HOST_FLAGS) ; do \
11453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11454 done; \
11455 echo "Doing install-html in fastjar" ; \
11456 (cd $(HOST_SUBDIR)/fastjar && \
11457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11459 "RANLIB=$${RANLIB}" \
bffcbe34 11460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11461 install-html) \
11462 || exit 1
11463
11464@endif fastjar
11465
8ec98d6c
NN
11466.PHONY: maybe-installcheck-fastjar installcheck-fastjar
11467maybe-installcheck-fastjar:
a7e609d6
PB
11468@if fastjar
11469maybe-installcheck-fastjar: installcheck-fastjar
657b58f4 11470
8ec98d6c
NN
11471installcheck-fastjar: \
11472 configure-fastjar
15b527ca 11473 @: $(MAKE); $(unstage)
8ec98d6c 11474 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11475 r=`${PWD_COMMAND}`; export r; \
11476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11477 $(HOST_EXPORTS) \
d5eec917 11478 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11480 done; \
8ec98d6c 11481 echo "Doing installcheck in fastjar" ; \
7fc2ca22 11482 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11485 "RANLIB=$${RANLIB}" \
bffcbe34 11486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11487 installcheck) \
657b58f4
NN
11488 || exit 1
11489
a7e609d6 11490@endif fastjar
657b58f4 11491
8ec98d6c
NN
11492.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
11493maybe-mostlyclean-fastjar:
a7e609d6
PB
11494@if fastjar
11495maybe-mostlyclean-fastjar: mostlyclean-fastjar
657b58f4 11496
8ec98d6c 11497mostlyclean-fastjar:
15b527ca 11498 @: $(MAKE); $(unstage)
8ec98d6c 11499 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11500 r=`${PWD_COMMAND}`; export r; \
11501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11502 $(HOST_EXPORTS) \
d5eec917 11503 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11505 done; \
8ec98d6c 11506 echo "Doing mostlyclean in fastjar" ; \
7fc2ca22 11507 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11510 "RANLIB=$${RANLIB}" \
bffcbe34 11511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11512 mostlyclean) \
657b58f4
NN
11513 || exit 1
11514
a7e609d6 11515@endif fastjar
657b58f4 11516
8ec98d6c
NN
11517.PHONY: maybe-clean-fastjar clean-fastjar
11518maybe-clean-fastjar:
a7e609d6
PB
11519@if fastjar
11520maybe-clean-fastjar: clean-fastjar
657b58f4 11521
8ec98d6c 11522clean-fastjar:
15b527ca 11523 @: $(MAKE); $(unstage)
8ec98d6c 11524 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11525 r=`${PWD_COMMAND}`; export r; \
11526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11527 $(HOST_EXPORTS) \
d5eec917 11528 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11530 done; \
8ec98d6c 11531 echo "Doing clean in fastjar" ; \
7fc2ca22 11532 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11535 "RANLIB=$${RANLIB}" \
bffcbe34 11536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11537 clean) \
657b58f4
NN
11538 || exit 1
11539
a7e609d6 11540@endif fastjar
657b58f4 11541
8ec98d6c
NN
11542.PHONY: maybe-distclean-fastjar distclean-fastjar
11543maybe-distclean-fastjar:
a7e609d6
PB
11544@if fastjar
11545maybe-distclean-fastjar: distclean-fastjar
657b58f4 11546
8ec98d6c 11547distclean-fastjar:
15b527ca 11548 @: $(MAKE); $(unstage)
8ec98d6c 11549 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11550 r=`${PWD_COMMAND}`; export r; \
11551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11552 $(HOST_EXPORTS) \
d5eec917 11553 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11555 done; \
8ec98d6c 11556 echo "Doing distclean in fastjar" ; \
7fc2ca22 11557 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11560 "RANLIB=$${RANLIB}" \
bffcbe34 11561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11562 distclean) \
657b58f4
NN
11563 || exit 1
11564
a7e609d6 11565@endif fastjar
657b58f4 11566
8ec98d6c
NN
11567.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
11568maybe-maintainer-clean-fastjar:
a7e609d6
PB
11569@if fastjar
11570maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
657b58f4 11571
8ec98d6c 11572maintainer-clean-fastjar:
15b527ca 11573 @: $(MAKE); $(unstage)
8ec98d6c 11574 @[ -f ./fastjar/Makefile ] || exit 0; \
5230d454
L
11575 r=`${PWD_COMMAND}`; export r; \
11576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11577 $(HOST_EXPORTS) \
d5eec917 11578 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11580 done; \
8ec98d6c 11581 echo "Doing maintainer-clean in fastjar" ; \
7fc2ca22 11582 (cd $(HOST_SUBDIR)/fastjar && \
657b58f4
NN
11583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11585 "RANLIB=$${RANLIB}" \
bffcbe34 11586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11587 maintainer-clean) \
657b58f4
NN
11588 || exit 1
11589
a7e609d6 11590@endif fastjar
657b58f4 11591
657b58f4 11592
f0fdfd34 11593
8ec98d6c
NN
11594.PHONY: configure-fileutils maybe-configure-fileutils
11595maybe-configure-fileutils:
e1e5148c
CD
11596@if gcc-bootstrap
11597configure-fileutils: stage_current
11598@endif gcc-bootstrap
a7e609d6
PB
11599@if fileutils
11600maybe-configure-fileutils: configure-fileutils
ec92c4d6 11601configure-fileutils:
15b527ca 11602 @: $(MAKE); $(unstage)
ec92c4d6 11603 @r=`${PWD_COMMAND}`; export r; \
5230d454 11604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
11605 test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
11606 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
5074489a 11607 $(HOST_EXPORTS) \
f0fdfd34
PB
11608 echo Configuring in $(HOST_SUBDIR)/fileutils; \
11609 cd "$(HOST_SUBDIR)/fileutils" || exit 1; \
8ec98d6c 11610 case $(srcdir) in \
7fc2ca22
PB
11611 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11612 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
11613 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 11614 esac; \
7fc2ca22
PB
11615 srcdiroption="--srcdir=$${topdir}/fileutils"; \
11616 libsrcdir="$$s/fileutils"; \
8ec98d6c 11617 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
11618 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11619 --target=${target_alias} $${srcdiroption} \
657b58f4 11620 || exit 1
a7e609d6 11621@endif fileutils
657b58f4 11622
f0fdfd34
PB
11623
11624
a8a96878
PB
11625
11626
8ec98d6c
NN
11627.PHONY: all-fileutils maybe-all-fileutils
11628maybe-all-fileutils:
e1e5148c
CD
11629@if gcc-bootstrap
11630all-fileutils: stage_current
11631@endif gcc-bootstrap
a7e609d6 11632@if fileutils
5e6b1f07 11633TARGET-fileutils=all
a7e609d6 11634maybe-all-fileutils: all-fileutils
8ec98d6c 11635all-fileutils: configure-fileutils
15b527ca 11636 @: $(MAKE); $(unstage)
8ec98d6c 11637 @r=`${PWD_COMMAND}`; export r; \
5230d454 11638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 11639 $(HOST_EXPORTS) \
7fc2ca22 11640 (cd $(HOST_SUBDIR)/fileutils && \
6532abb6
PB
11641 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
11642 $(TARGET-fileutils))
a7e609d6 11643@endif fileutils
8ec98d6c 11644
f0fdfd34 11645
a8a96878
PB
11646
11647
8ec98d6c
NN
11648.PHONY: check-fileutils maybe-check-fileutils
11649maybe-check-fileutils:
a7e609d6
PB
11650@if fileutils
11651maybe-check-fileutils: check-fileutils
8ec98d6c
NN
11652
11653check-fileutils:
15b527ca 11654 @: $(MAKE); $(unstage)
8ec98d6c
NN
11655 @r=`${PWD_COMMAND}`; export r; \
11656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11657 $(HOST_EXPORTS) \
7fc2ca22
PB
11658 (cd $(HOST_SUBDIR)/fileutils && \
11659 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 11660
a7e609d6 11661@endif fileutils
657b58f4 11662
8ec98d6c
NN
11663.PHONY: install-fileutils maybe-install-fileutils
11664maybe-install-fileutils:
a7e609d6
PB
11665@if fileutils
11666maybe-install-fileutils: install-fileutils
657b58f4 11667
8ec98d6c 11668install-fileutils: installdirs
15b527ca 11669 @: $(MAKE); $(unstage)
8ec98d6c 11670 @r=`${PWD_COMMAND}`; export r; \
5230d454 11671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11672 $(HOST_EXPORTS) \
7fc2ca22 11673 (cd $(HOST_SUBDIR)/fileutils && \
93c60b6d 11674 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 11675
a7e609d6 11676@endif fileutils
657b58f4 11677
39bbbb69 11678# Other targets (info, dvi, pdf, etc.)
657b58f4 11679
8ec98d6c
NN
11680.PHONY: maybe-info-fileutils info-fileutils
11681maybe-info-fileutils:
a7e609d6
PB
11682@if fileutils
11683maybe-info-fileutils: info-fileutils
8ec98d6c
NN
11684
11685info-fileutils: \
11686 configure-fileutils
15b527ca 11687 @: $(MAKE); $(unstage)
8ec98d6c 11688 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11689 r=`${PWD_COMMAND}`; export r; \
11690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11691 $(HOST_EXPORTS) \
d5eec917 11692 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11694 done; \
8ec98d6c 11695 echo "Doing info in fileutils" ; \
7fc2ca22 11696 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11699 "RANLIB=$${RANLIB}" \
bffcbe34 11700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11701 info) \
657b58f4
NN
11702 || exit 1
11703
a7e609d6 11704@endif fileutils
657b58f4 11705
8ec98d6c
NN
11706.PHONY: maybe-dvi-fileutils dvi-fileutils
11707maybe-dvi-fileutils:
a7e609d6
PB
11708@if fileutils
11709maybe-dvi-fileutils: dvi-fileutils
657b58f4 11710
8ec98d6c
NN
11711dvi-fileutils: \
11712 configure-fileutils
15b527ca 11713 @: $(MAKE); $(unstage)
8ec98d6c 11714 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11715 r=`${PWD_COMMAND}`; export r; \
11716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11717 $(HOST_EXPORTS) \
d5eec917 11718 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11720 done; \
8ec98d6c 11721 echo "Doing dvi in fileutils" ; \
7fc2ca22 11722 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11725 "RANLIB=$${RANLIB}" \
bffcbe34 11726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11727 dvi) \
657b58f4
NN
11728 || exit 1
11729
a7e609d6 11730@endif fileutils
657b58f4 11731
39bbbb69
DD
11732.PHONY: maybe-pdf-fileutils pdf-fileutils
11733maybe-pdf-fileutils:
11734@if fileutils
11735maybe-pdf-fileutils: pdf-fileutils
11736
11737pdf-fileutils: \
11738 configure-fileutils
11739 @: $(MAKE); $(unstage)
11740 @[ -f ./fileutils/Makefile ] || exit 0; \
11741 r=`${PWD_COMMAND}`; export r; \
11742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11743 $(HOST_EXPORTS) \
11744 for flag in $(EXTRA_HOST_FLAGS) ; do \
11745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11746 done; \
11747 echo "Doing pdf in fileutils" ; \
11748 (cd $(HOST_SUBDIR)/fileutils && \
11749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11751 "RANLIB=$${RANLIB}" \
bffcbe34 11752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
11753 pdf) \
11754 || exit 1
11755
11756@endif fileutils
11757
b6fb961f
MS
11758.PHONY: maybe-html-fileutils html-fileutils
11759maybe-html-fileutils:
11760@if fileutils
11761maybe-html-fileutils: html-fileutils
11762
11763html-fileutils: \
11764 configure-fileutils
15b527ca 11765 @: $(MAKE); $(unstage)
b6fb961f
MS
11766 @[ -f ./fileutils/Makefile ] || exit 0; \
11767 r=`${PWD_COMMAND}`; export r; \
11768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
11769 $(HOST_EXPORTS) \
11770 for flag in $(EXTRA_HOST_FLAGS) ; do \
11771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11772 done; \
11773 echo "Doing html in fileutils" ; \
7fc2ca22 11774 (cd $(HOST_SUBDIR)/fileutils && \
b6fb961f
MS
11775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11777 "RANLIB=$${RANLIB}" \
bffcbe34 11778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
11779 html) \
11780 || exit 1
11781
11782@endif fileutils
11783
8ec98d6c
NN
11784.PHONY: maybe-TAGS-fileutils TAGS-fileutils
11785maybe-TAGS-fileutils:
a7e609d6
PB
11786@if fileutils
11787maybe-TAGS-fileutils: TAGS-fileutils
657b58f4 11788
8ec98d6c
NN
11789TAGS-fileutils: \
11790 configure-fileutils
15b527ca 11791 @: $(MAKE); $(unstage)
8ec98d6c 11792 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11793 r=`${PWD_COMMAND}`; export r; \
11794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11795 $(HOST_EXPORTS) \
d5eec917 11796 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11798 done; \
8ec98d6c 11799 echo "Doing TAGS in fileutils" ; \
7fc2ca22 11800 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11803 "RANLIB=$${RANLIB}" \
bffcbe34 11804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11805 TAGS) \
657b58f4
NN
11806 || exit 1
11807
a7e609d6 11808@endif fileutils
657b58f4 11809
8ec98d6c
NN
11810.PHONY: maybe-install-info-fileutils install-info-fileutils
11811maybe-install-info-fileutils:
a7e609d6
PB
11812@if fileutils
11813maybe-install-info-fileutils: install-info-fileutils
657b58f4 11814
8ec98d6c
NN
11815install-info-fileutils: \
11816 configure-fileutils \
11817 info-fileutils
15b527ca 11818 @: $(MAKE); $(unstage)
8ec98d6c 11819 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11820 r=`${PWD_COMMAND}`; export r; \
11821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11822 $(HOST_EXPORTS) \
d5eec917 11823 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11825 done; \
8ec98d6c 11826 echo "Doing install-info in fileutils" ; \
7fc2ca22 11827 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11830 "RANLIB=$${RANLIB}" \
bffcbe34 11831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11832 install-info) \
657b58f4
NN
11833 || exit 1
11834
a7e609d6 11835@endif fileutils
657b58f4 11836
d4954b6d
DD
11837.PHONY: maybe-install-pdf-fileutils install-pdf-fileutils
11838maybe-install-pdf-fileutils:
11839@if fileutils
11840maybe-install-pdf-fileutils: install-pdf-fileutils
11841
11842install-pdf-fileutils: \
11843 configure-fileutils \
11844 pdf-fileutils
11845 @: $(MAKE); $(unstage)
11846 @[ -f ./fileutils/Makefile ] || exit 0; \
11847 r=`${PWD_COMMAND}`; export r; \
11848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11849 $(HOST_EXPORTS) \
11850 for flag in $(EXTRA_HOST_FLAGS) ; do \
11851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11852 done; \
11853 echo "Doing install-pdf in fileutils" ; \
11854 (cd $(HOST_SUBDIR)/fileutils && \
11855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11857 "RANLIB=$${RANLIB}" \
bffcbe34 11858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
11859 install-pdf) \
11860 || exit 1
11861
11862@endif fileutils
11863
83c9add4
CD
11864.PHONY: maybe-install-html-fileutils install-html-fileutils
11865maybe-install-html-fileutils:
11866@if fileutils
11867maybe-install-html-fileutils: install-html-fileutils
11868
11869install-html-fileutils: \
11870 configure-fileutils \
11871 html-fileutils
11872 @: $(MAKE); $(unstage)
11873 @[ -f ./fileutils/Makefile ] || exit 0; \
11874 r=`${PWD_COMMAND}`; export r; \
11875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11876 $(HOST_EXPORTS) \
11877 for flag in $(EXTRA_HOST_FLAGS) ; do \
11878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11879 done; \
11880 echo "Doing install-html in fileutils" ; \
11881 (cd $(HOST_SUBDIR)/fileutils && \
11882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11884 "RANLIB=$${RANLIB}" \
bffcbe34 11885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
11886 install-html) \
11887 || exit 1
11888
11889@endif fileutils
11890
8ec98d6c
NN
11891.PHONY: maybe-installcheck-fileutils installcheck-fileutils
11892maybe-installcheck-fileutils:
a7e609d6
PB
11893@if fileutils
11894maybe-installcheck-fileutils: installcheck-fileutils
657b58f4 11895
8ec98d6c
NN
11896installcheck-fileutils: \
11897 configure-fileutils
15b527ca 11898 @: $(MAKE); $(unstage)
8ec98d6c 11899 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11900 r=`${PWD_COMMAND}`; export r; \
11901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11902 $(HOST_EXPORTS) \
d5eec917 11903 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11905 done; \
8ec98d6c 11906 echo "Doing installcheck in fileutils" ; \
7fc2ca22 11907 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11910 "RANLIB=$${RANLIB}" \
bffcbe34 11911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11912 installcheck) \
657b58f4
NN
11913 || exit 1
11914
a7e609d6 11915@endif fileutils
657b58f4 11916
8ec98d6c
NN
11917.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
11918maybe-mostlyclean-fileutils:
a7e609d6
PB
11919@if fileutils
11920maybe-mostlyclean-fileutils: mostlyclean-fileutils
657b58f4 11921
8ec98d6c 11922mostlyclean-fileutils:
15b527ca 11923 @: $(MAKE); $(unstage)
8ec98d6c 11924 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11925 r=`${PWD_COMMAND}`; export r; \
11926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11927 $(HOST_EXPORTS) \
d5eec917 11928 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11930 done; \
8ec98d6c 11931 echo "Doing mostlyclean in fileutils" ; \
7fc2ca22 11932 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11935 "RANLIB=$${RANLIB}" \
bffcbe34 11936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11937 mostlyclean) \
657b58f4
NN
11938 || exit 1
11939
a7e609d6 11940@endif fileutils
657b58f4 11941
8ec98d6c
NN
11942.PHONY: maybe-clean-fileutils clean-fileutils
11943maybe-clean-fileutils:
a7e609d6
PB
11944@if fileutils
11945maybe-clean-fileutils: clean-fileutils
657b58f4 11946
8ec98d6c 11947clean-fileutils:
15b527ca 11948 @: $(MAKE); $(unstage)
8ec98d6c 11949 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11950 r=`${PWD_COMMAND}`; export r; \
11951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11952 $(HOST_EXPORTS) \
d5eec917 11953 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11955 done; \
8ec98d6c 11956 echo "Doing clean in fileutils" ; \
7fc2ca22 11957 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11960 "RANLIB=$${RANLIB}" \
bffcbe34 11961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11962 clean) \
657b58f4
NN
11963 || exit 1
11964
a7e609d6 11965@endif fileutils
657b58f4 11966
8ec98d6c
NN
11967.PHONY: maybe-distclean-fileutils distclean-fileutils
11968maybe-distclean-fileutils:
a7e609d6
PB
11969@if fileutils
11970maybe-distclean-fileutils: distclean-fileutils
657b58f4 11971
8ec98d6c 11972distclean-fileutils:
15b527ca 11973 @: $(MAKE); $(unstage)
8ec98d6c 11974 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
11975 r=`${PWD_COMMAND}`; export r; \
11976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 11977 $(HOST_EXPORTS) \
d5eec917 11978 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
11979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11980 done; \
8ec98d6c 11981 echo "Doing distclean in fileutils" ; \
7fc2ca22 11982 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
11983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11985 "RANLIB=$${RANLIB}" \
bffcbe34 11986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 11987 distclean) \
657b58f4
NN
11988 || exit 1
11989
a7e609d6 11990@endif fileutils
657b58f4 11991
8ec98d6c
NN
11992.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
11993maybe-maintainer-clean-fileutils:
a7e609d6
PB
11994@if fileutils
11995maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
657b58f4 11996
8ec98d6c 11997maintainer-clean-fileutils:
15b527ca 11998 @: $(MAKE); $(unstage)
8ec98d6c 11999 @[ -f ./fileutils/Makefile ] || exit 0; \
5230d454
L
12000 r=`${PWD_COMMAND}`; export r; \
12001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12002 $(HOST_EXPORTS) \
d5eec917 12003 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12005 done; \
8ec98d6c 12006 echo "Doing maintainer-clean in fileutils" ; \
7fc2ca22 12007 (cd $(HOST_SUBDIR)/fileutils && \
657b58f4
NN
12008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12010 "RANLIB=$${RANLIB}" \
bffcbe34 12011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12012 maintainer-clean) \
657b58f4
NN
12013 || exit 1
12014
a7e609d6 12015@endif fileutils
657b58f4 12016
657b58f4 12017
f0fdfd34 12018
8ec98d6c
NN
12019.PHONY: configure-findutils maybe-configure-findutils
12020maybe-configure-findutils:
e1e5148c
CD
12021@if gcc-bootstrap
12022configure-findutils: stage_current
12023@endif gcc-bootstrap
a7e609d6
PB
12024@if findutils
12025maybe-configure-findutils: configure-findutils
ec92c4d6 12026configure-findutils:
15b527ca 12027 @: $(MAKE); $(unstage)
ec92c4d6 12028 @r=`${PWD_COMMAND}`; export r; \
5230d454 12029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12030 test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
12031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
5074489a 12032 $(HOST_EXPORTS) \
f0fdfd34
PB
12033 echo Configuring in $(HOST_SUBDIR)/findutils; \
12034 cd "$(HOST_SUBDIR)/findutils" || exit 1; \
8ec98d6c 12035 case $(srcdir) in \
7fc2ca22
PB
12036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12037 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
12038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12039 esac; \
7fc2ca22
PB
12040 srcdiroption="--srcdir=$${topdir}/findutils"; \
12041 libsrcdir="$$s/findutils"; \
8ec98d6c 12042 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12043 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12044 --target=${target_alias} $${srcdiroption} \
657b58f4 12045 || exit 1
a7e609d6 12046@endif findutils
657b58f4 12047
f0fdfd34
PB
12048
12049
a8a96878
PB
12050
12051
8ec98d6c
NN
12052.PHONY: all-findutils maybe-all-findutils
12053maybe-all-findutils:
e1e5148c
CD
12054@if gcc-bootstrap
12055all-findutils: stage_current
12056@endif gcc-bootstrap
a7e609d6 12057@if findutils
5e6b1f07 12058TARGET-findutils=all
a7e609d6 12059maybe-all-findutils: all-findutils
8ec98d6c 12060all-findutils: configure-findutils
15b527ca 12061 @: $(MAKE); $(unstage)
8ec98d6c
NN
12062 @r=`${PWD_COMMAND}`; export r; \
12063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 12064 $(HOST_EXPORTS) \
7fc2ca22 12065 (cd $(HOST_SUBDIR)/findutils && \
6532abb6
PB
12066 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12067 $(TARGET-findutils))
a7e609d6 12068@endif findutils
657b58f4 12069
f0fdfd34 12070
a8a96878
PB
12071
12072
8ec98d6c
NN
12073.PHONY: check-findutils maybe-check-findutils
12074maybe-check-findutils:
a7e609d6
PB
12075@if findutils
12076maybe-check-findutils: check-findutils
657b58f4 12077
8ec98d6c 12078check-findutils:
15b527ca 12079 @: $(MAKE); $(unstage)
8ec98d6c 12080 @r=`${PWD_COMMAND}`; export r; \
5230d454 12081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12082 $(HOST_EXPORTS) \
7fc2ca22
PB
12083 (cd $(HOST_SUBDIR)/findutils && \
12084 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 12085
a7e609d6 12086@endif findutils
657b58f4 12087
8ec98d6c
NN
12088.PHONY: install-findutils maybe-install-findutils
12089maybe-install-findutils:
a7e609d6
PB
12090@if findutils
12091maybe-install-findutils: install-findutils
657b58f4 12092
8ec98d6c 12093install-findutils: installdirs
15b527ca 12094 @: $(MAKE); $(unstage)
8ec98d6c 12095 @r=`${PWD_COMMAND}`; export r; \
5230d454 12096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12097 $(HOST_EXPORTS) \
7fc2ca22 12098 (cd $(HOST_SUBDIR)/findutils && \
93c60b6d 12099 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12100
a7e609d6 12101@endif findutils
657b58f4 12102
39bbbb69 12103# Other targets (info, dvi, pdf, etc.)
657b58f4 12104
8ec98d6c
NN
12105.PHONY: maybe-info-findutils info-findutils
12106maybe-info-findutils:
a7e609d6
PB
12107@if findutils
12108maybe-info-findutils: info-findutils
657b58f4 12109
8ec98d6c
NN
12110info-findutils: \
12111 configure-findutils
15b527ca 12112 @: $(MAKE); $(unstage)
8ec98d6c 12113 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12114 r=`${PWD_COMMAND}`; export r; \
12115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12116 $(HOST_EXPORTS) \
d5eec917 12117 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12119 done; \
8ec98d6c 12120 echo "Doing info in findutils" ; \
7fc2ca22 12121 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12124 "RANLIB=$${RANLIB}" \
bffcbe34 12125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12126 info) \
657b58f4
NN
12127 || exit 1
12128
a7e609d6 12129@endif findutils
657b58f4 12130
8ec98d6c
NN
12131.PHONY: maybe-dvi-findutils dvi-findutils
12132maybe-dvi-findutils:
a7e609d6
PB
12133@if findutils
12134maybe-dvi-findutils: dvi-findutils
657b58f4 12135
8ec98d6c
NN
12136dvi-findutils: \
12137 configure-findutils
15b527ca 12138 @: $(MAKE); $(unstage)
8ec98d6c 12139 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12140 r=`${PWD_COMMAND}`; export r; \
12141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12142 $(HOST_EXPORTS) \
d5eec917 12143 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12145 done; \
8ec98d6c 12146 echo "Doing dvi in findutils" ; \
7fc2ca22 12147 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12150 "RANLIB=$${RANLIB}" \
bffcbe34 12151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12152 dvi) \
657b58f4
NN
12153 || exit 1
12154
a7e609d6 12155@endif findutils
657b58f4 12156
39bbbb69
DD
12157.PHONY: maybe-pdf-findutils pdf-findutils
12158maybe-pdf-findutils:
12159@if findutils
12160maybe-pdf-findutils: pdf-findutils
12161
12162pdf-findutils: \
12163 configure-findutils
12164 @: $(MAKE); $(unstage)
12165 @[ -f ./findutils/Makefile ] || exit 0; \
12166 r=`${PWD_COMMAND}`; export r; \
12167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12168 $(HOST_EXPORTS) \
12169 for flag in $(EXTRA_HOST_FLAGS) ; do \
12170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12171 done; \
12172 echo "Doing pdf in findutils" ; \
12173 (cd $(HOST_SUBDIR)/findutils && \
12174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12176 "RANLIB=$${RANLIB}" \
bffcbe34 12177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
12178 pdf) \
12179 || exit 1
12180
12181@endif findutils
12182
b6fb961f
MS
12183.PHONY: maybe-html-findutils html-findutils
12184maybe-html-findutils:
12185@if findutils
12186maybe-html-findutils: html-findutils
12187
12188html-findutils: \
12189 configure-findutils
15b527ca 12190 @: $(MAKE); $(unstage)
b6fb961f
MS
12191 @[ -f ./findutils/Makefile ] || exit 0; \
12192 r=`${PWD_COMMAND}`; export r; \
12193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
12194 $(HOST_EXPORTS) \
12195 for flag in $(EXTRA_HOST_FLAGS) ; do \
12196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12197 done; \
12198 echo "Doing html in findutils" ; \
7fc2ca22 12199 (cd $(HOST_SUBDIR)/findutils && \
b6fb961f
MS
12200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12202 "RANLIB=$${RANLIB}" \
bffcbe34 12203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
12204 html) \
12205 || exit 1
12206
12207@endif findutils
12208
8ec98d6c
NN
12209.PHONY: maybe-TAGS-findutils TAGS-findutils
12210maybe-TAGS-findutils:
a7e609d6
PB
12211@if findutils
12212maybe-TAGS-findutils: TAGS-findutils
657b58f4 12213
8ec98d6c
NN
12214TAGS-findutils: \
12215 configure-findutils
15b527ca 12216 @: $(MAKE); $(unstage)
8ec98d6c 12217 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12218 r=`${PWD_COMMAND}`; export r; \
12219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12220 $(HOST_EXPORTS) \
d5eec917 12221 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12223 done; \
8ec98d6c 12224 echo "Doing TAGS in findutils" ; \
7fc2ca22 12225 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12228 "RANLIB=$${RANLIB}" \
bffcbe34 12229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12230 TAGS) \
657b58f4
NN
12231 || exit 1
12232
a7e609d6 12233@endif findutils
657b58f4 12234
8ec98d6c
NN
12235.PHONY: maybe-install-info-findutils install-info-findutils
12236maybe-install-info-findutils:
a7e609d6
PB
12237@if findutils
12238maybe-install-info-findutils: install-info-findutils
657b58f4 12239
8ec98d6c
NN
12240install-info-findutils: \
12241 configure-findutils \
12242 info-findutils
15b527ca 12243 @: $(MAKE); $(unstage)
8ec98d6c 12244 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12245 r=`${PWD_COMMAND}`; export r; \
12246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12247 $(HOST_EXPORTS) \
d5eec917 12248 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12250 done; \
8ec98d6c 12251 echo "Doing install-info in findutils" ; \
7fc2ca22 12252 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12255 "RANLIB=$${RANLIB}" \
bffcbe34 12256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12257 install-info) \
657b58f4
NN
12258 || exit 1
12259
a7e609d6 12260@endif findutils
657b58f4 12261
d4954b6d
DD
12262.PHONY: maybe-install-pdf-findutils install-pdf-findutils
12263maybe-install-pdf-findutils:
12264@if findutils
12265maybe-install-pdf-findutils: install-pdf-findutils
12266
12267install-pdf-findutils: \
12268 configure-findutils \
12269 pdf-findutils
12270 @: $(MAKE); $(unstage)
12271 @[ -f ./findutils/Makefile ] || exit 0; \
12272 r=`${PWD_COMMAND}`; export r; \
12273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12274 $(HOST_EXPORTS) \
12275 for flag in $(EXTRA_HOST_FLAGS) ; do \
12276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12277 done; \
12278 echo "Doing install-pdf in findutils" ; \
12279 (cd $(HOST_SUBDIR)/findutils && \
12280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12282 "RANLIB=$${RANLIB}" \
bffcbe34 12283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
12284 install-pdf) \
12285 || exit 1
12286
12287@endif findutils
12288
83c9add4
CD
12289.PHONY: maybe-install-html-findutils install-html-findutils
12290maybe-install-html-findutils:
12291@if findutils
12292maybe-install-html-findutils: install-html-findutils
12293
12294install-html-findutils: \
12295 configure-findutils \
12296 html-findutils
12297 @: $(MAKE); $(unstage)
12298 @[ -f ./findutils/Makefile ] || exit 0; \
12299 r=`${PWD_COMMAND}`; export r; \
12300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12301 $(HOST_EXPORTS) \
12302 for flag in $(EXTRA_HOST_FLAGS) ; do \
12303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12304 done; \
12305 echo "Doing install-html in findutils" ; \
12306 (cd $(HOST_SUBDIR)/findutils && \
12307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12309 "RANLIB=$${RANLIB}" \
bffcbe34 12310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
12311 install-html) \
12312 || exit 1
12313
12314@endif findutils
12315
8ec98d6c
NN
12316.PHONY: maybe-installcheck-findutils installcheck-findutils
12317maybe-installcheck-findutils:
a7e609d6
PB
12318@if findutils
12319maybe-installcheck-findutils: installcheck-findutils
657b58f4 12320
8ec98d6c
NN
12321installcheck-findutils: \
12322 configure-findutils
15b527ca 12323 @: $(MAKE); $(unstage)
8ec98d6c 12324 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12325 r=`${PWD_COMMAND}`; export r; \
12326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12327 $(HOST_EXPORTS) \
d5eec917 12328 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12330 done; \
8ec98d6c 12331 echo "Doing installcheck in findutils" ; \
7fc2ca22 12332 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12335 "RANLIB=$${RANLIB}" \
bffcbe34 12336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12337 installcheck) \
657b58f4
NN
12338 || exit 1
12339
a7e609d6 12340@endif findutils
657b58f4 12341
8ec98d6c
NN
12342.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
12343maybe-mostlyclean-findutils:
a7e609d6
PB
12344@if findutils
12345maybe-mostlyclean-findutils: mostlyclean-findutils
657b58f4 12346
8ec98d6c 12347mostlyclean-findutils:
15b527ca 12348 @: $(MAKE); $(unstage)
8ec98d6c 12349 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12350 r=`${PWD_COMMAND}`; export r; \
12351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12352 $(HOST_EXPORTS) \
d5eec917 12353 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12355 done; \
8ec98d6c 12356 echo "Doing mostlyclean in findutils" ; \
7fc2ca22 12357 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12360 "RANLIB=$${RANLIB}" \
bffcbe34 12361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12362 mostlyclean) \
657b58f4
NN
12363 || exit 1
12364
a7e609d6 12365@endif findutils
657b58f4 12366
8ec98d6c
NN
12367.PHONY: maybe-clean-findutils clean-findutils
12368maybe-clean-findutils:
a7e609d6
PB
12369@if findutils
12370maybe-clean-findutils: clean-findutils
657b58f4 12371
8ec98d6c 12372clean-findutils:
15b527ca 12373 @: $(MAKE); $(unstage)
8ec98d6c 12374 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12375 r=`${PWD_COMMAND}`; export r; \
12376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12377 $(HOST_EXPORTS) \
d5eec917 12378 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12380 done; \
8ec98d6c 12381 echo "Doing clean in findutils" ; \
7fc2ca22 12382 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12385 "RANLIB=$${RANLIB}" \
bffcbe34 12386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12387 clean) \
657b58f4
NN
12388 || exit 1
12389
a7e609d6 12390@endif findutils
657b58f4 12391
8ec98d6c
NN
12392.PHONY: maybe-distclean-findutils distclean-findutils
12393maybe-distclean-findutils:
a7e609d6
PB
12394@if findutils
12395maybe-distclean-findutils: distclean-findutils
657b58f4 12396
8ec98d6c 12397distclean-findutils:
15b527ca 12398 @: $(MAKE); $(unstage)
8ec98d6c 12399 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12400 r=`${PWD_COMMAND}`; export r; \
12401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12402 $(HOST_EXPORTS) \
d5eec917 12403 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12405 done; \
8ec98d6c 12406 echo "Doing distclean in findutils" ; \
7fc2ca22 12407 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12410 "RANLIB=$${RANLIB}" \
bffcbe34 12411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12412 distclean) \
657b58f4
NN
12413 || exit 1
12414
a7e609d6 12415@endif findutils
657b58f4 12416
8ec98d6c
NN
12417.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
12418maybe-maintainer-clean-findutils:
a7e609d6
PB
12419@if findutils
12420maybe-maintainer-clean-findutils: maintainer-clean-findutils
657b58f4 12421
8ec98d6c 12422maintainer-clean-findutils:
15b527ca 12423 @: $(MAKE); $(unstage)
8ec98d6c 12424 @[ -f ./findutils/Makefile ] || exit 0; \
5230d454
L
12425 r=`${PWD_COMMAND}`; export r; \
12426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12427 $(HOST_EXPORTS) \
d5eec917 12428 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12430 done; \
8ec98d6c 12431 echo "Doing maintainer-clean in findutils" ; \
7fc2ca22 12432 (cd $(HOST_SUBDIR)/findutils && \
657b58f4
NN
12433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12435 "RANLIB=$${RANLIB}" \
bffcbe34 12436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12437 maintainer-clean) \
657b58f4
NN
12438 || exit 1
12439
a7e609d6 12440@endif findutils
657b58f4 12441
657b58f4 12442
f0fdfd34 12443
8ec98d6c
NN
12444.PHONY: configure-find maybe-configure-find
12445maybe-configure-find:
e1e5148c
CD
12446@if gcc-bootstrap
12447configure-find: stage_current
12448@endif gcc-bootstrap
a7e609d6
PB
12449@if find
12450maybe-configure-find: configure-find
ec92c4d6 12451configure-find:
15b527ca 12452 @: $(MAKE); $(unstage)
ec92c4d6 12453 @r=`${PWD_COMMAND}`; export r; \
5230d454 12454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12455 test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
12456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
5074489a 12457 $(HOST_EXPORTS) \
f0fdfd34
PB
12458 echo Configuring in $(HOST_SUBDIR)/find; \
12459 cd "$(HOST_SUBDIR)/find" || exit 1; \
8ec98d6c 12460 case $(srcdir) in \
7fc2ca22
PB
12461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12462 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
12463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 12464 esac; \
7fc2ca22
PB
12465 srcdiroption="--srcdir=$${topdir}/find"; \
12466 libsrcdir="$$s/find"; \
8ec98d6c 12467 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12468 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12469 --target=${target_alias} $${srcdiroption} \
657b58f4 12470 || exit 1
a7e609d6 12471@endif find
657b58f4 12472
f0fdfd34
PB
12473
12474
a8a96878
PB
12475
12476
8ec98d6c
NN
12477.PHONY: all-find maybe-all-find
12478maybe-all-find:
e1e5148c
CD
12479@if gcc-bootstrap
12480all-find: stage_current
12481@endif gcc-bootstrap
a7e609d6 12482@if find
5e6b1f07 12483TARGET-find=all
a7e609d6 12484maybe-all-find: all-find
8ec98d6c 12485all-find: configure-find
15b527ca 12486 @: $(MAKE); $(unstage)
8ec98d6c
NN
12487 @r=`${PWD_COMMAND}`; export r; \
12488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 12489 $(HOST_EXPORTS) \
7fc2ca22 12490 (cd $(HOST_SUBDIR)/find && \
6532abb6
PB
12491 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12492 $(TARGET-find))
a7e609d6 12493@endif find
657b58f4 12494
f0fdfd34 12495
a8a96878
PB
12496
12497
8ec98d6c
NN
12498.PHONY: check-find maybe-check-find
12499maybe-check-find:
a7e609d6
PB
12500@if find
12501maybe-check-find: check-find
657b58f4 12502
8ec98d6c 12503check-find:
15b527ca 12504 @: $(MAKE); $(unstage)
8ec98d6c 12505 @r=`${PWD_COMMAND}`; export r; \
5230d454 12506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12507 $(HOST_EXPORTS) \
7fc2ca22
PB
12508 (cd $(HOST_SUBDIR)/find && \
12509 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 12510
a7e609d6 12511@endif find
657b58f4 12512
8ec98d6c
NN
12513.PHONY: install-find maybe-install-find
12514maybe-install-find:
a7e609d6
PB
12515@if find
12516maybe-install-find: install-find
657b58f4 12517
8ec98d6c 12518install-find: installdirs
15b527ca 12519 @: $(MAKE); $(unstage)
8ec98d6c
NN
12520 @r=`${PWD_COMMAND}`; export r; \
12521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12522 $(HOST_EXPORTS) \
7fc2ca22 12523 (cd $(HOST_SUBDIR)/find && \
93c60b6d 12524 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 12525
a7e609d6 12526@endif find
8ec98d6c 12527
39bbbb69 12528# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
12529
12530.PHONY: maybe-info-find info-find
12531maybe-info-find:
a7e609d6
PB
12532@if find
12533maybe-info-find: info-find
8ec98d6c
NN
12534
12535info-find: \
12536 configure-find
15b527ca 12537 @: $(MAKE); $(unstage)
8ec98d6c 12538 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12539 r=`${PWD_COMMAND}`; export r; \
12540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12541 $(HOST_EXPORTS) \
d5eec917 12542 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12544 done; \
8ec98d6c 12545 echo "Doing info in find" ; \
7fc2ca22 12546 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12549 "RANLIB=$${RANLIB}" \
bffcbe34 12550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12551 info) \
657b58f4
NN
12552 || exit 1
12553
a7e609d6 12554@endif find
657b58f4 12555
8ec98d6c
NN
12556.PHONY: maybe-dvi-find dvi-find
12557maybe-dvi-find:
a7e609d6
PB
12558@if find
12559maybe-dvi-find: dvi-find
657b58f4 12560
8ec98d6c
NN
12561dvi-find: \
12562 configure-find
15b527ca 12563 @: $(MAKE); $(unstage)
8ec98d6c 12564 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12565 r=`${PWD_COMMAND}`; export r; \
12566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12567 $(HOST_EXPORTS) \
d5eec917 12568 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12570 done; \
8ec98d6c 12571 echo "Doing dvi in find" ; \
7fc2ca22 12572 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12575 "RANLIB=$${RANLIB}" \
bffcbe34 12576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12577 dvi) \
657b58f4
NN
12578 || exit 1
12579
a7e609d6 12580@endif find
657b58f4 12581
39bbbb69
DD
12582.PHONY: maybe-pdf-find pdf-find
12583maybe-pdf-find:
12584@if find
12585maybe-pdf-find: pdf-find
12586
12587pdf-find: \
12588 configure-find
12589 @: $(MAKE); $(unstage)
12590 @[ -f ./find/Makefile ] || exit 0; \
12591 r=`${PWD_COMMAND}`; export r; \
12592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12593 $(HOST_EXPORTS) \
12594 for flag in $(EXTRA_HOST_FLAGS) ; do \
12595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12596 done; \
12597 echo "Doing pdf in find" ; \
12598 (cd $(HOST_SUBDIR)/find && \
12599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12601 "RANLIB=$${RANLIB}" \
bffcbe34 12602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
12603 pdf) \
12604 || exit 1
12605
12606@endif find
12607
b6fb961f
MS
12608.PHONY: maybe-html-find html-find
12609maybe-html-find:
12610@if find
12611maybe-html-find: html-find
12612
12613html-find: \
12614 configure-find
15b527ca 12615 @: $(MAKE); $(unstage)
b6fb961f
MS
12616 @[ -f ./find/Makefile ] || exit 0; \
12617 r=`${PWD_COMMAND}`; export r; \
12618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
12619 $(HOST_EXPORTS) \
12620 for flag in $(EXTRA_HOST_FLAGS) ; do \
12621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12622 done; \
12623 echo "Doing html in find" ; \
7fc2ca22 12624 (cd $(HOST_SUBDIR)/find && \
b6fb961f
MS
12625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12627 "RANLIB=$${RANLIB}" \
bffcbe34 12628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
12629 html) \
12630 || exit 1
12631
12632@endif find
12633
8ec98d6c
NN
12634.PHONY: maybe-TAGS-find TAGS-find
12635maybe-TAGS-find:
a7e609d6
PB
12636@if find
12637maybe-TAGS-find: TAGS-find
8ec98d6c
NN
12638
12639TAGS-find: \
12640 configure-find
15b527ca 12641 @: $(MAKE); $(unstage)
8ec98d6c 12642 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12643 r=`${PWD_COMMAND}`; export r; \
12644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12645 $(HOST_EXPORTS) \
d5eec917 12646 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12648 done; \
8ec98d6c 12649 echo "Doing TAGS in find" ; \
7fc2ca22 12650 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12653 "RANLIB=$${RANLIB}" \
bffcbe34 12654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12655 TAGS) \
657b58f4
NN
12656 || exit 1
12657
a7e609d6 12658@endif find
657b58f4 12659
8ec98d6c
NN
12660.PHONY: maybe-install-info-find install-info-find
12661maybe-install-info-find:
a7e609d6
PB
12662@if find
12663maybe-install-info-find: install-info-find
657b58f4 12664
8ec98d6c
NN
12665install-info-find: \
12666 configure-find \
12667 info-find
15b527ca 12668 @: $(MAKE); $(unstage)
8ec98d6c 12669 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12670 r=`${PWD_COMMAND}`; export r; \
12671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12672 $(HOST_EXPORTS) \
d5eec917 12673 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12675 done; \
8ec98d6c 12676 echo "Doing install-info in find" ; \
7fc2ca22 12677 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12680 "RANLIB=$${RANLIB}" \
bffcbe34 12681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12682 install-info) \
657b58f4
NN
12683 || exit 1
12684
a7e609d6 12685@endif find
657b58f4 12686
d4954b6d
DD
12687.PHONY: maybe-install-pdf-find install-pdf-find
12688maybe-install-pdf-find:
12689@if find
12690maybe-install-pdf-find: install-pdf-find
12691
12692install-pdf-find: \
12693 configure-find \
12694 pdf-find
12695 @: $(MAKE); $(unstage)
12696 @[ -f ./find/Makefile ] || exit 0; \
12697 r=`${PWD_COMMAND}`; export r; \
12698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12699 $(HOST_EXPORTS) \
12700 for flag in $(EXTRA_HOST_FLAGS) ; do \
12701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12702 done; \
12703 echo "Doing install-pdf in find" ; \
12704 (cd $(HOST_SUBDIR)/find && \
12705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12707 "RANLIB=$${RANLIB}" \
bffcbe34 12708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
12709 install-pdf) \
12710 || exit 1
12711
12712@endif find
12713
83c9add4
CD
12714.PHONY: maybe-install-html-find install-html-find
12715maybe-install-html-find:
12716@if find
12717maybe-install-html-find: install-html-find
12718
12719install-html-find: \
12720 configure-find \
12721 html-find
12722 @: $(MAKE); $(unstage)
12723 @[ -f ./find/Makefile ] || exit 0; \
12724 r=`${PWD_COMMAND}`; export r; \
12725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12726 $(HOST_EXPORTS) \
12727 for flag in $(EXTRA_HOST_FLAGS) ; do \
12728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12729 done; \
12730 echo "Doing install-html in find" ; \
12731 (cd $(HOST_SUBDIR)/find && \
12732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12734 "RANLIB=$${RANLIB}" \
bffcbe34 12735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
12736 install-html) \
12737 || exit 1
12738
12739@endif find
12740
8ec98d6c
NN
12741.PHONY: maybe-installcheck-find installcheck-find
12742maybe-installcheck-find:
a7e609d6
PB
12743@if find
12744maybe-installcheck-find: installcheck-find
657b58f4 12745
8ec98d6c
NN
12746installcheck-find: \
12747 configure-find
15b527ca 12748 @: $(MAKE); $(unstage)
8ec98d6c 12749 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12750 r=`${PWD_COMMAND}`; export r; \
12751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12752 $(HOST_EXPORTS) \
d5eec917 12753 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12755 done; \
8ec98d6c 12756 echo "Doing installcheck in find" ; \
7fc2ca22 12757 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12760 "RANLIB=$${RANLIB}" \
bffcbe34 12761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12762 installcheck) \
657b58f4
NN
12763 || exit 1
12764
a7e609d6 12765@endif find
657b58f4 12766
8ec98d6c
NN
12767.PHONY: maybe-mostlyclean-find mostlyclean-find
12768maybe-mostlyclean-find:
a7e609d6
PB
12769@if find
12770maybe-mostlyclean-find: mostlyclean-find
657b58f4 12771
8ec98d6c 12772mostlyclean-find:
15b527ca 12773 @: $(MAKE); $(unstage)
8ec98d6c 12774 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12775 r=`${PWD_COMMAND}`; export r; \
12776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12777 $(HOST_EXPORTS) \
d5eec917 12778 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12780 done; \
8ec98d6c 12781 echo "Doing mostlyclean in find" ; \
7fc2ca22 12782 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12785 "RANLIB=$${RANLIB}" \
bffcbe34 12786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12787 mostlyclean) \
657b58f4
NN
12788 || exit 1
12789
a7e609d6 12790@endif find
657b58f4 12791
8ec98d6c
NN
12792.PHONY: maybe-clean-find clean-find
12793maybe-clean-find:
a7e609d6
PB
12794@if find
12795maybe-clean-find: clean-find
657b58f4 12796
8ec98d6c 12797clean-find:
15b527ca 12798 @: $(MAKE); $(unstage)
8ec98d6c 12799 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12800 r=`${PWD_COMMAND}`; export r; \
12801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12802 $(HOST_EXPORTS) \
d5eec917 12803 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12805 done; \
8ec98d6c 12806 echo "Doing clean in find" ; \
7fc2ca22 12807 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12810 "RANLIB=$${RANLIB}" \
bffcbe34 12811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12812 clean) \
657b58f4
NN
12813 || exit 1
12814
a7e609d6 12815@endif find
657b58f4 12816
8ec98d6c
NN
12817.PHONY: maybe-distclean-find distclean-find
12818maybe-distclean-find:
a7e609d6
PB
12819@if find
12820maybe-distclean-find: distclean-find
657b58f4 12821
8ec98d6c 12822distclean-find:
15b527ca 12823 @: $(MAKE); $(unstage)
8ec98d6c 12824 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12825 r=`${PWD_COMMAND}`; export r; \
12826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12827 $(HOST_EXPORTS) \
d5eec917 12828 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12830 done; \
8ec98d6c 12831 echo "Doing distclean in find" ; \
7fc2ca22 12832 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12835 "RANLIB=$${RANLIB}" \
bffcbe34 12836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12837 distclean) \
657b58f4
NN
12838 || exit 1
12839
a7e609d6 12840@endif find
657b58f4 12841
8ec98d6c
NN
12842.PHONY: maybe-maintainer-clean-find maintainer-clean-find
12843maybe-maintainer-clean-find:
a7e609d6
PB
12844@if find
12845maybe-maintainer-clean-find: maintainer-clean-find
657b58f4 12846
8ec98d6c 12847maintainer-clean-find:
15b527ca 12848 @: $(MAKE); $(unstage)
8ec98d6c 12849 @[ -f ./find/Makefile ] || exit 0; \
5230d454
L
12850 r=`${PWD_COMMAND}`; export r; \
12851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 12852 $(HOST_EXPORTS) \
d5eec917 12853 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
12854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12855 done; \
8ec98d6c 12856 echo "Doing maintainer-clean in find" ; \
7fc2ca22 12857 (cd $(HOST_SUBDIR)/find && \
657b58f4
NN
12858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12860 "RANLIB=$${RANLIB}" \
bffcbe34 12861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 12862 maintainer-clean) \
657b58f4
NN
12863 || exit 1
12864
a7e609d6 12865@endif find
657b58f4 12866
657b58f4 12867
f0fdfd34 12868
5350aa8b
GK
12869.PHONY: configure-fixincludes maybe-configure-fixincludes
12870maybe-configure-fixincludes:
e1e5148c
CD
12871@if gcc-bootstrap
12872configure-fixincludes: stage_current
12873@endif gcc-bootstrap
5350aa8b
GK
12874@if fixincludes
12875maybe-configure-fixincludes: configure-fixincludes
ec92c4d6 12876configure-fixincludes:
15b527ca 12877 @: $(MAKE); $(unstage)
ec92c4d6 12878 @r=`${PWD_COMMAND}`; export r; \
5350aa8b 12879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
12880 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
12881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
5074489a 12882 $(HOST_EXPORTS) \
f0fdfd34
PB
12883 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
12884 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
5350aa8b 12885 case $(srcdir) in \
7fc2ca22
PB
12886 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12887 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
12888 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5350aa8b 12889 esac; \
7fc2ca22
PB
12890 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
12891 libsrcdir="$$s/fixincludes"; \
5350aa8b 12892 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
12893 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12894 --target=${target_alias} $${srcdiroption} \
5350aa8b
GK
12895 || exit 1
12896@endif fixincludes
12897
f0fdfd34
PB
12898
12899
a8a96878
PB
12900
12901
5350aa8b
GK
12902.PHONY: all-fixincludes maybe-all-fixincludes
12903maybe-all-fixincludes:
e1e5148c
CD
12904@if gcc-bootstrap
12905all-fixincludes: stage_current
12906@endif gcc-bootstrap
5350aa8b
GK
12907@if fixincludes
12908TARGET-fixincludes=all
12909maybe-all-fixincludes: all-fixincludes
12910all-fixincludes: configure-fixincludes
15b527ca 12911 @: $(MAKE); $(unstage)
5350aa8b
GK
12912 @r=`${PWD_COMMAND}`; export r; \
12913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 12914 $(HOST_EXPORTS) \
7fc2ca22 12915 (cd $(HOST_SUBDIR)/fixincludes && \
6532abb6
PB
12916 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
12917 $(TARGET-fixincludes))
5350aa8b
GK
12918@endif fixincludes
12919
f0fdfd34 12920
a8a96878
PB
12921
12922
5350aa8b
GK
12923.PHONY: check-fixincludes maybe-check-fixincludes
12924maybe-check-fixincludes:
12925@if fixincludes
12926maybe-check-fixincludes: check-fixincludes
12927
12928check-fixincludes:
15b527ca 12929 @: $(MAKE); $(unstage)
5350aa8b
GK
12930 @r=`${PWD_COMMAND}`; export r; \
12931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b 12932 $(HOST_EXPORTS) \
7fc2ca22
PB
12933 (cd $(HOST_SUBDIR)/fixincludes && \
12934 $(MAKE) $(FLAGS_TO_PASS) check)
5350aa8b
GK
12935
12936@endif fixincludes
12937
12938.PHONY: install-fixincludes maybe-install-fixincludes
12939maybe-install-fixincludes:
12940@if fixincludes
12941maybe-install-fixincludes: install-fixincludes
12942
12943install-fixincludes: installdirs
15b527ca 12944 @: $(MAKE); $(unstage)
5350aa8b
GK
12945 @r=`${PWD_COMMAND}`; export r; \
12946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b 12947 $(HOST_EXPORTS) \
7fc2ca22 12948 (cd $(HOST_SUBDIR)/fixincludes && \
93c60b6d 12949 $(MAKE) $(FLAGS_TO_PASS) install)
5350aa8b
GK
12950
12951@endif fixincludes
12952
39bbbb69 12953# Other targets (info, dvi, pdf, etc.)
5350aa8b
GK
12954
12955.PHONY: maybe-info-fixincludes info-fixincludes
12956maybe-info-fixincludes:
12957@if fixincludes
12958maybe-info-fixincludes: info-fixincludes
12959
9c28809c
DD
12960info-fixincludes: \
12961 configure-fixincludes
12962 @: $(MAKE); $(unstage)
12963 @[ -f ./fixincludes/Makefile ] || exit 0; \
12964 r=`${PWD_COMMAND}`; export r; \
12965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12966 $(HOST_EXPORTS) \
12967 for flag in $(EXTRA_HOST_FLAGS) ; do \
12968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12969 done; \
12970 echo "Doing info in fixincludes" ; \
12971 (cd $(HOST_SUBDIR)/fixincludes && \
12972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12974 "RANLIB=$${RANLIB}" \
bffcbe34 12975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
12976 info) \
12977 || exit 1
5350aa8b
GK
12978
12979@endif fixincludes
12980
12981.PHONY: maybe-dvi-fixincludes dvi-fixincludes
12982maybe-dvi-fixincludes:
12983@if fixincludes
12984maybe-dvi-fixincludes: dvi-fixincludes
12985
9c28809c
DD
12986dvi-fixincludes: \
12987 configure-fixincludes
12988 @: $(MAKE); $(unstage)
12989 @[ -f ./fixincludes/Makefile ] || exit 0; \
12990 r=`${PWD_COMMAND}`; export r; \
12991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12992 $(HOST_EXPORTS) \
12993 for flag in $(EXTRA_HOST_FLAGS) ; do \
12994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12995 done; \
12996 echo "Doing dvi in fixincludes" ; \
12997 (cd $(HOST_SUBDIR)/fixincludes && \
12998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13000 "RANLIB=$${RANLIB}" \
bffcbe34 13001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
13002 dvi) \
13003 || exit 1
5350aa8b
GK
13004
13005@endif fixincludes
13006
39bbbb69
DD
13007.PHONY: maybe-pdf-fixincludes pdf-fixincludes
13008maybe-pdf-fixincludes:
13009@if fixincludes
13010maybe-pdf-fixincludes: pdf-fixincludes
13011
9c28809c
DD
13012pdf-fixincludes: \
13013 configure-fixincludes
13014 @: $(MAKE); $(unstage)
13015 @[ -f ./fixincludes/Makefile ] || exit 0; \
13016 r=`${PWD_COMMAND}`; export r; \
13017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13018 $(HOST_EXPORTS) \
13019 for flag in $(EXTRA_HOST_FLAGS) ; do \
13020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13021 done; \
13022 echo "Doing pdf in fixincludes" ; \
13023 (cd $(HOST_SUBDIR)/fixincludes && \
13024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13026 "RANLIB=$${RANLIB}" \
bffcbe34 13027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
13028 pdf) \
13029 || exit 1
39bbbb69
DD
13030
13031@endif fixincludes
13032
b6fb961f
MS
13033.PHONY: maybe-html-fixincludes html-fixincludes
13034maybe-html-fixincludes:
13035@if fixincludes
13036maybe-html-fixincludes: html-fixincludes
13037
13038html-fixincludes: \
13039 configure-fixincludes
15b527ca 13040 @: $(MAKE); $(unstage)
b6fb961f
MS
13041 @[ -f ./fixincludes/Makefile ] || exit 0; \
13042 r=`${PWD_COMMAND}`; export r; \
13043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
13044 $(HOST_EXPORTS) \
13045 for flag in $(EXTRA_HOST_FLAGS) ; do \
13046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13047 done; \
13048 echo "Doing html in fixincludes" ; \
7fc2ca22 13049 (cd $(HOST_SUBDIR)/fixincludes && \
b6fb961f
MS
13050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13052 "RANLIB=$${RANLIB}" \
bffcbe34 13053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
13054 html) \
13055 || exit 1
13056
13057@endif fixincludes
13058
5350aa8b
GK
13059.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
13060maybe-TAGS-fixincludes:
13061@if fixincludes
13062maybe-TAGS-fixincludes: TAGS-fixincludes
13063
38b33663
PB
13064# fixincludes doesn't support TAGS.
13065TAGS-fixincludes:
5350aa8b
GK
13066
13067@endif fixincludes
13068
13069.PHONY: maybe-install-info-fixincludes install-info-fixincludes
13070maybe-install-info-fixincludes:
13071@if fixincludes
13072maybe-install-info-fixincludes: install-info-fixincludes
13073
9c28809c
DD
13074install-info-fixincludes: \
13075 configure-fixincludes \
13076 info-fixincludes
13077 @: $(MAKE); $(unstage)
13078 @[ -f ./fixincludes/Makefile ] || exit 0; \
13079 r=`${PWD_COMMAND}`; export r; \
13080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13081 $(HOST_EXPORTS) \
13082 for flag in $(EXTRA_HOST_FLAGS) ; do \
13083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13084 done; \
13085 echo "Doing install-info in fixincludes" ; \
13086 (cd $(HOST_SUBDIR)/fixincludes && \
13087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13089 "RANLIB=$${RANLIB}" \
bffcbe34 13090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
13091 install-info) \
13092 || exit 1
5350aa8b
GK
13093
13094@endif fixincludes
13095
d4954b6d
DD
13096.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
13097maybe-install-pdf-fixincludes:
13098@if fixincludes
13099maybe-install-pdf-fixincludes: install-pdf-fixincludes
13100
9c28809c
DD
13101install-pdf-fixincludes: \
13102 configure-fixincludes \
13103 pdf-fixincludes
13104 @: $(MAKE); $(unstage)
13105 @[ -f ./fixincludes/Makefile ] || exit 0; \
13106 r=`${PWD_COMMAND}`; export r; \
13107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13108 $(HOST_EXPORTS) \
13109 for flag in $(EXTRA_HOST_FLAGS) ; do \
13110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13111 done; \
13112 echo "Doing install-pdf in fixincludes" ; \
13113 (cd $(HOST_SUBDIR)/fixincludes && \
13114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13116 "RANLIB=$${RANLIB}" \
bffcbe34 13117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
13118 install-pdf) \
13119 || exit 1
d4954b6d
DD
13120
13121@endif fixincludes
13122
83c9add4
CD
13123.PHONY: maybe-install-html-fixincludes install-html-fixincludes
13124maybe-install-html-fixincludes:
13125@if fixincludes
13126maybe-install-html-fixincludes: install-html-fixincludes
13127
13128install-html-fixincludes: \
13129 configure-fixincludes \
13130 html-fixincludes
13131 @: $(MAKE); $(unstage)
13132 @[ -f ./fixincludes/Makefile ] || exit 0; \
13133 r=`${PWD_COMMAND}`; export r; \
13134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13135 $(HOST_EXPORTS) \
13136 for flag in $(EXTRA_HOST_FLAGS) ; do \
13137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13138 done; \
13139 echo "Doing install-html in fixincludes" ; \
13140 (cd $(HOST_SUBDIR)/fixincludes && \
13141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13143 "RANLIB=$${RANLIB}" \
bffcbe34 13144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
13145 install-html) \
13146 || exit 1
13147
13148@endif fixincludes
13149
5350aa8b
GK
13150.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
13151maybe-installcheck-fixincludes:
13152@if fixincludes
13153maybe-installcheck-fixincludes: installcheck-fixincludes
13154
9c28809c
DD
13155installcheck-fixincludes: \
13156 configure-fixincludes
13157 @: $(MAKE); $(unstage)
13158 @[ -f ./fixincludes/Makefile ] || exit 0; \
13159 r=`${PWD_COMMAND}`; export r; \
13160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13161 $(HOST_EXPORTS) \
13162 for flag in $(EXTRA_HOST_FLAGS) ; do \
13163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13164 done; \
13165 echo "Doing installcheck in fixincludes" ; \
13166 (cd $(HOST_SUBDIR)/fixincludes && \
13167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13169 "RANLIB=$${RANLIB}" \
bffcbe34 13170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9c28809c
DD
13171 installcheck) \
13172 || exit 1
5350aa8b
GK
13173
13174@endif fixincludes
13175
13176.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
13177maybe-mostlyclean-fixincludes:
13178@if fixincludes
13179maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
13180
13181mostlyclean-fixincludes:
15b527ca 13182 @: $(MAKE); $(unstage)
5350aa8b
GK
13183 @[ -f ./fixincludes/Makefile ] || exit 0; \
13184 r=`${PWD_COMMAND}`; export r; \
13185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
13186 $(HOST_EXPORTS) \
13187 for flag in $(EXTRA_HOST_FLAGS) ; do \
13188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13189 done; \
13190 echo "Doing mostlyclean in fixincludes" ; \
7fc2ca22 13191 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
13192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13194 "RANLIB=$${RANLIB}" \
bffcbe34 13195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
13196 mostlyclean) \
13197 || exit 1
13198
13199@endif fixincludes
13200
13201.PHONY: maybe-clean-fixincludes clean-fixincludes
13202maybe-clean-fixincludes:
13203@if fixincludes
13204maybe-clean-fixincludes: clean-fixincludes
13205
13206clean-fixincludes:
15b527ca 13207 @: $(MAKE); $(unstage)
5350aa8b
GK
13208 @[ -f ./fixincludes/Makefile ] || exit 0; \
13209 r=`${PWD_COMMAND}`; export r; \
13210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
13211 $(HOST_EXPORTS) \
13212 for flag in $(EXTRA_HOST_FLAGS) ; do \
13213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13214 done; \
13215 echo "Doing clean in fixincludes" ; \
7fc2ca22 13216 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
13217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13219 "RANLIB=$${RANLIB}" \
bffcbe34 13220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
13221 clean) \
13222 || exit 1
13223
13224@endif fixincludes
13225
13226.PHONY: maybe-distclean-fixincludes distclean-fixincludes
13227maybe-distclean-fixincludes:
13228@if fixincludes
13229maybe-distclean-fixincludes: distclean-fixincludes
13230
13231distclean-fixincludes:
15b527ca 13232 @: $(MAKE); $(unstage)
5350aa8b
GK
13233 @[ -f ./fixincludes/Makefile ] || exit 0; \
13234 r=`${PWD_COMMAND}`; export r; \
13235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
13236 $(HOST_EXPORTS) \
13237 for flag in $(EXTRA_HOST_FLAGS) ; do \
13238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13239 done; \
13240 echo "Doing distclean in fixincludes" ; \
7fc2ca22 13241 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
13242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13244 "RANLIB=$${RANLIB}" \
bffcbe34 13245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
13246 distclean) \
13247 || exit 1
13248
13249@endif fixincludes
13250
13251.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
13252maybe-maintainer-clean-fixincludes:
13253@if fixincludes
13254maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
13255
13256maintainer-clean-fixincludes:
15b527ca 13257 @: $(MAKE); $(unstage)
5350aa8b
GK
13258 @[ -f ./fixincludes/Makefile ] || exit 0; \
13259 r=`${PWD_COMMAND}`; export r; \
13260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5350aa8b
GK
13261 $(HOST_EXPORTS) \
13262 for flag in $(EXTRA_HOST_FLAGS) ; do \
13263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13264 done; \
13265 echo "Doing maintainer-clean in fixincludes" ; \
7fc2ca22 13266 (cd $(HOST_SUBDIR)/fixincludes && \
5350aa8b
GK
13267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13269 "RANLIB=$${RANLIB}" \
bffcbe34 13270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5350aa8b
GK
13271 maintainer-clean) \
13272 || exit 1
13273
13274@endif fixincludes
13275
13276
f0fdfd34 13277
8ec98d6c
NN
13278.PHONY: configure-flex maybe-configure-flex
13279maybe-configure-flex:
e1e5148c
CD
13280@if gcc-bootstrap
13281configure-flex: stage_current
13282@endif gcc-bootstrap
a7e609d6
PB
13283@if flex
13284maybe-configure-flex: configure-flex
ec92c4d6 13285configure-flex:
15b527ca 13286 @: $(MAKE); $(unstage)
ec92c4d6 13287 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 13288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
13289 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
13290 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
5074489a 13291 $(HOST_EXPORTS) \
f0fdfd34
PB
13292 echo Configuring in $(HOST_SUBDIR)/flex; \
13293 cd "$(HOST_SUBDIR)/flex" || exit 1; \
8ec98d6c 13294 case $(srcdir) in \
7fc2ca22
PB
13295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13296 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
13297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 13298 esac; \
7fc2ca22
PB
13299 srcdiroption="--srcdir=$${topdir}/flex"; \
13300 libsrcdir="$$s/flex"; \
8ec98d6c 13301 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13302 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13303 --target=${target_alias} $${srcdiroption} \
8ec98d6c 13304 || exit 1
a7e609d6 13305@endif flex
8ec98d6c 13306
f0fdfd34
PB
13307
13308
a8a96878
PB
13309
13310
8ec98d6c
NN
13311.PHONY: all-flex maybe-all-flex
13312maybe-all-flex:
e1e5148c
CD
13313@if gcc-bootstrap
13314all-flex: stage_current
13315@endif gcc-bootstrap
a7e609d6 13316@if flex
5e6b1f07 13317TARGET-flex=all
a7e609d6 13318maybe-all-flex: all-flex
8ec98d6c 13319all-flex: configure-flex
15b527ca 13320 @: $(MAKE); $(unstage)
8ec98d6c
NN
13321 @r=`${PWD_COMMAND}`; export r; \
13322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 13323 $(HOST_EXPORTS) \
7fc2ca22 13324 (cd $(HOST_SUBDIR)/flex && \
6532abb6
PB
13325 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
13326 $(TARGET-flex))
a7e609d6 13327@endif flex
8ec98d6c 13328
f0fdfd34 13329
a8a96878
PB
13330
13331
8ec98d6c
NN
13332.PHONY: check-flex maybe-check-flex
13333maybe-check-flex:
a7e609d6
PB
13334@if flex
13335maybe-check-flex: check-flex
8ec98d6c
NN
13336
13337# This module is only tested in a native toolchain.
13338check-flex:
15b527ca 13339 @: $(MAKE); $(unstage)
8ec98d6c
NN
13340 @if [ '$(host)' = '$(target)' ] ; then \
13341 r=`${PWD_COMMAND}`; export r; \
13342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13343 $(HOST_EXPORTS) \
7fc2ca22 13344 (cd $(HOST_SUBDIR)/flex && \
80e4c577 13345 $(MAKE) $(FLAGS_TO_PASS) check); \
8ec98d6c
NN
13346 fi
13347
a7e609d6 13348@endif flex
8ec98d6c
NN
13349
13350.PHONY: install-flex maybe-install-flex
13351maybe-install-flex:
a7e609d6
PB
13352@if flex
13353maybe-install-flex: install-flex
8ec98d6c
NN
13354
13355install-flex: installdirs
15b527ca 13356 @: $(MAKE); $(unstage)
8ec98d6c
NN
13357 @r=`${PWD_COMMAND}`; export r; \
13358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13359 $(HOST_EXPORTS) \
7fc2ca22 13360 (cd $(HOST_SUBDIR)/flex && \
93c60b6d 13361 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 13362
a7e609d6 13363@endif flex
8ec98d6c 13364
39bbbb69 13365# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
13366
13367.PHONY: maybe-info-flex info-flex
13368maybe-info-flex:
a7e609d6
PB
13369@if flex
13370maybe-info-flex: info-flex
8ec98d6c
NN
13371
13372info-flex: \
13373 configure-flex
15b527ca 13374 @: $(MAKE); $(unstage)
8ec98d6c 13375 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13376 r=`${PWD_COMMAND}`; export r; \
13377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13378 $(HOST_EXPORTS) \
d5eec917 13379 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13381 done; \
8ec98d6c 13382 echo "Doing info in flex" ; \
7fc2ca22 13383 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13386 "RANLIB=$${RANLIB}" \
bffcbe34 13387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13388 info) \
657b58f4
NN
13389 || exit 1
13390
a7e609d6 13391@endif flex
657b58f4 13392
8ec98d6c
NN
13393.PHONY: maybe-dvi-flex dvi-flex
13394maybe-dvi-flex:
a7e609d6
PB
13395@if flex
13396maybe-dvi-flex: dvi-flex
657b58f4 13397
8ec98d6c
NN
13398dvi-flex: \
13399 configure-flex
15b527ca 13400 @: $(MAKE); $(unstage)
8ec98d6c 13401 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13402 r=`${PWD_COMMAND}`; export r; \
13403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13404 $(HOST_EXPORTS) \
d5eec917 13405 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13407 done; \
8ec98d6c 13408 echo "Doing dvi in flex" ; \
7fc2ca22 13409 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13412 "RANLIB=$${RANLIB}" \
bffcbe34 13413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13414 dvi) \
657b58f4
NN
13415 || exit 1
13416
a7e609d6 13417@endif flex
657b58f4 13418
39bbbb69
DD
13419.PHONY: maybe-pdf-flex pdf-flex
13420maybe-pdf-flex:
13421@if flex
13422maybe-pdf-flex: pdf-flex
13423
13424pdf-flex: \
13425 configure-flex
13426 @: $(MAKE); $(unstage)
13427 @[ -f ./flex/Makefile ] || exit 0; \
13428 r=`${PWD_COMMAND}`; export r; \
13429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13430 $(HOST_EXPORTS) \
13431 for flag in $(EXTRA_HOST_FLAGS) ; do \
13432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13433 done; \
13434 echo "Doing pdf in flex" ; \
13435 (cd $(HOST_SUBDIR)/flex && \
13436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13438 "RANLIB=$${RANLIB}" \
bffcbe34 13439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
13440 pdf) \
13441 || exit 1
13442
13443@endif flex
13444
b6fb961f
MS
13445.PHONY: maybe-html-flex html-flex
13446maybe-html-flex:
13447@if flex
13448maybe-html-flex: html-flex
13449
13450html-flex: \
13451 configure-flex
15b527ca 13452 @: $(MAKE); $(unstage)
b6fb961f
MS
13453 @[ -f ./flex/Makefile ] || exit 0; \
13454 r=`${PWD_COMMAND}`; export r; \
13455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
13456 $(HOST_EXPORTS) \
13457 for flag in $(EXTRA_HOST_FLAGS) ; do \
13458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13459 done; \
13460 echo "Doing html in flex" ; \
7fc2ca22 13461 (cd $(HOST_SUBDIR)/flex && \
b6fb961f
MS
13462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13464 "RANLIB=$${RANLIB}" \
bffcbe34 13465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
13466 html) \
13467 || exit 1
13468
13469@endif flex
13470
8ec98d6c
NN
13471.PHONY: maybe-TAGS-flex TAGS-flex
13472maybe-TAGS-flex:
a7e609d6
PB
13473@if flex
13474maybe-TAGS-flex: TAGS-flex
657b58f4 13475
8ec98d6c
NN
13476TAGS-flex: \
13477 configure-flex
15b527ca 13478 @: $(MAKE); $(unstage)
8ec98d6c 13479 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13480 r=`${PWD_COMMAND}`; export r; \
13481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13482 $(HOST_EXPORTS) \
d5eec917 13483 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13485 done; \
8ec98d6c 13486 echo "Doing TAGS in flex" ; \
7fc2ca22 13487 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13490 "RANLIB=$${RANLIB}" \
bffcbe34 13491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13492 TAGS) \
657b58f4
NN
13493 || exit 1
13494
a7e609d6 13495@endif flex
657b58f4 13496
8ec98d6c
NN
13497.PHONY: maybe-install-info-flex install-info-flex
13498maybe-install-info-flex:
a7e609d6
PB
13499@if flex
13500maybe-install-info-flex: install-info-flex
657b58f4 13501
8ec98d6c
NN
13502install-info-flex: \
13503 configure-flex \
13504 info-flex
15b527ca 13505 @: $(MAKE); $(unstage)
8ec98d6c 13506 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13507 r=`${PWD_COMMAND}`; export r; \
13508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13509 $(HOST_EXPORTS) \
d5eec917 13510 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13512 done; \
8ec98d6c 13513 echo "Doing install-info in flex" ; \
7fc2ca22 13514 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13517 "RANLIB=$${RANLIB}" \
bffcbe34 13518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13519 install-info) \
657b58f4
NN
13520 || exit 1
13521
a7e609d6 13522@endif flex
657b58f4 13523
d4954b6d
DD
13524.PHONY: maybe-install-pdf-flex install-pdf-flex
13525maybe-install-pdf-flex:
13526@if flex
13527maybe-install-pdf-flex: install-pdf-flex
13528
13529install-pdf-flex: \
13530 configure-flex \
13531 pdf-flex
13532 @: $(MAKE); $(unstage)
13533 @[ -f ./flex/Makefile ] || exit 0; \
13534 r=`${PWD_COMMAND}`; export r; \
13535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13536 $(HOST_EXPORTS) \
13537 for flag in $(EXTRA_HOST_FLAGS) ; do \
13538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13539 done; \
13540 echo "Doing install-pdf in flex" ; \
13541 (cd $(HOST_SUBDIR)/flex && \
13542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13544 "RANLIB=$${RANLIB}" \
bffcbe34 13545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
13546 install-pdf) \
13547 || exit 1
13548
13549@endif flex
13550
83c9add4
CD
13551.PHONY: maybe-install-html-flex install-html-flex
13552maybe-install-html-flex:
13553@if flex
13554maybe-install-html-flex: install-html-flex
13555
13556install-html-flex: \
13557 configure-flex \
13558 html-flex
13559 @: $(MAKE); $(unstage)
13560 @[ -f ./flex/Makefile ] || exit 0; \
13561 r=`${PWD_COMMAND}`; export r; \
13562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13563 $(HOST_EXPORTS) \
13564 for flag in $(EXTRA_HOST_FLAGS) ; do \
13565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13566 done; \
13567 echo "Doing install-html in flex" ; \
13568 (cd $(HOST_SUBDIR)/flex && \
13569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13571 "RANLIB=$${RANLIB}" \
bffcbe34 13572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
13573 install-html) \
13574 || exit 1
13575
13576@endif flex
13577
8ec98d6c
NN
13578.PHONY: maybe-installcheck-flex installcheck-flex
13579maybe-installcheck-flex:
a7e609d6
PB
13580@if flex
13581maybe-installcheck-flex: installcheck-flex
657b58f4 13582
8ec98d6c
NN
13583installcheck-flex: \
13584 configure-flex
15b527ca 13585 @: $(MAKE); $(unstage)
8ec98d6c 13586 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13587 r=`${PWD_COMMAND}`; export r; \
13588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13589 $(HOST_EXPORTS) \
d5eec917 13590 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13592 done; \
8ec98d6c 13593 echo "Doing installcheck in flex" ; \
7fc2ca22 13594 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13597 "RANLIB=$${RANLIB}" \
bffcbe34 13598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13599 installcheck) \
657b58f4
NN
13600 || exit 1
13601
a7e609d6 13602@endif flex
657b58f4 13603
8ec98d6c
NN
13604.PHONY: maybe-mostlyclean-flex mostlyclean-flex
13605maybe-mostlyclean-flex:
a7e609d6
PB
13606@if flex
13607maybe-mostlyclean-flex: mostlyclean-flex
657b58f4 13608
8ec98d6c 13609mostlyclean-flex:
15b527ca 13610 @: $(MAKE); $(unstage)
8ec98d6c 13611 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13612 r=`${PWD_COMMAND}`; export r; \
13613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13614 $(HOST_EXPORTS) \
d5eec917 13615 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13617 done; \
8ec98d6c 13618 echo "Doing mostlyclean in flex" ; \
7fc2ca22 13619 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13622 "RANLIB=$${RANLIB}" \
bffcbe34 13623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13624 mostlyclean) \
657b58f4
NN
13625 || exit 1
13626
a7e609d6 13627@endif flex
657b58f4 13628
8ec98d6c
NN
13629.PHONY: maybe-clean-flex clean-flex
13630maybe-clean-flex:
a7e609d6
PB
13631@if flex
13632maybe-clean-flex: clean-flex
657b58f4 13633
8ec98d6c 13634clean-flex:
15b527ca 13635 @: $(MAKE); $(unstage)
8ec98d6c 13636 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13637 r=`${PWD_COMMAND}`; export r; \
13638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13639 $(HOST_EXPORTS) \
d5eec917 13640 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13642 done; \
8ec98d6c 13643 echo "Doing clean in flex" ; \
7fc2ca22 13644 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13647 "RANLIB=$${RANLIB}" \
bffcbe34 13648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13649 clean) \
657b58f4
NN
13650 || exit 1
13651
a7e609d6 13652@endif flex
657b58f4 13653
8ec98d6c
NN
13654.PHONY: maybe-distclean-flex distclean-flex
13655maybe-distclean-flex:
a7e609d6
PB
13656@if flex
13657maybe-distclean-flex: distclean-flex
657b58f4 13658
8ec98d6c 13659distclean-flex:
15b527ca 13660 @: $(MAKE); $(unstage)
8ec98d6c 13661 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13662 r=`${PWD_COMMAND}`; export r; \
13663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13664 $(HOST_EXPORTS) \
d5eec917 13665 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13667 done; \
8ec98d6c 13668 echo "Doing distclean in flex" ; \
7fc2ca22 13669 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13672 "RANLIB=$${RANLIB}" \
bffcbe34 13673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13674 distclean) \
657b58f4
NN
13675 || exit 1
13676
a7e609d6 13677@endif flex
657b58f4 13678
8ec98d6c
NN
13679.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
13680maybe-maintainer-clean-flex:
a7e609d6
PB
13681@if flex
13682maybe-maintainer-clean-flex: maintainer-clean-flex
657b58f4 13683
8ec98d6c 13684maintainer-clean-flex:
15b527ca 13685 @: $(MAKE); $(unstage)
8ec98d6c 13686 @[ -f ./flex/Makefile ] || exit 0; \
5230d454
L
13687 r=`${PWD_COMMAND}`; export r; \
13688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 13689 $(HOST_EXPORTS) \
d5eec917 13690 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
13691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13692 done; \
8ec98d6c 13693 echo "Doing maintainer-clean in flex" ; \
7fc2ca22 13694 (cd $(HOST_SUBDIR)/flex && \
657b58f4
NN
13695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13697 "RANLIB=$${RANLIB}" \
bffcbe34 13698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 13699 maintainer-clean) \
657b58f4
NN
13700 || exit 1
13701
a7e609d6 13702@endif flex
657b58f4 13703
657b58f4 13704
f0fdfd34 13705
8ec98d6c
NN
13706.PHONY: configure-gas maybe-configure-gas
13707maybe-configure-gas:
e1e5148c
CD
13708@if gcc-bootstrap
13709configure-gas: stage_current
13710@endif gcc-bootstrap
a7e609d6
PB
13711@if gas
13712maybe-configure-gas: configure-gas
ec92c4d6 13713configure-gas:
ec92c4d6
PB
13714 @r=`${PWD_COMMAND}`; export r; \
13715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
13716 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
13717 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
5074489a 13718 $(HOST_EXPORTS) \
f0fdfd34
PB
13719 echo Configuring in $(HOST_SUBDIR)/gas; \
13720 cd "$(HOST_SUBDIR)/gas" || exit 1; \
8ec98d6c 13721 case $(srcdir) in \
7fc2ca22
PB
13722 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13723 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13724 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 13725 esac; \
7fc2ca22
PB
13726 srcdiroption="--srcdir=$${topdir}/gas"; \
13727 libsrcdir="$$s/gas"; \
8ec98d6c 13728 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13729 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13730 --target=${target_alias} $${srcdiroption} \
8ec98d6c 13731 || exit 1
a7e609d6 13732@endif gas
8ec98d6c 13733
f0fdfd34
PB
13734
13735
a8a96878
PB
13736.PHONY: configure-stage1-gas maybe-configure-stage1-gas
13737maybe-configure-stage1-gas:
13738@if gas-bootstrap
13739maybe-configure-stage1-gas: configure-stage1-gas
15b527ca 13740configure-stage1-gas:
ec92c4d6 13741 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 13742 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13743 @r=`${PWD_COMMAND}`; export r; \
13744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13745 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 13746 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
c91ae28f 13747 $(HOST_EXPORTS) \
2ba09444 13748 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
13749 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13750 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 13751 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
15b527ca 13752 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13753 cd $(HOST_SUBDIR)/gas || exit 1; \
13754 case $(srcdir) in \
13755 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13756 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13757 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13758 esac; \
13759 srcdiroption="--srcdir=$${topdir}/gas"; \
13760 libsrcdir="$$s/gas"; \
13761 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13762 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13763 --target=${target_alias} $${srcdiroption} \
c91ae28f 13764 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
13765@endif gas-bootstrap
13766
13767.PHONY: configure-stage2-gas maybe-configure-stage2-gas
13768maybe-configure-stage2-gas:
13769@if gas-bootstrap
13770maybe-configure-stage2-gas: configure-stage2-gas
15b527ca 13771configure-stage2-gas:
ec92c4d6 13772 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 13773 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13774 @r=`${PWD_COMMAND}`; export r; \
13775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13776 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 13777 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13778 $(HOST_EXPORTS) \
c91ae28f 13779 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13780 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
13781 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13782 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 13783 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
15b527ca 13784 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13785 cd $(HOST_SUBDIR)/gas || exit 1; \
13786 case $(srcdir) in \
13787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13788 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13790 esac; \
13791 srcdiroption="--srcdir=$${topdir}/gas"; \
13792 libsrcdir="$$s/gas"; \
13793 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13794 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13795 --target=${target_alias} $${srcdiroption} \
380e48e5 13796 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 13797 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
13798@endif gas-bootstrap
13799
a8a96878
PB
13800.PHONY: configure-stage3-gas maybe-configure-stage3-gas
13801maybe-configure-stage3-gas:
13802@if gas-bootstrap
13803maybe-configure-stage3-gas: configure-stage3-gas
15b527ca 13804configure-stage3-gas:
ec92c4d6 13805 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 13806 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13807 @r=`${PWD_COMMAND}`; export r; \
13808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13809 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 13810 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13811 $(HOST_EXPORTS) \
c91ae28f 13812 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13813 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
13814 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13815 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 13816 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
15b527ca 13817 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13818 cd $(HOST_SUBDIR)/gas || exit 1; \
13819 case $(srcdir) in \
13820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13821 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13823 esac; \
13824 srcdiroption="--srcdir=$${topdir}/gas"; \
13825 libsrcdir="$$s/gas"; \
13826 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13827 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13828 --target=${target_alias} $${srcdiroption} \
380e48e5 13829 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 13830 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
13831@endif gas-bootstrap
13832
a8a96878
PB
13833.PHONY: configure-stage4-gas maybe-configure-stage4-gas
13834maybe-configure-stage4-gas:
13835@if gas-bootstrap
13836maybe-configure-stage4-gas: configure-stage4-gas
15b527ca 13837configure-stage4-gas:
ec92c4d6 13838 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 13839 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13840 @r=`${PWD_COMMAND}`; export r; \
13841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13842 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 13843 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13844 $(HOST_EXPORTS) \
c91ae28f 13845 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 13846 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
13847 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13848 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 13849 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
15b527ca 13850 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13851 cd $(HOST_SUBDIR)/gas || exit 1; \
13852 case $(srcdir) in \
13853 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13854 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13855 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13856 esac; \
13857 srcdiroption="--srcdir=$${topdir}/gas"; \
13858 libsrcdir="$$s/gas"; \
13859 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13860 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13861 --target=${target_alias} $${srcdiroption} \
380e48e5 13862 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 13863 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
13864@endif gas-bootstrap
13865
13866.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
13867maybe-configure-stageprofile-gas:
13868@if gas-bootstrap
13869maybe-configure-stageprofile-gas: configure-stageprofile-gas
15b527ca 13870configure-stageprofile-gas:
ec92c4d6 13871 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 13872 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13873 @r=`${PWD_COMMAND}`; export r; \
13874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13875 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 13876 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13877 $(HOST_EXPORTS) \
c91ae28f
AO
13878 $(POSTSTAGE1_HOST_EXPORTS) \
13879 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
13880 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13881 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 13882 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
15b527ca 13883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13884 cd $(HOST_SUBDIR)/gas || exit 1; \
13885 case $(srcdir) in \
13886 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13887 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13888 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13889 esac; \
13890 srcdiroption="--srcdir=$${topdir}/gas"; \
13891 libsrcdir="$$s/gas"; \
13892 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13893 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13894 --target=${target_alias} $${srcdiroption} \
380e48e5 13895 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 13896 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
13897@endif gas-bootstrap
13898
13899.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
13900maybe-configure-stagefeedback-gas:
13901@if gas-bootstrap
13902maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
15b527ca 13903configure-stagefeedback-gas:
ec92c4d6 13904 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 13905 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
ec92c4d6
PB
13906 @r=`${PWD_COMMAND}`; export r; \
13907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13908 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 13909 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
a8a96878 13910 $(HOST_EXPORTS) \
c91ae28f
AO
13911 $(POSTSTAGE1_HOST_EXPORTS) \
13912 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
13913 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13914 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 13915 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
15b527ca 13916 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
a8a96878
PB
13917 cd $(HOST_SUBDIR)/gas || exit 1; \
13918 case $(srcdir) in \
13919 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13920 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
13921 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13922 esac; \
13923 srcdiroption="--srcdir=$${topdir}/gas"; \
13924 libsrcdir="$$s/gas"; \
13925 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
13926 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13927 --target=${target_alias} $${srcdiroption} \
380e48e5 13928 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 13929 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
13930@endif gas-bootstrap
13931
13932
13933
13934
13935
8ec98d6c
NN
13936.PHONY: all-gas maybe-all-gas
13937maybe-all-gas:
e1e5148c
CD
13938@if gcc-bootstrap
13939all-gas: stage_current
13940@endif gcc-bootstrap
a7e609d6 13941@if gas
5e6b1f07 13942TARGET-gas=all
a7e609d6 13943maybe-all-gas: all-gas
8ec98d6c 13944all-gas: configure-gas
ec92c4d6 13945 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 13946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 13947 $(HOST_EXPORTS) \
7fc2ca22 13948 (cd $(HOST_SUBDIR)/gas && \
6532abb6
PB
13949 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
13950 $(TARGET-gas))
a7e609d6 13951@endif gas
8ec98d6c 13952
f0fdfd34 13953
a8a96878
PB
13954
13955.PHONY: all-stage1-gas maybe-all-stage1-gas
13956.PHONY: clean-stage1-gas maybe-clean-stage1-gas
13957maybe-all-stage1-gas:
13958maybe-clean-stage1-gas:
13959@if gas-bootstrap
13960maybe-all-stage1-gas: all-stage1-gas
13961all-stage1: all-stage1-gas
168b158c 13962TARGET-stage1-gas = $(TARGET-gas)
a8a96878 13963all-stage1-gas: configure-stage1-gas
ec92c4d6 13964 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
13965 @r=`${PWD_COMMAND}`; export r; \
13966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 13967 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 13968 $(HOST_EXPORTS) \
a8a96878 13969 cd $(HOST_SUBDIR)/gas && \
6532abb6 13970 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 13971 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 13972 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
13973 LIBCFLAGS="$(LIBCFLAGS)" \
13974 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13975 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13976 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13977 $(EXTRA_HOST_FLAGS) \
13978 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 13979 $(TARGET-stage1-gas)
a8a96878
PB
13980
13981maybe-clean-stage1-gas: clean-stage1-gas
13982clean-stage1: clean-stage1-gas
13983clean-stage1-gas:
a6a4e782
DD
13984 @if [ $(current_stage) = stage1 ]; then \
13985 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
13986 else \
13987 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
13988 $(MAKE) stage1-start; \
13989 fi; \
a8a96878 13990 cd $(HOST_SUBDIR)/gas && \
6532abb6 13991 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 13992 clean
a8a96878
PB
13993@endif gas-bootstrap
13994
13995
13996.PHONY: all-stage2-gas maybe-all-stage2-gas
13997.PHONY: clean-stage2-gas maybe-clean-stage2-gas
13998maybe-all-stage2-gas:
13999maybe-clean-stage2-gas:
14000@if gas-bootstrap
14001maybe-all-stage2-gas: all-stage2-gas
14002all-stage2: all-stage2-gas
168b158c 14003TARGET-stage2-gas = $(TARGET-gas)
a8a96878 14004all-stage2-gas: configure-stage2-gas
ec92c4d6 14005 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
14006 @r=`${PWD_COMMAND}`; export r; \
14007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14008 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 14009 $(HOST_EXPORTS) \
5074489a 14010 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14011 cd $(HOST_SUBDIR)/gas && \
6532abb6 14012 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14013 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 14014 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
14015 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14016 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14017 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14018 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14019 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
14020 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 14021 $(TARGET-stage2-gas)
a8a96878
PB
14022
14023maybe-clean-stage2-gas: clean-stage2-gas
14024clean-stage2: clean-stage2-gas
14025clean-stage2-gas:
a6a4e782
DD
14026 @if [ $(current_stage) = stage2 ]; then \
14027 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
14028 else \
14029 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
14030 $(MAKE) stage2-start; \
14031 fi; \
a8a96878 14032 cd $(HOST_SUBDIR)/gas && \
6532abb6 14033 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14034 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14035 clean
a8a96878
PB
14036@endif gas-bootstrap
14037
14038
14039.PHONY: all-stage3-gas maybe-all-stage3-gas
14040.PHONY: clean-stage3-gas maybe-clean-stage3-gas
14041maybe-all-stage3-gas:
14042maybe-clean-stage3-gas:
14043@if gas-bootstrap
14044maybe-all-stage3-gas: all-stage3-gas
14045all-stage3: all-stage3-gas
168b158c 14046TARGET-stage3-gas = $(TARGET-gas)
a8a96878 14047all-stage3-gas: configure-stage3-gas
ec92c4d6 14048 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
14049 @r=`${PWD_COMMAND}`; export r; \
14050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14051 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 14052 $(HOST_EXPORTS) \
5074489a 14053 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14054 cd $(HOST_SUBDIR)/gas && \
6532abb6 14055 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14056 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 14057 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
14058 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14059 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14060 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14061 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14062 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
14063 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 14064 $(TARGET-stage3-gas)
a8a96878
PB
14065
14066maybe-clean-stage3-gas: clean-stage3-gas
14067clean-stage3: clean-stage3-gas
14068clean-stage3-gas:
a6a4e782
DD
14069 @if [ $(current_stage) = stage3 ]; then \
14070 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
14071 else \
14072 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
14073 $(MAKE) stage3-start; \
14074 fi; \
a8a96878 14075 cd $(HOST_SUBDIR)/gas && \
6532abb6 14076 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14077 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14078 clean
a8a96878
PB
14079@endif gas-bootstrap
14080
14081
14082.PHONY: all-stage4-gas maybe-all-stage4-gas
14083.PHONY: clean-stage4-gas maybe-clean-stage4-gas
14084maybe-all-stage4-gas:
14085maybe-clean-stage4-gas:
14086@if gas-bootstrap
14087maybe-all-stage4-gas: all-stage4-gas
14088all-stage4: all-stage4-gas
168b158c 14089TARGET-stage4-gas = $(TARGET-gas)
a8a96878 14090all-stage4-gas: configure-stage4-gas
ec92c4d6 14091 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
14092 @r=`${PWD_COMMAND}`; export r; \
14093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14094 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 14095 $(HOST_EXPORTS) \
5074489a 14096 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14097 cd $(HOST_SUBDIR)/gas && \
6532abb6 14098 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14099 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 14100 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 14101 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
14102 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14103 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14104 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14105 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
14106 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 14107 $(TARGET-stage4-gas)
a8a96878
PB
14108
14109maybe-clean-stage4-gas: clean-stage4-gas
14110clean-stage4: clean-stage4-gas
14111clean-stage4-gas:
a6a4e782
DD
14112 @if [ $(current_stage) = stage4 ]; then \
14113 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
14114 else \
14115 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
14116 $(MAKE) stage4-start; \
14117 fi; \
a8a96878 14118 cd $(HOST_SUBDIR)/gas && \
6532abb6 14119 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14120 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14121 clean
a8a96878
PB
14122@endif gas-bootstrap
14123
14124
14125.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
14126.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
14127maybe-all-stageprofile-gas:
14128maybe-clean-stageprofile-gas:
14129@if gas-bootstrap
14130maybe-all-stageprofile-gas: all-stageprofile-gas
14131all-stageprofile: all-stageprofile-gas
168b158c 14132TARGET-stageprofile-gas = $(TARGET-gas)
a8a96878 14133all-stageprofile-gas: configure-stageprofile-gas
ec92c4d6 14134 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
14135 @r=`${PWD_COMMAND}`; export r; \
14136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14137 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 14138 $(HOST_EXPORTS) \
5074489a 14139 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14140 cd $(HOST_SUBDIR)/gas && \
6532abb6 14141 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14142 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 14143 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
14144 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14145 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14146 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14147 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14148 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
14149 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 14150 $(TARGET-stageprofile-gas)
a8a96878
PB
14151
14152maybe-clean-stageprofile-gas: clean-stageprofile-gas
14153clean-stageprofile: clean-stageprofile-gas
14154clean-stageprofile-gas:
a6a4e782
DD
14155 @if [ $(current_stage) = stageprofile ]; then \
14156 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
14157 else \
14158 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
14159 $(MAKE) stageprofile-start; \
14160 fi; \
a8a96878 14161 cd $(HOST_SUBDIR)/gas && \
6532abb6 14162 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14163 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14164 clean
a8a96878
PB
14165@endif gas-bootstrap
14166
14167
14168.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
14169.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
14170maybe-all-stagefeedback-gas:
14171maybe-clean-stagefeedback-gas:
14172@if gas-bootstrap
14173maybe-all-stagefeedback-gas: all-stagefeedback-gas
14174all-stagefeedback: all-stagefeedback-gas
168b158c 14175TARGET-stagefeedback-gas = $(TARGET-gas)
a8a96878 14176all-stagefeedback-gas: configure-stagefeedback-gas
ec92c4d6 14177 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
14178 @r=`${PWD_COMMAND}`; export r; \
14179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14180 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 14181 $(HOST_EXPORTS) \
5074489a 14182 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14183 cd $(HOST_SUBDIR)/gas && \
6532abb6 14184 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14185 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 14186 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
14187 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14188 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14189 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14190 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14191 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
14192 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 14193 $(TARGET-stagefeedback-gas)
a8a96878
PB
14194
14195maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
14196clean-stagefeedback: clean-stagefeedback-gas
14197clean-stagefeedback-gas:
a6a4e782
DD
14198 @if [ $(current_stage) = stagefeedback ]; then \
14199 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
14200 else \
14201 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
14202 $(MAKE) stagefeedback-start; \
14203 fi; \
a8a96878 14204 cd $(HOST_SUBDIR)/gas && \
6532abb6 14205 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14206 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14207 clean
a8a96878
PB
14208@endif gas-bootstrap
14209
14210
14211
14212
14213
8ec98d6c
NN
14214.PHONY: check-gas maybe-check-gas
14215maybe-check-gas:
a7e609d6
PB
14216@if gas
14217maybe-check-gas: check-gas
8ec98d6c
NN
14218
14219check-gas:
15b527ca 14220 @: $(MAKE); $(unstage)
8ec98d6c
NN
14221 @r=`${PWD_COMMAND}`; export r; \
14222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14223 $(HOST_EXPORTS) \
7fc2ca22
PB
14224 (cd $(HOST_SUBDIR)/gas && \
14225 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 14226
a7e609d6 14227@endif gas
8ec98d6c
NN
14228
14229.PHONY: install-gas maybe-install-gas
14230maybe-install-gas:
a7e609d6
PB
14231@if gas
14232maybe-install-gas: install-gas
8ec98d6c
NN
14233
14234install-gas: installdirs
15b527ca 14235 @: $(MAKE); $(unstage)
8ec98d6c
NN
14236 @r=`${PWD_COMMAND}`; export r; \
14237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14238 $(HOST_EXPORTS) \
7fc2ca22 14239 (cd $(HOST_SUBDIR)/gas && \
93c60b6d 14240 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 14241
a7e609d6 14242@endif gas
8ec98d6c 14243
39bbbb69 14244# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
14245
14246.PHONY: maybe-info-gas info-gas
14247maybe-info-gas:
a7e609d6
PB
14248@if gas
14249maybe-info-gas: info-gas
8ec98d6c
NN
14250
14251info-gas: \
14252 configure-gas
14253 @[ -f ./gas/Makefile ] || exit 0; \
14254 r=`${PWD_COMMAND}`; export r; \
14255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14256 $(HOST_EXPORTS) \
d5eec917 14257 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14259 done; \
8ec98d6c 14260 echo "Doing info in gas" ; \
7fc2ca22 14261 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14264 "RANLIB=$${RANLIB}" \
bffcbe34 14265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14266 info) \
657b58f4
NN
14267 || exit 1
14268
a7e609d6 14269@endif gas
657b58f4 14270
8ec98d6c
NN
14271.PHONY: maybe-dvi-gas dvi-gas
14272maybe-dvi-gas:
a7e609d6
PB
14273@if gas
14274maybe-dvi-gas: dvi-gas
657b58f4 14275
8ec98d6c
NN
14276dvi-gas: \
14277 configure-gas
14278 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14279 r=`${PWD_COMMAND}`; export r; \
14280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14281 $(HOST_EXPORTS) \
d5eec917 14282 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14284 done; \
8ec98d6c 14285 echo "Doing dvi in gas" ; \
7fc2ca22 14286 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14289 "RANLIB=$${RANLIB}" \
bffcbe34 14290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14291 dvi) \
657b58f4
NN
14292 || exit 1
14293
a7e609d6 14294@endif gas
657b58f4 14295
39bbbb69
DD
14296.PHONY: maybe-pdf-gas pdf-gas
14297maybe-pdf-gas:
14298@if gas
14299maybe-pdf-gas: pdf-gas
14300
14301pdf-gas: \
14302 configure-gas
14303 @[ -f ./gas/Makefile ] || exit 0; \
14304 r=`${PWD_COMMAND}`; export r; \
14305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14306 $(HOST_EXPORTS) \
14307 for flag in $(EXTRA_HOST_FLAGS) ; do \
14308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14309 done; \
14310 echo "Doing pdf in gas" ; \
14311 (cd $(HOST_SUBDIR)/gas && \
14312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14314 "RANLIB=$${RANLIB}" \
bffcbe34 14315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
14316 pdf) \
14317 || exit 1
14318
14319@endif gas
14320
b6fb961f
MS
14321.PHONY: maybe-html-gas html-gas
14322maybe-html-gas:
14323@if gas
14324maybe-html-gas: html-gas
14325
14326html-gas: \
14327 configure-gas
14328 @[ -f ./gas/Makefile ] || exit 0; \
14329 r=`${PWD_COMMAND}`; export r; \
14330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
14331 $(HOST_EXPORTS) \
14332 for flag in $(EXTRA_HOST_FLAGS) ; do \
14333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14334 done; \
14335 echo "Doing html in gas" ; \
7fc2ca22 14336 (cd $(HOST_SUBDIR)/gas && \
b6fb961f
MS
14337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14339 "RANLIB=$${RANLIB}" \
bffcbe34 14340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
14341 html) \
14342 || exit 1
14343
14344@endif gas
14345
8ec98d6c
NN
14346.PHONY: maybe-TAGS-gas TAGS-gas
14347maybe-TAGS-gas:
a7e609d6
PB
14348@if gas
14349maybe-TAGS-gas: TAGS-gas
657b58f4 14350
8ec98d6c
NN
14351TAGS-gas: \
14352 configure-gas
14353 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14354 r=`${PWD_COMMAND}`; export r; \
14355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14356 $(HOST_EXPORTS) \
d5eec917 14357 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14359 done; \
8ec98d6c 14360 echo "Doing TAGS in gas" ; \
7fc2ca22 14361 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14364 "RANLIB=$${RANLIB}" \
bffcbe34 14365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14366 TAGS) \
657b58f4
NN
14367 || exit 1
14368
a7e609d6 14369@endif gas
657b58f4 14370
8ec98d6c
NN
14371.PHONY: maybe-install-info-gas install-info-gas
14372maybe-install-info-gas:
a7e609d6
PB
14373@if gas
14374maybe-install-info-gas: install-info-gas
657b58f4 14375
8ec98d6c
NN
14376install-info-gas: \
14377 configure-gas \
14378 info-gas
14379 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14380 r=`${PWD_COMMAND}`; export r; \
14381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14382 $(HOST_EXPORTS) \
d5eec917 14383 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14385 done; \
8ec98d6c 14386 echo "Doing install-info in gas" ; \
7fc2ca22 14387 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14390 "RANLIB=$${RANLIB}" \
bffcbe34 14391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14392 install-info) \
657b58f4
NN
14393 || exit 1
14394
a7e609d6 14395@endif gas
657b58f4 14396
d4954b6d
DD
14397.PHONY: maybe-install-pdf-gas install-pdf-gas
14398maybe-install-pdf-gas:
14399@if gas
14400maybe-install-pdf-gas: install-pdf-gas
14401
14402install-pdf-gas: \
14403 configure-gas \
14404 pdf-gas
14405 @[ -f ./gas/Makefile ] || exit 0; \
14406 r=`${PWD_COMMAND}`; export r; \
14407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14408 $(HOST_EXPORTS) \
14409 for flag in $(EXTRA_HOST_FLAGS) ; do \
14410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14411 done; \
14412 echo "Doing install-pdf in gas" ; \
14413 (cd $(HOST_SUBDIR)/gas && \
14414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14416 "RANLIB=$${RANLIB}" \
bffcbe34 14417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
14418 install-pdf) \
14419 || exit 1
14420
14421@endif gas
14422
83c9add4
CD
14423.PHONY: maybe-install-html-gas install-html-gas
14424maybe-install-html-gas:
14425@if gas
14426maybe-install-html-gas: install-html-gas
14427
14428install-html-gas: \
14429 configure-gas \
14430 html-gas
14431 @[ -f ./gas/Makefile ] || exit 0; \
14432 r=`${PWD_COMMAND}`; export r; \
14433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14434 $(HOST_EXPORTS) \
14435 for flag in $(EXTRA_HOST_FLAGS) ; do \
14436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14437 done; \
14438 echo "Doing install-html in gas" ; \
14439 (cd $(HOST_SUBDIR)/gas && \
14440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14442 "RANLIB=$${RANLIB}" \
bffcbe34 14443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
14444 install-html) \
14445 || exit 1
14446
14447@endif gas
14448
8ec98d6c
NN
14449.PHONY: maybe-installcheck-gas installcheck-gas
14450maybe-installcheck-gas:
a7e609d6
PB
14451@if gas
14452maybe-installcheck-gas: installcheck-gas
657b58f4 14453
8ec98d6c
NN
14454installcheck-gas: \
14455 configure-gas
14456 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14457 r=`${PWD_COMMAND}`; export r; \
14458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14459 $(HOST_EXPORTS) \
d5eec917 14460 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14462 done; \
8ec98d6c 14463 echo "Doing installcheck in gas" ; \
7fc2ca22 14464 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14467 "RANLIB=$${RANLIB}" \
bffcbe34 14468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14469 installcheck) \
657b58f4
NN
14470 || exit 1
14471
a7e609d6 14472@endif gas
657b58f4 14473
8ec98d6c
NN
14474.PHONY: maybe-mostlyclean-gas mostlyclean-gas
14475maybe-mostlyclean-gas:
a7e609d6
PB
14476@if gas
14477maybe-mostlyclean-gas: mostlyclean-gas
657b58f4 14478
8ec98d6c
NN
14479mostlyclean-gas:
14480 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14481 r=`${PWD_COMMAND}`; export r; \
14482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14483 $(HOST_EXPORTS) \
d5eec917 14484 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14486 done; \
8ec98d6c 14487 echo "Doing mostlyclean in gas" ; \
7fc2ca22 14488 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14491 "RANLIB=$${RANLIB}" \
bffcbe34 14492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14493 mostlyclean) \
657b58f4
NN
14494 || exit 1
14495
a7e609d6 14496@endif gas
657b58f4 14497
8ec98d6c
NN
14498.PHONY: maybe-clean-gas clean-gas
14499maybe-clean-gas:
a7e609d6
PB
14500@if gas
14501maybe-clean-gas: clean-gas
657b58f4 14502
8ec98d6c
NN
14503clean-gas:
14504 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14505 r=`${PWD_COMMAND}`; export r; \
14506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14507 $(HOST_EXPORTS) \
d5eec917 14508 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14510 done; \
8ec98d6c 14511 echo "Doing clean in gas" ; \
7fc2ca22 14512 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14515 "RANLIB=$${RANLIB}" \
bffcbe34 14516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14517 clean) \
657b58f4
NN
14518 || exit 1
14519
a7e609d6 14520@endif gas
657b58f4 14521
8ec98d6c
NN
14522.PHONY: maybe-distclean-gas distclean-gas
14523maybe-distclean-gas:
a7e609d6
PB
14524@if gas
14525maybe-distclean-gas: distclean-gas
657b58f4 14526
8ec98d6c
NN
14527distclean-gas:
14528 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14529 r=`${PWD_COMMAND}`; export r; \
14530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14531 $(HOST_EXPORTS) \
d5eec917 14532 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14534 done; \
8ec98d6c 14535 echo "Doing distclean in gas" ; \
7fc2ca22 14536 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14539 "RANLIB=$${RANLIB}" \
bffcbe34 14540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14541 distclean) \
657b58f4
NN
14542 || exit 1
14543
a7e609d6 14544@endif gas
657b58f4 14545
8ec98d6c
NN
14546.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
14547maybe-maintainer-clean-gas:
a7e609d6
PB
14548@if gas
14549maybe-maintainer-clean-gas: maintainer-clean-gas
657b58f4 14550
8ec98d6c
NN
14551maintainer-clean-gas:
14552 @[ -f ./gas/Makefile ] || exit 0; \
5230d454
L
14553 r=`${PWD_COMMAND}`; export r; \
14554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 14555 $(HOST_EXPORTS) \
d5eec917 14556 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
14557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14558 done; \
8ec98d6c 14559 echo "Doing maintainer-clean in gas" ; \
7fc2ca22 14560 (cd $(HOST_SUBDIR)/gas && \
657b58f4
NN
14561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14563 "RANLIB=$${RANLIB}" \
bffcbe34 14564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 14565 maintainer-clean) \
657b58f4
NN
14566 || exit 1
14567
a7e609d6 14568@endif gas
657b58f4 14569
657b58f4 14570
f0fdfd34 14571
d5eec917
PB
14572.PHONY: configure-gcc maybe-configure-gcc
14573maybe-configure-gcc:
ec92c4d6 14574@if gcc-bootstrap
e1e5148c 14575configure-gcc: stage_current
ec92c4d6
PB
14576@endif gcc-bootstrap
14577@if gcc
e1e5148c
CD
14578maybe-configure-gcc: configure-gcc
14579configure-gcc:
ec92c4d6
PB
14580 @r=`${PWD_COMMAND}`; export r; \
14581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
14582 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
14583 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
5074489a 14584 $(HOST_EXPORTS) \
f0fdfd34
PB
14585 echo Configuring in $(HOST_SUBDIR)/gcc; \
14586 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
8ec98d6c 14587 case $(srcdir) in \
7fc2ca22
PB
14588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14589 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 14591 esac; \
7fc2ca22
PB
14592 srcdiroption="--srcdir=$${topdir}/gcc"; \
14593 libsrcdir="$$s/gcc"; \
8ec98d6c 14594 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14595 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14596 --target=${target_alias} $${srcdiroption} \
8ec98d6c 14597 || exit 1
d5eec917 14598@endif gcc
8ec98d6c 14599
f0fdfd34
PB
14600
14601
a8a96878
PB
14602.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
14603maybe-configure-stage1-gcc:
14604@if gcc-bootstrap
14605maybe-configure-stage1-gcc: configure-stage1-gcc
15b527ca 14606configure-stage1-gcc:
ec92c4d6 14607 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 14608 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14609 @r=`${PWD_COMMAND}`; export r; \
14610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14611 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 14612 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
c91ae28f 14613 $(HOST_EXPORTS) \
2ba09444 14614 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
14615 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14616 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 14617 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14619 cd $(HOST_SUBDIR)/gcc || exit 1; \
14620 case $(srcdir) in \
14621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14622 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14624 esac; \
14625 srcdiroption="--srcdir=$${topdir}/gcc"; \
14626 libsrcdir="$$s/gcc"; \
14627 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14628 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14629 --target=${target_alias} $${srcdiroption} \
c91ae28f 14630 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
14631@endif gcc-bootstrap
14632
14633.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
14634maybe-configure-stage2-gcc:
14635@if gcc-bootstrap
14636maybe-configure-stage2-gcc: configure-stage2-gcc
15b527ca 14637configure-stage2-gcc:
ec92c4d6 14638 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 14639 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14640 @r=`${PWD_COMMAND}`; export r; \
14641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14642 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 14643 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14644 $(HOST_EXPORTS) \
c91ae28f 14645 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14646 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
14647 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14648 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 14649 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14650 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14651 cd $(HOST_SUBDIR)/gcc || exit 1; \
14652 case $(srcdir) in \
14653 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14654 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14655 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14656 esac; \
14657 srcdiroption="--srcdir=$${topdir}/gcc"; \
14658 libsrcdir="$$s/gcc"; \
14659 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14660 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14661 --target=${target_alias} $${srcdiroption} \
380e48e5 14662 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 14663 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
14664@endif gcc-bootstrap
14665
a8a96878
PB
14666.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
14667maybe-configure-stage3-gcc:
14668@if gcc-bootstrap
14669maybe-configure-stage3-gcc: configure-stage3-gcc
15b527ca 14670configure-stage3-gcc:
ec92c4d6 14671 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 14672 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14673 @r=`${PWD_COMMAND}`; export r; \
14674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14675 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 14676 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14677 $(HOST_EXPORTS) \
c91ae28f 14678 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14679 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
14680 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14681 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 14682 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14683 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14684 cd $(HOST_SUBDIR)/gcc || exit 1; \
14685 case $(srcdir) in \
14686 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14687 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14688 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14689 esac; \
14690 srcdiroption="--srcdir=$${topdir}/gcc"; \
14691 libsrcdir="$$s/gcc"; \
14692 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14693 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14694 --target=${target_alias} $${srcdiroption} \
380e48e5 14695 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 14696 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
14697@endif gcc-bootstrap
14698
a8a96878
PB
14699.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
14700maybe-configure-stage4-gcc:
14701@if gcc-bootstrap
14702maybe-configure-stage4-gcc: configure-stage4-gcc
15b527ca 14703configure-stage4-gcc:
ec92c4d6 14704 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 14705 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14706 @r=`${PWD_COMMAND}`; export r; \
14707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14708 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 14709 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14710 $(HOST_EXPORTS) \
c91ae28f 14711 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 14712 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
14713 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14714 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 14715 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
15b527ca 14716 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14717 cd $(HOST_SUBDIR)/gcc || exit 1; \
14718 case $(srcdir) in \
14719 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14720 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14721 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14722 esac; \
14723 srcdiroption="--srcdir=$${topdir}/gcc"; \
14724 libsrcdir="$$s/gcc"; \
14725 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14726 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14727 --target=${target_alias} $${srcdiroption} \
380e48e5 14728 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 14729 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
14730@endif gcc-bootstrap
14731
14732.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
14733maybe-configure-stageprofile-gcc:
14734@if gcc-bootstrap
14735maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
15b527ca 14736configure-stageprofile-gcc:
ec92c4d6 14737 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 14738 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14739 @r=`${PWD_COMMAND}`; export r; \
14740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14741 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 14742 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14743 $(HOST_EXPORTS) \
c91ae28f
AO
14744 $(POSTSTAGE1_HOST_EXPORTS) \
14745 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
14746 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14747 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 14748 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
15b527ca 14749 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14750 cd $(HOST_SUBDIR)/gcc || exit 1; \
14751 case $(srcdir) in \
14752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14753 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14755 esac; \
14756 srcdiroption="--srcdir=$${topdir}/gcc"; \
14757 libsrcdir="$$s/gcc"; \
14758 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14759 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14760 --target=${target_alias} $${srcdiroption} \
380e48e5 14761 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 14762 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
14763@endif gcc-bootstrap
14764
14765.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
14766maybe-configure-stagefeedback-gcc:
14767@if gcc-bootstrap
14768maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
15b527ca 14769configure-stagefeedback-gcc:
ec92c4d6 14770 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 14771 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
ec92c4d6
PB
14772 @r=`${PWD_COMMAND}`; export r; \
14773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14774 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 14775 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
a8a96878 14776 $(HOST_EXPORTS) \
c91ae28f
AO
14777 $(POSTSTAGE1_HOST_EXPORTS) \
14778 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
14779 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14780 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 14781 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
15b527ca 14782 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
a8a96878
PB
14783 cd $(HOST_SUBDIR)/gcc || exit 1; \
14784 case $(srcdir) in \
14785 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14786 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
14787 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14788 esac; \
14789 srcdiroption="--srcdir=$${topdir}/gcc"; \
14790 libsrcdir="$$s/gcc"; \
14791 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
14792 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14793 --target=${target_alias} $${srcdiroption} \
380e48e5 14794 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 14795 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
14796@endif gcc-bootstrap
14797
14798
14799
14800
14801
d5eec917
PB
14802.PHONY: all-gcc maybe-all-gcc
14803maybe-all-gcc:
e1e5148c
CD
14804@if gcc-bootstrap
14805all-gcc: stage_current
14806@endif gcc-bootstrap
d5eec917 14807@if gcc
42f55f77 14808TARGET-gcc=all
d5eec917
PB
14809maybe-all-gcc: all-gcc
14810all-gcc: configure-gcc
ec92c4d6 14811 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 14812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 14813 $(HOST_EXPORTS) \
7fc2ca22 14814 (cd $(HOST_SUBDIR)/gcc && \
6532abb6
PB
14815 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
14816 $(TARGET-gcc))
d5eec917 14817@endif gcc
8ec98d6c 14818
f0fdfd34 14819
a8a96878
PB
14820
14821.PHONY: all-stage1-gcc maybe-all-stage1-gcc
14822.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
14823maybe-all-stage1-gcc:
14824maybe-clean-stage1-gcc:
14825@if gcc-bootstrap
14826maybe-all-stage1-gcc: all-stage1-gcc
14827all-stage1: all-stage1-gcc
168b158c 14828TARGET-stage1-gcc = $(TARGET-gcc)
a8a96878 14829all-stage1-gcc: configure-stage1-gcc
ec92c4d6 14830 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
14831 @r=`${PWD_COMMAND}`; export r; \
14832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14833 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 14834 $(HOST_EXPORTS) \
a8a96878 14835 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14836 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14837 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 14838 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
14839 LIBCFLAGS="$(LIBCFLAGS)" \
14840 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14841 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14842 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14843 $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS) \
14844 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 14845 $(TARGET-stage1-gcc)
a8a96878
PB
14846
14847maybe-clean-stage1-gcc: clean-stage1-gcc
14848clean-stage1: clean-stage1-gcc
14849clean-stage1-gcc:
a6a4e782
DD
14850 @if [ $(current_stage) = stage1 ]; then \
14851 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14852 else \
14853 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
14854 $(MAKE) stage1-start; \
14855 fi; \
a8a96878 14856 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14857 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 14858 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14859@endif gcc-bootstrap
14860
14861
14862.PHONY: all-stage2-gcc maybe-all-stage2-gcc
14863.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
14864maybe-all-stage2-gcc:
14865maybe-clean-stage2-gcc:
14866@if gcc-bootstrap
14867maybe-all-stage2-gcc: all-stage2-gcc
14868all-stage2: all-stage2-gcc
168b158c 14869TARGET-stage2-gcc = $(TARGET-gcc)
a8a96878 14870all-stage2-gcc: configure-stage2-gcc
ec92c4d6 14871 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
14872 @r=`${PWD_COMMAND}`; export r; \
14873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14874 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 14875 $(HOST_EXPORTS) \
5074489a 14876 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14877 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14878 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14879 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 14880 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
14881 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14882 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14883 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14884 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14885 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
14886 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 14887 $(TARGET-stage2-gcc)
a8a96878
PB
14888
14889maybe-clean-stage2-gcc: clean-stage2-gcc
14890clean-stage2: clean-stage2-gcc
14891clean-stage2-gcc:
a6a4e782
DD
14892 @if [ $(current_stage) = stage2 ]; then \
14893 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14894 else \
14895 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
14896 $(MAKE) stage2-start; \
14897 fi; \
a8a96878 14898 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14899 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14900 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14901 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14902@endif gcc-bootstrap
14903
14904
14905.PHONY: all-stage3-gcc maybe-all-stage3-gcc
14906.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
14907maybe-all-stage3-gcc:
14908maybe-clean-stage3-gcc:
14909@if gcc-bootstrap
14910maybe-all-stage3-gcc: all-stage3-gcc
14911all-stage3: all-stage3-gcc
168b158c 14912TARGET-stage3-gcc = $(TARGET-gcc)
a8a96878 14913all-stage3-gcc: configure-stage3-gcc
ec92c4d6 14914 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
14915 @r=`${PWD_COMMAND}`; export r; \
14916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14917 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 14918 $(HOST_EXPORTS) \
5074489a 14919 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14920 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14921 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14922 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 14923 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
14924 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14925 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14926 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14927 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14928 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
14929 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 14930 $(TARGET-stage3-gcc)
a8a96878
PB
14931
14932maybe-clean-stage3-gcc: clean-stage3-gcc
14933clean-stage3: clean-stage3-gcc
14934clean-stage3-gcc:
a6a4e782
DD
14935 @if [ $(current_stage) = stage3 ]; then \
14936 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14937 else \
14938 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
14939 $(MAKE) stage3-start; \
14940 fi; \
a8a96878 14941 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14942 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14943 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14944 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14945@endif gcc-bootstrap
14946
14947
14948.PHONY: all-stage4-gcc maybe-all-stage4-gcc
14949.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
14950maybe-all-stage4-gcc:
14951maybe-clean-stage4-gcc:
14952@if gcc-bootstrap
14953maybe-all-stage4-gcc: all-stage4-gcc
14954all-stage4: all-stage4-gcc
168b158c 14955TARGET-stage4-gcc = $(TARGET-gcc)
a8a96878 14956all-stage4-gcc: configure-stage4-gcc
ec92c4d6 14957 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
14958 @r=`${PWD_COMMAND}`; export r; \
14959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 14960 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 14961 $(HOST_EXPORTS) \
5074489a 14962 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 14963 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14964 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 14965 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 14966 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 14967 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
14968 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14969 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14970 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14971 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
14972 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 14973 $(TARGET-stage4-gcc)
a8a96878
PB
14974
14975maybe-clean-stage4-gcc: clean-stage4-gcc
14976clean-stage4: clean-stage4-gcc
14977clean-stage4-gcc:
a6a4e782
DD
14978 @if [ $(current_stage) = stage4 ]; then \
14979 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
14980 else \
14981 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
14982 $(MAKE) stage4-start; \
14983 fi; \
a8a96878 14984 cd $(HOST_SUBDIR)/gcc && \
6532abb6 14985 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 14986 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 14987 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
14988@endif gcc-bootstrap
14989
14990
14991.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
14992.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
14993maybe-all-stageprofile-gcc:
14994maybe-clean-stageprofile-gcc:
14995@if gcc-bootstrap
14996maybe-all-stageprofile-gcc: all-stageprofile-gcc
14997all-stageprofile: all-stageprofile-gcc
168b158c 14998TARGET-stageprofile-gcc = $(TARGET-gcc)
a8a96878 14999all-stageprofile-gcc: configure-stageprofile-gcc
ec92c4d6 15000 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
15001 @r=`${PWD_COMMAND}`; export r; \
15002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 15003 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 15004 $(HOST_EXPORTS) \
5074489a 15005 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 15006 cd $(HOST_SUBDIR)/gcc && \
6532abb6 15007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 15008 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 15009 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
15010 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15014 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
15015 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 15016 $(TARGET-stageprofile-gcc)
a8a96878
PB
15017
15018maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
15019clean-stageprofile: clean-stageprofile-gcc
15020clean-stageprofile-gcc:
a6a4e782
DD
15021 @if [ $(current_stage) = stageprofile ]; then \
15022 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
15023 else \
15024 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
15025 $(MAKE) stageprofile-start; \
15026 fi; \
a8a96878 15027 cd $(HOST_SUBDIR)/gcc && \
6532abb6 15028 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 15029 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 15030 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
15031@endif gcc-bootstrap
15032
15033
15034.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
15035.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
15036maybe-all-stagefeedback-gcc:
15037maybe-clean-stagefeedback-gcc:
15038@if gcc-bootstrap
15039maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
15040all-stagefeedback: all-stagefeedback-gcc
168b158c 15041TARGET-stagefeedback-gcc = $(TARGET-gcc)
a8a96878 15042all-stagefeedback-gcc: configure-stagefeedback-gcc
ec92c4d6 15043 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
15044 @r=`${PWD_COMMAND}`; export r; \
15045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 15046 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 15047 $(HOST_EXPORTS) \
5074489a 15048 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 15049 cd $(HOST_SUBDIR)/gcc && \
6532abb6 15050 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 15051 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 15052 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
15053 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15054 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15055 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15056 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15057 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
15058 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 15059 $(TARGET-stagefeedback-gcc)
a8a96878
PB
15060
15061maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
15062clean-stagefeedback: clean-stagefeedback-gcc
15063clean-stagefeedback-gcc:
a6a4e782
DD
15064 @if [ $(current_stage) = stagefeedback ]; then \
15065 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
15066 else \
15067 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
15068 $(MAKE) stagefeedback-start; \
15069 fi; \
a8a96878 15070 cd $(HOST_SUBDIR)/gcc && \
6532abb6 15071 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 15072 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 15073 $(EXTRA_GCC_FLAGS) clean
a8a96878
PB
15074@endif gcc-bootstrap
15075
15076
15077
15078
15079
d5eec917
PB
15080.PHONY: check-gcc maybe-check-gcc
15081maybe-check-gcc:
15082@if gcc
15083maybe-check-gcc: check-gcc
8ec98d6c 15084
d5eec917 15085check-gcc:
15b527ca 15086 @: $(MAKE); $(unstage)
8ec98d6c
NN
15087 @r=`${PWD_COMMAND}`; export r; \
15088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15089 $(HOST_EXPORTS) \
7fc2ca22
PB
15090 (cd $(HOST_SUBDIR)/gcc && \
15091 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
8ec98d6c 15092
d5eec917 15093@endif gcc
8ec98d6c 15094
d5eec917
PB
15095.PHONY: install-gcc maybe-install-gcc
15096maybe-install-gcc:
15097@if gcc
15098maybe-install-gcc: install-gcc
8ec98d6c 15099
d5eec917 15100install-gcc: installdirs
15b527ca 15101 @: $(MAKE); $(unstage)
8ec98d6c
NN
15102 @r=`${PWD_COMMAND}`; export r; \
15103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15104 $(HOST_EXPORTS) \
7fc2ca22 15105 (cd $(HOST_SUBDIR)/gcc && \
93c60b6d 15106 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
8ec98d6c 15107
d5eec917 15108@endif gcc
8ec98d6c 15109
39bbbb69 15110# Other targets (info, dvi, pdf, etc.)
8ec98d6c 15111
d5eec917
PB
15112.PHONY: maybe-info-gcc info-gcc
15113maybe-info-gcc:
15114@if gcc
15115maybe-info-gcc: info-gcc
8ec98d6c 15116
d5eec917
PB
15117info-gcc: \
15118 configure-gcc
15119 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15120 r=`${PWD_COMMAND}`; export r; \
15121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15122 $(HOST_EXPORTS) \
d5eec917 15123 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15125 done; \
d5eec917 15126 echo "Doing info in gcc" ; \
7fc2ca22 15127 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15130 "RANLIB=$${RANLIB}" \
bffcbe34 15131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15132 info) \
657b58f4
NN
15133 || exit 1
15134
d5eec917 15135@endif gcc
657b58f4 15136
d5eec917
PB
15137.PHONY: maybe-dvi-gcc dvi-gcc
15138maybe-dvi-gcc:
15139@if gcc
15140maybe-dvi-gcc: dvi-gcc
657b58f4 15141
d5eec917
PB
15142dvi-gcc: \
15143 configure-gcc
15144 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15145 r=`${PWD_COMMAND}`; export r; \
15146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15147 $(HOST_EXPORTS) \
d5eec917 15148 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15150 done; \
d5eec917 15151 echo "Doing dvi in gcc" ; \
7fc2ca22 15152 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15155 "RANLIB=$${RANLIB}" \
bffcbe34 15156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15157 dvi) \
657b58f4
NN
15158 || exit 1
15159
d5eec917 15160@endif gcc
657b58f4 15161
39bbbb69
DD
15162.PHONY: maybe-pdf-gcc pdf-gcc
15163maybe-pdf-gcc:
15164@if gcc
15165maybe-pdf-gcc: pdf-gcc
15166
15167pdf-gcc: \
15168 configure-gcc
15169 @[ -f ./gcc/Makefile ] || exit 0; \
15170 r=`${PWD_COMMAND}`; export r; \
15171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15172 $(HOST_EXPORTS) \
15173 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15175 done; \
15176 echo "Doing pdf in gcc" ; \
15177 (cd $(HOST_SUBDIR)/gcc && \
15178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15180 "RANLIB=$${RANLIB}" \
bffcbe34 15181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
15182 pdf) \
15183 || exit 1
15184
15185@endif gcc
15186
b6fb961f
MS
15187.PHONY: maybe-html-gcc html-gcc
15188maybe-html-gcc:
15189@if gcc
15190maybe-html-gcc: html-gcc
15191
15192html-gcc: \
15193 configure-gcc
15194 @[ -f ./gcc/Makefile ] || exit 0; \
15195 r=`${PWD_COMMAND}`; export r; \
15196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
15197 $(HOST_EXPORTS) \
15198 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15200 done; \
15201 echo "Doing html in gcc" ; \
7fc2ca22 15202 (cd $(HOST_SUBDIR)/gcc && \
b6fb961f
MS
15203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15205 "RANLIB=$${RANLIB}" \
bffcbe34 15206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
15207 html) \
15208 || exit 1
15209
15210@endif gcc
15211
d5eec917
PB
15212.PHONY: maybe-TAGS-gcc TAGS-gcc
15213maybe-TAGS-gcc:
15214@if gcc
15215maybe-TAGS-gcc: TAGS-gcc
657b58f4 15216
d5eec917
PB
15217TAGS-gcc: \
15218 configure-gcc
15219 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15220 r=`${PWD_COMMAND}`; export r; \
15221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15222 $(HOST_EXPORTS) \
d5eec917 15223 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15225 done; \
d5eec917 15226 echo "Doing TAGS in gcc" ; \
7fc2ca22 15227 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15230 "RANLIB=$${RANLIB}" \
bffcbe34 15231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15232 TAGS) \
657b58f4
NN
15233 || exit 1
15234
d5eec917 15235@endif gcc
657b58f4 15236
d5eec917
PB
15237.PHONY: maybe-install-info-gcc install-info-gcc
15238maybe-install-info-gcc:
15239@if gcc
15240maybe-install-info-gcc: install-info-gcc
d832a288 15241
d5eec917
PB
15242install-info-gcc: \
15243 configure-gcc \
15244 info-gcc
15245 @[ -f ./gcc/Makefile ] || exit 0; \
d832a288
DD
15246 r=`${PWD_COMMAND}`; export r; \
15247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15248 $(HOST_EXPORTS) \
d5eec917 15249 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
d832a288
DD
15250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15251 done; \
d5eec917 15252 echo "Doing install-info in gcc" ; \
7fc2ca22 15253 (cd $(HOST_SUBDIR)/gcc && \
d832a288
DD
15254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15256 "RANLIB=$${RANLIB}" \
bffcbe34 15257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15258 install-info) \
d832a288
DD
15259 || exit 1
15260
d5eec917 15261@endif gcc
d832a288 15262
d4954b6d
DD
15263.PHONY: maybe-install-pdf-gcc install-pdf-gcc
15264maybe-install-pdf-gcc:
15265@if gcc
15266maybe-install-pdf-gcc: install-pdf-gcc
15267
15268install-pdf-gcc: \
15269 configure-gcc \
15270 pdf-gcc
15271 @[ -f ./gcc/Makefile ] || exit 0; \
15272 r=`${PWD_COMMAND}`; export r; \
15273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15274 $(HOST_EXPORTS) \
15275 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15277 done; \
15278 echo "Doing install-pdf in gcc" ; \
15279 (cd $(HOST_SUBDIR)/gcc && \
15280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15282 "RANLIB=$${RANLIB}" \
bffcbe34 15283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
15284 install-pdf) \
15285 || exit 1
15286
15287@endif gcc
15288
83c9add4
CD
15289.PHONY: maybe-install-html-gcc install-html-gcc
15290maybe-install-html-gcc:
15291@if gcc
15292maybe-install-html-gcc: install-html-gcc
15293
15294install-html-gcc: \
15295 configure-gcc \
15296 html-gcc
15297 @[ -f ./gcc/Makefile ] || exit 0; \
15298 r=`${PWD_COMMAND}`; export r; \
15299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15300 $(HOST_EXPORTS) \
15301 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
15302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15303 done; \
15304 echo "Doing install-html in gcc" ; \
15305 (cd $(HOST_SUBDIR)/gcc && \
15306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15308 "RANLIB=$${RANLIB}" \
bffcbe34 15309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
15310 install-html) \
15311 || exit 1
15312
15313@endif gcc
15314
d5eec917
PB
15315.PHONY: maybe-installcheck-gcc installcheck-gcc
15316maybe-installcheck-gcc:
15317@if gcc
15318maybe-installcheck-gcc: installcheck-gcc
657b58f4 15319
d5eec917
PB
15320installcheck-gcc: \
15321 configure-gcc
15322 @[ -f ./gcc/Makefile ] || exit 0; \
8ec98d6c
NN
15323 r=`${PWD_COMMAND}`; export r; \
15324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15325 $(HOST_EXPORTS) \
d5eec917 15326 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
8ec98d6c
NN
15327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15328 done; \
d5eec917 15329 echo "Doing installcheck in gcc" ; \
7fc2ca22 15330 (cd $(HOST_SUBDIR)/gcc && \
8ec98d6c
NN
15331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15333 "RANLIB=$${RANLIB}" \
bffcbe34 15334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15335 installcheck) \
8ec98d6c 15336 || exit 1
657b58f4 15337
d5eec917 15338@endif gcc
8ec98d6c 15339
d5eec917
PB
15340.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
15341maybe-mostlyclean-gcc:
15342@if gcc
15343maybe-mostlyclean-gcc: mostlyclean-gcc
8ec98d6c 15344
d5eec917
PB
15345mostlyclean-gcc:
15346 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15347 r=`${PWD_COMMAND}`; export r; \
15348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15349 $(HOST_EXPORTS) \
d5eec917 15350 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15352 done; \
d5eec917 15353 echo "Doing mostlyclean in gcc" ; \
7fc2ca22 15354 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15357 "RANLIB=$${RANLIB}" \
bffcbe34 15358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15359 mostlyclean) \
657b58f4
NN
15360 || exit 1
15361
d5eec917 15362@endif gcc
657b58f4 15363
d5eec917
PB
15364.PHONY: maybe-clean-gcc clean-gcc
15365maybe-clean-gcc:
15366@if gcc
15367maybe-clean-gcc: clean-gcc
657b58f4 15368
d5eec917
PB
15369clean-gcc:
15370 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15371 r=`${PWD_COMMAND}`; export r; \
15372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15373 $(HOST_EXPORTS) \
d5eec917 15374 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15376 done; \
d5eec917 15377 echo "Doing clean in gcc" ; \
7fc2ca22 15378 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15381 "RANLIB=$${RANLIB}" \
bffcbe34 15382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15383 clean) \
657b58f4
NN
15384 || exit 1
15385
d5eec917 15386@endif gcc
657b58f4 15387
d5eec917
PB
15388.PHONY: maybe-distclean-gcc distclean-gcc
15389maybe-distclean-gcc:
15390@if gcc
15391maybe-distclean-gcc: distclean-gcc
657b58f4 15392
d5eec917
PB
15393distclean-gcc:
15394 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15395 r=`${PWD_COMMAND}`; export r; \
15396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15397 $(HOST_EXPORTS) \
d5eec917 15398 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15400 done; \
d5eec917 15401 echo "Doing distclean in gcc" ; \
7fc2ca22 15402 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15405 "RANLIB=$${RANLIB}" \
bffcbe34 15406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15407 distclean) \
657b58f4
NN
15408 || exit 1
15409
d5eec917 15410@endif gcc
657b58f4 15411
d5eec917
PB
15412.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
15413maybe-maintainer-clean-gcc:
15414@if gcc
15415maybe-maintainer-clean-gcc: maintainer-clean-gcc
657b58f4 15416
d5eec917
PB
15417maintainer-clean-gcc:
15418 @[ -f ./gcc/Makefile ] || exit 0; \
5230d454
L
15419 r=`${PWD_COMMAND}`; export r; \
15420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15421 $(HOST_EXPORTS) \
d5eec917 15422 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
657b58f4
NN
15423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15424 done; \
d5eec917 15425 echo "Doing maintainer-clean in gcc" ; \
7fc2ca22 15426 (cd $(HOST_SUBDIR)/gcc && \
657b58f4
NN
15427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15429 "RANLIB=$${RANLIB}" \
bffcbe34 15430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15431 maintainer-clean) \
657b58f4
NN
15432 || exit 1
15433
d5eec917 15434@endif gcc
657b58f4 15435
657b58f4 15436
f0fdfd34 15437
d5eec917
PB
15438.PHONY: configure-gawk maybe-configure-gawk
15439maybe-configure-gawk:
e1e5148c
CD
15440@if gcc-bootstrap
15441configure-gawk: stage_current
15442@endif gcc-bootstrap
d5eec917
PB
15443@if gawk
15444maybe-configure-gawk: configure-gawk
ec92c4d6 15445configure-gawk:
15b527ca 15446 @: $(MAKE); $(unstage)
ec92c4d6 15447 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 15448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
15449 test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
15450 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
5074489a 15451 $(HOST_EXPORTS) \
f0fdfd34
PB
15452 echo Configuring in $(HOST_SUBDIR)/gawk; \
15453 cd "$(HOST_SUBDIR)/gawk" || exit 1; \
8ec98d6c 15454 case $(srcdir) in \
7fc2ca22
PB
15455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15456 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
15457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 15458 esac; \
7fc2ca22
PB
15459 srcdiroption="--srcdir=$${topdir}/gawk"; \
15460 libsrcdir="$$s/gawk"; \
8ec98d6c 15461 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
15462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15463 --target=${target_alias} $${srcdiroption} \
8ec98d6c 15464 || exit 1
d5eec917 15465@endif gawk
8ec98d6c 15466
f0fdfd34
PB
15467
15468
a8a96878
PB
15469
15470
d5eec917
PB
15471.PHONY: all-gawk maybe-all-gawk
15472maybe-all-gawk:
e1e5148c
CD
15473@if gcc-bootstrap
15474all-gawk: stage_current
15475@endif gcc-bootstrap
d5eec917 15476@if gawk
5e6b1f07 15477TARGET-gawk=all
d5eec917
PB
15478maybe-all-gawk: all-gawk
15479all-gawk: configure-gawk
15b527ca 15480 @: $(MAKE); $(unstage)
8ec98d6c
NN
15481 @r=`${PWD_COMMAND}`; export r; \
15482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 15483 $(HOST_EXPORTS) \
7fc2ca22 15484 (cd $(HOST_SUBDIR)/gawk && \
6532abb6
PB
15485 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
15486 $(TARGET-gawk))
d5eec917 15487@endif gawk
8ec98d6c 15488
f0fdfd34 15489
a8a96878
PB
15490
15491
d5eec917
PB
15492.PHONY: check-gawk maybe-check-gawk
15493maybe-check-gawk:
15494@if gawk
15495maybe-check-gawk: check-gawk
8ec98d6c 15496
d5eec917 15497check-gawk:
15b527ca 15498 @: $(MAKE); $(unstage)
8ec98d6c
NN
15499 @r=`${PWD_COMMAND}`; export r; \
15500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15501 $(HOST_EXPORTS) \
7fc2ca22
PB
15502 (cd $(HOST_SUBDIR)/gawk && \
15503 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 15504
d5eec917 15505@endif gawk
8ec98d6c 15506
d5eec917
PB
15507.PHONY: install-gawk maybe-install-gawk
15508maybe-install-gawk:
15509@if gawk
15510maybe-install-gawk: install-gawk
8ec98d6c 15511
d5eec917 15512install-gawk: installdirs
15b527ca 15513 @: $(MAKE); $(unstage)
8ec98d6c
NN
15514 @r=`${PWD_COMMAND}`; export r; \
15515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15516 $(HOST_EXPORTS) \
7fc2ca22 15517 (cd $(HOST_SUBDIR)/gawk && \
93c60b6d 15518 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 15519
d5eec917 15520@endif gawk
8ec98d6c 15521
39bbbb69 15522# Other targets (info, dvi, pdf, etc.)
8ec98d6c 15523
d5eec917
PB
15524.PHONY: maybe-info-gawk info-gawk
15525maybe-info-gawk:
15526@if gawk
15527maybe-info-gawk: info-gawk
8ec98d6c 15528
d5eec917
PB
15529info-gawk: \
15530 configure-gawk
15b527ca 15531 @: $(MAKE); $(unstage)
d5eec917 15532 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15533 r=`${PWD_COMMAND}`; export r; \
15534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15535 $(HOST_EXPORTS) \
d5eec917 15536 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15538 done; \
d5eec917 15539 echo "Doing info in gawk" ; \
7fc2ca22 15540 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15543 "RANLIB=$${RANLIB}" \
bffcbe34 15544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15545 info) \
657b58f4
NN
15546 || exit 1
15547
d5eec917 15548@endif gawk
657b58f4 15549
d5eec917
PB
15550.PHONY: maybe-dvi-gawk dvi-gawk
15551maybe-dvi-gawk:
15552@if gawk
15553maybe-dvi-gawk: dvi-gawk
657b58f4 15554
d5eec917
PB
15555dvi-gawk: \
15556 configure-gawk
15b527ca 15557 @: $(MAKE); $(unstage)
d5eec917 15558 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15559 r=`${PWD_COMMAND}`; export r; \
15560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15561 $(HOST_EXPORTS) \
d5eec917 15562 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15564 done; \
d5eec917 15565 echo "Doing dvi in gawk" ; \
7fc2ca22 15566 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15569 "RANLIB=$${RANLIB}" \
bffcbe34 15570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15571 dvi) \
657b58f4
NN
15572 || exit 1
15573
d5eec917 15574@endif gawk
657b58f4 15575
39bbbb69
DD
15576.PHONY: maybe-pdf-gawk pdf-gawk
15577maybe-pdf-gawk:
15578@if gawk
15579maybe-pdf-gawk: pdf-gawk
15580
15581pdf-gawk: \
15582 configure-gawk
15583 @: $(MAKE); $(unstage)
15584 @[ -f ./gawk/Makefile ] || exit 0; \
15585 r=`${PWD_COMMAND}`; export r; \
15586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15587 $(HOST_EXPORTS) \
15588 for flag in $(EXTRA_HOST_FLAGS) ; do \
15589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15590 done; \
15591 echo "Doing pdf in gawk" ; \
15592 (cd $(HOST_SUBDIR)/gawk && \
15593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15595 "RANLIB=$${RANLIB}" \
bffcbe34 15596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
15597 pdf) \
15598 || exit 1
15599
15600@endif gawk
15601
b6fb961f
MS
15602.PHONY: maybe-html-gawk html-gawk
15603maybe-html-gawk:
15604@if gawk
15605maybe-html-gawk: html-gawk
15606
15607html-gawk: \
15608 configure-gawk
15b527ca 15609 @: $(MAKE); $(unstage)
b6fb961f
MS
15610 @[ -f ./gawk/Makefile ] || exit 0; \
15611 r=`${PWD_COMMAND}`; export r; \
15612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
15613 $(HOST_EXPORTS) \
15614 for flag in $(EXTRA_HOST_FLAGS) ; do \
15615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15616 done; \
15617 echo "Doing html in gawk" ; \
7fc2ca22 15618 (cd $(HOST_SUBDIR)/gawk && \
b6fb961f
MS
15619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15621 "RANLIB=$${RANLIB}" \
bffcbe34 15622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
15623 html) \
15624 || exit 1
15625
15626@endif gawk
15627
d5eec917
PB
15628.PHONY: maybe-TAGS-gawk TAGS-gawk
15629maybe-TAGS-gawk:
15630@if gawk
15631maybe-TAGS-gawk: TAGS-gawk
657b58f4 15632
d5eec917
PB
15633TAGS-gawk: \
15634 configure-gawk
15b527ca 15635 @: $(MAKE); $(unstage)
d5eec917 15636 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15637 r=`${PWD_COMMAND}`; export r; \
15638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15639 $(HOST_EXPORTS) \
d5eec917 15640 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15642 done; \
d5eec917 15643 echo "Doing TAGS in gawk" ; \
7fc2ca22 15644 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15647 "RANLIB=$${RANLIB}" \
bffcbe34 15648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15649 TAGS) \
657b58f4
NN
15650 || exit 1
15651
d5eec917 15652@endif gawk
657b58f4 15653
d5eec917
PB
15654.PHONY: maybe-install-info-gawk install-info-gawk
15655maybe-install-info-gawk:
15656@if gawk
15657maybe-install-info-gawk: install-info-gawk
657b58f4 15658
d5eec917
PB
15659install-info-gawk: \
15660 configure-gawk \
15661 info-gawk
15b527ca 15662 @: $(MAKE); $(unstage)
d5eec917 15663 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15664 r=`${PWD_COMMAND}`; export r; \
15665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15666 $(HOST_EXPORTS) \
d5eec917 15667 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15669 done; \
d5eec917 15670 echo "Doing install-info in gawk" ; \
7fc2ca22 15671 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15674 "RANLIB=$${RANLIB}" \
bffcbe34 15675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15676 install-info) \
657b58f4
NN
15677 || exit 1
15678
d5eec917 15679@endif gawk
657b58f4 15680
d4954b6d
DD
15681.PHONY: maybe-install-pdf-gawk install-pdf-gawk
15682maybe-install-pdf-gawk:
15683@if gawk
15684maybe-install-pdf-gawk: install-pdf-gawk
15685
15686install-pdf-gawk: \
15687 configure-gawk \
15688 pdf-gawk
15689 @: $(MAKE); $(unstage)
15690 @[ -f ./gawk/Makefile ] || exit 0; \
15691 r=`${PWD_COMMAND}`; export r; \
15692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15693 $(HOST_EXPORTS) \
15694 for flag in $(EXTRA_HOST_FLAGS) ; do \
15695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15696 done; \
15697 echo "Doing install-pdf in gawk" ; \
15698 (cd $(HOST_SUBDIR)/gawk && \
15699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15701 "RANLIB=$${RANLIB}" \
bffcbe34 15702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
15703 install-pdf) \
15704 || exit 1
15705
15706@endif gawk
15707
83c9add4
CD
15708.PHONY: maybe-install-html-gawk install-html-gawk
15709maybe-install-html-gawk:
15710@if gawk
15711maybe-install-html-gawk: install-html-gawk
15712
15713install-html-gawk: \
15714 configure-gawk \
15715 html-gawk
15716 @: $(MAKE); $(unstage)
15717 @[ -f ./gawk/Makefile ] || exit 0; \
15718 r=`${PWD_COMMAND}`; export r; \
15719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15720 $(HOST_EXPORTS) \
15721 for flag in $(EXTRA_HOST_FLAGS) ; do \
15722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15723 done; \
15724 echo "Doing install-html in gawk" ; \
15725 (cd $(HOST_SUBDIR)/gawk && \
15726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15728 "RANLIB=$${RANLIB}" \
bffcbe34 15729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
15730 install-html) \
15731 || exit 1
15732
15733@endif gawk
15734
d5eec917
PB
15735.PHONY: maybe-installcheck-gawk installcheck-gawk
15736maybe-installcheck-gawk:
15737@if gawk
15738maybe-installcheck-gawk: installcheck-gawk
657b58f4 15739
d5eec917
PB
15740installcheck-gawk: \
15741 configure-gawk
15b527ca 15742 @: $(MAKE); $(unstage)
d5eec917 15743 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15744 r=`${PWD_COMMAND}`; export r; \
15745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15746 $(HOST_EXPORTS) \
d5eec917 15747 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15749 done; \
d5eec917 15750 echo "Doing installcheck in gawk" ; \
7fc2ca22 15751 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15754 "RANLIB=$${RANLIB}" \
bffcbe34 15755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15756 installcheck) \
657b58f4
NN
15757 || exit 1
15758
d5eec917 15759@endif gawk
657b58f4 15760
d5eec917
PB
15761.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
15762maybe-mostlyclean-gawk:
15763@if gawk
15764maybe-mostlyclean-gawk: mostlyclean-gawk
657b58f4 15765
d5eec917 15766mostlyclean-gawk:
15b527ca 15767 @: $(MAKE); $(unstage)
d5eec917 15768 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15769 r=`${PWD_COMMAND}`; export r; \
15770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15771 $(HOST_EXPORTS) \
d5eec917 15772 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15774 done; \
d5eec917 15775 echo "Doing mostlyclean in gawk" ; \
7fc2ca22 15776 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15779 "RANLIB=$${RANLIB}" \
bffcbe34 15780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15781 mostlyclean) \
657b58f4
NN
15782 || exit 1
15783
d5eec917 15784@endif gawk
657b58f4 15785
d5eec917
PB
15786.PHONY: maybe-clean-gawk clean-gawk
15787maybe-clean-gawk:
15788@if gawk
15789maybe-clean-gawk: clean-gawk
657b58f4 15790
d5eec917 15791clean-gawk:
15b527ca 15792 @: $(MAKE); $(unstage)
d5eec917 15793 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15794 r=`${PWD_COMMAND}`; export r; \
15795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15796 $(HOST_EXPORTS) \
d5eec917 15797 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15799 done; \
d5eec917 15800 echo "Doing clean in gawk" ; \
7fc2ca22 15801 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15804 "RANLIB=$${RANLIB}" \
bffcbe34 15805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15806 clean) \
657b58f4
NN
15807 || exit 1
15808
d5eec917 15809@endif gawk
657b58f4 15810
d5eec917
PB
15811.PHONY: maybe-distclean-gawk distclean-gawk
15812maybe-distclean-gawk:
15813@if gawk
15814maybe-distclean-gawk: distclean-gawk
657b58f4 15815
d5eec917 15816distclean-gawk:
15b527ca 15817 @: $(MAKE); $(unstage)
d5eec917 15818 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15819 r=`${PWD_COMMAND}`; export r; \
15820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15821 $(HOST_EXPORTS) \
d5eec917 15822 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15824 done; \
d5eec917 15825 echo "Doing distclean in gawk" ; \
7fc2ca22 15826 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15829 "RANLIB=$${RANLIB}" \
bffcbe34 15830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15831 distclean) \
657b58f4
NN
15832 || exit 1
15833
d5eec917 15834@endif gawk
657b58f4 15835
d5eec917
PB
15836.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
15837maybe-maintainer-clean-gawk:
15838@if gawk
15839maybe-maintainer-clean-gawk: maintainer-clean-gawk
657b58f4 15840
d5eec917 15841maintainer-clean-gawk:
15b527ca 15842 @: $(MAKE); $(unstage)
d5eec917 15843 @[ -f ./gawk/Makefile ] || exit 0; \
5230d454
L
15844 r=`${PWD_COMMAND}`; export r; \
15845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15846 $(HOST_EXPORTS) \
d5eec917 15847 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15849 done; \
d5eec917 15850 echo "Doing maintainer-clean in gawk" ; \
7fc2ca22 15851 (cd $(HOST_SUBDIR)/gawk && \
657b58f4
NN
15852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15854 "RANLIB=$${RANLIB}" \
bffcbe34 15855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15856 maintainer-clean) \
657b58f4
NN
15857 || exit 1
15858
d5eec917 15859@endif gawk
657b58f4 15860
657b58f4 15861
f0fdfd34 15862
d5eec917
PB
15863.PHONY: configure-gettext maybe-configure-gettext
15864maybe-configure-gettext:
e1e5148c
CD
15865@if gcc-bootstrap
15866configure-gettext: stage_current
15867@endif gcc-bootstrap
d5eec917
PB
15868@if gettext
15869maybe-configure-gettext: configure-gettext
ec92c4d6 15870configure-gettext:
15b527ca 15871 @: $(MAKE); $(unstage)
ec92c4d6 15872 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 15873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
15874 test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
15875 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
5074489a 15876 $(HOST_EXPORTS) \
f0fdfd34
PB
15877 echo Configuring in $(HOST_SUBDIR)/gettext; \
15878 cd "$(HOST_SUBDIR)/gettext" || exit 1; \
8ec98d6c 15879 case $(srcdir) in \
7fc2ca22
PB
15880 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15881 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
15882 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 15883 esac; \
7fc2ca22
PB
15884 srcdiroption="--srcdir=$${topdir}/gettext"; \
15885 libsrcdir="$$s/gettext"; \
8ec98d6c 15886 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
15887 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15888 --target=${target_alias} $${srcdiroption} \
8ec98d6c 15889 || exit 1
d5eec917 15890@endif gettext
8ec98d6c 15891
f0fdfd34
PB
15892
15893
a8a96878
PB
15894
15895
d5eec917
PB
15896.PHONY: all-gettext maybe-all-gettext
15897maybe-all-gettext:
e1e5148c
CD
15898@if gcc-bootstrap
15899all-gettext: stage_current
15900@endif gcc-bootstrap
d5eec917 15901@if gettext
5e6b1f07 15902TARGET-gettext=all
d5eec917
PB
15903maybe-all-gettext: all-gettext
15904all-gettext: configure-gettext
15b527ca 15905 @: $(MAKE); $(unstage)
8ec98d6c
NN
15906 @r=`${PWD_COMMAND}`; export r; \
15907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 15908 $(HOST_EXPORTS) \
7fc2ca22 15909 (cd $(HOST_SUBDIR)/gettext && \
6532abb6
PB
15910 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
15911 $(TARGET-gettext))
d5eec917 15912@endif gettext
8ec98d6c 15913
f0fdfd34 15914
a8a96878
PB
15915
15916
d5eec917
PB
15917.PHONY: check-gettext maybe-check-gettext
15918maybe-check-gettext:
15919@if gettext
15920maybe-check-gettext: check-gettext
8ec98d6c 15921
d5eec917 15922check-gettext:
15b527ca 15923 @: $(MAKE); $(unstage)
8ec98d6c
NN
15924 @r=`${PWD_COMMAND}`; export r; \
15925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15926 $(HOST_EXPORTS) \
7fc2ca22
PB
15927 (cd $(HOST_SUBDIR)/gettext && \
15928 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 15929
d5eec917 15930@endif gettext
8ec98d6c 15931
d5eec917
PB
15932.PHONY: install-gettext maybe-install-gettext
15933maybe-install-gettext:
15934@if gettext
15935maybe-install-gettext: install-gettext
8ec98d6c 15936
d5eec917 15937install-gettext: installdirs
15b527ca 15938 @: $(MAKE); $(unstage)
8ec98d6c
NN
15939 @r=`${PWD_COMMAND}`; export r; \
15940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15941 $(HOST_EXPORTS) \
7fc2ca22 15942 (cd $(HOST_SUBDIR)/gettext && \
93c60b6d 15943 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 15944
d5eec917 15945@endif gettext
8ec98d6c 15946
39bbbb69 15947# Other targets (info, dvi, pdf, etc.)
8ec98d6c 15948
d5eec917
PB
15949.PHONY: maybe-info-gettext info-gettext
15950maybe-info-gettext:
15951@if gettext
15952maybe-info-gettext: info-gettext
8ec98d6c 15953
d5eec917
PB
15954info-gettext: \
15955 configure-gettext
15b527ca 15956 @: $(MAKE); $(unstage)
d5eec917 15957 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15958 r=`${PWD_COMMAND}`; export r; \
15959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15960 $(HOST_EXPORTS) \
d5eec917 15961 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15963 done; \
d5eec917 15964 echo "Doing info in gettext" ; \
7fc2ca22 15965 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15968 "RANLIB=$${RANLIB}" \
bffcbe34 15969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15970 info) \
657b58f4
NN
15971 || exit 1
15972
d5eec917 15973@endif gettext
657b58f4 15974
d5eec917
PB
15975.PHONY: maybe-dvi-gettext dvi-gettext
15976maybe-dvi-gettext:
15977@if gettext
15978maybe-dvi-gettext: dvi-gettext
657b58f4 15979
d5eec917
PB
15980dvi-gettext: \
15981 configure-gettext
15b527ca 15982 @: $(MAKE); $(unstage)
d5eec917 15983 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
15984 r=`${PWD_COMMAND}`; export r; \
15985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 15986 $(HOST_EXPORTS) \
d5eec917 15987 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
15988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15989 done; \
d5eec917 15990 echo "Doing dvi in gettext" ; \
7fc2ca22 15991 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
15992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15994 "RANLIB=$${RANLIB}" \
bffcbe34 15995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 15996 dvi) \
657b58f4
NN
15997 || exit 1
15998
d5eec917 15999@endif gettext
657b58f4 16000
39bbbb69
DD
16001.PHONY: maybe-pdf-gettext pdf-gettext
16002maybe-pdf-gettext:
16003@if gettext
16004maybe-pdf-gettext: pdf-gettext
16005
16006pdf-gettext: \
16007 configure-gettext
16008 @: $(MAKE); $(unstage)
16009 @[ -f ./gettext/Makefile ] || exit 0; \
16010 r=`${PWD_COMMAND}`; export r; \
16011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16012 $(HOST_EXPORTS) \
16013 for flag in $(EXTRA_HOST_FLAGS) ; do \
16014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16015 done; \
16016 echo "Doing pdf in gettext" ; \
16017 (cd $(HOST_SUBDIR)/gettext && \
16018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16020 "RANLIB=$${RANLIB}" \
bffcbe34 16021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
16022 pdf) \
16023 || exit 1
16024
16025@endif gettext
16026
b6fb961f
MS
16027.PHONY: maybe-html-gettext html-gettext
16028maybe-html-gettext:
16029@if gettext
16030maybe-html-gettext: html-gettext
16031
16032html-gettext: \
16033 configure-gettext
15b527ca 16034 @: $(MAKE); $(unstage)
b6fb961f
MS
16035 @[ -f ./gettext/Makefile ] || exit 0; \
16036 r=`${PWD_COMMAND}`; export r; \
16037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
16038 $(HOST_EXPORTS) \
16039 for flag in $(EXTRA_HOST_FLAGS) ; do \
16040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16041 done; \
16042 echo "Doing html in gettext" ; \
7fc2ca22 16043 (cd $(HOST_SUBDIR)/gettext && \
b6fb961f
MS
16044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16046 "RANLIB=$${RANLIB}" \
bffcbe34 16047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
16048 html) \
16049 || exit 1
16050
16051@endif gettext
16052
d5eec917
PB
16053.PHONY: maybe-TAGS-gettext TAGS-gettext
16054maybe-TAGS-gettext:
16055@if gettext
16056maybe-TAGS-gettext: TAGS-gettext
657b58f4 16057
d5eec917
PB
16058TAGS-gettext: \
16059 configure-gettext
15b527ca 16060 @: $(MAKE); $(unstage)
d5eec917 16061 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16062 r=`${PWD_COMMAND}`; export r; \
16063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16064 $(HOST_EXPORTS) \
d5eec917 16065 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16067 done; \
d5eec917 16068 echo "Doing TAGS in gettext" ; \
7fc2ca22 16069 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16072 "RANLIB=$${RANLIB}" \
bffcbe34 16073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16074 TAGS) \
657b58f4
NN
16075 || exit 1
16076
d5eec917 16077@endif gettext
657b58f4 16078
d5eec917
PB
16079.PHONY: maybe-install-info-gettext install-info-gettext
16080maybe-install-info-gettext:
16081@if gettext
16082maybe-install-info-gettext: install-info-gettext
16083
16084install-info-gettext: \
16085 configure-gettext \
16086 info-gettext
15b527ca 16087 @: $(MAKE); $(unstage)
d5eec917 16088 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16089 r=`${PWD_COMMAND}`; export r; \
16090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16091 $(HOST_EXPORTS) \
d5eec917 16092 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16094 done; \
d5eec917 16095 echo "Doing install-info in gettext" ; \
7fc2ca22 16096 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16099 "RANLIB=$${RANLIB}" \
bffcbe34 16100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16101 install-info) \
657b58f4
NN
16102 || exit 1
16103
d5eec917 16104@endif gettext
657b58f4 16105
d4954b6d
DD
16106.PHONY: maybe-install-pdf-gettext install-pdf-gettext
16107maybe-install-pdf-gettext:
16108@if gettext
16109maybe-install-pdf-gettext: install-pdf-gettext
16110
16111install-pdf-gettext: \
16112 configure-gettext \
16113 pdf-gettext
16114 @: $(MAKE); $(unstage)
16115 @[ -f ./gettext/Makefile ] || exit 0; \
16116 r=`${PWD_COMMAND}`; export r; \
16117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16118 $(HOST_EXPORTS) \
16119 for flag in $(EXTRA_HOST_FLAGS) ; do \
16120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16121 done; \
16122 echo "Doing install-pdf in gettext" ; \
16123 (cd $(HOST_SUBDIR)/gettext && \
16124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16126 "RANLIB=$${RANLIB}" \
bffcbe34 16127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
16128 install-pdf) \
16129 || exit 1
16130
16131@endif gettext
16132
83c9add4
CD
16133.PHONY: maybe-install-html-gettext install-html-gettext
16134maybe-install-html-gettext:
16135@if gettext
16136maybe-install-html-gettext: install-html-gettext
16137
16138install-html-gettext: \
16139 configure-gettext \
16140 html-gettext
16141 @: $(MAKE); $(unstage)
16142 @[ -f ./gettext/Makefile ] || exit 0; \
16143 r=`${PWD_COMMAND}`; export r; \
16144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16145 $(HOST_EXPORTS) \
16146 for flag in $(EXTRA_HOST_FLAGS) ; do \
16147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16148 done; \
16149 echo "Doing install-html in gettext" ; \
16150 (cd $(HOST_SUBDIR)/gettext && \
16151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16153 "RANLIB=$${RANLIB}" \
bffcbe34 16154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
16155 install-html) \
16156 || exit 1
16157
16158@endif gettext
16159
d5eec917
PB
16160.PHONY: maybe-installcheck-gettext installcheck-gettext
16161maybe-installcheck-gettext:
16162@if gettext
16163maybe-installcheck-gettext: installcheck-gettext
657b58f4 16164
d5eec917
PB
16165installcheck-gettext: \
16166 configure-gettext
15b527ca 16167 @: $(MAKE); $(unstage)
d5eec917 16168 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16169 r=`${PWD_COMMAND}`; export r; \
16170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16171 $(HOST_EXPORTS) \
d5eec917 16172 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16174 done; \
d5eec917 16175 echo "Doing installcheck in gettext" ; \
7fc2ca22 16176 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16179 "RANLIB=$${RANLIB}" \
bffcbe34 16180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16181 installcheck) \
657b58f4
NN
16182 || exit 1
16183
d5eec917 16184@endif gettext
657b58f4 16185
d5eec917
PB
16186.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
16187maybe-mostlyclean-gettext:
16188@if gettext
16189maybe-mostlyclean-gettext: mostlyclean-gettext
657b58f4 16190
d5eec917 16191mostlyclean-gettext:
15b527ca 16192 @: $(MAKE); $(unstage)
d5eec917 16193 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16194 r=`${PWD_COMMAND}`; export r; \
16195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16196 $(HOST_EXPORTS) \
d5eec917 16197 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16199 done; \
d5eec917 16200 echo "Doing mostlyclean in gettext" ; \
7fc2ca22 16201 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16204 "RANLIB=$${RANLIB}" \
bffcbe34 16205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16206 mostlyclean) \
657b58f4
NN
16207 || exit 1
16208
d5eec917 16209@endif gettext
657b58f4 16210
d5eec917
PB
16211.PHONY: maybe-clean-gettext clean-gettext
16212maybe-clean-gettext:
16213@if gettext
16214maybe-clean-gettext: clean-gettext
657b58f4 16215
d5eec917 16216clean-gettext:
15b527ca 16217 @: $(MAKE); $(unstage)
d5eec917 16218 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16219 r=`${PWD_COMMAND}`; export r; \
16220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16221 $(HOST_EXPORTS) \
d5eec917 16222 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16224 done; \
d5eec917 16225 echo "Doing clean in gettext" ; \
7fc2ca22 16226 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16229 "RANLIB=$${RANLIB}" \
bffcbe34 16230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16231 clean) \
657b58f4
NN
16232 || exit 1
16233
d5eec917 16234@endif gettext
657b58f4 16235
d5eec917
PB
16236.PHONY: maybe-distclean-gettext distclean-gettext
16237maybe-distclean-gettext:
16238@if gettext
16239maybe-distclean-gettext: distclean-gettext
657b58f4 16240
d5eec917 16241distclean-gettext:
15b527ca 16242 @: $(MAKE); $(unstage)
d5eec917 16243 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16244 r=`${PWD_COMMAND}`; export r; \
16245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16246 $(HOST_EXPORTS) \
d5eec917 16247 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16249 done; \
d5eec917 16250 echo "Doing distclean in gettext" ; \
7fc2ca22 16251 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16254 "RANLIB=$${RANLIB}" \
bffcbe34 16255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16256 distclean) \
657b58f4
NN
16257 || exit 1
16258
d5eec917 16259@endif gettext
657b58f4 16260
d5eec917
PB
16261.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
16262maybe-maintainer-clean-gettext:
16263@if gettext
16264maybe-maintainer-clean-gettext: maintainer-clean-gettext
657b58f4 16265
d5eec917 16266maintainer-clean-gettext:
15b527ca 16267 @: $(MAKE); $(unstage)
d5eec917 16268 @[ -f ./gettext/Makefile ] || exit 0; \
5230d454
L
16269 r=`${PWD_COMMAND}`; export r; \
16270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 16271 $(HOST_EXPORTS) \
d5eec917 16272 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
16273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16274 done; \
d5eec917 16275 echo "Doing maintainer-clean in gettext" ; \
7fc2ca22 16276 (cd $(HOST_SUBDIR)/gettext && \
657b58f4
NN
16277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16279 "RANLIB=$${RANLIB}" \
bffcbe34 16280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 16281 maintainer-clean) \
8ec98d6c
NN
16282 || exit 1
16283
d5eec917 16284@endif gettext
8ec98d6c
NN
16285
16286
f0fdfd34 16287
42f55f77
PB
16288.PHONY: configure-gmp maybe-configure-gmp
16289maybe-configure-gmp:
16290@if gcc-bootstrap
16291configure-gmp: stage_current
16292@endif gcc-bootstrap
16293@if gmp
16294maybe-configure-gmp: configure-gmp
16295configure-gmp:
16296 @r=`${PWD_COMMAND}`; export r; \
16297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16298 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16299 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
5074489a 16300 $(HOST_EXPORTS) \
42f55f77
PB
16301 echo Configuring in $(HOST_SUBDIR)/gmp; \
16302 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
16303 case $(srcdir) in \
16304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16305 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16307 esac; \
16308 srcdiroption="--srcdir=$${topdir}/gmp"; \
16309 libsrcdir="$$s/gmp"; \
16310 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16311 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16312 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared \
42f55f77
PB
16313 || exit 1
16314@endif gmp
16315
16316
16317
16318.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
16319maybe-configure-stage1-gmp:
16320@if gmp-bootstrap
16321maybe-configure-stage1-gmp: configure-stage1-gmp
16322configure-stage1-gmp:
16323 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16325 @r=`${PWD_COMMAND}`; export r; \
16326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16327 TFLAGS="$(STAGE1_TFLAGS)"; \
42f55f77 16328 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
c91ae28f 16329 $(HOST_EXPORTS) \
2ba09444 16330 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
16331 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16332 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16333 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
16334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16335 cd $(HOST_SUBDIR)/gmp || exit 1; \
16336 case $(srcdir) in \
16337 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16338 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16339 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16340 esac; \
16341 srcdiroption="--srcdir=$${topdir}/gmp"; \
16342 libsrcdir="$$s/gmp"; \
16343 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16344 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16345 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
c91ae28f
AO
16346 $(STAGE1_CONFIGURE_FLAGS) \
16347 --disable-shared
42f55f77
PB
16348@endif gmp-bootstrap
16349
16350.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
16351maybe-configure-stage2-gmp:
16352@if gmp-bootstrap
16353maybe-configure-stage2-gmp: configure-stage2-gmp
16354configure-stage2-gmp:
16355 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16356 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16357 @r=`${PWD_COMMAND}`; export r; \
16358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16359 TFLAGS="$(STAGE2_TFLAGS)"; \
42f55f77
PB
16360 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16361 $(HOST_EXPORTS) \
c91ae28f 16362 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16363 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
16364 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16365 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16366 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
16367 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16368 cd $(HOST_SUBDIR)/gmp || exit 1; \
16369 case $(srcdir) in \
16370 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16371 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16372 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16373 esac; \
16374 srcdiroption="--srcdir=$${topdir}/gmp"; \
16375 libsrcdir="$$s/gmp"; \
16376 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16377 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16378 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
42f55f77 16379 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
16380 $(STAGE2_CONFIGURE_FLAGS) \
16381 --disable-shared
2b41ef78
AO
16382@endif gmp-bootstrap
16383
42f55f77
PB
16384.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
16385maybe-configure-stage3-gmp:
16386@if gmp-bootstrap
16387maybe-configure-stage3-gmp: configure-stage3-gmp
16388configure-stage3-gmp:
16389 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
16390 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16391 @r=`${PWD_COMMAND}`; export r; \
16392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16393 TFLAGS="$(STAGE3_TFLAGS)"; \
42f55f77
PB
16394 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16395 $(HOST_EXPORTS) \
c91ae28f 16396 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16397 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
16398 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16399 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16400 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
16401 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16402 cd $(HOST_SUBDIR)/gmp || exit 1; \
16403 case $(srcdir) in \
16404 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16405 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16406 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16407 esac; \
16408 srcdiroption="--srcdir=$${topdir}/gmp"; \
16409 libsrcdir="$$s/gmp"; \
16410 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16411 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16412 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
42f55f77 16413 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
16414 $(STAGE3_CONFIGURE_FLAGS) \
16415 --disable-shared
2b41ef78
AO
16416@endif gmp-bootstrap
16417
42f55f77
PB
16418.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
16419maybe-configure-stage4-gmp:
16420@if gmp-bootstrap
16421maybe-configure-stage4-gmp: configure-stage4-gmp
16422configure-stage4-gmp:
16423 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
16424 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16425 @r=`${PWD_COMMAND}`; export r; \
16426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16427 TFLAGS="$(STAGE4_TFLAGS)"; \
42f55f77
PB
16428 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16429 $(HOST_EXPORTS) \
c91ae28f 16430 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 16431 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
16432 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16433 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16434 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
16435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16436 cd $(HOST_SUBDIR)/gmp || exit 1; \
16437 case $(srcdir) in \
16438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16439 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16441 esac; \
16442 srcdiroption="--srcdir=$${topdir}/gmp"; \
16443 libsrcdir="$$s/gmp"; \
16444 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16445 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16446 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
42f55f77 16447 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
16448 $(STAGE4_CONFIGURE_FLAGS) \
16449 --disable-shared
42f55f77
PB
16450@endif gmp-bootstrap
16451
16452.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
16453maybe-configure-stageprofile-gmp:
16454@if gmp-bootstrap
16455maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
16456configure-stageprofile-gmp:
16457 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16458 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16459 @r=`${PWD_COMMAND}`; export r; \
16460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16461 TFLAGS="$(STAGEprofile_TFLAGS)"; \
42f55f77
PB
16462 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16463 $(HOST_EXPORTS) \
c91ae28f
AO
16464 $(POSTSTAGE1_HOST_EXPORTS) \
16465 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
16466 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16467 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16468 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
16469 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16470 cd $(HOST_SUBDIR)/gmp || exit 1; \
16471 case $(srcdir) in \
16472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16473 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16475 esac; \
16476 srcdiroption="--srcdir=$${topdir}/gmp"; \
16477 libsrcdir="$$s/gmp"; \
16478 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16479 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16480 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
42f55f77 16481 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
16482 $(STAGEprofile_CONFIGURE_FLAGS) \
16483 --disable-shared
42f55f77
PB
16484@endif gmp-bootstrap
16485
16486.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
16487maybe-configure-stagefeedback-gmp:
16488@if gmp-bootstrap
16489maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
16490configure-stagefeedback-gmp:
16491 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
16492 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
16493 @r=`${PWD_COMMAND}`; export r; \
16494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16495 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
42f55f77
PB
16496 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
16497 $(HOST_EXPORTS) \
c91ae28f
AO
16498 $(POSTSTAGE1_HOST_EXPORTS) \
16499 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
16500 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16501 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
42f55f77
PB
16502 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
16503 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
16504 cd $(HOST_SUBDIR)/gmp || exit 1; \
16505 case $(srcdir) in \
16506 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16507 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
16508 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16509 esac; \
16510 srcdiroption="--srcdir=$${topdir}/gmp"; \
16511 libsrcdir="$$s/gmp"; \
16512 $(SHELL) $${libsrcdir}/configure \
88242190
AO
16513 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
16514 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
42f55f77 16515 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
16516 $(STAGEfeedback_CONFIGURE_FLAGS) \
16517 --disable-shared
42f55f77
PB
16518@endif gmp-bootstrap
16519
16520
16521
16522
16523
16524.PHONY: all-gmp maybe-all-gmp
16525maybe-all-gmp:
16526@if gcc-bootstrap
16527all-gmp: stage_current
16528@endif gcc-bootstrap
16529@if gmp
16530TARGET-gmp=all
16531maybe-all-gmp: all-gmp
16532all-gmp: configure-gmp
16533 @r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 16535 $(HOST_EXPORTS) \
42f55f77 16536 (cd $(HOST_SUBDIR)/gmp && \
6532abb6
PB
16537 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
16538 $(TARGET-gmp))
42f55f77
PB
16539@endif gmp
16540
16541
16542
16543.PHONY: all-stage1-gmp maybe-all-stage1-gmp
16544.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
16545maybe-all-stage1-gmp:
16546maybe-clean-stage1-gmp:
16547@if gmp-bootstrap
16548maybe-all-stage1-gmp: all-stage1-gmp
16549all-stage1: all-stage1-gmp
16550TARGET-stage1-gmp = $(TARGET-gmp)
16551all-stage1-gmp: configure-stage1-gmp
16552 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16553 @r=`${PWD_COMMAND}`; export r; \
16554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16555 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 16556 $(HOST_EXPORTS) \
42f55f77 16557 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16558 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16559 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 16560 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
16561 LIBCFLAGS="$(LIBCFLAGS)" \
16562 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16563 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16564 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16565 $(EXTRA_HOST_FLAGS) \
16566 TFLAGS="$(STAGE1_TFLAGS)" \
42f55f77
PB
16567 $(TARGET-stage1-gmp)
16568
16569maybe-clean-stage1-gmp: clean-stage1-gmp
16570clean-stage1: clean-stage1-gmp
16571clean-stage1-gmp:
16572 @if [ $(current_stage) = stage1 ]; then \
16573 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16574 else \
16575 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
16576 $(MAKE) stage1-start; \
16577 fi; \
16578 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16579 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 16580 clean
42f55f77
PB
16581@endif gmp-bootstrap
16582
16583
16584.PHONY: all-stage2-gmp maybe-all-stage2-gmp
16585.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
16586maybe-all-stage2-gmp:
16587maybe-clean-stage2-gmp:
16588@if gmp-bootstrap
16589maybe-all-stage2-gmp: all-stage2-gmp
16590all-stage2: all-stage2-gmp
16591TARGET-stage2-gmp = $(TARGET-gmp)
16592all-stage2-gmp: configure-stage2-gmp
16593 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16594 @r=`${PWD_COMMAND}`; export r; \
16595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16596 TFLAGS="$(STAGE2_TFLAGS)"; \
42f55f77 16597 $(HOST_EXPORTS) \
5074489a 16598 $(POSTSTAGE1_HOST_EXPORTS) \
42f55f77 16599 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16600 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16601 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 16602 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
16603 LIBCFLAGS="$(STAGE2_CFLAGS)" \
16604 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16605 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16606 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16607 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16608 TFLAGS="$(STAGE2_TFLAGS)" \
42f55f77
PB
16609 $(TARGET-stage2-gmp)
16610
16611maybe-clean-stage2-gmp: clean-stage2-gmp
16612clean-stage2: clean-stage2-gmp
16613clean-stage2-gmp:
16614 @if [ $(current_stage) = stage2 ]; then \
16615 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16616 else \
16617 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
16618 $(MAKE) stage2-start; \
16619 fi; \
16620 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16621 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16622 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16623 clean
42f55f77
PB
16624@endif gmp-bootstrap
16625
16626
16627.PHONY: all-stage3-gmp maybe-all-stage3-gmp
16628.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
16629maybe-all-stage3-gmp:
16630maybe-clean-stage3-gmp:
16631@if gmp-bootstrap
16632maybe-all-stage3-gmp: all-stage3-gmp
16633all-stage3: all-stage3-gmp
16634TARGET-stage3-gmp = $(TARGET-gmp)
16635all-stage3-gmp: configure-stage3-gmp
16636 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
16637 @r=`${PWD_COMMAND}`; export r; \
16638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16639 TFLAGS="$(STAGE3_TFLAGS)"; \
42f55f77 16640 $(HOST_EXPORTS) \
5074489a 16641 $(POSTSTAGE1_HOST_EXPORTS) \
42f55f77 16642 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16643 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16644 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 16645 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
16646 LIBCFLAGS="$(STAGE3_CFLAGS)" \
16647 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16648 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16649 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16650 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16651 TFLAGS="$(STAGE3_TFLAGS)" \
42f55f77
PB
16652 $(TARGET-stage3-gmp)
16653
16654maybe-clean-stage3-gmp: clean-stage3-gmp
16655clean-stage3: clean-stage3-gmp
16656clean-stage3-gmp:
16657 @if [ $(current_stage) = stage3 ]; then \
16658 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16659 else \
16660 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
16661 $(MAKE) stage3-start; \
16662 fi; \
16663 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16664 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16665 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16666 clean
42f55f77
PB
16667@endif gmp-bootstrap
16668
16669
16670.PHONY: all-stage4-gmp maybe-all-stage4-gmp
16671.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
16672maybe-all-stage4-gmp:
16673maybe-clean-stage4-gmp:
16674@if gmp-bootstrap
16675maybe-all-stage4-gmp: all-stage4-gmp
16676all-stage4: all-stage4-gmp
16677TARGET-stage4-gmp = $(TARGET-gmp)
16678all-stage4-gmp: configure-stage4-gmp
16679 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
16680 @r=`${PWD_COMMAND}`; export r; \
16681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16682 TFLAGS="$(STAGE4_TFLAGS)"; \
42f55f77 16683 $(HOST_EXPORTS) \
5074489a 16684 $(POSTSTAGE1_HOST_EXPORTS) \
42f55f77 16685 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16686 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16687 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 16688 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 16689 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
16690 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16691 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16692 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16693 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16694 TFLAGS="$(STAGE4_TFLAGS)" \
42f55f77
PB
16695 $(TARGET-stage4-gmp)
16696
16697maybe-clean-stage4-gmp: clean-stage4-gmp
16698clean-stage4: clean-stage4-gmp
16699clean-stage4-gmp:
16700 @if [ $(current_stage) = stage4 ]; then \
16701 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16702 else \
16703 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
16704 $(MAKE) stage4-start; \
16705 fi; \
16706 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16707 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16708 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16709 clean
42f55f77
PB
16710@endif gmp-bootstrap
16711
16712
16713.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
16714.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
16715maybe-all-stageprofile-gmp:
16716maybe-clean-stageprofile-gmp:
16717@if gmp-bootstrap
16718maybe-all-stageprofile-gmp: all-stageprofile-gmp
16719all-stageprofile: all-stageprofile-gmp
16720TARGET-stageprofile-gmp = $(TARGET-gmp)
16721all-stageprofile-gmp: configure-stageprofile-gmp
16722 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16723 @r=`${PWD_COMMAND}`; export r; \
16724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16725 TFLAGS="$(STAGEprofile_TFLAGS)"; \
42f55f77 16726 $(HOST_EXPORTS) \
5074489a 16727 $(POSTSTAGE1_HOST_EXPORTS) \
42f55f77 16728 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16730 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 16731 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
16732 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
16733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16736 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16737 TFLAGS="$(STAGEprofile_TFLAGS)" \
42f55f77
PB
16738 $(TARGET-stageprofile-gmp)
16739
16740maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
16741clean-stageprofile: clean-stageprofile-gmp
16742clean-stageprofile-gmp:
16743 @if [ $(current_stage) = stageprofile ]; then \
16744 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16745 else \
16746 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
16747 $(MAKE) stageprofile-start; \
16748 fi; \
16749 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16750 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16751 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16752 clean
42f55f77
PB
16753@endif gmp-bootstrap
16754
16755
16756.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
16757.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
16758maybe-all-stagefeedback-gmp:
16759maybe-clean-stagefeedback-gmp:
16760@if gmp-bootstrap
16761maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
16762all-stagefeedback: all-stagefeedback-gmp
16763TARGET-stagefeedback-gmp = $(TARGET-gmp)
16764all-stagefeedback-gmp: configure-stagefeedback-gmp
16765 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
16766 @r=`${PWD_COMMAND}`; export r; \
16767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 16768 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
42f55f77 16769 $(HOST_EXPORTS) \
5074489a 16770 $(POSTSTAGE1_HOST_EXPORTS) \
42f55f77 16771 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16772 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 16773 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 16774 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
16775 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
16776 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16777 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16778 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16779 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16780 TFLAGS="$(STAGEfeedback_TFLAGS)" \
42f55f77
PB
16781 $(TARGET-stagefeedback-gmp)
16782
16783maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
16784clean-stagefeedback: clean-stagefeedback-gmp
16785clean-stagefeedback-gmp:
16786 @if [ $(current_stage) = stagefeedback ]; then \
16787 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
16788 else \
16789 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
16790 $(MAKE) stagefeedback-start; \
16791 fi; \
16792 cd $(HOST_SUBDIR)/gmp && \
6532abb6 16793 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 16794 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 16795 clean
42f55f77
PB
16796@endif gmp-bootstrap
16797
16798
16799
16800
16801
16802.PHONY: check-gmp maybe-check-gmp
16803maybe-check-gmp:
16804@if gmp
16805maybe-check-gmp: check-gmp
16806
16807check-gmp:
16808 @: $(MAKE); $(unstage)
16809 @r=`${PWD_COMMAND}`; export r; \
16810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16811 $(HOST_EXPORTS) \
16812 (cd $(HOST_SUBDIR)/gmp && \
16813 $(MAKE) $(FLAGS_TO_PASS) check)
16814
16815@endif gmp
16816
16817.PHONY: install-gmp maybe-install-gmp
16818maybe-install-gmp:
16819@if gmp
16820maybe-install-gmp: install-gmp
16821
16822install-gmp:
16823
16824@endif gmp
16825
16826# Other targets (info, dvi, pdf, etc.)
16827
16828.PHONY: maybe-info-gmp info-gmp
16829maybe-info-gmp:
16830@if gmp
16831maybe-info-gmp: info-gmp
16832
16833info-gmp: \
16834 configure-gmp
16835 @[ -f ./gmp/Makefile ] || exit 0; \
16836 r=`${PWD_COMMAND}`; export r; \
16837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16838 $(HOST_EXPORTS) \
16839 for flag in $(EXTRA_HOST_FLAGS) ; do \
16840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16841 done; \
16842 echo "Doing info in gmp" ; \
16843 (cd $(HOST_SUBDIR)/gmp && \
16844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16846 "RANLIB=$${RANLIB}" \
bffcbe34 16847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16848 info) \
16849 || exit 1
16850
16851@endif gmp
16852
16853.PHONY: maybe-dvi-gmp dvi-gmp
16854maybe-dvi-gmp:
16855@if gmp
16856maybe-dvi-gmp: dvi-gmp
16857
16858dvi-gmp: \
16859 configure-gmp
16860 @[ -f ./gmp/Makefile ] || exit 0; \
16861 r=`${PWD_COMMAND}`; export r; \
16862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16863 $(HOST_EXPORTS) \
16864 for flag in $(EXTRA_HOST_FLAGS) ; do \
16865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16866 done; \
16867 echo "Doing dvi in gmp" ; \
16868 (cd $(HOST_SUBDIR)/gmp && \
16869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16871 "RANLIB=$${RANLIB}" \
bffcbe34 16872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16873 dvi) \
16874 || exit 1
16875
16876@endif gmp
16877
16878.PHONY: maybe-pdf-gmp pdf-gmp
16879maybe-pdf-gmp:
16880@if gmp
16881maybe-pdf-gmp: pdf-gmp
16882
16883pdf-gmp: \
16884 configure-gmp
16885 @[ -f ./gmp/Makefile ] || exit 0; \
16886 r=`${PWD_COMMAND}`; export r; \
16887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16888 $(HOST_EXPORTS) \
16889 for flag in $(EXTRA_HOST_FLAGS) ; do \
16890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16891 done; \
16892 echo "Doing pdf in gmp" ; \
16893 (cd $(HOST_SUBDIR)/gmp && \
16894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16896 "RANLIB=$${RANLIB}" \
bffcbe34 16897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16898 pdf) \
16899 || exit 1
16900
16901@endif gmp
16902
16903.PHONY: maybe-html-gmp html-gmp
16904maybe-html-gmp:
16905@if gmp
16906maybe-html-gmp: html-gmp
16907
16908html-gmp: \
16909 configure-gmp
16910 @[ -f ./gmp/Makefile ] || exit 0; \
16911 r=`${PWD_COMMAND}`; export r; \
16912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16913 $(HOST_EXPORTS) \
16914 for flag in $(EXTRA_HOST_FLAGS) ; do \
16915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16916 done; \
16917 echo "Doing html in gmp" ; \
16918 (cd $(HOST_SUBDIR)/gmp && \
16919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16921 "RANLIB=$${RANLIB}" \
bffcbe34 16922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16923 html) \
16924 || exit 1
16925
16926@endif gmp
16927
16928.PHONY: maybe-TAGS-gmp TAGS-gmp
16929maybe-TAGS-gmp:
16930@if gmp
16931maybe-TAGS-gmp: TAGS-gmp
16932
16933TAGS-gmp: \
16934 configure-gmp
16935 @[ -f ./gmp/Makefile ] || exit 0; \
16936 r=`${PWD_COMMAND}`; export r; \
16937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16938 $(HOST_EXPORTS) \
16939 for flag in $(EXTRA_HOST_FLAGS) ; do \
16940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16941 done; \
16942 echo "Doing TAGS in gmp" ; \
16943 (cd $(HOST_SUBDIR)/gmp && \
16944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16946 "RANLIB=$${RANLIB}" \
bffcbe34 16947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16948 TAGS) \
16949 || exit 1
16950
16951@endif gmp
16952
16953.PHONY: maybe-install-info-gmp install-info-gmp
16954maybe-install-info-gmp:
16955@if gmp
16956maybe-install-info-gmp: install-info-gmp
16957
16958install-info-gmp: \
16959 configure-gmp \
16960 info-gmp
16961 @[ -f ./gmp/Makefile ] || exit 0; \
16962 r=`${PWD_COMMAND}`; export r; \
16963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16964 $(HOST_EXPORTS) \
16965 for flag in $(EXTRA_HOST_FLAGS) ; do \
16966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16967 done; \
16968 echo "Doing install-info in gmp" ; \
16969 (cd $(HOST_SUBDIR)/gmp && \
16970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16972 "RANLIB=$${RANLIB}" \
bffcbe34 16973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
16974 install-info) \
16975 || exit 1
16976
16977@endif gmp
16978
d4954b6d
DD
16979.PHONY: maybe-install-pdf-gmp install-pdf-gmp
16980maybe-install-pdf-gmp:
16981@if gmp
16982maybe-install-pdf-gmp: install-pdf-gmp
16983
16984install-pdf-gmp: \
16985 configure-gmp \
16986 pdf-gmp
16987 @[ -f ./gmp/Makefile ] || exit 0; \
16988 r=`${PWD_COMMAND}`; export r; \
16989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16990 $(HOST_EXPORTS) \
16991 for flag in $(EXTRA_HOST_FLAGS) ; do \
16992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16993 done; \
16994 echo "Doing install-pdf in gmp" ; \
16995 (cd $(HOST_SUBDIR)/gmp && \
16996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16998 "RANLIB=$${RANLIB}" \
bffcbe34 16999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
17000 install-pdf) \
17001 || exit 1
17002
17003@endif gmp
17004
42f55f77
PB
17005.PHONY: maybe-install-html-gmp install-html-gmp
17006maybe-install-html-gmp:
17007@if gmp
17008maybe-install-html-gmp: install-html-gmp
17009
17010install-html-gmp: \
17011 configure-gmp \
17012 html-gmp
17013 @[ -f ./gmp/Makefile ] || exit 0; \
17014 r=`${PWD_COMMAND}`; export r; \
17015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17016 $(HOST_EXPORTS) \
17017 for flag in $(EXTRA_HOST_FLAGS) ; do \
17018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17019 done; \
17020 echo "Doing install-html in gmp" ; \
17021 (cd $(HOST_SUBDIR)/gmp && \
17022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17024 "RANLIB=$${RANLIB}" \
bffcbe34 17025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
17026 install-html) \
17027 || exit 1
17028
17029@endif gmp
17030
17031.PHONY: maybe-installcheck-gmp installcheck-gmp
17032maybe-installcheck-gmp:
17033@if gmp
17034maybe-installcheck-gmp: installcheck-gmp
17035
311b6756
JM
17036installcheck-gmp: \
17037 configure-gmp
17038 @[ -f ./gmp/Makefile ] || exit 0; \
17039 r=`${PWD_COMMAND}`; export r; \
17040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17041 $(HOST_EXPORTS) \
17042 for flag in $(EXTRA_HOST_FLAGS) ; do \
17043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17044 done; \
17045 echo "Doing installcheck in gmp" ; \
17046 (cd $(HOST_SUBDIR)/gmp && \
17047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17049 "RANLIB=$${RANLIB}" \
17050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17051 installcheck) \
17052 || exit 1
17053
17054@endif gmp
17055
17056.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
17057maybe-mostlyclean-gmp:
17058@if gmp
17059maybe-mostlyclean-gmp: mostlyclean-gmp
17060
17061mostlyclean-gmp:
17062 @[ -f ./gmp/Makefile ] || exit 0; \
17063 r=`${PWD_COMMAND}`; export r; \
17064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17065 $(HOST_EXPORTS) \
17066 for flag in $(EXTRA_HOST_FLAGS) ; do \
17067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17068 done; \
17069 echo "Doing mostlyclean in gmp" ; \
17070 (cd $(HOST_SUBDIR)/gmp && \
17071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17073 "RANLIB=$${RANLIB}" \
17074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17075 mostlyclean) \
17076 || exit 1
17077
17078@endif gmp
17079
17080.PHONY: maybe-clean-gmp clean-gmp
17081maybe-clean-gmp:
17082@if gmp
17083maybe-clean-gmp: clean-gmp
17084
17085clean-gmp:
17086 @[ -f ./gmp/Makefile ] || exit 0; \
17087 r=`${PWD_COMMAND}`; export r; \
17088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17089 $(HOST_EXPORTS) \
17090 for flag in $(EXTRA_HOST_FLAGS) ; do \
17091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17092 done; \
17093 echo "Doing clean in gmp" ; \
17094 (cd $(HOST_SUBDIR)/gmp && \
17095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17097 "RANLIB=$${RANLIB}" \
17098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17099 clean) \
17100 || exit 1
17101
17102@endif gmp
17103
17104.PHONY: maybe-distclean-gmp distclean-gmp
17105maybe-distclean-gmp:
17106@if gmp
17107maybe-distclean-gmp: distclean-gmp
17108
17109distclean-gmp:
17110 @[ -f ./gmp/Makefile ] || exit 0; \
17111 r=`${PWD_COMMAND}`; export r; \
17112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17113 $(HOST_EXPORTS) \
17114 for flag in $(EXTRA_HOST_FLAGS) ; do \
17115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17116 done; \
17117 echo "Doing distclean in gmp" ; \
17118 (cd $(HOST_SUBDIR)/gmp && \
17119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17121 "RANLIB=$${RANLIB}" \
17122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17123 distclean) \
17124 || exit 1
17125
17126@endif gmp
17127
17128.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
17129maybe-maintainer-clean-gmp:
17130@if gmp
17131maybe-maintainer-clean-gmp: maintainer-clean-gmp
17132
17133maintainer-clean-gmp:
17134 @[ -f ./gmp/Makefile ] || exit 0; \
17135 r=`${PWD_COMMAND}`; export r; \
17136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17137 $(HOST_EXPORTS) \
17138 for flag in $(EXTRA_HOST_FLAGS) ; do \
17139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17140 done; \
17141 echo "Doing maintainer-clean in gmp" ; \
17142 (cd $(HOST_SUBDIR)/gmp && \
17143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17145 "RANLIB=$${RANLIB}" \
17146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17147 maintainer-clean) \
17148 || exit 1
17149
17150@endif gmp
17151
17152
17153
17154.PHONY: configure-mpfr maybe-configure-mpfr
17155maybe-configure-mpfr:
17156@if gcc-bootstrap
17157configure-mpfr: stage_current
17158@endif gcc-bootstrap
17159@if mpfr
17160maybe-configure-mpfr: configure-mpfr
17161configure-mpfr:
17162 @r=`${PWD_COMMAND}`; export r; \
17163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17164 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
5074489a 17166 $(HOST_EXPORTS) \
311b6756
JM
17167 echo Configuring in $(HOST_SUBDIR)/mpfr; \
17168 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
17169 case $(srcdir) in \
17170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17171 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17173 esac; \
17174 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17175 libsrcdir="$$s/mpfr"; \
17176 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17178 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpfr_configure_flags@ \
311b6756
JM
17179 || exit 1
17180@endif mpfr
17181
17182
17183
17184.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
17185maybe-configure-stage1-mpfr:
17186@if mpfr-bootstrap
17187maybe-configure-stage1-mpfr: configure-stage1-mpfr
17188configure-stage1-mpfr:
17189 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17190 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17191 @r=`${PWD_COMMAND}`; export r; \
17192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17193 TFLAGS="$(STAGE1_TFLAGS)"; \
311b6756 17194 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
c91ae28f 17195 $(HOST_EXPORTS) \
311b6756 17196 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
17197 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
17198 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17199 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
17200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17201 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17202 case $(srcdir) in \
17203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17204 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17206 esac; \
17207 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17208 libsrcdir="$$s/mpfr"; \
17209 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17210 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17211 --target=${target_alias} $${srcdiroption} \
c91ae28f 17212 $(STAGE1_CONFIGURE_FLAGS) \
121f0eb2 17213 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17214@endif mpfr-bootstrap
17215
17216.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
17217maybe-configure-stage2-mpfr:
17218@if mpfr-bootstrap
17219maybe-configure-stage2-mpfr: configure-stage2-mpfr
17220configure-stage2-mpfr:
17221 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17223 @r=`${PWD_COMMAND}`; export r; \
17224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17225 TFLAGS="$(STAGE2_TFLAGS)"; \
311b6756
JM
17226 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17227 $(HOST_EXPORTS) \
c91ae28f 17228 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 17229 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
17230 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
17231 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17232 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
17233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17234 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17235 case $(srcdir) in \
17236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17237 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17239 esac; \
17240 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17241 libsrcdir="$$s/mpfr"; \
17242 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17244 --target=${target_alias} $${srcdiroption} \
311b6756 17245 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 17246 $(STAGE2_CONFIGURE_FLAGS) \
121f0eb2 17247 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17248@endif mpfr-bootstrap
17249
17250.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
17251maybe-configure-stage3-mpfr:
17252@if mpfr-bootstrap
17253maybe-configure-stage3-mpfr: configure-stage3-mpfr
17254configure-stage3-mpfr:
17255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17256 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17257 @r=`${PWD_COMMAND}`; export r; \
17258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17259 TFLAGS="$(STAGE3_TFLAGS)"; \
311b6756
JM
17260 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17261 $(HOST_EXPORTS) \
c91ae28f 17262 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 17263 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
17264 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
17265 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17266 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
17267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17268 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17269 case $(srcdir) in \
17270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17271 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17273 esac; \
17274 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17275 libsrcdir="$$s/mpfr"; \
17276 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17278 --target=${target_alias} $${srcdiroption} \
311b6756 17279 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 17280 $(STAGE3_CONFIGURE_FLAGS) \
121f0eb2 17281 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17282@endif mpfr-bootstrap
17283
17284.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
17285maybe-configure-stage4-mpfr:
17286@if mpfr-bootstrap
17287maybe-configure-stage4-mpfr: configure-stage4-mpfr
17288configure-stage4-mpfr:
17289 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17291 @r=`${PWD_COMMAND}`; export r; \
17292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17293 TFLAGS="$(STAGE4_TFLAGS)"; \
311b6756
JM
17294 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17295 $(HOST_EXPORTS) \
c91ae28f 17296 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 17297 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
17298 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
17299 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17300 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
17301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17302 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17303 case $(srcdir) in \
17304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17305 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17307 esac; \
17308 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17309 libsrcdir="$$s/mpfr"; \
17310 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17312 --target=${target_alias} $${srcdiroption} \
311b6756 17313 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 17314 $(STAGE4_CONFIGURE_FLAGS) \
121f0eb2 17315 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17316@endif mpfr-bootstrap
17317
17318.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
17319maybe-configure-stageprofile-mpfr:
17320@if mpfr-bootstrap
17321maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
17322configure-stageprofile-mpfr:
17323 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17325 @r=`${PWD_COMMAND}`; export r; \
17326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17327 TFLAGS="$(STAGEprofile_TFLAGS)"; \
311b6756
JM
17328 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17329 $(HOST_EXPORTS) \
c91ae28f
AO
17330 $(POSTSTAGE1_HOST_EXPORTS) \
17331 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
17332 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17333 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17334 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
17335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17336 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17337 case $(srcdir) in \
17338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17339 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17341 esac; \
17342 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17343 libsrcdir="$$s/mpfr"; \
17344 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17345 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17346 --target=${target_alias} $${srcdiroption} \
311b6756 17347 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 17348 $(STAGEprofile_CONFIGURE_FLAGS) \
121f0eb2 17349 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17350@endif mpfr-bootstrap
17351
17352.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
17353maybe-configure-stagefeedback-mpfr:
17354@if mpfr-bootstrap
17355maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
17356configure-stagefeedback-mpfr:
17357 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
17359 @r=`${PWD_COMMAND}`; export r; \
17360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17361 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
311b6756
JM
17362 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
17363 $(HOST_EXPORTS) \
c91ae28f
AO
17364 $(POSTSTAGE1_HOST_EXPORTS) \
17365 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
17366 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17367 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
17368 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
17369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
17370 cd $(HOST_SUBDIR)/mpfr || exit 1; \
17371 case $(srcdir) in \
17372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17373 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
17374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17375 esac; \
17376 srcdiroption="--srcdir=$${topdir}/mpfr"; \
17377 libsrcdir="$$s/mpfr"; \
17378 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
17379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17380 --target=${target_alias} $${srcdiroption} \
311b6756 17381 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 17382 $(STAGEfeedback_CONFIGURE_FLAGS) \
121f0eb2 17383 --disable-shared @extra_mpfr_configure_flags@
311b6756
JM
17384@endif mpfr-bootstrap
17385
17386
17387
17388
17389
17390.PHONY: all-mpfr maybe-all-mpfr
17391maybe-all-mpfr:
17392@if gcc-bootstrap
17393all-mpfr: stage_current
17394@endif gcc-bootstrap
17395@if mpfr
17396TARGET-mpfr=all
17397maybe-all-mpfr: all-mpfr
17398all-mpfr: configure-mpfr
17399 @r=`${PWD_COMMAND}`; export r; \
17400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 17401 $(HOST_EXPORTS) \
311b6756
JM
17402 (cd $(HOST_SUBDIR)/mpfr && \
17403 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
17404 $(TARGET-mpfr))
17405@endif mpfr
17406
17407
17408
17409.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
17410.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
17411maybe-all-stage1-mpfr:
17412maybe-clean-stage1-mpfr:
17413@if mpfr-bootstrap
17414maybe-all-stage1-mpfr: all-stage1-mpfr
17415all-stage1: all-stage1-mpfr
17416TARGET-stage1-mpfr = $(TARGET-mpfr)
17417all-stage1-mpfr: configure-stage1-mpfr
17418 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17419 @r=`${PWD_COMMAND}`; export r; \
17420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17421 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 17422 $(HOST_EXPORTS) \
311b6756
JM
17423 cd $(HOST_SUBDIR)/mpfr && \
17424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17425 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 17426 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
17427 LIBCFLAGS="$(LIBCFLAGS)" \
17428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17431 $(EXTRA_HOST_FLAGS) \
17432 TFLAGS="$(STAGE1_TFLAGS)" \
311b6756
JM
17433 $(TARGET-stage1-mpfr)
17434
17435maybe-clean-stage1-mpfr: clean-stage1-mpfr
17436clean-stage1: clean-stage1-mpfr
17437clean-stage1-mpfr:
17438 @if [ $(current_stage) = stage1 ]; then \
17439 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17440 else \
17441 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
17442 $(MAKE) stage1-start; \
17443 fi; \
17444 cd $(HOST_SUBDIR)/mpfr && \
17445 $(MAKE) $(EXTRA_HOST_FLAGS) \
17446 clean
17447@endif mpfr-bootstrap
17448
17449
17450.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
17451.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
17452maybe-all-stage2-mpfr:
17453maybe-clean-stage2-mpfr:
17454@if mpfr-bootstrap
17455maybe-all-stage2-mpfr: all-stage2-mpfr
17456all-stage2: all-stage2-mpfr
17457TARGET-stage2-mpfr = $(TARGET-mpfr)
17458all-stage2-mpfr: configure-stage2-mpfr
17459 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17460 @r=`${PWD_COMMAND}`; export r; \
17461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17462 TFLAGS="$(STAGE2_TFLAGS)"; \
311b6756 17463 $(HOST_EXPORTS) \
5074489a 17464 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
17465 cd $(HOST_SUBDIR)/mpfr && \
17466 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17467 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 17468 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
17469 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17470 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17471 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17472 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17473 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17474 TFLAGS="$(STAGE2_TFLAGS)" \
311b6756
JM
17475 $(TARGET-stage2-mpfr)
17476
17477maybe-clean-stage2-mpfr: clean-stage2-mpfr
17478clean-stage2: clean-stage2-mpfr
17479clean-stage2-mpfr:
17480 @if [ $(current_stage) = stage2 ]; then \
17481 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17482 else \
17483 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
17484 $(MAKE) stage2-start; \
17485 fi; \
17486 cd $(HOST_SUBDIR)/mpfr && \
17487 $(MAKE) $(EXTRA_HOST_FLAGS) \
17488 $(POSTSTAGE1_FLAGS_TO_PASS) \
17489 clean
17490@endif mpfr-bootstrap
17491
17492
311b6756
JM
17493.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
17494.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
17495maybe-all-stage3-mpfr:
17496maybe-clean-stage3-mpfr:
17497@if mpfr-bootstrap
17498maybe-all-stage3-mpfr: all-stage3-mpfr
17499all-stage3: all-stage3-mpfr
17500TARGET-stage3-mpfr = $(TARGET-mpfr)
17501all-stage3-mpfr: configure-stage3-mpfr
17502 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17503 @r=`${PWD_COMMAND}`; export r; \
17504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17505 TFLAGS="$(STAGE3_TFLAGS)"; \
311b6756 17506 $(HOST_EXPORTS) \
5074489a 17507 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
17508 cd $(HOST_SUBDIR)/mpfr && \
17509 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17510 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 17511 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
17512 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17513 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17514 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17515 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17516 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17517 TFLAGS="$(STAGE3_TFLAGS)" \
311b6756
JM
17518 $(TARGET-stage3-mpfr)
17519
17520maybe-clean-stage3-mpfr: clean-stage3-mpfr
17521clean-stage3: clean-stage3-mpfr
17522clean-stage3-mpfr:
17523 @if [ $(current_stage) = stage3 ]; then \
17524 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17525 else \
17526 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
17527 $(MAKE) stage3-start; \
17528 fi; \
17529 cd $(HOST_SUBDIR)/mpfr && \
17530 $(MAKE) $(EXTRA_HOST_FLAGS) \
17531 $(POSTSTAGE1_FLAGS_TO_PASS) \
17532 clean
17533@endif mpfr-bootstrap
17534
17535
311b6756
JM
17536.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
17537.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
17538maybe-all-stage4-mpfr:
17539maybe-clean-stage4-mpfr:
17540@if mpfr-bootstrap
17541maybe-all-stage4-mpfr: all-stage4-mpfr
17542all-stage4: all-stage4-mpfr
17543TARGET-stage4-mpfr = $(TARGET-mpfr)
17544all-stage4-mpfr: configure-stage4-mpfr
17545 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17546 @r=`${PWD_COMMAND}`; export r; \
17547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17548 TFLAGS="$(STAGE4_TFLAGS)"; \
311b6756 17549 $(HOST_EXPORTS) \
5074489a 17550 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
17551 cd $(HOST_SUBDIR)/mpfr && \
17552 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17553 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 17554 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
311b6756 17555 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
17556 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17557 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17558 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17559 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17560 TFLAGS="$(STAGE4_TFLAGS)" \
311b6756
JM
17561 $(TARGET-stage4-mpfr)
17562
17563maybe-clean-stage4-mpfr: clean-stage4-mpfr
17564clean-stage4: clean-stage4-mpfr
17565clean-stage4-mpfr:
17566 @if [ $(current_stage) = stage4 ]; then \
17567 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17568 else \
17569 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
17570 $(MAKE) stage4-start; \
17571 fi; \
17572 cd $(HOST_SUBDIR)/mpfr && \
17573 $(MAKE) $(EXTRA_HOST_FLAGS) \
17574 $(POSTSTAGE1_FLAGS_TO_PASS) \
17575 clean
17576@endif mpfr-bootstrap
17577
17578
17579.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
17580.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
17581maybe-all-stageprofile-mpfr:
17582maybe-clean-stageprofile-mpfr:
17583@if mpfr-bootstrap
17584maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
17585all-stageprofile: all-stageprofile-mpfr
17586TARGET-stageprofile-mpfr = $(TARGET-mpfr)
17587all-stageprofile-mpfr: configure-stageprofile-mpfr
17588 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17589 @r=`${PWD_COMMAND}`; export r; \
17590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17591 TFLAGS="$(STAGEprofile_TFLAGS)"; \
311b6756 17592 $(HOST_EXPORTS) \
5074489a 17593 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
17594 cd $(HOST_SUBDIR)/mpfr && \
17595 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17596 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 17597 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
17598 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17599 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17600 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17601 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17602 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17603 TFLAGS="$(STAGEprofile_TFLAGS)" \
311b6756
JM
17604 $(TARGET-stageprofile-mpfr)
17605
17606maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
17607clean-stageprofile: clean-stageprofile-mpfr
17608clean-stageprofile-mpfr:
17609 @if [ $(current_stage) = stageprofile ]; then \
17610 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17611 else \
17612 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
17613 $(MAKE) stageprofile-start; \
17614 fi; \
17615 cd $(HOST_SUBDIR)/mpfr && \
17616 $(MAKE) $(EXTRA_HOST_FLAGS) \
17617 $(POSTSTAGE1_FLAGS_TO_PASS) \
17618 clean
17619@endif mpfr-bootstrap
17620
17621
17622.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
17623.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
17624maybe-all-stagefeedback-mpfr:
17625maybe-clean-stagefeedback-mpfr:
17626@if mpfr-bootstrap
17627maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
17628all-stagefeedback: all-stagefeedback-mpfr
17629TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
17630all-stagefeedback-mpfr: configure-stagefeedback-mpfr
17631 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17632 @r=`${PWD_COMMAND}`; export r; \
17633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 17634 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
311b6756 17635 $(HOST_EXPORTS) \
5074489a 17636 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
17637 cd $(HOST_SUBDIR)/mpfr && \
17638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 17639 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 17640 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
17641 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17642 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17643 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17644 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17645 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17646 TFLAGS="$(STAGEfeedback_TFLAGS)" \
311b6756
JM
17647 $(TARGET-stagefeedback-mpfr)
17648
17649maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
17650clean-stagefeedback: clean-stagefeedback-mpfr
17651clean-stagefeedback-mpfr:
17652 @if [ $(current_stage) = stagefeedback ]; then \
17653 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
17654 else \
17655 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
17656 $(MAKE) stagefeedback-start; \
17657 fi; \
17658 cd $(HOST_SUBDIR)/mpfr && \
17659 $(MAKE) $(EXTRA_HOST_FLAGS) \
17660 $(POSTSTAGE1_FLAGS_TO_PASS) \
17661 clean
17662@endif mpfr-bootstrap
17663
17664
17665
17666
17667
17668.PHONY: check-mpfr maybe-check-mpfr
17669maybe-check-mpfr:
17670@if mpfr
17671maybe-check-mpfr: check-mpfr
17672
17673check-mpfr:
17674 @: $(MAKE); $(unstage)
17675 @r=`${PWD_COMMAND}`; export r; \
17676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17677 $(HOST_EXPORTS) \
17678 (cd $(HOST_SUBDIR)/mpfr && \
17679 $(MAKE) $(FLAGS_TO_PASS) check)
17680
17681@endif mpfr
17682
17683.PHONY: install-mpfr maybe-install-mpfr
17684maybe-install-mpfr:
17685@if mpfr
17686maybe-install-mpfr: install-mpfr
17687
17688install-mpfr:
17689
17690@endif mpfr
17691
17692# Other targets (info, dvi, pdf, etc.)
17693
17694.PHONY: maybe-info-mpfr info-mpfr
17695maybe-info-mpfr:
17696@if mpfr
17697maybe-info-mpfr: info-mpfr
17698
17699info-mpfr: \
17700 configure-mpfr
17701 @[ -f ./mpfr/Makefile ] || exit 0; \
17702 r=`${PWD_COMMAND}`; export r; \
17703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17704 $(HOST_EXPORTS) \
17705 for flag in $(EXTRA_HOST_FLAGS) ; do \
17706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17707 done; \
17708 echo "Doing info in mpfr" ; \
17709 (cd $(HOST_SUBDIR)/mpfr && \
17710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17712 "RANLIB=$${RANLIB}" \
17713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17714 info) \
17715 || exit 1
17716
17717@endif mpfr
17718
17719.PHONY: maybe-dvi-mpfr dvi-mpfr
17720maybe-dvi-mpfr:
17721@if mpfr
17722maybe-dvi-mpfr: dvi-mpfr
17723
17724dvi-mpfr: \
17725 configure-mpfr
17726 @[ -f ./mpfr/Makefile ] || exit 0; \
17727 r=`${PWD_COMMAND}`; export r; \
17728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17729 $(HOST_EXPORTS) \
17730 for flag in $(EXTRA_HOST_FLAGS) ; do \
17731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17732 done; \
17733 echo "Doing dvi in mpfr" ; \
17734 (cd $(HOST_SUBDIR)/mpfr && \
17735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17737 "RANLIB=$${RANLIB}" \
17738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17739 dvi) \
17740 || exit 1
17741
17742@endif mpfr
17743
17744.PHONY: maybe-pdf-mpfr pdf-mpfr
17745maybe-pdf-mpfr:
17746@if mpfr
17747maybe-pdf-mpfr: pdf-mpfr
17748
17749pdf-mpfr: \
17750 configure-mpfr
17751 @[ -f ./mpfr/Makefile ] || exit 0; \
17752 r=`${PWD_COMMAND}`; export r; \
17753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17754 $(HOST_EXPORTS) \
17755 for flag in $(EXTRA_HOST_FLAGS) ; do \
17756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17757 done; \
17758 echo "Doing pdf in mpfr" ; \
17759 (cd $(HOST_SUBDIR)/mpfr && \
17760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17762 "RANLIB=$${RANLIB}" \
17763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17764 pdf) \
17765 || exit 1
17766
17767@endif mpfr
17768
17769.PHONY: maybe-html-mpfr html-mpfr
17770maybe-html-mpfr:
17771@if mpfr
17772maybe-html-mpfr: html-mpfr
17773
17774html-mpfr: \
17775 configure-mpfr
17776 @[ -f ./mpfr/Makefile ] || exit 0; \
17777 r=`${PWD_COMMAND}`; export r; \
17778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17779 $(HOST_EXPORTS) \
17780 for flag in $(EXTRA_HOST_FLAGS) ; do \
17781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17782 done; \
17783 echo "Doing html in mpfr" ; \
17784 (cd $(HOST_SUBDIR)/mpfr && \
17785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17787 "RANLIB=$${RANLIB}" \
17788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17789 html) \
17790 || exit 1
17791
17792@endif mpfr
17793
17794.PHONY: maybe-TAGS-mpfr TAGS-mpfr
17795maybe-TAGS-mpfr:
17796@if mpfr
17797maybe-TAGS-mpfr: TAGS-mpfr
17798
17799TAGS-mpfr: \
17800 configure-mpfr
17801 @[ -f ./mpfr/Makefile ] || exit 0; \
17802 r=`${PWD_COMMAND}`; export r; \
17803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17804 $(HOST_EXPORTS) \
17805 for flag in $(EXTRA_HOST_FLAGS) ; do \
17806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17807 done; \
17808 echo "Doing TAGS in mpfr" ; \
17809 (cd $(HOST_SUBDIR)/mpfr && \
17810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17812 "RANLIB=$${RANLIB}" \
17813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17814 TAGS) \
17815 || exit 1
17816
17817@endif mpfr
17818
17819.PHONY: maybe-install-info-mpfr install-info-mpfr
17820maybe-install-info-mpfr:
17821@if mpfr
17822maybe-install-info-mpfr: install-info-mpfr
17823
17824install-info-mpfr: \
17825 configure-mpfr \
17826 info-mpfr
17827 @[ -f ./mpfr/Makefile ] || exit 0; \
17828 r=`${PWD_COMMAND}`; export r; \
17829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17830 $(HOST_EXPORTS) \
17831 for flag in $(EXTRA_HOST_FLAGS) ; do \
17832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17833 done; \
17834 echo "Doing install-info in mpfr" ; \
17835 (cd $(HOST_SUBDIR)/mpfr && \
17836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17838 "RANLIB=$${RANLIB}" \
17839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17840 install-info) \
17841 || exit 1
17842
17843@endif mpfr
17844
17845.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
17846maybe-install-pdf-mpfr:
17847@if mpfr
17848maybe-install-pdf-mpfr: install-pdf-mpfr
17849
17850install-pdf-mpfr: \
17851 configure-mpfr \
17852 pdf-mpfr
17853 @[ -f ./mpfr/Makefile ] || exit 0; \
17854 r=`${PWD_COMMAND}`; export r; \
17855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17856 $(HOST_EXPORTS) \
17857 for flag in $(EXTRA_HOST_FLAGS) ; do \
17858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17859 done; \
17860 echo "Doing install-pdf in mpfr" ; \
17861 (cd $(HOST_SUBDIR)/mpfr && \
17862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17864 "RANLIB=$${RANLIB}" \
17865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17866 install-pdf) \
17867 || exit 1
17868
17869@endif mpfr
17870
17871.PHONY: maybe-install-html-mpfr install-html-mpfr
17872maybe-install-html-mpfr:
17873@if mpfr
17874maybe-install-html-mpfr: install-html-mpfr
17875
17876install-html-mpfr: \
17877 configure-mpfr \
17878 html-mpfr
17879 @[ -f ./mpfr/Makefile ] || exit 0; \
17880 r=`${PWD_COMMAND}`; export r; \
17881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17882 $(HOST_EXPORTS) \
17883 for flag in $(EXTRA_HOST_FLAGS) ; do \
17884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17885 done; \
17886 echo "Doing install-html in mpfr" ; \
17887 (cd $(HOST_SUBDIR)/mpfr && \
17888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17890 "RANLIB=$${RANLIB}" \
17891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17892 install-html) \
17893 || exit 1
17894
17895@endif mpfr
17896
17897.PHONY: maybe-installcheck-mpfr installcheck-mpfr
17898maybe-installcheck-mpfr:
17899@if mpfr
17900maybe-installcheck-mpfr: installcheck-mpfr
17901
17902installcheck-mpfr: \
17903 configure-mpfr
17904 @[ -f ./mpfr/Makefile ] || exit 0; \
17905 r=`${PWD_COMMAND}`; export r; \
17906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17907 $(HOST_EXPORTS) \
17908 for flag in $(EXTRA_HOST_FLAGS) ; do \
17909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17910 done; \
17911 echo "Doing installcheck in mpfr" ; \
17912 (cd $(HOST_SUBDIR)/mpfr && \
17913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17915 "RANLIB=$${RANLIB}" \
17916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17917 installcheck) \
17918 || exit 1
17919
17920@endif mpfr
17921
17922.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
17923maybe-mostlyclean-mpfr:
17924@if mpfr
17925maybe-mostlyclean-mpfr: mostlyclean-mpfr
17926
17927mostlyclean-mpfr:
17928 @[ -f ./mpfr/Makefile ] || exit 0; \
17929 r=`${PWD_COMMAND}`; export r; \
17930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17931 $(HOST_EXPORTS) \
17932 for flag in $(EXTRA_HOST_FLAGS) ; do \
17933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17934 done; \
17935 echo "Doing mostlyclean in mpfr" ; \
17936 (cd $(HOST_SUBDIR)/mpfr && \
17937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17939 "RANLIB=$${RANLIB}" \
17940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17941 mostlyclean) \
17942 || exit 1
17943
17944@endif mpfr
17945
17946.PHONY: maybe-clean-mpfr clean-mpfr
17947maybe-clean-mpfr:
17948@if mpfr
17949maybe-clean-mpfr: clean-mpfr
17950
17951clean-mpfr:
17952 @[ -f ./mpfr/Makefile ] || exit 0; \
17953 r=`${PWD_COMMAND}`; export r; \
17954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17955 $(HOST_EXPORTS) \
17956 for flag in $(EXTRA_HOST_FLAGS) ; do \
17957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17958 done; \
17959 echo "Doing clean in mpfr" ; \
17960 (cd $(HOST_SUBDIR)/mpfr && \
17961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17963 "RANLIB=$${RANLIB}" \
17964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17965 clean) \
17966 || exit 1
17967
17968@endif mpfr
17969
17970.PHONY: maybe-distclean-mpfr distclean-mpfr
17971maybe-distclean-mpfr:
17972@if mpfr
17973maybe-distclean-mpfr: distclean-mpfr
17974
17975distclean-mpfr:
17976 @[ -f ./mpfr/Makefile ] || exit 0; \
17977 r=`${PWD_COMMAND}`; export r; \
17978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17979 $(HOST_EXPORTS) \
17980 for flag in $(EXTRA_HOST_FLAGS) ; do \
17981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17982 done; \
17983 echo "Doing distclean in mpfr" ; \
17984 (cd $(HOST_SUBDIR)/mpfr && \
17985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17987 "RANLIB=$${RANLIB}" \
17988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17989 distclean) \
17990 || exit 1
17991
17992@endif mpfr
17993
17994.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
17995maybe-maintainer-clean-mpfr:
17996@if mpfr
17997maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
17998
17999maintainer-clean-mpfr:
18000 @[ -f ./mpfr/Makefile ] || exit 0; \
18001 r=`${PWD_COMMAND}`; export r; \
18002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18003 $(HOST_EXPORTS) \
18004 for flag in $(EXTRA_HOST_FLAGS) ; do \
18005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18006 done; \
18007 echo "Doing maintainer-clean in mpfr" ; \
18008 (cd $(HOST_SUBDIR)/mpfr && \
18009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18011 "RANLIB=$${RANLIB}" \
18012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18013 maintainer-clean) \
18014 || exit 1
18015
18016@endif mpfr
18017
18018
18019
121f0eb2
RW
18020.PHONY: configure-mpc maybe-configure-mpc
18021maybe-configure-mpc:
18022@if gcc-bootstrap
18023configure-mpc: stage_current
18024@endif gcc-bootstrap
18025@if mpc
18026maybe-configure-mpc: configure-mpc
18027configure-mpc:
18028 @r=`${PWD_COMMAND}`; export r; \
18029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18030 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
5074489a 18032 $(HOST_EXPORTS) \
121f0eb2
RW
18033 echo Configuring in $(HOST_SUBDIR)/mpc; \
18034 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
18035 case $(srcdir) in \
18036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18037 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18039 esac; \
18040 srcdiroption="--srcdir=$${topdir}/mpc"; \
18041 libsrcdir="$$s/mpc"; \
18042 $(SHELL) $${libsrcdir}/configure \
18043 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18044 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
18045 || exit 1
18046@endif mpc
18047
18048
18049
18050.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
18051maybe-configure-stage1-mpc:
18052@if mpc-bootstrap
18053maybe-configure-stage1-mpc: configure-stage1-mpc
18054configure-stage1-mpc:
18055 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18056 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18057 @r=`${PWD_COMMAND}`; export r; \
18058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18059 TFLAGS="$(STAGE1_TFLAGS)"; \
18060 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18061 $(HOST_EXPORTS) \
18062 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
18063 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18064 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18065 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc ; \
18066 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18067 cd $(HOST_SUBDIR)/mpc || exit 1; \
18068 case $(srcdir) in \
18069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18070 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18072 esac; \
18073 srcdiroption="--srcdir=$${topdir}/mpc"; \
18074 libsrcdir="$$s/mpc"; \
18075 $(SHELL) $${libsrcdir}/configure \
18076 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18077 --target=${target_alias} $${srcdiroption} \
18078 $(STAGE1_CONFIGURE_FLAGS) \
18079 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18080@endif mpc-bootstrap
18081
18082.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
18083maybe-configure-stage2-mpc:
18084@if mpc-bootstrap
18085maybe-configure-stage2-mpc: configure-stage2-mpc
18086configure-stage2-mpc:
18087 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18088 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18089 @r=`${PWD_COMMAND}`; export r; \
18090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18091 TFLAGS="$(STAGE2_TFLAGS)"; \
18092 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18093 $(HOST_EXPORTS) \
18094 $(POSTSTAGE1_HOST_EXPORTS) \
18095 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
18096 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18097 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18098 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc ; \
18099 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18100 cd $(HOST_SUBDIR)/mpc || exit 1; \
18101 case $(srcdir) in \
18102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18103 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18105 esac; \
18106 srcdiroption="--srcdir=$${topdir}/mpc"; \
18107 libsrcdir="$$s/mpc"; \
18108 $(SHELL) $${libsrcdir}/configure \
18109 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18110 --target=${target_alias} $${srcdiroption} \
18111 --with-build-libsubdir=$(HOST_SUBDIR) \
18112 $(STAGE2_CONFIGURE_FLAGS) \
18113 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18114@endif mpc-bootstrap
18115
18116.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
18117maybe-configure-stage3-mpc:
18118@if mpc-bootstrap
18119maybe-configure-stage3-mpc: configure-stage3-mpc
18120configure-stage3-mpc:
18121 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18122 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18123 @r=`${PWD_COMMAND}`; export r; \
18124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18125 TFLAGS="$(STAGE3_TFLAGS)"; \
18126 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18127 $(HOST_EXPORTS) \
18128 $(POSTSTAGE1_HOST_EXPORTS) \
18129 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
18130 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18131 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18132 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc ; \
18133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18134 cd $(HOST_SUBDIR)/mpc || exit 1; \
18135 case $(srcdir) in \
18136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18137 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18139 esac; \
18140 srcdiroption="--srcdir=$${topdir}/mpc"; \
18141 libsrcdir="$$s/mpc"; \
18142 $(SHELL) $${libsrcdir}/configure \
18143 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18144 --target=${target_alias} $${srcdiroption} \
18145 --with-build-libsubdir=$(HOST_SUBDIR) \
18146 $(STAGE3_CONFIGURE_FLAGS) \
18147 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18148@endif mpc-bootstrap
18149
18150.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
18151maybe-configure-stage4-mpc:
18152@if mpc-bootstrap
18153maybe-configure-stage4-mpc: configure-stage4-mpc
18154configure-stage4-mpc:
18155 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18157 @r=`${PWD_COMMAND}`; export r; \
18158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18159 TFLAGS="$(STAGE4_TFLAGS)"; \
18160 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18161 $(HOST_EXPORTS) \
18162 $(POSTSTAGE1_HOST_EXPORTS) \
18163 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
18164 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18165 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18166 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc ; \
18167 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18168 cd $(HOST_SUBDIR)/mpc || exit 1; \
18169 case $(srcdir) in \
18170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18171 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18173 esac; \
18174 srcdiroption="--srcdir=$${topdir}/mpc"; \
18175 libsrcdir="$$s/mpc"; \
18176 $(SHELL) $${libsrcdir}/configure \
18177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18178 --target=${target_alias} $${srcdiroption} \
18179 --with-build-libsubdir=$(HOST_SUBDIR) \
18180 $(STAGE4_CONFIGURE_FLAGS) \
18181 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18182@endif mpc-bootstrap
18183
18184.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
18185maybe-configure-stageprofile-mpc:
18186@if mpc-bootstrap
18187maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
18188configure-stageprofile-mpc:
18189 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18190 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18191 @r=`${PWD_COMMAND}`; export r; \
18192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18193 TFLAGS="$(STAGEprofile_TFLAGS)"; \
18194 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18195 $(HOST_EXPORTS) \
18196 $(POSTSTAGE1_HOST_EXPORTS) \
18197 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
18198 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18199 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18200 echo Configuring stage profile in $(HOST_SUBDIR)/mpc ; \
18201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18202 cd $(HOST_SUBDIR)/mpc || exit 1; \
18203 case $(srcdir) in \
18204 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18205 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18206 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18207 esac; \
18208 srcdiroption="--srcdir=$${topdir}/mpc"; \
18209 libsrcdir="$$s/mpc"; \
18210 $(SHELL) $${libsrcdir}/configure \
18211 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18212 --target=${target_alias} $${srcdiroption} \
18213 --with-build-libsubdir=$(HOST_SUBDIR) \
18214 $(STAGEprofile_CONFIGURE_FLAGS) \
18215 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18216@endif mpc-bootstrap
18217
18218.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
18219maybe-configure-stagefeedback-mpc:
18220@if mpc-bootstrap
18221maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
18222configure-stagefeedback-mpc:
18223 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18224 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
18225 @r=`${PWD_COMMAND}`; export r; \
18226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18227 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
18228 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
18229 $(HOST_EXPORTS) \
18230 $(POSTSTAGE1_HOST_EXPORTS) \
18231 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
18232 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18233 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
121f0eb2
RW
18234 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc ; \
18235 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
18236 cd $(HOST_SUBDIR)/mpc || exit 1; \
18237 case $(srcdir) in \
18238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18239 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
18240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18241 esac; \
18242 srcdiroption="--srcdir=$${topdir}/mpc"; \
18243 libsrcdir="$$s/mpc"; \
18244 $(SHELL) $${libsrcdir}/configure \
18245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18246 --target=${target_alias} $${srcdiroption} \
18247 --with-build-libsubdir=$(HOST_SUBDIR) \
18248 $(STAGEfeedback_CONFIGURE_FLAGS) \
18249 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
18250@endif mpc-bootstrap
18251
18252
18253
18254
18255
18256.PHONY: all-mpc maybe-all-mpc
18257maybe-all-mpc:
18258@if gcc-bootstrap
18259all-mpc: stage_current
18260@endif gcc-bootstrap
18261@if mpc
18262TARGET-mpc=all
18263maybe-all-mpc: all-mpc
18264all-mpc: configure-mpc
18265 @r=`${PWD_COMMAND}`; export r; \
18266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 18267 $(HOST_EXPORTS) \
121f0eb2
RW
18268 (cd $(HOST_SUBDIR)/mpc && \
18269 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
18270 $(TARGET-mpc))
18271@endif mpc
18272
18273
18274
18275.PHONY: all-stage1-mpc maybe-all-stage1-mpc
18276.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
18277maybe-all-stage1-mpc:
18278maybe-clean-stage1-mpc:
18279@if mpc-bootstrap
18280maybe-all-stage1-mpc: all-stage1-mpc
18281all-stage1: all-stage1-mpc
18282TARGET-stage1-mpc = $(TARGET-mpc)
18283all-stage1-mpc: configure-stage1-mpc
18284 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18285 @r=`${PWD_COMMAND}`; export r; \
18286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18287 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 18288 $(HOST_EXPORTS) \
121f0eb2
RW
18289 cd $(HOST_SUBDIR)/mpc && \
18290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18291 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 18292 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
121f0eb2
RW
18293 LIBCFLAGS="$(LIBCFLAGS)" \
18294 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18295 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18296 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18297 $(EXTRA_HOST_FLAGS) \
18298 TFLAGS="$(STAGE1_TFLAGS)" \
18299 $(TARGET-stage1-mpc)
18300
18301maybe-clean-stage1-mpc: clean-stage1-mpc
18302clean-stage1: clean-stage1-mpc
18303clean-stage1-mpc:
18304 @if [ $(current_stage) = stage1 ]; then \
18305 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18306 else \
18307 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
18308 $(MAKE) stage1-start; \
18309 fi; \
18310 cd $(HOST_SUBDIR)/mpc && \
18311 $(MAKE) $(EXTRA_HOST_FLAGS) \
18312 clean
18313@endif mpc-bootstrap
18314
18315
18316.PHONY: all-stage2-mpc maybe-all-stage2-mpc
18317.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
18318maybe-all-stage2-mpc:
18319maybe-clean-stage2-mpc:
18320@if mpc-bootstrap
18321maybe-all-stage2-mpc: all-stage2-mpc
18322all-stage2: all-stage2-mpc
18323TARGET-stage2-mpc = $(TARGET-mpc)
18324all-stage2-mpc: configure-stage2-mpc
18325 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18326 @r=`${PWD_COMMAND}`; export r; \
18327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18328 TFLAGS="$(STAGE2_TFLAGS)"; \
18329 $(HOST_EXPORTS) \
5074489a 18330 $(POSTSTAGE1_HOST_EXPORTS) \
121f0eb2
RW
18331 cd $(HOST_SUBDIR)/mpc && \
18332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18333 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 18334 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
121f0eb2
RW
18335 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18336 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18337 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18338 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18339 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18340 TFLAGS="$(STAGE2_TFLAGS)" \
18341 $(TARGET-stage2-mpc)
18342
18343maybe-clean-stage2-mpc: clean-stage2-mpc
18344clean-stage2: clean-stage2-mpc
18345clean-stage2-mpc:
18346 @if [ $(current_stage) = stage2 ]; then \
18347 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18348 else \
18349 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
18350 $(MAKE) stage2-start; \
18351 fi; \
18352 cd $(HOST_SUBDIR)/mpc && \
18353 $(MAKE) $(EXTRA_HOST_FLAGS) \
18354 $(POSTSTAGE1_FLAGS_TO_PASS) \
18355 clean
18356@endif mpc-bootstrap
18357
18358
18359.PHONY: all-stage3-mpc maybe-all-stage3-mpc
18360.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
18361maybe-all-stage3-mpc:
18362maybe-clean-stage3-mpc:
18363@if mpc-bootstrap
18364maybe-all-stage3-mpc: all-stage3-mpc
18365all-stage3: all-stage3-mpc
18366TARGET-stage3-mpc = $(TARGET-mpc)
18367all-stage3-mpc: configure-stage3-mpc
18368 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18369 @r=`${PWD_COMMAND}`; export r; \
18370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18371 TFLAGS="$(STAGE3_TFLAGS)"; \
18372 $(HOST_EXPORTS) \
5074489a 18373 $(POSTSTAGE1_HOST_EXPORTS) \
121f0eb2
RW
18374 cd $(HOST_SUBDIR)/mpc && \
18375 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18376 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 18377 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
121f0eb2
RW
18378 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18379 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18380 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18381 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18382 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18383 TFLAGS="$(STAGE3_TFLAGS)" \
18384 $(TARGET-stage3-mpc)
18385
18386maybe-clean-stage3-mpc: clean-stage3-mpc
18387clean-stage3: clean-stage3-mpc
18388clean-stage3-mpc:
18389 @if [ $(current_stage) = stage3 ]; then \
18390 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18391 else \
18392 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
18393 $(MAKE) stage3-start; \
18394 fi; \
18395 cd $(HOST_SUBDIR)/mpc && \
18396 $(MAKE) $(EXTRA_HOST_FLAGS) \
18397 $(POSTSTAGE1_FLAGS_TO_PASS) \
18398 clean
18399@endif mpc-bootstrap
18400
18401
18402.PHONY: all-stage4-mpc maybe-all-stage4-mpc
18403.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
18404maybe-all-stage4-mpc:
18405maybe-clean-stage4-mpc:
18406@if mpc-bootstrap
18407maybe-all-stage4-mpc: all-stage4-mpc
18408all-stage4: all-stage4-mpc
18409TARGET-stage4-mpc = $(TARGET-mpc)
18410all-stage4-mpc: configure-stage4-mpc
18411 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18412 @r=`${PWD_COMMAND}`; export r; \
18413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18414 TFLAGS="$(STAGE4_TFLAGS)"; \
18415 $(HOST_EXPORTS) \
5074489a 18416 $(POSTSTAGE1_HOST_EXPORTS) \
121f0eb2
RW
18417 cd $(HOST_SUBDIR)/mpc && \
18418 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18419 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 18420 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
121f0eb2
RW
18421 LIBCFLAGS="$(STAGE4_CFLAGS)" \
18422 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18423 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18424 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18425 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18426 TFLAGS="$(STAGE4_TFLAGS)" \
18427 $(TARGET-stage4-mpc)
18428
18429maybe-clean-stage4-mpc: clean-stage4-mpc
18430clean-stage4: clean-stage4-mpc
18431clean-stage4-mpc:
18432 @if [ $(current_stage) = stage4 ]; then \
18433 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18434 else \
18435 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
18436 $(MAKE) stage4-start; \
18437 fi; \
18438 cd $(HOST_SUBDIR)/mpc && \
18439 $(MAKE) $(EXTRA_HOST_FLAGS) \
18440 $(POSTSTAGE1_FLAGS_TO_PASS) \
18441 clean
18442@endif mpc-bootstrap
18443
18444
18445.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
18446.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
18447maybe-all-stageprofile-mpc:
18448maybe-clean-stageprofile-mpc:
18449@if mpc-bootstrap
18450maybe-all-stageprofile-mpc: all-stageprofile-mpc
18451all-stageprofile: all-stageprofile-mpc
18452TARGET-stageprofile-mpc = $(TARGET-mpc)
18453all-stageprofile-mpc: configure-stageprofile-mpc
18454 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18455 @r=`${PWD_COMMAND}`; export r; \
18456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18457 TFLAGS="$(STAGEprofile_TFLAGS)"; \
18458 $(HOST_EXPORTS) \
5074489a 18459 $(POSTSTAGE1_HOST_EXPORTS) \
121f0eb2
RW
18460 cd $(HOST_SUBDIR)/mpc && \
18461 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18462 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 18463 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
121f0eb2
RW
18464 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18465 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18466 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18467 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18468 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18469 TFLAGS="$(STAGEprofile_TFLAGS)" \
18470 $(TARGET-stageprofile-mpc)
18471
18472maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
18473clean-stageprofile: clean-stageprofile-mpc
18474clean-stageprofile-mpc:
18475 @if [ $(current_stage) = stageprofile ]; then \
18476 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18477 else \
18478 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
18479 $(MAKE) stageprofile-start; \
18480 fi; \
18481 cd $(HOST_SUBDIR)/mpc && \
18482 $(MAKE) $(EXTRA_HOST_FLAGS) \
18483 $(POSTSTAGE1_FLAGS_TO_PASS) \
18484 clean
18485@endif mpc-bootstrap
18486
18487
18488.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
18489.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
18490maybe-all-stagefeedback-mpc:
18491maybe-clean-stagefeedback-mpc:
18492@if mpc-bootstrap
18493maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
18494all-stagefeedback: all-stagefeedback-mpc
18495TARGET-stagefeedback-mpc = $(TARGET-mpc)
18496all-stagefeedback-mpc: configure-stagefeedback-mpc
18497 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18498 @r=`${PWD_COMMAND}`; export r; \
18499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18500 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
18501 $(HOST_EXPORTS) \
5074489a 18502 $(POSTSTAGE1_HOST_EXPORTS) \
121f0eb2
RW
18503 cd $(HOST_SUBDIR)/mpc && \
18504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18505 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 18506 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
121f0eb2
RW
18507 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18512 TFLAGS="$(STAGEfeedback_TFLAGS)" \
18513 $(TARGET-stagefeedback-mpc)
18514
18515maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
18516clean-stagefeedback: clean-stagefeedback-mpc
18517clean-stagefeedback-mpc:
18518 @if [ $(current_stage) = stagefeedback ]; then \
18519 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
18520 else \
18521 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
18522 $(MAKE) stagefeedback-start; \
18523 fi; \
18524 cd $(HOST_SUBDIR)/mpc && \
18525 $(MAKE) $(EXTRA_HOST_FLAGS) \
18526 $(POSTSTAGE1_FLAGS_TO_PASS) \
18527 clean
18528@endif mpc-bootstrap
18529
18530
18531
18532
18533
18534.PHONY: check-mpc maybe-check-mpc
18535maybe-check-mpc:
18536@if mpc
18537maybe-check-mpc: check-mpc
18538
18539check-mpc:
18540 @: $(MAKE); $(unstage)
18541 @r=`${PWD_COMMAND}`; export r; \
18542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18543 $(HOST_EXPORTS) \
18544 (cd $(HOST_SUBDIR)/mpc && \
18545 $(MAKE) $(FLAGS_TO_PASS) check)
18546
18547@endif mpc
18548
18549.PHONY: install-mpc maybe-install-mpc
18550maybe-install-mpc:
18551@if mpc
18552maybe-install-mpc: install-mpc
18553
18554install-mpc:
18555
18556@endif mpc
18557
18558# Other targets (info, dvi, pdf, etc.)
18559
18560.PHONY: maybe-info-mpc info-mpc
18561maybe-info-mpc:
18562@if mpc
18563maybe-info-mpc: info-mpc
18564
18565info-mpc: \
18566 configure-mpc
18567 @[ -f ./mpc/Makefile ] || exit 0; \
18568 r=`${PWD_COMMAND}`; export r; \
18569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18570 $(HOST_EXPORTS) \
18571 for flag in $(EXTRA_HOST_FLAGS) ; do \
18572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18573 done; \
18574 echo "Doing info in mpc" ; \
18575 (cd $(HOST_SUBDIR)/mpc && \
18576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18578 "RANLIB=$${RANLIB}" \
18579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18580 info) \
18581 || exit 1
18582
18583@endif mpc
18584
18585.PHONY: maybe-dvi-mpc dvi-mpc
18586maybe-dvi-mpc:
18587@if mpc
18588maybe-dvi-mpc: dvi-mpc
18589
18590dvi-mpc: \
18591 configure-mpc
18592 @[ -f ./mpc/Makefile ] || exit 0; \
18593 r=`${PWD_COMMAND}`; export r; \
18594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18595 $(HOST_EXPORTS) \
18596 for flag in $(EXTRA_HOST_FLAGS) ; do \
18597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18598 done; \
18599 echo "Doing dvi in mpc" ; \
18600 (cd $(HOST_SUBDIR)/mpc && \
18601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18603 "RANLIB=$${RANLIB}" \
18604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18605 dvi) \
18606 || exit 1
18607
18608@endif mpc
18609
18610.PHONY: maybe-pdf-mpc pdf-mpc
18611maybe-pdf-mpc:
18612@if mpc
18613maybe-pdf-mpc: pdf-mpc
18614
18615pdf-mpc: \
18616 configure-mpc
18617 @[ -f ./mpc/Makefile ] || exit 0; \
18618 r=`${PWD_COMMAND}`; export r; \
18619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18620 $(HOST_EXPORTS) \
18621 for flag in $(EXTRA_HOST_FLAGS) ; do \
18622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18623 done; \
18624 echo "Doing pdf in mpc" ; \
18625 (cd $(HOST_SUBDIR)/mpc && \
18626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18628 "RANLIB=$${RANLIB}" \
18629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18630 pdf) \
18631 || exit 1
18632
18633@endif mpc
18634
18635.PHONY: maybe-html-mpc html-mpc
18636maybe-html-mpc:
18637@if mpc
18638maybe-html-mpc: html-mpc
18639
18640html-mpc: \
18641 configure-mpc
18642 @[ -f ./mpc/Makefile ] || exit 0; \
18643 r=`${PWD_COMMAND}`; export r; \
18644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18645 $(HOST_EXPORTS) \
18646 for flag in $(EXTRA_HOST_FLAGS) ; do \
18647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18648 done; \
18649 echo "Doing html in mpc" ; \
18650 (cd $(HOST_SUBDIR)/mpc && \
18651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18653 "RANLIB=$${RANLIB}" \
18654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18655 html) \
18656 || exit 1
18657
18658@endif mpc
18659
18660.PHONY: maybe-TAGS-mpc TAGS-mpc
18661maybe-TAGS-mpc:
18662@if mpc
18663maybe-TAGS-mpc: TAGS-mpc
18664
18665TAGS-mpc: \
18666 configure-mpc
18667 @[ -f ./mpc/Makefile ] || exit 0; \
18668 r=`${PWD_COMMAND}`; export r; \
18669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18670 $(HOST_EXPORTS) \
18671 for flag in $(EXTRA_HOST_FLAGS) ; do \
18672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18673 done; \
18674 echo "Doing TAGS in mpc" ; \
18675 (cd $(HOST_SUBDIR)/mpc && \
18676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18678 "RANLIB=$${RANLIB}" \
18679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18680 TAGS) \
18681 || exit 1
18682
18683@endif mpc
18684
18685.PHONY: maybe-install-info-mpc install-info-mpc
18686maybe-install-info-mpc:
18687@if mpc
18688maybe-install-info-mpc: install-info-mpc
18689
18690install-info-mpc: \
18691 configure-mpc \
18692 info-mpc
18693 @[ -f ./mpc/Makefile ] || exit 0; \
18694 r=`${PWD_COMMAND}`; export r; \
18695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18696 $(HOST_EXPORTS) \
18697 for flag in $(EXTRA_HOST_FLAGS) ; do \
18698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18699 done; \
18700 echo "Doing install-info in mpc" ; \
18701 (cd $(HOST_SUBDIR)/mpc && \
18702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18704 "RANLIB=$${RANLIB}" \
18705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18706 install-info) \
18707 || exit 1
18708
18709@endif mpc
18710
18711.PHONY: maybe-install-pdf-mpc install-pdf-mpc
18712maybe-install-pdf-mpc:
18713@if mpc
18714maybe-install-pdf-mpc: install-pdf-mpc
18715
18716install-pdf-mpc: \
18717 configure-mpc \
18718 pdf-mpc
18719 @[ -f ./mpc/Makefile ] || exit 0; \
18720 r=`${PWD_COMMAND}`; export r; \
18721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18722 $(HOST_EXPORTS) \
18723 for flag in $(EXTRA_HOST_FLAGS) ; do \
18724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18725 done; \
18726 echo "Doing install-pdf in mpc" ; \
18727 (cd $(HOST_SUBDIR)/mpc && \
18728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18730 "RANLIB=$${RANLIB}" \
18731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18732 install-pdf) \
18733 || exit 1
18734
18735@endif mpc
18736
18737.PHONY: maybe-install-html-mpc install-html-mpc
18738maybe-install-html-mpc:
18739@if mpc
18740maybe-install-html-mpc: install-html-mpc
18741
18742install-html-mpc: \
18743 configure-mpc \
18744 html-mpc
18745 @[ -f ./mpc/Makefile ] || exit 0; \
18746 r=`${PWD_COMMAND}`; export r; \
18747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18748 $(HOST_EXPORTS) \
18749 for flag in $(EXTRA_HOST_FLAGS) ; do \
18750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18751 done; \
18752 echo "Doing install-html in mpc" ; \
18753 (cd $(HOST_SUBDIR)/mpc && \
18754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18756 "RANLIB=$${RANLIB}" \
18757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18758 install-html) \
18759 || exit 1
18760
18761@endif mpc
18762
18763.PHONY: maybe-installcheck-mpc installcheck-mpc
18764maybe-installcheck-mpc:
18765@if mpc
18766maybe-installcheck-mpc: installcheck-mpc
18767
18768installcheck-mpc: \
18769 configure-mpc
18770 @[ -f ./mpc/Makefile ] || exit 0; \
18771 r=`${PWD_COMMAND}`; export r; \
18772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18773 $(HOST_EXPORTS) \
18774 for flag in $(EXTRA_HOST_FLAGS) ; do \
18775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18776 done; \
18777 echo "Doing installcheck in mpc" ; \
18778 (cd $(HOST_SUBDIR)/mpc && \
18779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18781 "RANLIB=$${RANLIB}" \
18782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18783 installcheck) \
18784 || exit 1
18785
18786@endif mpc
18787
18788.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
18789maybe-mostlyclean-mpc:
18790@if mpc
18791maybe-mostlyclean-mpc: mostlyclean-mpc
18792
18793mostlyclean-mpc:
18794 @[ -f ./mpc/Makefile ] || exit 0; \
18795 r=`${PWD_COMMAND}`; export r; \
18796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18797 $(HOST_EXPORTS) \
18798 for flag in $(EXTRA_HOST_FLAGS) ; do \
18799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18800 done; \
18801 echo "Doing mostlyclean in mpc" ; \
18802 (cd $(HOST_SUBDIR)/mpc && \
18803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18805 "RANLIB=$${RANLIB}" \
18806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18807 mostlyclean) \
18808 || exit 1
18809
18810@endif mpc
18811
18812.PHONY: maybe-clean-mpc clean-mpc
18813maybe-clean-mpc:
18814@if mpc
18815maybe-clean-mpc: clean-mpc
18816
18817clean-mpc:
18818 @[ -f ./mpc/Makefile ] || exit 0; \
18819 r=`${PWD_COMMAND}`; export r; \
18820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18821 $(HOST_EXPORTS) \
18822 for flag in $(EXTRA_HOST_FLAGS) ; do \
18823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18824 done; \
18825 echo "Doing clean in mpc" ; \
18826 (cd $(HOST_SUBDIR)/mpc && \
18827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18829 "RANLIB=$${RANLIB}" \
18830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18831 clean) \
18832 || exit 1
18833
18834@endif mpc
18835
18836.PHONY: maybe-distclean-mpc distclean-mpc
18837maybe-distclean-mpc:
18838@if mpc
18839maybe-distclean-mpc: distclean-mpc
18840
18841distclean-mpc:
18842 @[ -f ./mpc/Makefile ] || exit 0; \
18843 r=`${PWD_COMMAND}`; export r; \
18844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18845 $(HOST_EXPORTS) \
18846 for flag in $(EXTRA_HOST_FLAGS) ; do \
18847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18848 done; \
18849 echo "Doing distclean in mpc" ; \
18850 (cd $(HOST_SUBDIR)/mpc && \
18851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18853 "RANLIB=$${RANLIB}" \
18854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18855 distclean) \
18856 || exit 1
18857
18858@endif mpc
18859
18860.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
18861maybe-maintainer-clean-mpc:
18862@if mpc
18863maybe-maintainer-clean-mpc: maintainer-clean-mpc
18864
18865maintainer-clean-mpc:
18866 @[ -f ./mpc/Makefile ] || exit 0; \
18867 r=`${PWD_COMMAND}`; export r; \
18868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18869 $(HOST_EXPORTS) \
18870 for flag in $(EXTRA_HOST_FLAGS) ; do \
18871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18872 done; \
18873 echo "Doing maintainer-clean in mpc" ; \
18874 (cd $(HOST_SUBDIR)/mpc && \
18875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18877 "RANLIB=$${RANLIB}" \
18878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18879 maintainer-clean) \
18880 || exit 1
18881
18882@endif mpc
18883
18884
18885
311b6756
JM
18886.PHONY: configure-ppl maybe-configure-ppl
18887maybe-configure-ppl:
18888@if gcc-bootstrap
18889configure-ppl: stage_current
18890@endif gcc-bootstrap
18891@if ppl
18892maybe-configure-ppl: configure-ppl
18893configure-ppl:
18894 @r=`${PWD_COMMAND}`; export r; \
18895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18896 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18897 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
5074489a 18898 $(HOST_EXPORTS) \
311b6756
JM
18899 echo Configuring in $(HOST_SUBDIR)/ppl; \
18900 cd "$(HOST_SUBDIR)/ppl" || exit 1; \
18901 case $(srcdir) in \
18902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18903 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18905 esac; \
18906 srcdiroption="--srcdir=$${topdir}/ppl"; \
18907 libsrcdir="$$s/ppl"; \
18908 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
18909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18910 --target=${target_alias} $${srcdiroption} --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/ \
311b6756
JM
18911 || exit 1
18912@endif ppl
18913
18914
18915
18916.PHONY: configure-stage1-ppl maybe-configure-stage1-ppl
18917maybe-configure-stage1-ppl:
18918@if ppl-bootstrap
18919maybe-configure-stage1-ppl: configure-stage1-ppl
18920configure-stage1-ppl:
18921 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18922 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18923 @r=`${PWD_COMMAND}`; export r; \
18924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 18925 TFLAGS="$(STAGE1_TFLAGS)"; \
311b6756 18926 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
c91ae28f 18927 $(HOST_EXPORTS) \
311b6756 18928 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
18929 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18930 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
311b6756
JM
18931 echo Configuring stage 1 in $(HOST_SUBDIR)/ppl ; \
18932 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18933 cd $(HOST_SUBDIR)/ppl || exit 1; \
18934 case $(srcdir) in \
18935 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18936 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18937 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18938 esac; \
18939 srcdiroption="--srcdir=$${topdir}/ppl"; \
18940 libsrcdir="$$s/ppl"; \
18941 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
18942 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18943 --target=${target_alias} $${srcdiroption} \
c91ae28f
AO
18944 $(STAGE1_CONFIGURE_FLAGS) \
18945 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
18946@endif ppl-bootstrap
18947
18948.PHONY: configure-stage2-ppl maybe-configure-stage2-ppl
18949maybe-configure-stage2-ppl:
18950@if ppl-bootstrap
18951maybe-configure-stage2-ppl: configure-stage2-ppl
18952configure-stage2-ppl:
18953 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18954 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18955 @r=`${PWD_COMMAND}`; export r; \
18956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 18957 TFLAGS="$(STAGE2_TFLAGS)"; \
311b6756
JM
18958 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18959 $(HOST_EXPORTS) \
c91ae28f 18960 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 18961 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
18962 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18963 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
18964 echo Configuring stage 2 in $(HOST_SUBDIR)/ppl ; \
18965 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
18966 cd $(HOST_SUBDIR)/ppl || exit 1; \
18967 case $(srcdir) in \
18968 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18969 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
18970 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18971 esac; \
18972 srcdiroption="--srcdir=$${topdir}/ppl"; \
18973 libsrcdir="$$s/ppl"; \
18974 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
18975 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18976 --target=${target_alias} $${srcdiroption} \
311b6756 18977 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
18978 $(STAGE2_CONFIGURE_FLAGS) \
18979 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
18980@endif ppl-bootstrap
18981
18982.PHONY: configure-stage3-ppl maybe-configure-stage3-ppl
18983maybe-configure-stage3-ppl:
18984@if ppl-bootstrap
18985maybe-configure-stage3-ppl: configure-stage3-ppl
18986configure-stage3-ppl:
18987 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18988 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
18989 @r=`${PWD_COMMAND}`; export r; \
18990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 18991 TFLAGS="$(STAGE3_TFLAGS)"; \
311b6756
JM
18992 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
18993 $(HOST_EXPORTS) \
c91ae28f 18994 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 18995 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
18996 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18997 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
18998 echo Configuring stage 3 in $(HOST_SUBDIR)/ppl ; \
18999 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
19000 cd $(HOST_SUBDIR)/ppl || exit 1; \
19001 case $(srcdir) in \
19002 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19003 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
19004 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19005 esac; \
19006 srcdiroption="--srcdir=$${topdir}/ppl"; \
19007 libsrcdir="$$s/ppl"; \
19008 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19009 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19010 --target=${target_alias} $${srcdiroption} \
311b6756 19011 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
19012 $(STAGE3_CONFIGURE_FLAGS) \
19013 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
19014@endif ppl-bootstrap
19015
19016.PHONY: configure-stage4-ppl maybe-configure-stage4-ppl
19017maybe-configure-stage4-ppl:
19018@if ppl-bootstrap
19019maybe-configure-stage4-ppl: configure-stage4-ppl
19020configure-stage4-ppl:
19021 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19022 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
19023 @r=`${PWD_COMMAND}`; export r; \
19024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19025 TFLAGS="$(STAGE4_TFLAGS)"; \
311b6756
JM
19026 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
19027 $(HOST_EXPORTS) \
c91ae28f 19028 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756 19029 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
19030 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19031 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
19032 echo Configuring stage 4 in $(HOST_SUBDIR)/ppl ; \
19033 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
19034 cd $(HOST_SUBDIR)/ppl || exit 1; \
19035 case $(srcdir) in \
19036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19037 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
19038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19039 esac; \
19040 srcdiroption="--srcdir=$${topdir}/ppl"; \
19041 libsrcdir="$$s/ppl"; \
19042 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19043 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19044 --target=${target_alias} $${srcdiroption} \
311b6756 19045 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
19046 $(STAGE4_CONFIGURE_FLAGS) \
19047 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
19048@endif ppl-bootstrap
19049
19050.PHONY: configure-stageprofile-ppl maybe-configure-stageprofile-ppl
19051maybe-configure-stageprofile-ppl:
19052@if ppl-bootstrap
19053maybe-configure-stageprofile-ppl: configure-stageprofile-ppl
19054configure-stageprofile-ppl:
19055 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19056 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
19057 @r=`${PWD_COMMAND}`; export r; \
19058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19059 TFLAGS="$(STAGEprofile_TFLAGS)"; \
311b6756
JM
19060 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
19061 $(HOST_EXPORTS) \
c91ae28f
AO
19062 $(POSTSTAGE1_HOST_EXPORTS) \
19063 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
19064 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19065 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
19066 echo Configuring stage profile in $(HOST_SUBDIR)/ppl ; \
19067 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
19068 cd $(HOST_SUBDIR)/ppl || exit 1; \
19069 case $(srcdir) in \
19070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19071 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
19072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19073 esac; \
19074 srcdiroption="--srcdir=$${topdir}/ppl"; \
19075 libsrcdir="$$s/ppl"; \
19076 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19078 --target=${target_alias} $${srcdiroption} \
311b6756 19079 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
19080 $(STAGEprofile_CONFIGURE_FLAGS) \
19081 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
19082@endif ppl-bootstrap
19083
19084.PHONY: configure-stagefeedback-ppl maybe-configure-stagefeedback-ppl
19085maybe-configure-stagefeedback-ppl:
19086@if ppl-bootstrap
19087maybe-configure-stagefeedback-ppl: configure-stagefeedback-ppl
19088configure-stagefeedback-ppl:
19089 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19090 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl
19091 @r=`${PWD_COMMAND}`; export r; \
19092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19093 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
311b6756
JM
19094 test ! -f $(HOST_SUBDIR)/ppl/Makefile || exit 0; \
19095 $(HOST_EXPORTS) \
c91ae28f
AO
19096 $(POSTSTAGE1_HOST_EXPORTS) \
19097 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
19098 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19099 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
311b6756
JM
19100 echo Configuring stage feedback in $(HOST_SUBDIR)/ppl ; \
19101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ppl ; \
19102 cd $(HOST_SUBDIR)/ppl || exit 1; \
19103 case $(srcdir) in \
19104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19105 *) topdir=`echo $(HOST_SUBDIR)/ppl/ | \
19106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19107 esac; \
19108 srcdiroption="--srcdir=$${topdir}/ppl"; \
19109 libsrcdir="$$s/ppl"; \
19110 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19112 --target=${target_alias} $${srcdiroption} \
311b6756 19113 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f
AO
19114 $(STAGEfeedback_CONFIGURE_FLAGS) \
19115 --disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/
311b6756
JM
19116@endif ppl-bootstrap
19117
19118
19119
19120
19121
19122.PHONY: all-ppl maybe-all-ppl
19123maybe-all-ppl:
19124@if gcc-bootstrap
19125all-ppl: stage_current
19126@endif gcc-bootstrap
19127@if ppl
19128TARGET-ppl=all
19129maybe-all-ppl: all-ppl
19130all-ppl: configure-ppl
19131 @r=`${PWD_COMMAND}`; export r; \
19132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 19133 $(HOST_EXPORTS) \
311b6756
JM
19134 (cd $(HOST_SUBDIR)/ppl && \
19135 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
19136 $(TARGET-ppl))
19137@endif ppl
19138
19139
19140
19141.PHONY: all-stage1-ppl maybe-all-stage1-ppl
19142.PHONY: clean-stage1-ppl maybe-clean-stage1-ppl
19143maybe-all-stage1-ppl:
19144maybe-clean-stage1-ppl:
19145@if ppl-bootstrap
19146maybe-all-stage1-ppl: all-stage1-ppl
19147all-stage1: all-stage1-ppl
19148TARGET-stage1-ppl = $(TARGET-ppl)
19149all-stage1-ppl: configure-stage1-ppl
19150 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19151 @r=`${PWD_COMMAND}`; export r; \
19152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19153 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 19154 $(HOST_EXPORTS) \
311b6756
JM
19155 cd $(HOST_SUBDIR)/ppl && \
19156 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19157 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 19158 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
19159 LIBCFLAGS="$(LIBCFLAGS)" \
19160 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19161 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19162 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19163 $(EXTRA_HOST_FLAGS) \
19164 TFLAGS="$(STAGE1_TFLAGS)" \
311b6756
JM
19165 $(TARGET-stage1-ppl)
19166
19167maybe-clean-stage1-ppl: clean-stage1-ppl
19168clean-stage1: clean-stage1-ppl
19169clean-stage1-ppl:
19170 @if [ $(current_stage) = stage1 ]; then \
19171 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19172 else \
19173 [ -f $(HOST_SUBDIR)/stage1-ppl/Makefile ] || exit 0; \
19174 $(MAKE) stage1-start; \
19175 fi; \
19176 cd $(HOST_SUBDIR)/ppl && \
19177 $(MAKE) $(EXTRA_HOST_FLAGS) \
19178 clean
19179@endif ppl-bootstrap
19180
19181
19182.PHONY: all-stage2-ppl maybe-all-stage2-ppl
19183.PHONY: clean-stage2-ppl maybe-clean-stage2-ppl
19184maybe-all-stage2-ppl:
19185maybe-clean-stage2-ppl:
19186@if ppl-bootstrap
19187maybe-all-stage2-ppl: all-stage2-ppl
19188all-stage2: all-stage2-ppl
19189TARGET-stage2-ppl = $(TARGET-ppl)
19190all-stage2-ppl: configure-stage2-ppl
19191 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19192 @r=`${PWD_COMMAND}`; export r; \
19193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19194 TFLAGS="$(STAGE2_TFLAGS)"; \
311b6756 19195 $(HOST_EXPORTS) \
5074489a 19196 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
19197 cd $(HOST_SUBDIR)/ppl && \
19198 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19199 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 19200 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
19201 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19202 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19203 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19204 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19205 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19206 TFLAGS="$(STAGE2_TFLAGS)" \
311b6756
JM
19207 $(TARGET-stage2-ppl)
19208
19209maybe-clean-stage2-ppl: clean-stage2-ppl
19210clean-stage2: clean-stage2-ppl
19211clean-stage2-ppl:
19212 @if [ $(current_stage) = stage2 ]; then \
19213 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19214 else \
19215 [ -f $(HOST_SUBDIR)/stage2-ppl/Makefile ] || exit 0; \
19216 $(MAKE) stage2-start; \
19217 fi; \
19218 cd $(HOST_SUBDIR)/ppl && \
19219 $(MAKE) $(EXTRA_HOST_FLAGS) \
19220 $(POSTSTAGE1_FLAGS_TO_PASS) \
19221 clean
19222@endif ppl-bootstrap
19223
19224
311b6756
JM
19225.PHONY: all-stage3-ppl maybe-all-stage3-ppl
19226.PHONY: clean-stage3-ppl maybe-clean-stage3-ppl
19227maybe-all-stage3-ppl:
19228maybe-clean-stage3-ppl:
19229@if ppl-bootstrap
19230maybe-all-stage3-ppl: all-stage3-ppl
19231all-stage3: all-stage3-ppl
19232TARGET-stage3-ppl = $(TARGET-ppl)
19233all-stage3-ppl: configure-stage3-ppl
19234 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19235 @r=`${PWD_COMMAND}`; export r; \
19236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19237 TFLAGS="$(STAGE3_TFLAGS)"; \
311b6756 19238 $(HOST_EXPORTS) \
5074489a 19239 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
19240 cd $(HOST_SUBDIR)/ppl && \
19241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19242 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 19243 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
19244 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19245 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19246 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19247 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19248 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19249 TFLAGS="$(STAGE3_TFLAGS)" \
311b6756
JM
19250 $(TARGET-stage3-ppl)
19251
19252maybe-clean-stage3-ppl: clean-stage3-ppl
19253clean-stage3: clean-stage3-ppl
19254clean-stage3-ppl:
19255 @if [ $(current_stage) = stage3 ]; then \
19256 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19257 else \
19258 [ -f $(HOST_SUBDIR)/stage3-ppl/Makefile ] || exit 0; \
19259 $(MAKE) stage3-start; \
19260 fi; \
19261 cd $(HOST_SUBDIR)/ppl && \
19262 $(MAKE) $(EXTRA_HOST_FLAGS) \
19263 $(POSTSTAGE1_FLAGS_TO_PASS) \
19264 clean
19265@endif ppl-bootstrap
19266
19267
311b6756
JM
19268.PHONY: all-stage4-ppl maybe-all-stage4-ppl
19269.PHONY: clean-stage4-ppl maybe-clean-stage4-ppl
19270maybe-all-stage4-ppl:
19271maybe-clean-stage4-ppl:
19272@if ppl-bootstrap
19273maybe-all-stage4-ppl: all-stage4-ppl
19274all-stage4: all-stage4-ppl
19275TARGET-stage4-ppl = $(TARGET-ppl)
19276all-stage4-ppl: configure-stage4-ppl
19277 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19278 @r=`${PWD_COMMAND}`; export r; \
19279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19280 TFLAGS="$(STAGE4_TFLAGS)"; \
311b6756 19281 $(HOST_EXPORTS) \
5074489a 19282 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
19283 cd $(HOST_SUBDIR)/ppl && \
19284 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19285 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 19286 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
311b6756 19287 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
19288 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19289 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19290 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19291 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19292 TFLAGS="$(STAGE4_TFLAGS)" \
311b6756
JM
19293 $(TARGET-stage4-ppl)
19294
19295maybe-clean-stage4-ppl: clean-stage4-ppl
19296clean-stage4: clean-stage4-ppl
19297clean-stage4-ppl:
19298 @if [ $(current_stage) = stage4 ]; then \
19299 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19300 else \
19301 [ -f $(HOST_SUBDIR)/stage4-ppl/Makefile ] || exit 0; \
19302 $(MAKE) stage4-start; \
19303 fi; \
19304 cd $(HOST_SUBDIR)/ppl && \
19305 $(MAKE) $(EXTRA_HOST_FLAGS) \
19306 $(POSTSTAGE1_FLAGS_TO_PASS) \
19307 clean
19308@endif ppl-bootstrap
19309
19310
19311.PHONY: all-stageprofile-ppl maybe-all-stageprofile-ppl
19312.PHONY: clean-stageprofile-ppl maybe-clean-stageprofile-ppl
19313maybe-all-stageprofile-ppl:
19314maybe-clean-stageprofile-ppl:
19315@if ppl-bootstrap
19316maybe-all-stageprofile-ppl: all-stageprofile-ppl
19317all-stageprofile: all-stageprofile-ppl
19318TARGET-stageprofile-ppl = $(TARGET-ppl)
19319all-stageprofile-ppl: configure-stageprofile-ppl
19320 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19321 @r=`${PWD_COMMAND}`; export r; \
19322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19323 TFLAGS="$(STAGEprofile_TFLAGS)"; \
311b6756 19324 $(HOST_EXPORTS) \
5074489a 19325 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
19326 cd $(HOST_SUBDIR)/ppl && \
19327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19328 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 19329 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
19330 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19335 TFLAGS="$(STAGEprofile_TFLAGS)" \
311b6756
JM
19336 $(TARGET-stageprofile-ppl)
19337
19338maybe-clean-stageprofile-ppl: clean-stageprofile-ppl
19339clean-stageprofile: clean-stageprofile-ppl
19340clean-stageprofile-ppl:
19341 @if [ $(current_stage) = stageprofile ]; then \
19342 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19343 else \
19344 [ -f $(HOST_SUBDIR)/stageprofile-ppl/Makefile ] || exit 0; \
19345 $(MAKE) stageprofile-start; \
19346 fi; \
19347 cd $(HOST_SUBDIR)/ppl && \
19348 $(MAKE) $(EXTRA_HOST_FLAGS) \
19349 $(POSTSTAGE1_FLAGS_TO_PASS) \
19350 clean
19351@endif ppl-bootstrap
19352
19353
19354.PHONY: all-stagefeedback-ppl maybe-all-stagefeedback-ppl
19355.PHONY: clean-stagefeedback-ppl maybe-clean-stagefeedback-ppl
19356maybe-all-stagefeedback-ppl:
19357maybe-clean-stagefeedback-ppl:
19358@if ppl-bootstrap
19359maybe-all-stagefeedback-ppl: all-stagefeedback-ppl
19360all-stagefeedback: all-stagefeedback-ppl
19361TARGET-stagefeedback-ppl = $(TARGET-ppl)
19362all-stagefeedback-ppl: configure-stagefeedback-ppl
19363 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19364 @r=`${PWD_COMMAND}`; export r; \
19365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19366 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
311b6756 19367 $(HOST_EXPORTS) \
5074489a 19368 $(POSTSTAGE1_HOST_EXPORTS) \
311b6756
JM
19369 cd $(HOST_SUBDIR)/ppl && \
19370 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 19371 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 19372 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
19373 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19374 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19375 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19376 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19377 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19378 TFLAGS="$(STAGEfeedback_TFLAGS)" \
311b6756
JM
19379 $(TARGET-stagefeedback-ppl)
19380
19381maybe-clean-stagefeedback-ppl: clean-stagefeedback-ppl
19382clean-stagefeedback: clean-stagefeedback-ppl
19383clean-stagefeedback-ppl:
19384 @if [ $(current_stage) = stagefeedback ]; then \
19385 [ -f $(HOST_SUBDIR)/ppl/Makefile ] || exit 0; \
19386 else \
19387 [ -f $(HOST_SUBDIR)/stagefeedback-ppl/Makefile ] || exit 0; \
19388 $(MAKE) stagefeedback-start; \
19389 fi; \
19390 cd $(HOST_SUBDIR)/ppl && \
19391 $(MAKE) $(EXTRA_HOST_FLAGS) \
19392 $(POSTSTAGE1_FLAGS_TO_PASS) \
19393 clean
19394@endif ppl-bootstrap
19395
19396
19397
19398
19399
19400.PHONY: check-ppl maybe-check-ppl
19401maybe-check-ppl:
19402@if ppl
19403maybe-check-ppl: check-ppl
19404
19405check-ppl:
19406 @: $(MAKE); $(unstage)
19407 @r=`${PWD_COMMAND}`; export r; \
19408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19409 $(HOST_EXPORTS) \
19410 (cd $(HOST_SUBDIR)/ppl && \
19411 $(MAKE) $(FLAGS_TO_PASS) check)
19412
19413@endif ppl
19414
19415.PHONY: install-ppl maybe-install-ppl
19416maybe-install-ppl:
19417@if ppl
19418maybe-install-ppl: install-ppl
19419
19420install-ppl:
19421
19422@endif ppl
19423
19424# Other targets (info, dvi, pdf, etc.)
19425
19426.PHONY: maybe-info-ppl info-ppl
19427maybe-info-ppl:
19428@if ppl
19429maybe-info-ppl: info-ppl
19430
19431info-ppl: \
19432 configure-ppl
19433 @[ -f ./ppl/Makefile ] || exit 0; \
19434 r=`${PWD_COMMAND}`; export r; \
19435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19436 $(HOST_EXPORTS) \
19437 for flag in $(EXTRA_HOST_FLAGS) ; do \
19438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19439 done; \
19440 echo "Doing info in ppl" ; \
19441 (cd $(HOST_SUBDIR)/ppl && \
19442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19444 "RANLIB=$${RANLIB}" \
19445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19446 info) \
19447 || exit 1
19448
19449@endif ppl
19450
19451.PHONY: maybe-dvi-ppl dvi-ppl
19452maybe-dvi-ppl:
19453@if ppl
19454maybe-dvi-ppl: dvi-ppl
19455
19456dvi-ppl: \
19457 configure-ppl
19458 @[ -f ./ppl/Makefile ] || exit 0; \
19459 r=`${PWD_COMMAND}`; export r; \
19460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19461 $(HOST_EXPORTS) \
19462 for flag in $(EXTRA_HOST_FLAGS) ; do \
19463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19464 done; \
19465 echo "Doing dvi in ppl" ; \
19466 (cd $(HOST_SUBDIR)/ppl && \
19467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19469 "RANLIB=$${RANLIB}" \
19470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19471 dvi) \
19472 || exit 1
19473
19474@endif ppl
19475
19476.PHONY: maybe-pdf-ppl pdf-ppl
19477maybe-pdf-ppl:
19478@if ppl
19479maybe-pdf-ppl: pdf-ppl
19480
19481pdf-ppl: \
19482 configure-ppl
19483 @[ -f ./ppl/Makefile ] || exit 0; \
19484 r=`${PWD_COMMAND}`; export r; \
19485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19486 $(HOST_EXPORTS) \
19487 for flag in $(EXTRA_HOST_FLAGS) ; do \
19488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19489 done; \
19490 echo "Doing pdf in ppl" ; \
19491 (cd $(HOST_SUBDIR)/ppl && \
19492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19494 "RANLIB=$${RANLIB}" \
19495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19496 pdf) \
19497 || exit 1
19498
19499@endif ppl
19500
19501.PHONY: maybe-html-ppl html-ppl
19502maybe-html-ppl:
19503@if ppl
19504maybe-html-ppl: html-ppl
19505
19506html-ppl: \
19507 configure-ppl
19508 @[ -f ./ppl/Makefile ] || exit 0; \
19509 r=`${PWD_COMMAND}`; export r; \
19510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19511 $(HOST_EXPORTS) \
19512 for flag in $(EXTRA_HOST_FLAGS) ; do \
19513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19514 done; \
19515 echo "Doing html in ppl" ; \
19516 (cd $(HOST_SUBDIR)/ppl && \
19517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19519 "RANLIB=$${RANLIB}" \
19520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19521 html) \
19522 || exit 1
19523
19524@endif ppl
19525
19526.PHONY: maybe-TAGS-ppl TAGS-ppl
19527maybe-TAGS-ppl:
19528@if ppl
19529maybe-TAGS-ppl: TAGS-ppl
19530
19531TAGS-ppl: \
19532 configure-ppl
19533 @[ -f ./ppl/Makefile ] || exit 0; \
19534 r=`${PWD_COMMAND}`; export r; \
19535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19536 $(HOST_EXPORTS) \
19537 for flag in $(EXTRA_HOST_FLAGS) ; do \
19538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19539 done; \
19540 echo "Doing TAGS in ppl" ; \
19541 (cd $(HOST_SUBDIR)/ppl && \
19542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19544 "RANLIB=$${RANLIB}" \
19545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19546 TAGS) \
19547 || exit 1
19548
19549@endif ppl
19550
19551.PHONY: maybe-install-info-ppl install-info-ppl
19552maybe-install-info-ppl:
19553@if ppl
19554maybe-install-info-ppl: install-info-ppl
19555
19556install-info-ppl: \
19557 configure-ppl \
19558 info-ppl
19559 @[ -f ./ppl/Makefile ] || exit 0; \
19560 r=`${PWD_COMMAND}`; export r; \
19561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19562 $(HOST_EXPORTS) \
19563 for flag in $(EXTRA_HOST_FLAGS) ; do \
19564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19565 done; \
19566 echo "Doing install-info in ppl" ; \
19567 (cd $(HOST_SUBDIR)/ppl && \
19568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19570 "RANLIB=$${RANLIB}" \
19571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19572 install-info) \
19573 || exit 1
19574
19575@endif ppl
19576
19577.PHONY: maybe-install-pdf-ppl install-pdf-ppl
19578maybe-install-pdf-ppl:
19579@if ppl
19580maybe-install-pdf-ppl: install-pdf-ppl
19581
19582install-pdf-ppl: \
19583 configure-ppl \
19584 pdf-ppl
19585 @[ -f ./ppl/Makefile ] || exit 0; \
19586 r=`${PWD_COMMAND}`; export r; \
19587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19588 $(HOST_EXPORTS) \
19589 for flag in $(EXTRA_HOST_FLAGS) ; do \
19590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19591 done; \
19592 echo "Doing install-pdf in ppl" ; \
19593 (cd $(HOST_SUBDIR)/ppl && \
19594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19596 "RANLIB=$${RANLIB}" \
19597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19598 install-pdf) \
19599 || exit 1
19600
19601@endif ppl
19602
19603.PHONY: maybe-install-html-ppl install-html-ppl
19604maybe-install-html-ppl:
19605@if ppl
19606maybe-install-html-ppl: install-html-ppl
19607
19608install-html-ppl: \
19609 configure-ppl \
19610 html-ppl
19611 @[ -f ./ppl/Makefile ] || exit 0; \
19612 r=`${PWD_COMMAND}`; export r; \
19613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19614 $(HOST_EXPORTS) \
19615 for flag in $(EXTRA_HOST_FLAGS) ; do \
19616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19617 done; \
19618 echo "Doing install-html in ppl" ; \
19619 (cd $(HOST_SUBDIR)/ppl && \
19620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19622 "RANLIB=$${RANLIB}" \
19623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19624 install-html) \
19625 || exit 1
19626
19627@endif ppl
19628
19629.PHONY: maybe-installcheck-ppl installcheck-ppl
19630maybe-installcheck-ppl:
19631@if ppl
19632maybe-installcheck-ppl: installcheck-ppl
19633
19634installcheck-ppl: \
19635 configure-ppl
19636 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
19637 r=`${PWD_COMMAND}`; export r; \
19638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19639 $(HOST_EXPORTS) \
19640 for flag in $(EXTRA_HOST_FLAGS) ; do \
19641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19642 done; \
311b6756
JM
19643 echo "Doing installcheck in ppl" ; \
19644 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
19645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19647 "RANLIB=$${RANLIB}" \
bffcbe34 19648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19649 installcheck) \
19650 || exit 1
19651
311b6756 19652@endif ppl
42f55f77 19653
311b6756
JM
19654.PHONY: maybe-mostlyclean-ppl mostlyclean-ppl
19655maybe-mostlyclean-ppl:
19656@if ppl
19657maybe-mostlyclean-ppl: mostlyclean-ppl
42f55f77 19658
311b6756
JM
19659mostlyclean-ppl:
19660 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
19661 r=`${PWD_COMMAND}`; export r; \
19662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19663 $(HOST_EXPORTS) \
19664 for flag in $(EXTRA_HOST_FLAGS) ; do \
19665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19666 done; \
311b6756
JM
19667 echo "Doing mostlyclean in ppl" ; \
19668 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
19669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19671 "RANLIB=$${RANLIB}" \
bffcbe34 19672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19673 mostlyclean) \
19674 || exit 1
19675
311b6756 19676@endif ppl
42f55f77 19677
311b6756
JM
19678.PHONY: maybe-clean-ppl clean-ppl
19679maybe-clean-ppl:
19680@if ppl
19681maybe-clean-ppl: clean-ppl
42f55f77 19682
311b6756
JM
19683clean-ppl:
19684 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
19685 r=`${PWD_COMMAND}`; export r; \
19686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19687 $(HOST_EXPORTS) \
19688 for flag in $(EXTRA_HOST_FLAGS) ; do \
19689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19690 done; \
311b6756
JM
19691 echo "Doing clean in ppl" ; \
19692 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
19693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19695 "RANLIB=$${RANLIB}" \
bffcbe34 19696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19697 clean) \
19698 || exit 1
19699
311b6756 19700@endif ppl
42f55f77 19701
311b6756
JM
19702.PHONY: maybe-distclean-ppl distclean-ppl
19703maybe-distclean-ppl:
19704@if ppl
19705maybe-distclean-ppl: distclean-ppl
42f55f77 19706
311b6756
JM
19707distclean-ppl:
19708 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
19709 r=`${PWD_COMMAND}`; export r; \
19710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19711 $(HOST_EXPORTS) \
19712 for flag in $(EXTRA_HOST_FLAGS) ; do \
19713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19714 done; \
311b6756
JM
19715 echo "Doing distclean in ppl" ; \
19716 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
19717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19719 "RANLIB=$${RANLIB}" \
bffcbe34 19720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19721 distclean) \
19722 || exit 1
19723
311b6756 19724@endif ppl
42f55f77 19725
311b6756
JM
19726.PHONY: maybe-maintainer-clean-ppl maintainer-clean-ppl
19727maybe-maintainer-clean-ppl:
19728@if ppl
19729maybe-maintainer-clean-ppl: maintainer-clean-ppl
42f55f77 19730
311b6756
JM
19731maintainer-clean-ppl:
19732 @[ -f ./ppl/Makefile ] || exit 0; \
42f55f77
PB
19733 r=`${PWD_COMMAND}`; export r; \
19734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19735 $(HOST_EXPORTS) \
19736 for flag in $(EXTRA_HOST_FLAGS) ; do \
19737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19738 done; \
311b6756
JM
19739 echo "Doing maintainer-clean in ppl" ; \
19740 (cd $(HOST_SUBDIR)/ppl && \
42f55f77
PB
19741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19743 "RANLIB=$${RANLIB}" \
bffcbe34 19744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
19745 maintainer-clean) \
19746 || exit 1
19747
311b6756 19748@endif ppl
42f55f77
PB
19749
19750
19751
311b6756
JM
19752.PHONY: configure-cloog maybe-configure-cloog
19753maybe-configure-cloog:
42f55f77 19754@if gcc-bootstrap
311b6756 19755configure-cloog: stage_current
42f55f77 19756@endif gcc-bootstrap
311b6756
JM
19757@if cloog
19758maybe-configure-cloog: configure-cloog
19759configure-cloog:
42f55f77
PB
19760 @r=`${PWD_COMMAND}`; export r; \
19761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
311b6756
JM
19762 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
19763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
5074489a 19764 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19765 echo Configuring in $(HOST_SUBDIR)/cloog; \
19766 cd "$(HOST_SUBDIR)/cloog" || exit 1; \
42f55f77
PB
19767 case $(srcdir) in \
19768 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19769 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19770 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19771 esac; \
311b6756
JM
19772 srcdiroption="--srcdir=$${topdir}/cloog"; \
19773 libsrcdir="$$s/cloog"; \
42f55f77 19774 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19775 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19776 --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 \
42f55f77 19777 || exit 1
311b6756 19778@endif cloog
42f55f77
PB
19779
19780
19781
311b6756
JM
19782.PHONY: configure-stage1-cloog maybe-configure-stage1-cloog
19783maybe-configure-stage1-cloog:
19784@if cloog-bootstrap
19785maybe-configure-stage1-cloog: configure-stage1-cloog
19786configure-stage1-cloog:
42f55f77 19787 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
311b6756 19788 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19789 @r=`${PWD_COMMAND}`; export r; \
19790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19791 TFLAGS="$(STAGE1_TFLAGS)"; \
311b6756 19792 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
c91ae28f 19793 $(HOST_EXPORTS) \
2ba09444 19794 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
19795 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19796 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19797 echo Configuring stage 1 in $(HOST_SUBDIR)/cloog ; \
19798 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19799 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19800 case $(srcdir) in \
19801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19802 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19804 esac; \
311b6756
JM
19805 srcdiroption="--srcdir=$${topdir}/cloog"; \
19806 libsrcdir="$$s/cloog"; \
42f55f77 19807 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19808 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19809 --target=${target_alias} $${srcdiroption} \
c91ae28f 19810 $(STAGE1_CONFIGURE_FLAGS) \
5074489a 19811 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756
JM
19812@endif cloog-bootstrap
19813
19814.PHONY: configure-stage2-cloog maybe-configure-stage2-cloog
19815maybe-configure-stage2-cloog:
19816@if cloog-bootstrap
19817maybe-configure-stage2-cloog: configure-stage2-cloog
19818configure-stage2-cloog:
42f55f77 19819 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
311b6756 19820 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19821 @r=`${PWD_COMMAND}`; export r; \
19822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19823 TFLAGS="$(STAGE2_TFLAGS)"; \
311b6756 19824 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19825 $(HOST_EXPORTS) \
c91ae28f 19826 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19827 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
19828 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19829 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19830 echo Configuring stage 2 in $(HOST_SUBDIR)/cloog ; \
19831 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19832 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19833 case $(srcdir) in \
19834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19835 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19837 esac; \
311b6756
JM
19838 srcdiroption="--srcdir=$${topdir}/cloog"; \
19839 libsrcdir="$$s/cloog"; \
42f55f77 19840 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19841 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19842 --target=${target_alias} $${srcdiroption} \
42f55f77 19843 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 19844 $(STAGE2_CONFIGURE_FLAGS) \
5074489a 19845 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756
JM
19846@endif cloog-bootstrap
19847
19848.PHONY: configure-stage3-cloog maybe-configure-stage3-cloog
19849maybe-configure-stage3-cloog:
19850@if cloog-bootstrap
19851maybe-configure-stage3-cloog: configure-stage3-cloog
19852configure-stage3-cloog:
42f55f77 19853 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
311b6756 19854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19855 @r=`${PWD_COMMAND}`; export r; \
19856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19857 TFLAGS="$(STAGE3_TFLAGS)"; \
311b6756 19858 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19859 $(HOST_EXPORTS) \
c91ae28f 19860 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19861 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
19862 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19863 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19864 echo Configuring stage 3 in $(HOST_SUBDIR)/cloog ; \
19865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19866 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19867 case $(srcdir) in \
19868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19869 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19871 esac; \
311b6756
JM
19872 srcdiroption="--srcdir=$${topdir}/cloog"; \
19873 libsrcdir="$$s/cloog"; \
42f55f77 19874 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19876 --target=${target_alias} $${srcdiroption} \
42f55f77 19877 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 19878 $(STAGE3_CONFIGURE_FLAGS) \
5074489a 19879 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756
JM
19880@endif cloog-bootstrap
19881
19882.PHONY: configure-stage4-cloog maybe-configure-stage4-cloog
19883maybe-configure-stage4-cloog:
19884@if cloog-bootstrap
19885maybe-configure-stage4-cloog: configure-stage4-cloog
19886configure-stage4-cloog:
42f55f77 19887 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
311b6756 19888 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19889 @r=`${PWD_COMMAND}`; export r; \
19890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19891 TFLAGS="$(STAGE4_TFLAGS)"; \
311b6756 19892 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19893 $(HOST_EXPORTS) \
c91ae28f 19894 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 19895 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
19896 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19897 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19898 echo Configuring stage 4 in $(HOST_SUBDIR)/cloog ; \
19899 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19900 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19901 case $(srcdir) in \
19902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19903 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19905 esac; \
311b6756
JM
19906 srcdiroption="--srcdir=$${topdir}/cloog"; \
19907 libsrcdir="$$s/cloog"; \
42f55f77 19908 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19910 --target=${target_alias} $${srcdiroption} \
42f55f77 19911 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 19912 $(STAGE4_CONFIGURE_FLAGS) \
5074489a 19913 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756
JM
19914@endif cloog-bootstrap
19915
19916.PHONY: configure-stageprofile-cloog maybe-configure-stageprofile-cloog
19917maybe-configure-stageprofile-cloog:
19918@if cloog-bootstrap
19919maybe-configure-stageprofile-cloog: configure-stageprofile-cloog
19920configure-stageprofile-cloog:
42f55f77 19921 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
311b6756 19922 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19923 @r=`${PWD_COMMAND}`; export r; \
19924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19925 TFLAGS="$(STAGEprofile_TFLAGS)"; \
311b6756 19926 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19927 $(HOST_EXPORTS) \
c91ae28f
AO
19928 $(POSTSTAGE1_HOST_EXPORTS) \
19929 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
19930 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19931 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19932 echo Configuring stage profile in $(HOST_SUBDIR)/cloog ; \
19933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19934 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19935 case $(srcdir) in \
19936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19937 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19939 esac; \
311b6756
JM
19940 srcdiroption="--srcdir=$${topdir}/cloog"; \
19941 libsrcdir="$$s/cloog"; \
42f55f77 19942 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19943 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19944 --target=${target_alias} $${srcdiroption} \
42f55f77 19945 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 19946 $(STAGEprofile_CONFIGURE_FLAGS) \
5074489a 19947 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756
JM
19948@endif cloog-bootstrap
19949
19950.PHONY: configure-stagefeedback-cloog maybe-configure-stagefeedback-cloog
19951maybe-configure-stagefeedback-cloog:
19952@if cloog-bootstrap
19953maybe-configure-stagefeedback-cloog: configure-stagefeedback-cloog
19954configure-stagefeedback-cloog:
42f55f77 19955 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
311b6756 19956 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
42f55f77
PB
19957 @r=`${PWD_COMMAND}`; export r; \
19958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 19959 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
311b6756 19960 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
42f55f77 19961 $(HOST_EXPORTS) \
c91ae28f
AO
19962 $(POSTSTAGE1_HOST_EXPORTS) \
19963 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
19964 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19965 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756
JM
19966 echo Configuring stage feedback in $(HOST_SUBDIR)/cloog ; \
19967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
19968 cd $(HOST_SUBDIR)/cloog || exit 1; \
42f55f77
PB
19969 case $(srcdir) in \
19970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
311b6756 19971 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
42f55f77
PB
19972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19973 esac; \
311b6756
JM
19974 srcdiroption="--srcdir=$${topdir}/cloog"; \
19975 libsrcdir="$$s/cloog"; \
42f55f77 19976 $(SHELL) $${libsrcdir}/configure \
5074489a
AO
19977 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19978 --target=${target_alias} $${srcdiroption} \
42f55f77 19979 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 19980 $(STAGEfeedback_CONFIGURE_FLAGS) \
5074489a 19981 --disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl
311b6756 19982@endif cloog-bootstrap
42f55f77
PB
19983
19984
19985
19986
19987
311b6756
JM
19988.PHONY: all-cloog maybe-all-cloog
19989maybe-all-cloog:
42f55f77 19990@if gcc-bootstrap
311b6756 19991all-cloog: stage_current
42f55f77 19992@endif gcc-bootstrap
311b6756
JM
19993@if cloog
19994TARGET-cloog=all
19995maybe-all-cloog: all-cloog
19996all-cloog: configure-cloog
42f55f77
PB
19997 @r=`${PWD_COMMAND}`; export r; \
19998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 19999 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20000 (cd $(HOST_SUBDIR)/cloog && \
5074489a 20001 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
311b6756
JM
20002 $(TARGET-cloog))
20003@endif cloog
42f55f77
PB
20004
20005
20006
311b6756
JM
20007.PHONY: all-stage1-cloog maybe-all-stage1-cloog
20008.PHONY: clean-stage1-cloog maybe-clean-stage1-cloog
20009maybe-all-stage1-cloog:
20010maybe-clean-stage1-cloog:
20011@if cloog-bootstrap
20012maybe-all-stage1-cloog: all-stage1-cloog
20013all-stage1: all-stage1-cloog
20014TARGET-stage1-cloog = $(TARGET-cloog)
20015all-stage1-cloog: configure-stage1-cloog
42f55f77
PB
20016 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20017 @r=`${PWD_COMMAND}`; export r; \
20018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20019 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 20020 $(HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20021 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20022 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20023 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 20024 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
20025 LIBCFLAGS="$(LIBCFLAGS)" \
20026 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20027 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20028 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20029 $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20030 TFLAGS="$(STAGE1_TFLAGS)" \
311b6756 20031 $(TARGET-stage1-cloog)
42f55f77 20032
311b6756
JM
20033maybe-clean-stage1-cloog: clean-stage1-cloog
20034clean-stage1: clean-stage1-cloog
20035clean-stage1-cloog:
42f55f77 20036 @if [ $(current_stage) = stage1 ]; then \
311b6756 20037 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20038 else \
311b6756 20039 [ -f $(HOST_SUBDIR)/stage1-cloog/Makefile ] || exit 0; \
42f55f77
PB
20040 $(MAKE) stage1-start; \
20041 fi; \
311b6756 20042 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20043 $(MAKE) $(EXTRA_HOST_FLAGS) \
5074489a 20044 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756
JM
20045@endif cloog-bootstrap
20046
20047
20048.PHONY: all-stage2-cloog maybe-all-stage2-cloog
20049.PHONY: clean-stage2-cloog maybe-clean-stage2-cloog
20050maybe-all-stage2-cloog:
20051maybe-clean-stage2-cloog:
20052@if cloog-bootstrap
20053maybe-all-stage2-cloog: all-stage2-cloog
20054all-stage2: all-stage2-cloog
20055TARGET-stage2-cloog = $(TARGET-cloog)
20056all-stage2-cloog: configure-stage2-cloog
42f55f77
PB
20057 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20058 @r=`${PWD_COMMAND}`; export r; \
20059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20060 TFLAGS="$(STAGE2_TFLAGS)"; \
42f55f77 20061 $(HOST_EXPORTS) \
5074489a 20062 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20063 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20064 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20065 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 20066 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
20067 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20068 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20069 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20070 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20071 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20072 TFLAGS="$(STAGE2_TFLAGS)" \
311b6756 20073 $(TARGET-stage2-cloog)
42f55f77 20074
311b6756
JM
20075maybe-clean-stage2-cloog: clean-stage2-cloog
20076clean-stage2: clean-stage2-cloog
20077clean-stage2-cloog:
42f55f77 20078 @if [ $(current_stage) = stage2 ]; then \
311b6756 20079 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20080 else \
311b6756 20081 [ -f $(HOST_SUBDIR)/stage2-cloog/Makefile ] || exit 0; \
42f55f77
PB
20082 $(MAKE) stage2-start; \
20083 fi; \
311b6756 20084 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20085 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 20086 $(POSTSTAGE1_FLAGS_TO_PASS) \
5074489a 20087 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756
JM
20088@endif cloog-bootstrap
20089
20090
311b6756
JM
20091.PHONY: all-stage3-cloog maybe-all-stage3-cloog
20092.PHONY: clean-stage3-cloog maybe-clean-stage3-cloog
20093maybe-all-stage3-cloog:
20094maybe-clean-stage3-cloog:
20095@if cloog-bootstrap
20096maybe-all-stage3-cloog: all-stage3-cloog
20097all-stage3: all-stage3-cloog
20098TARGET-stage3-cloog = $(TARGET-cloog)
20099all-stage3-cloog: configure-stage3-cloog
42f55f77
PB
20100 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20101 @r=`${PWD_COMMAND}`; export r; \
20102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20103 TFLAGS="$(STAGE3_TFLAGS)"; \
42f55f77 20104 $(HOST_EXPORTS) \
5074489a 20105 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20106 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20107 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20108 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 20109 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
20110 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20111 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20112 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20113 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20114 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20115 TFLAGS="$(STAGE3_TFLAGS)" \
311b6756 20116 $(TARGET-stage3-cloog)
42f55f77 20117
311b6756
JM
20118maybe-clean-stage3-cloog: clean-stage3-cloog
20119clean-stage3: clean-stage3-cloog
20120clean-stage3-cloog:
42f55f77 20121 @if [ $(current_stage) = stage3 ]; then \
311b6756 20122 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20123 else \
311b6756 20124 [ -f $(HOST_SUBDIR)/stage3-cloog/Makefile ] || exit 0; \
42f55f77
PB
20125 $(MAKE) stage3-start; \
20126 fi; \
311b6756 20127 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20128 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 20129 $(POSTSTAGE1_FLAGS_TO_PASS) \
5074489a 20130 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756
JM
20131@endif cloog-bootstrap
20132
20133
311b6756
JM
20134.PHONY: all-stage4-cloog maybe-all-stage4-cloog
20135.PHONY: clean-stage4-cloog maybe-clean-stage4-cloog
20136maybe-all-stage4-cloog:
20137maybe-clean-stage4-cloog:
20138@if cloog-bootstrap
20139maybe-all-stage4-cloog: all-stage4-cloog
20140all-stage4: all-stage4-cloog
20141TARGET-stage4-cloog = $(TARGET-cloog)
20142all-stage4-cloog: configure-stage4-cloog
42f55f77
PB
20143 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20144 @r=`${PWD_COMMAND}`; export r; \
20145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20146 TFLAGS="$(STAGE4_TFLAGS)"; \
42f55f77 20147 $(HOST_EXPORTS) \
5074489a 20148 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20149 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20150 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20151 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 20152 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 20153 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
20154 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20155 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20156 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20157 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20158 TFLAGS="$(STAGE4_TFLAGS)" \
311b6756 20159 $(TARGET-stage4-cloog)
42f55f77 20160
311b6756
JM
20161maybe-clean-stage4-cloog: clean-stage4-cloog
20162clean-stage4: clean-stage4-cloog
20163clean-stage4-cloog:
42f55f77 20164 @if [ $(current_stage) = stage4 ]; then \
311b6756 20165 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20166 else \
311b6756 20167 [ -f $(HOST_SUBDIR)/stage4-cloog/Makefile ] || exit 0; \
42f55f77
PB
20168 $(MAKE) stage4-start; \
20169 fi; \
311b6756 20170 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20171 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 20172 $(POSTSTAGE1_FLAGS_TO_PASS) \
5074489a 20173 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756
JM
20174@endif cloog-bootstrap
20175
20176
20177.PHONY: all-stageprofile-cloog maybe-all-stageprofile-cloog
20178.PHONY: clean-stageprofile-cloog maybe-clean-stageprofile-cloog
20179maybe-all-stageprofile-cloog:
20180maybe-clean-stageprofile-cloog:
20181@if cloog-bootstrap
20182maybe-all-stageprofile-cloog: all-stageprofile-cloog
20183all-stageprofile: all-stageprofile-cloog
20184TARGET-stageprofile-cloog = $(TARGET-cloog)
20185all-stageprofile-cloog: configure-stageprofile-cloog
42f55f77
PB
20186 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20187 @r=`${PWD_COMMAND}`; export r; \
20188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20189 TFLAGS="$(STAGEprofile_TFLAGS)"; \
42f55f77 20190 $(HOST_EXPORTS) \
5074489a 20191 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20192 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20193 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20194 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 20195 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
20196 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20197 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20198 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20199 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20200 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20201 TFLAGS="$(STAGEprofile_TFLAGS)" \
311b6756 20202 $(TARGET-stageprofile-cloog)
42f55f77 20203
311b6756
JM
20204maybe-clean-stageprofile-cloog: clean-stageprofile-cloog
20205clean-stageprofile: clean-stageprofile-cloog
20206clean-stageprofile-cloog:
42f55f77 20207 @if [ $(current_stage) = stageprofile ]; then \
311b6756 20208 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20209 else \
311b6756 20210 [ -f $(HOST_SUBDIR)/stageprofile-cloog/Makefile ] || exit 0; \
42f55f77
PB
20211 $(MAKE) stageprofile-start; \
20212 fi; \
311b6756 20213 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20214 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 20215 $(POSTSTAGE1_FLAGS_TO_PASS) \
5074489a 20216 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756
JM
20217@endif cloog-bootstrap
20218
20219
20220.PHONY: all-stagefeedback-cloog maybe-all-stagefeedback-cloog
20221.PHONY: clean-stagefeedback-cloog maybe-clean-stagefeedback-cloog
20222maybe-all-stagefeedback-cloog:
20223maybe-clean-stagefeedback-cloog:
20224@if cloog-bootstrap
20225maybe-all-stagefeedback-cloog: all-stagefeedback-cloog
20226all-stagefeedback: all-stagefeedback-cloog
20227TARGET-stagefeedback-cloog = $(TARGET-cloog)
20228all-stagefeedback-cloog: configure-stagefeedback-cloog
42f55f77
PB
20229 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20230 @r=`${PWD_COMMAND}`; export r; \
20231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 20232 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
42f55f77 20233 $(HOST_EXPORTS) \
5074489a 20234 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; \
311b6756 20235 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20236 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 20237 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 20238 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
20239 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20240 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20241 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20242 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5074489a 20243 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" \
c91ae28f 20244 TFLAGS="$(STAGEfeedback_TFLAGS)" \
311b6756 20245 $(TARGET-stagefeedback-cloog)
42f55f77 20246
311b6756
JM
20247maybe-clean-stagefeedback-cloog: clean-stagefeedback-cloog
20248clean-stagefeedback: clean-stagefeedback-cloog
20249clean-stagefeedback-cloog:
42f55f77 20250 @if [ $(current_stage) = stagefeedback ]; then \
311b6756 20251 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
42f55f77 20252 else \
311b6756 20253 [ -f $(HOST_SUBDIR)/stagefeedback-cloog/Makefile ] || exit 0; \
42f55f77
PB
20254 $(MAKE) stagefeedback-start; \
20255 fi; \
311b6756 20256 cd $(HOST_SUBDIR)/cloog && \
6532abb6 20257 $(MAKE) $(EXTRA_HOST_FLAGS) \
42f55f77 20258 $(POSTSTAGE1_FLAGS_TO_PASS) \
5074489a 20259 CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" clean
311b6756 20260@endif cloog-bootstrap
42f55f77
PB
20261
20262
20263
20264
20265
311b6756
JM
20266.PHONY: check-cloog maybe-check-cloog
20267maybe-check-cloog:
20268@if cloog
20269maybe-check-cloog: check-cloog
42f55f77 20270
311b6756 20271check-cloog:
42f55f77
PB
20272 @: $(MAKE); $(unstage)
20273 @r=`${PWD_COMMAND}`; export r; \
20274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20275 $(HOST_EXPORTS) \
311b6756 20276 (cd $(HOST_SUBDIR)/cloog && \
5074489a 20277 $(MAKE) $(FLAGS_TO_PASS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS" check)
42f55f77 20278
311b6756 20279@endif cloog
42f55f77 20280
311b6756
JM
20281.PHONY: install-cloog maybe-install-cloog
20282maybe-install-cloog:
20283@if cloog
20284maybe-install-cloog: install-cloog
42f55f77 20285
311b6756 20286install-cloog:
42f55f77 20287
311b6756 20288@endif cloog
42f55f77
PB
20289
20290# Other targets (info, dvi, pdf, etc.)
20291
311b6756
JM
20292.PHONY: maybe-info-cloog info-cloog
20293maybe-info-cloog:
20294@if cloog
20295maybe-info-cloog: info-cloog
42f55f77 20296
311b6756
JM
20297info-cloog: \
20298 configure-cloog
20299 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20300 r=`${PWD_COMMAND}`; export r; \
20301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20302 $(HOST_EXPORTS) \
5074489a 20303 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20305 done; \
311b6756
JM
20306 echo "Doing info in cloog" ; \
20307 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20310 "RANLIB=$${RANLIB}" \
bffcbe34 20311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20312 info) \
20313 || exit 1
20314
311b6756 20315@endif cloog
42f55f77 20316
311b6756
JM
20317.PHONY: maybe-dvi-cloog dvi-cloog
20318maybe-dvi-cloog:
20319@if cloog
20320maybe-dvi-cloog: dvi-cloog
42f55f77 20321
311b6756
JM
20322dvi-cloog: \
20323 configure-cloog
20324 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20325 r=`${PWD_COMMAND}`; export r; \
20326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20327 $(HOST_EXPORTS) \
5074489a 20328 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20330 done; \
311b6756
JM
20331 echo "Doing dvi in cloog" ; \
20332 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20335 "RANLIB=$${RANLIB}" \
bffcbe34 20336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20337 dvi) \
20338 || exit 1
20339
311b6756 20340@endif cloog
42f55f77 20341
311b6756
JM
20342.PHONY: maybe-pdf-cloog pdf-cloog
20343maybe-pdf-cloog:
20344@if cloog
20345maybe-pdf-cloog: pdf-cloog
42f55f77 20346
311b6756
JM
20347pdf-cloog: \
20348 configure-cloog
20349 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20350 r=`${PWD_COMMAND}`; export r; \
20351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20352 $(HOST_EXPORTS) \
5074489a 20353 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20355 done; \
311b6756
JM
20356 echo "Doing pdf in cloog" ; \
20357 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20360 "RANLIB=$${RANLIB}" \
bffcbe34 20361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20362 pdf) \
20363 || exit 1
20364
311b6756 20365@endif cloog
42f55f77 20366
311b6756
JM
20367.PHONY: maybe-html-cloog html-cloog
20368maybe-html-cloog:
20369@if cloog
20370maybe-html-cloog: html-cloog
42f55f77 20371
311b6756
JM
20372html-cloog: \
20373 configure-cloog
20374 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20375 r=`${PWD_COMMAND}`; export r; \
20376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20377 $(HOST_EXPORTS) \
5074489a 20378 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20380 done; \
311b6756
JM
20381 echo "Doing html in cloog" ; \
20382 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20385 "RANLIB=$${RANLIB}" \
bffcbe34 20386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20387 html) \
20388 || exit 1
20389
311b6756 20390@endif cloog
42f55f77 20391
311b6756
JM
20392.PHONY: maybe-TAGS-cloog TAGS-cloog
20393maybe-TAGS-cloog:
20394@if cloog
20395maybe-TAGS-cloog: TAGS-cloog
42f55f77 20396
311b6756
JM
20397TAGS-cloog: \
20398 configure-cloog
20399 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20400 r=`${PWD_COMMAND}`; export r; \
20401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20402 $(HOST_EXPORTS) \
5074489a 20403 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20405 done; \
311b6756
JM
20406 echo "Doing TAGS in cloog" ; \
20407 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20410 "RANLIB=$${RANLIB}" \
bffcbe34 20411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20412 TAGS) \
20413 || exit 1
20414
311b6756 20415@endif cloog
42f55f77 20416
311b6756
JM
20417.PHONY: maybe-install-info-cloog install-info-cloog
20418maybe-install-info-cloog:
20419@if cloog
20420maybe-install-info-cloog: install-info-cloog
42f55f77 20421
311b6756
JM
20422install-info-cloog: \
20423 configure-cloog \
20424 info-cloog
20425 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20426 r=`${PWD_COMMAND}`; export r; \
20427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20428 $(HOST_EXPORTS) \
5074489a 20429 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20431 done; \
311b6756
JM
20432 echo "Doing install-info in cloog" ; \
20433 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20436 "RANLIB=$${RANLIB}" \
bffcbe34 20437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20438 install-info) \
20439 || exit 1
20440
311b6756 20441@endif cloog
42f55f77 20442
311b6756
JM
20443.PHONY: maybe-install-pdf-cloog install-pdf-cloog
20444maybe-install-pdf-cloog:
20445@if cloog
20446maybe-install-pdf-cloog: install-pdf-cloog
d4954b6d 20447
311b6756
JM
20448install-pdf-cloog: \
20449 configure-cloog \
20450 pdf-cloog
20451 @[ -f ./cloog/Makefile ] || exit 0; \
d4954b6d
DD
20452 r=`${PWD_COMMAND}`; export r; \
20453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20454 $(HOST_EXPORTS) \
5074489a 20455 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
d4954b6d
DD
20456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20457 done; \
311b6756
JM
20458 echo "Doing install-pdf in cloog" ; \
20459 (cd $(HOST_SUBDIR)/cloog && \
d4954b6d
DD
20460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20462 "RANLIB=$${RANLIB}" \
bffcbe34 20463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
20464 install-pdf) \
20465 || exit 1
20466
311b6756 20467@endif cloog
d4954b6d 20468
311b6756
JM
20469.PHONY: maybe-install-html-cloog install-html-cloog
20470maybe-install-html-cloog:
20471@if cloog
20472maybe-install-html-cloog: install-html-cloog
42f55f77 20473
311b6756
JM
20474install-html-cloog: \
20475 configure-cloog \
20476 html-cloog
20477 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20478 r=`${PWD_COMMAND}`; export r; \
20479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20480 $(HOST_EXPORTS) \
5074489a 20481 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20483 done; \
311b6756
JM
20484 echo "Doing install-html in cloog" ; \
20485 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20488 "RANLIB=$${RANLIB}" \
bffcbe34 20489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20490 install-html) \
20491 || exit 1
20492
311b6756 20493@endif cloog
42f55f77 20494
311b6756
JM
20495.PHONY: maybe-installcheck-cloog installcheck-cloog
20496maybe-installcheck-cloog:
20497@if cloog
20498maybe-installcheck-cloog: installcheck-cloog
42f55f77 20499
311b6756
JM
20500installcheck-cloog: \
20501 configure-cloog
20502 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20503 r=`${PWD_COMMAND}`; export r; \
20504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20505 $(HOST_EXPORTS) \
5074489a 20506 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20508 done; \
311b6756
JM
20509 echo "Doing installcheck in cloog" ; \
20510 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20513 "RANLIB=$${RANLIB}" \
bffcbe34 20514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20515 installcheck) \
20516 || exit 1
20517
311b6756 20518@endif cloog
42f55f77 20519
311b6756
JM
20520.PHONY: maybe-mostlyclean-cloog mostlyclean-cloog
20521maybe-mostlyclean-cloog:
20522@if cloog
20523maybe-mostlyclean-cloog: mostlyclean-cloog
42f55f77 20524
311b6756
JM
20525mostlyclean-cloog:
20526 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20527 r=`${PWD_COMMAND}`; export r; \
20528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20529 $(HOST_EXPORTS) \
5074489a 20530 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20532 done; \
311b6756
JM
20533 echo "Doing mostlyclean in cloog" ; \
20534 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20537 "RANLIB=$${RANLIB}" \
bffcbe34 20538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20539 mostlyclean) \
20540 || exit 1
20541
311b6756 20542@endif cloog
42f55f77 20543
311b6756
JM
20544.PHONY: maybe-clean-cloog clean-cloog
20545maybe-clean-cloog:
20546@if cloog
20547maybe-clean-cloog: clean-cloog
42f55f77 20548
311b6756
JM
20549clean-cloog:
20550 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20551 r=`${PWD_COMMAND}`; export r; \
20552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20553 $(HOST_EXPORTS) \
5074489a 20554 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20556 done; \
311b6756
JM
20557 echo "Doing clean in cloog" ; \
20558 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20561 "RANLIB=$${RANLIB}" \
bffcbe34 20562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20563 clean) \
20564 || exit 1
20565
311b6756 20566@endif cloog
42f55f77 20567
311b6756
JM
20568.PHONY: maybe-distclean-cloog distclean-cloog
20569maybe-distclean-cloog:
20570@if cloog
20571maybe-distclean-cloog: distclean-cloog
42f55f77 20572
311b6756
JM
20573distclean-cloog:
20574 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20575 r=`${PWD_COMMAND}`; export r; \
20576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20577 $(HOST_EXPORTS) \
5074489a 20578 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20580 done; \
311b6756
JM
20581 echo "Doing distclean in cloog" ; \
20582 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20585 "RANLIB=$${RANLIB}" \
bffcbe34 20586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20587 distclean) \
20588 || exit 1
20589
311b6756 20590@endif cloog
42f55f77 20591
311b6756
JM
20592.PHONY: maybe-maintainer-clean-cloog maintainer-clean-cloog
20593maybe-maintainer-clean-cloog:
20594@if cloog
20595maybe-maintainer-clean-cloog: maintainer-clean-cloog
42f55f77 20596
311b6756
JM
20597maintainer-clean-cloog:
20598 @[ -f ./cloog/Makefile ] || exit 0; \
42f55f77
PB
20599 r=`${PWD_COMMAND}`; export r; \
20600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20601 $(HOST_EXPORTS) \
5074489a 20602 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"; do \
42f55f77
PB
20603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20604 done; \
311b6756
JM
20605 echo "Doing maintainer-clean in cloog" ; \
20606 (cd $(HOST_SUBDIR)/cloog && \
42f55f77
PB
20607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20609 "RANLIB=$${RANLIB}" \
bffcbe34 20610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42f55f77
PB
20611 maintainer-clean) \
20612 || exit 1
20613
311b6756 20614@endif cloog
42f55f77
PB
20615
20616
20617
5074489a
AO
20618.PHONY: configure-libelf maybe-configure-libelf
20619maybe-configure-libelf:
20620@if gcc-bootstrap
20621configure-libelf: stage_current
20622@endif gcc-bootstrap
20623@if libelf
20624maybe-configure-libelf: configure-libelf
20625configure-libelf:
20626 @r=`${PWD_COMMAND}`; export r; \
20627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20628 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20630 $(HOST_EXPORTS) \
20631 echo Configuring in $(HOST_SUBDIR)/libelf; \
20632 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
20633 case $(srcdir) in \
20634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20635 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20637 esac; \
20638 srcdiroption="--srcdir=$${topdir}/libelf"; \
20639 libsrcdir="$$s/libelf"; \
20640 $(SHELL) $${libsrcdir}/configure \
20641 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20642 --target=${target_alias} $${srcdiroption} --disable-shared \
20643 || exit 1
20644@endif libelf
20645
20646
20647
20648.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
20649maybe-configure-stage1-libelf:
20650@if libelf-bootstrap
20651maybe-configure-stage1-libelf: configure-stage1-libelf
20652configure-stage1-libelf:
20653 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20654 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20655 @r=`${PWD_COMMAND}`; export r; \
20656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20657 TFLAGS="$(STAGE1_TFLAGS)"; \
20658 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20659 $(HOST_EXPORTS) \
20660 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
20661 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
20662 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
20663 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf ; \
20664 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20665 cd $(HOST_SUBDIR)/libelf || exit 1; \
20666 case $(srcdir) in \
20667 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20668 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20669 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20670 esac; \
20671 srcdiroption="--srcdir=$${topdir}/libelf"; \
20672 libsrcdir="$$s/libelf"; \
20673 $(SHELL) $${libsrcdir}/configure \
20674 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20675 --target=${target_alias} $${srcdiroption} \
20676 $(STAGE1_CONFIGURE_FLAGS) \
20677 --disable-shared
20678@endif libelf-bootstrap
20679
20680.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
20681maybe-configure-stage2-libelf:
20682@if libelf-bootstrap
20683maybe-configure-stage2-libelf: configure-stage2-libelf
20684configure-stage2-libelf:
20685 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20686 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20687 @r=`${PWD_COMMAND}`; export r; \
20688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20689 TFLAGS="$(STAGE2_TFLAGS)"; \
20690 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20691 $(HOST_EXPORTS) \
20692 $(POSTSTAGE1_HOST_EXPORTS) \
20693 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
20694 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
20695 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
20696 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf ; \
20697 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20698 cd $(HOST_SUBDIR)/libelf || exit 1; \
20699 case $(srcdir) in \
20700 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20701 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20702 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20703 esac; \
20704 srcdiroption="--srcdir=$${topdir}/libelf"; \
20705 libsrcdir="$$s/libelf"; \
20706 $(SHELL) $${libsrcdir}/configure \
20707 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20708 --target=${target_alias} $${srcdiroption} \
20709 --with-build-libsubdir=$(HOST_SUBDIR) \
20710 $(STAGE2_CONFIGURE_FLAGS) \
20711 --disable-shared
20712@endif libelf-bootstrap
20713
20714.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
20715maybe-configure-stage3-libelf:
20716@if libelf-bootstrap
20717maybe-configure-stage3-libelf: configure-stage3-libelf
20718configure-stage3-libelf:
20719 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20720 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20721 @r=`${PWD_COMMAND}`; export r; \
20722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20723 TFLAGS="$(STAGE3_TFLAGS)"; \
20724 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20725 $(HOST_EXPORTS) \
20726 $(POSTSTAGE1_HOST_EXPORTS) \
20727 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
20728 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
20729 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
20730 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf ; \
20731 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20732 cd $(HOST_SUBDIR)/libelf || exit 1; \
20733 case $(srcdir) in \
20734 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20735 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20736 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20737 esac; \
20738 srcdiroption="--srcdir=$${topdir}/libelf"; \
20739 libsrcdir="$$s/libelf"; \
20740 $(SHELL) $${libsrcdir}/configure \
20741 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20742 --target=${target_alias} $${srcdiroption} \
20743 --with-build-libsubdir=$(HOST_SUBDIR) \
20744 $(STAGE3_CONFIGURE_FLAGS) \
20745 --disable-shared
20746@endif libelf-bootstrap
20747
20748.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
20749maybe-configure-stage4-libelf:
20750@if libelf-bootstrap
20751maybe-configure-stage4-libelf: configure-stage4-libelf
20752configure-stage4-libelf:
20753 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20754 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20755 @r=`${PWD_COMMAND}`; export r; \
20756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20757 TFLAGS="$(STAGE4_TFLAGS)"; \
20758 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20759 $(HOST_EXPORTS) \
20760 $(POSTSTAGE1_HOST_EXPORTS) \
20761 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
20762 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
20763 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
20764 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf ; \
20765 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20766 cd $(HOST_SUBDIR)/libelf || exit 1; \
20767 case $(srcdir) in \
20768 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20769 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20770 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20771 esac; \
20772 srcdiroption="--srcdir=$${topdir}/libelf"; \
20773 libsrcdir="$$s/libelf"; \
20774 $(SHELL) $${libsrcdir}/configure \
20775 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20776 --target=${target_alias} $${srcdiroption} \
20777 --with-build-libsubdir=$(HOST_SUBDIR) \
20778 $(STAGE4_CONFIGURE_FLAGS) \
20779 --disable-shared
20780@endif libelf-bootstrap
20781
20782.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
20783maybe-configure-stageprofile-libelf:
20784@if libelf-bootstrap
20785maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
20786configure-stageprofile-libelf:
20787 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20788 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20789 @r=`${PWD_COMMAND}`; export r; \
20790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20791 TFLAGS="$(STAGEprofile_TFLAGS)"; \
20792 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20793 $(HOST_EXPORTS) \
20794 $(POSTSTAGE1_HOST_EXPORTS) \
20795 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
20796 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
20797 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
20798 echo Configuring stage profile in $(HOST_SUBDIR)/libelf ; \
20799 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20800 cd $(HOST_SUBDIR)/libelf || exit 1; \
20801 case $(srcdir) in \
20802 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20803 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20804 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20805 esac; \
20806 srcdiroption="--srcdir=$${topdir}/libelf"; \
20807 libsrcdir="$$s/libelf"; \
20808 $(SHELL) $${libsrcdir}/configure \
20809 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20810 --target=${target_alias} $${srcdiroption} \
20811 --with-build-libsubdir=$(HOST_SUBDIR) \
20812 $(STAGEprofile_CONFIGURE_FLAGS) \
20813 --disable-shared
20814@endif libelf-bootstrap
20815
20816.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
20817maybe-configure-stagefeedback-libelf:
20818@if libelf-bootstrap
20819maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
20820configure-stagefeedback-libelf:
20821 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20822 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
20823 @r=`${PWD_COMMAND}`; export r; \
20824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20825 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
20826 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
20827 $(HOST_EXPORTS) \
20828 $(POSTSTAGE1_HOST_EXPORTS) \
20829 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
20830 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
20831 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
20832 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf ; \
20833 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
20834 cd $(HOST_SUBDIR)/libelf || exit 1; \
20835 case $(srcdir) in \
20836 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20837 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
20838 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20839 esac; \
20840 srcdiroption="--srcdir=$${topdir}/libelf"; \
20841 libsrcdir="$$s/libelf"; \
20842 $(SHELL) $${libsrcdir}/configure \
20843 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20844 --target=${target_alias} $${srcdiroption} \
20845 --with-build-libsubdir=$(HOST_SUBDIR) \
20846 $(STAGEfeedback_CONFIGURE_FLAGS) \
20847 --disable-shared
20848@endif libelf-bootstrap
20849
20850
20851
20852
20853
20854.PHONY: all-libelf maybe-all-libelf
20855maybe-all-libelf:
20856@if gcc-bootstrap
20857all-libelf: stage_current
20858@endif gcc-bootstrap
20859@if libelf
20860TARGET-libelf=all
20861maybe-all-libelf: all-libelf
20862all-libelf: configure-libelf
20863 @r=`${PWD_COMMAND}`; export r; \
20864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20865 $(HOST_EXPORTS) \
20866 (cd $(HOST_SUBDIR)/libelf && \
20867 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
20868 $(TARGET-libelf))
20869@endif libelf
20870
20871
20872
20873.PHONY: all-stage1-libelf maybe-all-stage1-libelf
20874.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
20875maybe-all-stage1-libelf:
20876maybe-clean-stage1-libelf:
20877@if libelf-bootstrap
20878maybe-all-stage1-libelf: all-stage1-libelf
20879all-stage1: all-stage1-libelf
20880TARGET-stage1-libelf = $(TARGET-libelf)
20881all-stage1-libelf: configure-stage1-libelf
20882 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20883 @r=`${PWD_COMMAND}`; export r; \
20884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20885 TFLAGS="$(STAGE1_TFLAGS)"; \
20886 $(HOST_EXPORTS) \
20887 cd $(HOST_SUBDIR)/libelf && \
20888 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20889 CFLAGS="$(STAGE1_CFLAGS)" \
20890 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
20891 LIBCFLAGS="$(LIBCFLAGS)" \
20892 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20893 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20894 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20895 $(EXTRA_HOST_FLAGS) \
20896 TFLAGS="$(STAGE1_TFLAGS)" \
20897 $(TARGET-stage1-libelf)
20898
20899maybe-clean-stage1-libelf: clean-stage1-libelf
20900clean-stage1: clean-stage1-libelf
20901clean-stage1-libelf:
20902 @if [ $(current_stage) = stage1 ]; then \
20903 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
20904 else \
20905 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
20906 $(MAKE) stage1-start; \
20907 fi; \
20908 cd $(HOST_SUBDIR)/libelf && \
20909 $(MAKE) $(EXTRA_HOST_FLAGS) \
20910 clean
20911@endif libelf-bootstrap
20912
20913
20914.PHONY: all-stage2-libelf maybe-all-stage2-libelf
20915.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
20916maybe-all-stage2-libelf:
20917maybe-clean-stage2-libelf:
20918@if libelf-bootstrap
20919maybe-all-stage2-libelf: all-stage2-libelf
20920all-stage2: all-stage2-libelf
20921TARGET-stage2-libelf = $(TARGET-libelf)
20922all-stage2-libelf: configure-stage2-libelf
20923 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20924 @r=`${PWD_COMMAND}`; export r; \
20925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20926 TFLAGS="$(STAGE2_TFLAGS)"; \
20927 $(HOST_EXPORTS) \
20928 $(POSTSTAGE1_HOST_EXPORTS) \
20929 cd $(HOST_SUBDIR)/libelf && \
20930 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20931 CFLAGS="$(STAGE2_CFLAGS)" \
20932 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
20933 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20934 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20935 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20936 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20937 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20938 TFLAGS="$(STAGE2_TFLAGS)" \
20939 $(TARGET-stage2-libelf)
20940
20941maybe-clean-stage2-libelf: clean-stage2-libelf
20942clean-stage2: clean-stage2-libelf
20943clean-stage2-libelf:
20944 @if [ $(current_stage) = stage2 ]; then \
20945 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
20946 else \
20947 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
20948 $(MAKE) stage2-start; \
20949 fi; \
20950 cd $(HOST_SUBDIR)/libelf && \
20951 $(MAKE) $(EXTRA_HOST_FLAGS) \
20952 $(POSTSTAGE1_FLAGS_TO_PASS) \
20953 clean
20954@endif libelf-bootstrap
20955
20956
20957.PHONY: all-stage3-libelf maybe-all-stage3-libelf
20958.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
20959maybe-all-stage3-libelf:
20960maybe-clean-stage3-libelf:
20961@if libelf-bootstrap
20962maybe-all-stage3-libelf: all-stage3-libelf
20963all-stage3: all-stage3-libelf
20964TARGET-stage3-libelf = $(TARGET-libelf)
20965all-stage3-libelf: configure-stage3-libelf
20966 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20967 @r=`${PWD_COMMAND}`; export r; \
20968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20969 TFLAGS="$(STAGE3_TFLAGS)"; \
20970 $(HOST_EXPORTS) \
20971 $(POSTSTAGE1_HOST_EXPORTS) \
20972 cd $(HOST_SUBDIR)/libelf && \
20973 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20974 CFLAGS="$(STAGE3_CFLAGS)" \
20975 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
20976 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20977 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20978 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20979 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20980 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20981 TFLAGS="$(STAGE3_TFLAGS)" \
20982 $(TARGET-stage3-libelf)
20983
20984maybe-clean-stage3-libelf: clean-stage3-libelf
20985clean-stage3: clean-stage3-libelf
20986clean-stage3-libelf:
20987 @if [ $(current_stage) = stage3 ]; then \
20988 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
20989 else \
20990 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
20991 $(MAKE) stage3-start; \
20992 fi; \
20993 cd $(HOST_SUBDIR)/libelf && \
20994 $(MAKE) $(EXTRA_HOST_FLAGS) \
20995 $(POSTSTAGE1_FLAGS_TO_PASS) \
20996 clean
20997@endif libelf-bootstrap
20998
20999
21000.PHONY: all-stage4-libelf maybe-all-stage4-libelf
21001.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
21002maybe-all-stage4-libelf:
21003maybe-clean-stage4-libelf:
21004@if libelf-bootstrap
21005maybe-all-stage4-libelf: all-stage4-libelf
21006all-stage4: all-stage4-libelf
21007TARGET-stage4-libelf = $(TARGET-libelf)
21008all-stage4-libelf: configure-stage4-libelf
21009 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21010 @r=`${PWD_COMMAND}`; export r; \
21011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21012 TFLAGS="$(STAGE4_TFLAGS)"; \
21013 $(HOST_EXPORTS) \
21014 $(POSTSTAGE1_HOST_EXPORTS) \
21015 cd $(HOST_SUBDIR)/libelf && \
21016 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21017 CFLAGS="$(STAGE4_CFLAGS)" \
21018 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21019 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21020 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21021 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21022 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21023 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21024 TFLAGS="$(STAGE4_TFLAGS)" \
21025 $(TARGET-stage4-libelf)
21026
21027maybe-clean-stage4-libelf: clean-stage4-libelf
21028clean-stage4: clean-stage4-libelf
21029clean-stage4-libelf:
21030 @if [ $(current_stage) = stage4 ]; then \
21031 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
21032 else \
21033 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
21034 $(MAKE) stage4-start; \
21035 fi; \
21036 cd $(HOST_SUBDIR)/libelf && \
21037 $(MAKE) $(EXTRA_HOST_FLAGS) \
21038 $(POSTSTAGE1_FLAGS_TO_PASS) \
21039 clean
21040@endif libelf-bootstrap
21041
21042
21043.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
21044.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
21045maybe-all-stageprofile-libelf:
21046maybe-clean-stageprofile-libelf:
21047@if libelf-bootstrap
21048maybe-all-stageprofile-libelf: all-stageprofile-libelf
21049all-stageprofile: all-stageprofile-libelf
21050TARGET-stageprofile-libelf = $(TARGET-libelf)
21051all-stageprofile-libelf: configure-stageprofile-libelf
21052 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21053 @r=`${PWD_COMMAND}`; export r; \
21054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21055 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21056 $(HOST_EXPORTS) \
21057 $(POSTSTAGE1_HOST_EXPORTS) \
21058 cd $(HOST_SUBDIR)/libelf && \
21059 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21060 CFLAGS="$(STAGEprofile_CFLAGS)" \
21061 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21062 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21063 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21064 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21065 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21066 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21067 TFLAGS="$(STAGEprofile_TFLAGS)" \
21068 $(TARGET-stageprofile-libelf)
21069
21070maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
21071clean-stageprofile: clean-stageprofile-libelf
21072clean-stageprofile-libelf:
21073 @if [ $(current_stage) = stageprofile ]; then \
21074 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
21075 else \
21076 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
21077 $(MAKE) stageprofile-start; \
21078 fi; \
21079 cd $(HOST_SUBDIR)/libelf && \
21080 $(MAKE) $(EXTRA_HOST_FLAGS) \
21081 $(POSTSTAGE1_FLAGS_TO_PASS) \
21082 clean
21083@endif libelf-bootstrap
21084
21085
21086.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
21087.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
21088maybe-all-stagefeedback-libelf:
21089maybe-clean-stagefeedback-libelf:
21090@if libelf-bootstrap
21091maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
21092all-stagefeedback: all-stagefeedback-libelf
21093TARGET-stagefeedback-libelf = $(TARGET-libelf)
21094all-stagefeedback-libelf: configure-stagefeedback-libelf
21095 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21096 @r=`${PWD_COMMAND}`; export r; \
21097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21098 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21099 $(HOST_EXPORTS) \
21100 $(POSTSTAGE1_HOST_EXPORTS) \
21101 cd $(HOST_SUBDIR)/libelf && \
21102 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21103 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21104 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21105 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21106 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21107 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21108 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21109 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21110 TFLAGS="$(STAGEfeedback_TFLAGS)" \
21111 $(TARGET-stagefeedback-libelf)
21112
21113maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
21114clean-stagefeedback: clean-stagefeedback-libelf
21115clean-stagefeedback-libelf:
21116 @if [ $(current_stage) = stagefeedback ]; then \
21117 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
21118 else \
21119 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
21120 $(MAKE) stagefeedback-start; \
21121 fi; \
21122 cd $(HOST_SUBDIR)/libelf && \
21123 $(MAKE) $(EXTRA_HOST_FLAGS) \
21124 $(POSTSTAGE1_FLAGS_TO_PASS) \
21125 clean
21126@endif libelf-bootstrap
21127
21128
21129
21130
21131
21132.PHONY: check-libelf maybe-check-libelf
21133maybe-check-libelf:
21134@if libelf
21135maybe-check-libelf: check-libelf
21136
21137check-libelf:
21138 @: $(MAKE); $(unstage)
21139 @r=`${PWD_COMMAND}`; export r; \
21140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21141 $(HOST_EXPORTS) \
21142 (cd $(HOST_SUBDIR)/libelf && \
21143 $(MAKE) $(FLAGS_TO_PASS) check)
21144
21145@endif libelf
21146
21147.PHONY: install-libelf maybe-install-libelf
21148maybe-install-libelf:
21149@if libelf
21150maybe-install-libelf: install-libelf
21151
21152install-libelf:
21153
21154@endif libelf
21155
21156# Other targets (info, dvi, pdf, etc.)
21157
21158.PHONY: maybe-info-libelf info-libelf
21159maybe-info-libelf:
21160@if libelf
21161maybe-info-libelf: info-libelf
21162
21163info-libelf: \
21164 configure-libelf
21165 @[ -f ./libelf/Makefile ] || exit 0; \
21166 r=`${PWD_COMMAND}`; export r; \
21167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21168 $(HOST_EXPORTS) \
21169 for flag in $(EXTRA_HOST_FLAGS) ; do \
21170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21171 done; \
21172 echo "Doing info in libelf" ; \
21173 (cd $(HOST_SUBDIR)/libelf && \
21174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21176 "RANLIB=$${RANLIB}" \
21177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21178 info) \
21179 || exit 1
21180
21181@endif libelf
21182
21183.PHONY: maybe-dvi-libelf dvi-libelf
21184maybe-dvi-libelf:
21185@if libelf
21186maybe-dvi-libelf: dvi-libelf
21187
21188dvi-libelf: \
21189 configure-libelf
21190 @[ -f ./libelf/Makefile ] || exit 0; \
21191 r=`${PWD_COMMAND}`; export r; \
21192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21193 $(HOST_EXPORTS) \
21194 for flag in $(EXTRA_HOST_FLAGS) ; do \
21195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21196 done; \
21197 echo "Doing dvi in libelf" ; \
21198 (cd $(HOST_SUBDIR)/libelf && \
21199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21201 "RANLIB=$${RANLIB}" \
21202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21203 dvi) \
21204 || exit 1
21205
21206@endif libelf
21207
21208.PHONY: maybe-pdf-libelf pdf-libelf
21209maybe-pdf-libelf:
21210@if libelf
21211maybe-pdf-libelf: pdf-libelf
21212
21213pdf-libelf: \
21214 configure-libelf
21215 @[ -f ./libelf/Makefile ] || exit 0; \
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; \
21222 echo "Doing pdf in libelf" ; \
21223 (cd $(HOST_SUBDIR)/libelf && \
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 pdf) \
21229 || exit 1
21230
21231@endif libelf
21232
21233.PHONY: maybe-html-libelf html-libelf
21234maybe-html-libelf:
21235@if libelf
21236maybe-html-libelf: html-libelf
21237
21238html-libelf: \
21239 configure-libelf
21240 @[ -f ./libelf/Makefile ] || exit 0; \
21241 r=`${PWD_COMMAND}`; export r; \
21242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21243 $(HOST_EXPORTS) \
21244 for flag in $(EXTRA_HOST_FLAGS) ; do \
21245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21246 done; \
21247 echo "Doing html in libelf" ; \
21248 (cd $(HOST_SUBDIR)/libelf && \
21249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21251 "RANLIB=$${RANLIB}" \
21252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21253 html) \
21254 || exit 1
21255
21256@endif libelf
21257
21258.PHONY: maybe-TAGS-libelf TAGS-libelf
21259maybe-TAGS-libelf:
21260@if libelf
21261maybe-TAGS-libelf: TAGS-libelf
21262
21263TAGS-libelf: \
21264 configure-libelf
21265 @[ -f ./libelf/Makefile ] || exit 0; \
21266 r=`${PWD_COMMAND}`; export r; \
21267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21268 $(HOST_EXPORTS) \
21269 for flag in $(EXTRA_HOST_FLAGS) ; do \
21270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21271 done; \
21272 echo "Doing TAGS in libelf" ; \
21273 (cd $(HOST_SUBDIR)/libelf && \
21274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21276 "RANLIB=$${RANLIB}" \
21277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21278 TAGS) \
21279 || exit 1
21280
21281@endif libelf
21282
21283.PHONY: maybe-install-info-libelf install-info-libelf
21284maybe-install-info-libelf:
21285@if libelf
21286maybe-install-info-libelf: install-info-libelf
21287
21288install-info-libelf: \
21289 configure-libelf \
21290 info-libelf
21291 @[ -f ./libelf/Makefile ] || exit 0; \
21292 r=`${PWD_COMMAND}`; export r; \
21293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21294 $(HOST_EXPORTS) \
21295 for flag in $(EXTRA_HOST_FLAGS) ; do \
21296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21297 done; \
21298 echo "Doing install-info in libelf" ; \
21299 (cd $(HOST_SUBDIR)/libelf && \
21300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21302 "RANLIB=$${RANLIB}" \
21303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21304 install-info) \
21305 || exit 1
21306
21307@endif libelf
21308
21309.PHONY: maybe-install-pdf-libelf install-pdf-libelf
21310maybe-install-pdf-libelf:
21311@if libelf
21312maybe-install-pdf-libelf: install-pdf-libelf
21313
21314install-pdf-libelf: \
21315 configure-libelf \
21316 pdf-libelf
21317 @[ -f ./libelf/Makefile ] || exit 0; \
21318 r=`${PWD_COMMAND}`; export r; \
21319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21320 $(HOST_EXPORTS) \
21321 for flag in $(EXTRA_HOST_FLAGS) ; do \
21322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21323 done; \
21324 echo "Doing install-pdf in libelf" ; \
21325 (cd $(HOST_SUBDIR)/libelf && \
21326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21328 "RANLIB=$${RANLIB}" \
21329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21330 install-pdf) \
21331 || exit 1
21332
21333@endif libelf
21334
21335.PHONY: maybe-install-html-libelf install-html-libelf
21336maybe-install-html-libelf:
21337@if libelf
21338maybe-install-html-libelf: install-html-libelf
21339
21340install-html-libelf: \
21341 configure-libelf \
21342 html-libelf
21343 @[ -f ./libelf/Makefile ] || exit 0; \
21344 r=`${PWD_COMMAND}`; export r; \
21345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21346 $(HOST_EXPORTS) \
21347 for flag in $(EXTRA_HOST_FLAGS) ; do \
21348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21349 done; \
21350 echo "Doing install-html in libelf" ; \
21351 (cd $(HOST_SUBDIR)/libelf && \
21352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21354 "RANLIB=$${RANLIB}" \
21355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21356 install-html) \
21357 || exit 1
21358
21359@endif libelf
21360
21361.PHONY: maybe-installcheck-libelf installcheck-libelf
21362maybe-installcheck-libelf:
21363@if libelf
21364maybe-installcheck-libelf: installcheck-libelf
21365
21366installcheck-libelf: \
21367 configure-libelf
21368 @[ -f ./libelf/Makefile ] || exit 0; \
21369 r=`${PWD_COMMAND}`; export r; \
21370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21371 $(HOST_EXPORTS) \
21372 for flag in $(EXTRA_HOST_FLAGS) ; do \
21373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21374 done; \
21375 echo "Doing installcheck in libelf" ; \
21376 (cd $(HOST_SUBDIR)/libelf && \
21377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21379 "RANLIB=$${RANLIB}" \
21380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21381 installcheck) \
21382 || exit 1
21383
21384@endif libelf
21385
21386.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
21387maybe-mostlyclean-libelf:
21388@if libelf
21389maybe-mostlyclean-libelf: mostlyclean-libelf
21390
21391mostlyclean-libelf:
21392 @[ -f ./libelf/Makefile ] || exit 0; \
21393 r=`${PWD_COMMAND}`; export r; \
21394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21395 $(HOST_EXPORTS) \
21396 for flag in $(EXTRA_HOST_FLAGS) ; do \
21397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21398 done; \
21399 echo "Doing mostlyclean in libelf" ; \
21400 (cd $(HOST_SUBDIR)/libelf && \
21401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21403 "RANLIB=$${RANLIB}" \
21404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21405 mostlyclean) \
21406 || exit 1
21407
21408@endif libelf
21409
21410.PHONY: maybe-clean-libelf clean-libelf
21411maybe-clean-libelf:
21412@if libelf
21413maybe-clean-libelf: clean-libelf
21414
21415clean-libelf:
21416 @[ -f ./libelf/Makefile ] || exit 0; \
21417 r=`${PWD_COMMAND}`; export r; \
21418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21419 $(HOST_EXPORTS) \
21420 for flag in $(EXTRA_HOST_FLAGS) ; do \
21421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21422 done; \
21423 echo "Doing clean in libelf" ; \
21424 (cd $(HOST_SUBDIR)/libelf && \
21425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21427 "RANLIB=$${RANLIB}" \
21428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21429 clean) \
21430 || exit 1
21431
21432@endif libelf
21433
21434.PHONY: maybe-distclean-libelf distclean-libelf
21435maybe-distclean-libelf:
21436@if libelf
21437maybe-distclean-libelf: distclean-libelf
21438
21439distclean-libelf:
21440 @[ -f ./libelf/Makefile ] || exit 0; \
21441 r=`${PWD_COMMAND}`; export r; \
21442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21443 $(HOST_EXPORTS) \
21444 for flag in $(EXTRA_HOST_FLAGS) ; do \
21445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21446 done; \
21447 echo "Doing distclean in libelf" ; \
21448 (cd $(HOST_SUBDIR)/libelf && \
21449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21451 "RANLIB=$${RANLIB}" \
21452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21453 distclean) \
21454 || exit 1
21455
21456@endif libelf
21457
21458.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
21459maybe-maintainer-clean-libelf:
21460@if libelf
21461maybe-maintainer-clean-libelf: maintainer-clean-libelf
21462
21463maintainer-clean-libelf:
21464 @[ -f ./libelf/Makefile ] || exit 0; \
21465 r=`${PWD_COMMAND}`; export r; \
21466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21467 $(HOST_EXPORTS) \
21468 for flag in $(EXTRA_HOST_FLAGS) ; do \
21469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21470 done; \
21471 echo "Doing maintainer-clean in libelf" ; \
21472 (cd $(HOST_SUBDIR)/libelf && \
21473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21475 "RANLIB=$${RANLIB}" \
21476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21477 maintainer-clean) \
21478 || exit 1
21479
21480@endif libelf
21481
21482
21483
d5eec917
PB
21484.PHONY: configure-gnuserv maybe-configure-gnuserv
21485maybe-configure-gnuserv:
e1e5148c
CD
21486@if gcc-bootstrap
21487configure-gnuserv: stage_current
21488@endif gcc-bootstrap
d5eec917
PB
21489@if gnuserv
21490maybe-configure-gnuserv: configure-gnuserv
ec92c4d6 21491configure-gnuserv:
15b527ca 21492 @: $(MAKE); $(unstage)
ec92c4d6 21493 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 21494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
21495 test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
21496 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
5074489a 21497 $(HOST_EXPORTS) \
f0fdfd34
PB
21498 echo Configuring in $(HOST_SUBDIR)/gnuserv; \
21499 cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \
8ec98d6c 21500 case $(srcdir) in \
7fc2ca22
PB
21501 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21502 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
21503 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 21504 esac; \
7fc2ca22
PB
21505 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
21506 libsrcdir="$$s/gnuserv"; \
8ec98d6c 21507 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
21508 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21509 --target=${target_alias} $${srcdiroption} \
657b58f4 21510 || exit 1
d5eec917 21511@endif gnuserv
657b58f4 21512
f0fdfd34
PB
21513
21514
a8a96878
PB
21515
21516
d5eec917
PB
21517.PHONY: all-gnuserv maybe-all-gnuserv
21518maybe-all-gnuserv:
e1e5148c
CD
21519@if gcc-bootstrap
21520all-gnuserv: stage_current
21521@endif gcc-bootstrap
d5eec917 21522@if gnuserv
5e6b1f07 21523TARGET-gnuserv=all
d5eec917
PB
21524maybe-all-gnuserv: all-gnuserv
21525all-gnuserv: configure-gnuserv
15b527ca 21526 @: $(MAKE); $(unstage)
8ec98d6c
NN
21527 @r=`${PWD_COMMAND}`; export r; \
21528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 21529 $(HOST_EXPORTS) \
7fc2ca22 21530 (cd $(HOST_SUBDIR)/gnuserv && \
6532abb6
PB
21531 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
21532 $(TARGET-gnuserv))
d5eec917 21533@endif gnuserv
657b58f4 21534
f0fdfd34 21535
a8a96878
PB
21536
21537
d5eec917
PB
21538.PHONY: check-gnuserv maybe-check-gnuserv
21539maybe-check-gnuserv:
21540@if gnuserv
21541maybe-check-gnuserv: check-gnuserv
657b58f4 21542
d5eec917 21543check-gnuserv:
15b527ca 21544 @: $(MAKE); $(unstage)
8ec98d6c 21545 @r=`${PWD_COMMAND}`; export r; \
5230d454 21546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21547 $(HOST_EXPORTS) \
7fc2ca22
PB
21548 (cd $(HOST_SUBDIR)/gnuserv && \
21549 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 21550
d5eec917 21551@endif gnuserv
657b58f4 21552
d5eec917
PB
21553.PHONY: install-gnuserv maybe-install-gnuserv
21554maybe-install-gnuserv:
21555@if gnuserv
21556maybe-install-gnuserv: install-gnuserv
657b58f4 21557
d5eec917 21558install-gnuserv: installdirs
15b527ca 21559 @: $(MAKE); $(unstage)
8ec98d6c 21560 @r=`${PWD_COMMAND}`; export r; \
5230d454 21561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21562 $(HOST_EXPORTS) \
7fc2ca22 21563 (cd $(HOST_SUBDIR)/gnuserv && \
93c60b6d 21564 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 21565
d5eec917 21566@endif gnuserv
657b58f4 21567
39bbbb69 21568# Other targets (info, dvi, pdf, etc.)
657b58f4 21569
d5eec917
PB
21570.PHONY: maybe-info-gnuserv info-gnuserv
21571maybe-info-gnuserv:
21572@if gnuserv
21573maybe-info-gnuserv: info-gnuserv
8ec98d6c 21574
d5eec917
PB
21575info-gnuserv: \
21576 configure-gnuserv
15b527ca 21577 @: $(MAKE); $(unstage)
d5eec917 21578 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21579 r=`${PWD_COMMAND}`; export r; \
21580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21581 $(HOST_EXPORTS) \
d5eec917 21582 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21584 done; \
d5eec917 21585 echo "Doing info in gnuserv" ; \
7fc2ca22 21586 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21589 "RANLIB=$${RANLIB}" \
bffcbe34 21590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21591 info) \
657b58f4
NN
21592 || exit 1
21593
d5eec917 21594@endif gnuserv
657b58f4 21595
d5eec917
PB
21596.PHONY: maybe-dvi-gnuserv dvi-gnuserv
21597maybe-dvi-gnuserv:
21598@if gnuserv
21599maybe-dvi-gnuserv: dvi-gnuserv
657b58f4 21600
d5eec917
PB
21601dvi-gnuserv: \
21602 configure-gnuserv
15b527ca 21603 @: $(MAKE); $(unstage)
d5eec917 21604 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21605 r=`${PWD_COMMAND}`; export r; \
21606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21607 $(HOST_EXPORTS) \
d5eec917 21608 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21610 done; \
d5eec917 21611 echo "Doing dvi in gnuserv" ; \
7fc2ca22 21612 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21615 "RANLIB=$${RANLIB}" \
bffcbe34 21616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21617 dvi) \
657b58f4
NN
21618 || exit 1
21619
d5eec917 21620@endif gnuserv
657b58f4 21621
39bbbb69
DD
21622.PHONY: maybe-pdf-gnuserv pdf-gnuserv
21623maybe-pdf-gnuserv:
21624@if gnuserv
21625maybe-pdf-gnuserv: pdf-gnuserv
21626
21627pdf-gnuserv: \
21628 configure-gnuserv
21629 @: $(MAKE); $(unstage)
21630 @[ -f ./gnuserv/Makefile ] || exit 0; \
21631 r=`${PWD_COMMAND}`; export r; \
21632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21633 $(HOST_EXPORTS) \
21634 for flag in $(EXTRA_HOST_FLAGS) ; do \
21635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21636 done; \
21637 echo "Doing pdf in gnuserv" ; \
21638 (cd $(HOST_SUBDIR)/gnuserv && \
21639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21641 "RANLIB=$${RANLIB}" \
bffcbe34 21642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
21643 pdf) \
21644 || exit 1
21645
21646@endif gnuserv
21647
b6fb961f
MS
21648.PHONY: maybe-html-gnuserv html-gnuserv
21649maybe-html-gnuserv:
21650@if gnuserv
21651maybe-html-gnuserv: html-gnuserv
21652
21653html-gnuserv: \
21654 configure-gnuserv
15b527ca 21655 @: $(MAKE); $(unstage)
b6fb961f
MS
21656 @[ -f ./gnuserv/Makefile ] || exit 0; \
21657 r=`${PWD_COMMAND}`; export r; \
21658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
21659 $(HOST_EXPORTS) \
21660 for flag in $(EXTRA_HOST_FLAGS) ; do \
21661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21662 done; \
21663 echo "Doing html in gnuserv" ; \
7fc2ca22 21664 (cd $(HOST_SUBDIR)/gnuserv && \
b6fb961f
MS
21665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21667 "RANLIB=$${RANLIB}" \
bffcbe34 21668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
21669 html) \
21670 || exit 1
21671
21672@endif gnuserv
21673
d5eec917
PB
21674.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
21675maybe-TAGS-gnuserv:
21676@if gnuserv
21677maybe-TAGS-gnuserv: TAGS-gnuserv
657b58f4 21678
d5eec917
PB
21679TAGS-gnuserv: \
21680 configure-gnuserv
15b527ca 21681 @: $(MAKE); $(unstage)
d5eec917 21682 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21683 r=`${PWD_COMMAND}`; export r; \
21684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21685 $(HOST_EXPORTS) \
d5eec917 21686 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21688 done; \
d5eec917 21689 echo "Doing TAGS in gnuserv" ; \
7fc2ca22 21690 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21693 "RANLIB=$${RANLIB}" \
bffcbe34 21694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21695 TAGS) \
657b58f4
NN
21696 || exit 1
21697
d5eec917 21698@endif gnuserv
657b58f4 21699
d5eec917
PB
21700.PHONY: maybe-install-info-gnuserv install-info-gnuserv
21701maybe-install-info-gnuserv:
21702@if gnuserv
21703maybe-install-info-gnuserv: install-info-gnuserv
657b58f4 21704
d5eec917
PB
21705install-info-gnuserv: \
21706 configure-gnuserv \
21707 info-gnuserv
15b527ca 21708 @: $(MAKE); $(unstage)
d5eec917 21709 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21710 r=`${PWD_COMMAND}`; export r; \
21711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21712 $(HOST_EXPORTS) \
d5eec917 21713 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21715 done; \
d5eec917 21716 echo "Doing install-info in gnuserv" ; \
7fc2ca22 21717 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21720 "RANLIB=$${RANLIB}" \
bffcbe34 21721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21722 install-info) \
657b58f4
NN
21723 || exit 1
21724
d5eec917 21725@endif gnuserv
657b58f4 21726
d4954b6d
DD
21727.PHONY: maybe-install-pdf-gnuserv install-pdf-gnuserv
21728maybe-install-pdf-gnuserv:
21729@if gnuserv
21730maybe-install-pdf-gnuserv: install-pdf-gnuserv
21731
21732install-pdf-gnuserv: \
21733 configure-gnuserv \
21734 pdf-gnuserv
21735 @: $(MAKE); $(unstage)
21736 @[ -f ./gnuserv/Makefile ] || exit 0; \
21737 r=`${PWD_COMMAND}`; export r; \
21738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21739 $(HOST_EXPORTS) \
21740 for flag in $(EXTRA_HOST_FLAGS) ; do \
21741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21742 done; \
21743 echo "Doing install-pdf in gnuserv" ; \
21744 (cd $(HOST_SUBDIR)/gnuserv && \
21745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21747 "RANLIB=$${RANLIB}" \
bffcbe34 21748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
21749 install-pdf) \
21750 || exit 1
21751
21752@endif gnuserv
21753
83c9add4
CD
21754.PHONY: maybe-install-html-gnuserv install-html-gnuserv
21755maybe-install-html-gnuserv:
21756@if gnuserv
21757maybe-install-html-gnuserv: install-html-gnuserv
21758
21759install-html-gnuserv: \
21760 configure-gnuserv \
21761 html-gnuserv
21762 @: $(MAKE); $(unstage)
21763 @[ -f ./gnuserv/Makefile ] || exit 0; \
21764 r=`${PWD_COMMAND}`; export r; \
21765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21766 $(HOST_EXPORTS) \
21767 for flag in $(EXTRA_HOST_FLAGS) ; do \
21768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21769 done; \
21770 echo "Doing install-html in gnuserv" ; \
21771 (cd $(HOST_SUBDIR)/gnuserv && \
21772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21774 "RANLIB=$${RANLIB}" \
bffcbe34 21775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
21776 install-html) \
21777 || exit 1
21778
21779@endif gnuserv
21780
d5eec917
PB
21781.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
21782maybe-installcheck-gnuserv:
21783@if gnuserv
21784maybe-installcheck-gnuserv: installcheck-gnuserv
657b58f4 21785
d5eec917
PB
21786installcheck-gnuserv: \
21787 configure-gnuserv
15b527ca 21788 @: $(MAKE); $(unstage)
d5eec917 21789 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21790 r=`${PWD_COMMAND}`; export r; \
21791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21792 $(HOST_EXPORTS) \
d5eec917 21793 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21795 done; \
d5eec917 21796 echo "Doing installcheck in gnuserv" ; \
7fc2ca22 21797 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21800 "RANLIB=$${RANLIB}" \
bffcbe34 21801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21802 installcheck) \
657b58f4
NN
21803 || exit 1
21804
d5eec917 21805@endif gnuserv
657b58f4 21806
d5eec917
PB
21807.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
21808maybe-mostlyclean-gnuserv:
21809@if gnuserv
21810maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
657b58f4 21811
d5eec917 21812mostlyclean-gnuserv:
15b527ca 21813 @: $(MAKE); $(unstage)
d5eec917 21814 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21815 r=`${PWD_COMMAND}`; export r; \
21816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21817 $(HOST_EXPORTS) \
d5eec917 21818 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21820 done; \
d5eec917 21821 echo "Doing mostlyclean in gnuserv" ; \
7fc2ca22 21822 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21825 "RANLIB=$${RANLIB}" \
bffcbe34 21826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21827 mostlyclean) \
657b58f4
NN
21828 || exit 1
21829
d5eec917 21830@endif gnuserv
657b58f4 21831
d5eec917
PB
21832.PHONY: maybe-clean-gnuserv clean-gnuserv
21833maybe-clean-gnuserv:
21834@if gnuserv
21835maybe-clean-gnuserv: clean-gnuserv
657b58f4 21836
d5eec917 21837clean-gnuserv:
15b527ca 21838 @: $(MAKE); $(unstage)
d5eec917 21839 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21840 r=`${PWD_COMMAND}`; export r; \
21841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21842 $(HOST_EXPORTS) \
d5eec917 21843 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21845 done; \
d5eec917 21846 echo "Doing clean in gnuserv" ; \
7fc2ca22 21847 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21850 "RANLIB=$${RANLIB}" \
bffcbe34 21851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21852 clean) \
657b58f4
NN
21853 || exit 1
21854
d5eec917 21855@endif gnuserv
657b58f4 21856
d5eec917
PB
21857.PHONY: maybe-distclean-gnuserv distclean-gnuserv
21858maybe-distclean-gnuserv:
21859@if gnuserv
21860maybe-distclean-gnuserv: distclean-gnuserv
657b58f4 21861
d5eec917 21862distclean-gnuserv:
15b527ca 21863 @: $(MAKE); $(unstage)
d5eec917 21864 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21865 r=`${PWD_COMMAND}`; export r; \
21866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21867 $(HOST_EXPORTS) \
d5eec917 21868 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21870 done; \
d5eec917 21871 echo "Doing distclean in gnuserv" ; \
7fc2ca22 21872 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21875 "RANLIB=$${RANLIB}" \
bffcbe34 21876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21877 distclean) \
657b58f4
NN
21878 || exit 1
21879
d5eec917 21880@endif gnuserv
657b58f4 21881
d5eec917
PB
21882.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
21883maybe-maintainer-clean-gnuserv:
21884@if gnuserv
21885maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
657b58f4 21886
d5eec917 21887maintainer-clean-gnuserv:
15b527ca 21888 @: $(MAKE); $(unstage)
d5eec917 21889 @[ -f ./gnuserv/Makefile ] || exit 0; \
5230d454
L
21890 r=`${PWD_COMMAND}`; export r; \
21891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 21892 $(HOST_EXPORTS) \
d5eec917 21893 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
21894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21895 done; \
d5eec917 21896 echo "Doing maintainer-clean in gnuserv" ; \
7fc2ca22 21897 (cd $(HOST_SUBDIR)/gnuserv && \
657b58f4
NN
21898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21900 "RANLIB=$${RANLIB}" \
bffcbe34 21901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 21902 maintainer-clean) \
657b58f4
NN
21903 || exit 1
21904
d5eec917 21905@endif gnuserv
657b58f4 21906
657b58f4 21907
f0fdfd34 21908
b916272a
ILT
21909.PHONY: configure-gold maybe-configure-gold
21910maybe-configure-gold:
21911@if gcc-bootstrap
21912configure-gold: stage_current
21913@endif gcc-bootstrap
21914@if gold
21915maybe-configure-gold: configure-gold
21916configure-gold:
21917 @r=`${PWD_COMMAND}`; export r; \
21918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21919 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
21920 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
5074489a 21921 $(HOST_EXPORTS) \
b916272a
ILT
21922 echo Configuring in $(HOST_SUBDIR)/gold; \
21923 cd "$(HOST_SUBDIR)/gold" || exit 1; \
21924 case $(srcdir) in \
21925 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21926 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
21927 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21928 esac; \
21929 srcdiroption="--srcdir=$${topdir}/gold"; \
21930 libsrcdir="$$s/gold"; \
21931 $(SHELL) $${libsrcdir}/configure \
21932 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21933 --target=${target_alias} $${srcdiroption} \
21934 || exit 1
21935@endif gold
21936
21937
21938
21939.PHONY: configure-stage1-gold maybe-configure-stage1-gold
21940maybe-configure-stage1-gold:
21941@if gold-bootstrap
21942maybe-configure-stage1-gold: configure-stage1-gold
21943configure-stage1-gold:
21944 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21945 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
21946 @r=`${PWD_COMMAND}`; export r; \
21947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 21948 TFLAGS="$(STAGE1_TFLAGS)"; \
b916272a 21949 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
c91ae28f 21950 $(HOST_EXPORTS) \
b916272a 21951 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
21952 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21953 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
21954 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
21955 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
21956 cd $(HOST_SUBDIR)/gold || exit 1; \
21957 case $(srcdir) in \
21958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21959 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
21960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21961 esac; \
21962 srcdiroption="--srcdir=$${topdir}/gold"; \
21963 libsrcdir="$$s/gold"; \
21964 $(SHELL) $${libsrcdir}/configure \
21965 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21966 --target=${target_alias} $${srcdiroption} \
c91ae28f 21967 $(STAGE1_CONFIGURE_FLAGS)
b916272a
ILT
21968@endif gold-bootstrap
21969
21970.PHONY: configure-stage2-gold maybe-configure-stage2-gold
21971maybe-configure-stage2-gold:
21972@if gold-bootstrap
21973maybe-configure-stage2-gold: configure-stage2-gold
21974configure-stage2-gold:
21975 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21976 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
21977 @r=`${PWD_COMMAND}`; export r; \
21978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 21979 TFLAGS="$(STAGE2_TFLAGS)"; \
b916272a
ILT
21980 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
21981 $(HOST_EXPORTS) \
c91ae28f 21982 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a 21983 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
21984 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21985 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
21986 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
21987 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
21988 cd $(HOST_SUBDIR)/gold || exit 1; \
21989 case $(srcdir) in \
21990 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21991 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
21992 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21993 esac; \
21994 srcdiroption="--srcdir=$${topdir}/gold"; \
21995 libsrcdir="$$s/gold"; \
21996 $(SHELL) $${libsrcdir}/configure \
21997 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21998 --target=${target_alias} $${srcdiroption} \
21999 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 22000 $(STAGE2_CONFIGURE_FLAGS)
b916272a
ILT
22001@endif gold-bootstrap
22002
22003.PHONY: configure-stage3-gold maybe-configure-stage3-gold
22004maybe-configure-stage3-gold:
22005@if gold-bootstrap
22006maybe-configure-stage3-gold: configure-stage3-gold
22007configure-stage3-gold:
22008 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22009 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
22010 @r=`${PWD_COMMAND}`; export r; \
22011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22012 TFLAGS="$(STAGE3_TFLAGS)"; \
b916272a
ILT
22013 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22014 $(HOST_EXPORTS) \
c91ae28f 22015 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a 22016 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
22017 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22018 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
22019 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
22020 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
22021 cd $(HOST_SUBDIR)/gold || exit 1; \
22022 case $(srcdir) in \
22023 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22024 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
22025 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22026 esac; \
22027 srcdiroption="--srcdir=$${topdir}/gold"; \
22028 libsrcdir="$$s/gold"; \
22029 $(SHELL) $${libsrcdir}/configure \
22030 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22031 --target=${target_alias} $${srcdiroption} \
22032 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 22033 $(STAGE3_CONFIGURE_FLAGS)
b916272a
ILT
22034@endif gold-bootstrap
22035
22036.PHONY: configure-stage4-gold maybe-configure-stage4-gold
22037maybe-configure-stage4-gold:
22038@if gold-bootstrap
22039maybe-configure-stage4-gold: configure-stage4-gold
22040configure-stage4-gold:
22041 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22042 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
22043 @r=`${PWD_COMMAND}`; export r; \
22044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22045 TFLAGS="$(STAGE4_TFLAGS)"; \
b916272a
ILT
22046 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22047 $(HOST_EXPORTS) \
c91ae28f 22048 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a 22049 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
22050 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22051 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
22052 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
22053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
22054 cd $(HOST_SUBDIR)/gold || exit 1; \
22055 case $(srcdir) in \
22056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22057 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
22058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22059 esac; \
22060 srcdiroption="--srcdir=$${topdir}/gold"; \
22061 libsrcdir="$$s/gold"; \
22062 $(SHELL) $${libsrcdir}/configure \
22063 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22064 --target=${target_alias} $${srcdiroption} \
22065 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 22066 $(STAGE4_CONFIGURE_FLAGS)
b916272a
ILT
22067@endif gold-bootstrap
22068
22069.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
22070maybe-configure-stageprofile-gold:
22071@if gold-bootstrap
22072maybe-configure-stageprofile-gold: configure-stageprofile-gold
22073configure-stageprofile-gold:
22074 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
22076 @r=`${PWD_COMMAND}`; export r; \
22077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22078 TFLAGS="$(STAGEprofile_TFLAGS)"; \
b916272a
ILT
22079 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22080 $(HOST_EXPORTS) \
c91ae28f
AO
22081 $(POSTSTAGE1_HOST_EXPORTS) \
22082 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
22083 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22084 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
22085 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
22086 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
22087 cd $(HOST_SUBDIR)/gold || exit 1; \
22088 case $(srcdir) in \
22089 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22090 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
22091 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22092 esac; \
22093 srcdiroption="--srcdir=$${topdir}/gold"; \
22094 libsrcdir="$$s/gold"; \
22095 $(SHELL) $${libsrcdir}/configure \
22096 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22097 --target=${target_alias} $${srcdiroption} \
22098 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 22099 $(STAGEprofile_CONFIGURE_FLAGS)
b916272a
ILT
22100@endif gold-bootstrap
22101
22102.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
22103maybe-configure-stagefeedback-gold:
22104@if gold-bootstrap
22105maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
22106configure-stagefeedback-gold:
22107 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22108 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
22109 @r=`${PWD_COMMAND}`; export r; \
22110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22111 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
b916272a
ILT
22112 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22113 $(HOST_EXPORTS) \
c91ae28f
AO
22114 $(POSTSTAGE1_HOST_EXPORTS) \
22115 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
22116 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22117 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
b916272a
ILT
22118 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
22119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
22120 cd $(HOST_SUBDIR)/gold || exit 1; \
22121 case $(srcdir) in \
22122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22123 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
22124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22125 esac; \
22126 srcdiroption="--srcdir=$${topdir}/gold"; \
22127 libsrcdir="$$s/gold"; \
22128 $(SHELL) $${libsrcdir}/configure \
22129 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22130 --target=${target_alias} $${srcdiroption} \
22131 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 22132 $(STAGEfeedback_CONFIGURE_FLAGS)
b916272a
ILT
22133@endif gold-bootstrap
22134
22135
22136
22137
22138
22139.PHONY: all-gold maybe-all-gold
22140maybe-all-gold:
22141@if gcc-bootstrap
22142all-gold: stage_current
22143@endif gcc-bootstrap
22144@if gold
22145TARGET-gold=all
22146maybe-all-gold: all-gold
22147all-gold: configure-gold
22148 @r=`${PWD_COMMAND}`; export r; \
22149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 22150 $(HOST_EXPORTS) \
b916272a
ILT
22151 (cd $(HOST_SUBDIR)/gold && \
22152 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
22153 $(TARGET-gold))
22154@endif gold
22155
22156
22157
22158.PHONY: all-stage1-gold maybe-all-stage1-gold
22159.PHONY: clean-stage1-gold maybe-clean-stage1-gold
22160maybe-all-stage1-gold:
22161maybe-clean-stage1-gold:
22162@if gold-bootstrap
22163maybe-all-stage1-gold: all-stage1-gold
22164all-stage1: all-stage1-gold
22165TARGET-stage1-gold = $(TARGET-gold)
22166all-stage1-gold: configure-stage1-gold
22167 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22168 @r=`${PWD_COMMAND}`; export r; \
22169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22170 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 22171 $(HOST_EXPORTS) \
b916272a
ILT
22172 cd $(HOST_SUBDIR)/gold && \
22173 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22174 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 22175 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
22176 LIBCFLAGS="$(LIBCFLAGS)" \
22177 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22178 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22179 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22180 $(EXTRA_HOST_FLAGS) \
22181 TFLAGS="$(STAGE1_TFLAGS)" \
b916272a
ILT
22182 $(TARGET-stage1-gold)
22183
22184maybe-clean-stage1-gold: clean-stage1-gold
22185clean-stage1: clean-stage1-gold
22186clean-stage1-gold:
22187 @if [ $(current_stage) = stage1 ]; then \
22188 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22189 else \
22190 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
22191 $(MAKE) stage1-start; \
22192 fi; \
22193 cd $(HOST_SUBDIR)/gold && \
22194 $(MAKE) $(EXTRA_HOST_FLAGS) \
22195 clean
22196@endif gold-bootstrap
22197
22198
22199.PHONY: all-stage2-gold maybe-all-stage2-gold
22200.PHONY: clean-stage2-gold maybe-clean-stage2-gold
22201maybe-all-stage2-gold:
22202maybe-clean-stage2-gold:
22203@if gold-bootstrap
22204maybe-all-stage2-gold: all-stage2-gold
22205all-stage2: all-stage2-gold
22206TARGET-stage2-gold = $(TARGET-gold)
22207all-stage2-gold: configure-stage2-gold
22208 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22209 @r=`${PWD_COMMAND}`; export r; \
22210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22211 TFLAGS="$(STAGE2_TFLAGS)"; \
b916272a 22212 $(HOST_EXPORTS) \
5074489a 22213 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a
ILT
22214 cd $(HOST_SUBDIR)/gold && \
22215 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22216 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 22217 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
22218 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22219 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22220 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22221 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22222 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22223 TFLAGS="$(STAGE2_TFLAGS)" \
b916272a
ILT
22224 $(TARGET-stage2-gold)
22225
22226maybe-clean-stage2-gold: clean-stage2-gold
22227clean-stage2: clean-stage2-gold
22228clean-stage2-gold:
22229 @if [ $(current_stage) = stage2 ]; then \
22230 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22231 else \
22232 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
22233 $(MAKE) stage2-start; \
22234 fi; \
22235 cd $(HOST_SUBDIR)/gold && \
22236 $(MAKE) $(EXTRA_HOST_FLAGS) \
22237 $(POSTSTAGE1_FLAGS_TO_PASS) \
22238 clean
22239@endif gold-bootstrap
22240
22241
b916272a
ILT
22242.PHONY: all-stage3-gold maybe-all-stage3-gold
22243.PHONY: clean-stage3-gold maybe-clean-stage3-gold
22244maybe-all-stage3-gold:
22245maybe-clean-stage3-gold:
22246@if gold-bootstrap
22247maybe-all-stage3-gold: all-stage3-gold
22248all-stage3: all-stage3-gold
22249TARGET-stage3-gold = $(TARGET-gold)
22250all-stage3-gold: configure-stage3-gold
22251 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22252 @r=`${PWD_COMMAND}`; export r; \
22253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22254 TFLAGS="$(STAGE3_TFLAGS)"; \
b916272a 22255 $(HOST_EXPORTS) \
5074489a 22256 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a
ILT
22257 cd $(HOST_SUBDIR)/gold && \
22258 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22259 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 22260 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
22261 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22262 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22263 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22264 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22265 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22266 TFLAGS="$(STAGE3_TFLAGS)" \
b916272a
ILT
22267 $(TARGET-stage3-gold)
22268
22269maybe-clean-stage3-gold: clean-stage3-gold
22270clean-stage3: clean-stage3-gold
22271clean-stage3-gold:
22272 @if [ $(current_stage) = stage3 ]; then \
22273 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22274 else \
22275 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
22276 $(MAKE) stage3-start; \
22277 fi; \
22278 cd $(HOST_SUBDIR)/gold && \
22279 $(MAKE) $(EXTRA_HOST_FLAGS) \
22280 $(POSTSTAGE1_FLAGS_TO_PASS) \
22281 clean
22282@endif gold-bootstrap
22283
22284
b916272a
ILT
22285.PHONY: all-stage4-gold maybe-all-stage4-gold
22286.PHONY: clean-stage4-gold maybe-clean-stage4-gold
22287maybe-all-stage4-gold:
22288maybe-clean-stage4-gold:
22289@if gold-bootstrap
22290maybe-all-stage4-gold: all-stage4-gold
22291all-stage4: all-stage4-gold
22292TARGET-stage4-gold = $(TARGET-gold)
22293all-stage4-gold: configure-stage4-gold
22294 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22295 @r=`${PWD_COMMAND}`; export r; \
22296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22297 TFLAGS="$(STAGE4_TFLAGS)"; \
b916272a 22298 $(HOST_EXPORTS) \
5074489a 22299 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a
ILT
22300 cd $(HOST_SUBDIR)/gold && \
22301 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22302 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 22303 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
b916272a 22304 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
22305 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22306 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22307 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22308 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22309 TFLAGS="$(STAGE4_TFLAGS)" \
b916272a
ILT
22310 $(TARGET-stage4-gold)
22311
22312maybe-clean-stage4-gold: clean-stage4-gold
22313clean-stage4: clean-stage4-gold
22314clean-stage4-gold:
22315 @if [ $(current_stage) = stage4 ]; then \
22316 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22317 else \
22318 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
22319 $(MAKE) stage4-start; \
22320 fi; \
22321 cd $(HOST_SUBDIR)/gold && \
22322 $(MAKE) $(EXTRA_HOST_FLAGS) \
22323 $(POSTSTAGE1_FLAGS_TO_PASS) \
22324 clean
22325@endif gold-bootstrap
22326
22327
22328.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
22329.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
22330maybe-all-stageprofile-gold:
22331maybe-clean-stageprofile-gold:
22332@if gold-bootstrap
22333maybe-all-stageprofile-gold: all-stageprofile-gold
22334all-stageprofile: all-stageprofile-gold
22335TARGET-stageprofile-gold = $(TARGET-gold)
22336all-stageprofile-gold: configure-stageprofile-gold
22337 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22338 @r=`${PWD_COMMAND}`; export r; \
22339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22340 TFLAGS="$(STAGEprofile_TFLAGS)"; \
b916272a 22341 $(HOST_EXPORTS) \
5074489a 22342 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a
ILT
22343 cd $(HOST_SUBDIR)/gold && \
22344 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22345 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 22346 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
22347 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22348 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22349 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22350 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22351 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22352 TFLAGS="$(STAGEprofile_TFLAGS)" \
b916272a
ILT
22353 $(TARGET-stageprofile-gold)
22354
22355maybe-clean-stageprofile-gold: clean-stageprofile-gold
22356clean-stageprofile: clean-stageprofile-gold
22357clean-stageprofile-gold:
22358 @if [ $(current_stage) = stageprofile ]; then \
22359 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22360 else \
22361 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
22362 $(MAKE) stageprofile-start; \
22363 fi; \
22364 cd $(HOST_SUBDIR)/gold && \
22365 $(MAKE) $(EXTRA_HOST_FLAGS) \
22366 $(POSTSTAGE1_FLAGS_TO_PASS) \
22367 clean
22368@endif gold-bootstrap
22369
22370
22371.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
22372.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
22373maybe-all-stagefeedback-gold:
22374maybe-clean-stagefeedback-gold:
22375@if gold-bootstrap
22376maybe-all-stagefeedback-gold: all-stagefeedback-gold
22377all-stagefeedback: all-stagefeedback-gold
22378TARGET-stagefeedback-gold = $(TARGET-gold)
22379all-stagefeedback-gold: configure-stagefeedback-gold
22380 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22381 @r=`${PWD_COMMAND}`; export r; \
22382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 22383 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
b916272a 22384 $(HOST_EXPORTS) \
5074489a 22385 $(POSTSTAGE1_HOST_EXPORTS) \
b916272a
ILT
22386 cd $(HOST_SUBDIR)/gold && \
22387 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 22388 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 22389 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
22390 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22391 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22392 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22393 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22394 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22395 TFLAGS="$(STAGEfeedback_TFLAGS)" \
b916272a
ILT
22396 $(TARGET-stagefeedback-gold)
22397
22398maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
22399clean-stagefeedback: clean-stagefeedback-gold
22400clean-stagefeedback-gold:
22401 @if [ $(current_stage) = stagefeedback ]; then \
22402 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
22403 else \
22404 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
22405 $(MAKE) stagefeedback-start; \
22406 fi; \
22407 cd $(HOST_SUBDIR)/gold && \
22408 $(MAKE) $(EXTRA_HOST_FLAGS) \
22409 $(POSTSTAGE1_FLAGS_TO_PASS) \
22410 clean
22411@endif gold-bootstrap
22412
22413
22414
22415
22416
22417.PHONY: check-gold maybe-check-gold
22418maybe-check-gold:
22419@if gold
22420maybe-check-gold: check-gold
22421
22422check-gold:
22423 @: $(MAKE); $(unstage)
22424 @r=`${PWD_COMMAND}`; export r; \
22425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22426 $(HOST_EXPORTS) \
22427 (cd $(HOST_SUBDIR)/gold && \
22428 $(MAKE) $(FLAGS_TO_PASS) check)
22429
22430@endif gold
22431
22432.PHONY: install-gold maybe-install-gold
22433maybe-install-gold:
22434@if gold
22435maybe-install-gold: install-gold
22436
22437install-gold: installdirs
22438 @: $(MAKE); $(unstage)
22439 @r=`${PWD_COMMAND}`; export r; \
22440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22441 $(HOST_EXPORTS) \
22442 (cd $(HOST_SUBDIR)/gold && \
22443 $(MAKE) $(FLAGS_TO_PASS) install)
22444
22445@endif gold
22446
22447# Other targets (info, dvi, pdf, etc.)
22448
22449.PHONY: maybe-info-gold info-gold
22450maybe-info-gold:
22451@if gold
22452maybe-info-gold: info-gold
22453
22454info-gold: \
22455 configure-gold
22456 @[ -f ./gold/Makefile ] || exit 0; \
22457 r=`${PWD_COMMAND}`; export r; \
22458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22459 $(HOST_EXPORTS) \
22460 for flag in $(EXTRA_HOST_FLAGS) ; do \
22461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22462 done; \
22463 echo "Doing info in gold" ; \
22464 (cd $(HOST_SUBDIR)/gold && \
22465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22467 "RANLIB=$${RANLIB}" \
22468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22469 info) \
22470 || exit 1
22471
22472@endif gold
22473
22474.PHONY: maybe-dvi-gold dvi-gold
22475maybe-dvi-gold:
22476@if gold
22477maybe-dvi-gold: dvi-gold
22478
22479dvi-gold: \
22480 configure-gold
22481 @[ -f ./gold/Makefile ] || exit 0; \
22482 r=`${PWD_COMMAND}`; export r; \
22483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22484 $(HOST_EXPORTS) \
22485 for flag in $(EXTRA_HOST_FLAGS) ; do \
22486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22487 done; \
22488 echo "Doing dvi in gold" ; \
22489 (cd $(HOST_SUBDIR)/gold && \
22490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22492 "RANLIB=$${RANLIB}" \
22493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22494 dvi) \
22495 || exit 1
22496
22497@endif gold
22498
22499.PHONY: maybe-pdf-gold pdf-gold
22500maybe-pdf-gold:
22501@if gold
22502maybe-pdf-gold: pdf-gold
22503
22504pdf-gold: \
22505 configure-gold
22506 @[ -f ./gold/Makefile ] || exit 0; \
22507 r=`${PWD_COMMAND}`; export r; \
22508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22509 $(HOST_EXPORTS) \
22510 for flag in $(EXTRA_HOST_FLAGS) ; do \
22511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22512 done; \
22513 echo "Doing pdf in gold" ; \
22514 (cd $(HOST_SUBDIR)/gold && \
22515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22517 "RANLIB=$${RANLIB}" \
22518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22519 pdf) \
22520 || exit 1
22521
22522@endif gold
22523
22524.PHONY: maybe-html-gold html-gold
22525maybe-html-gold:
22526@if gold
22527maybe-html-gold: html-gold
22528
22529html-gold: \
22530 configure-gold
22531 @[ -f ./gold/Makefile ] || exit 0; \
22532 r=`${PWD_COMMAND}`; export r; \
22533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22534 $(HOST_EXPORTS) \
22535 for flag in $(EXTRA_HOST_FLAGS) ; do \
22536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22537 done; \
22538 echo "Doing html in gold" ; \
22539 (cd $(HOST_SUBDIR)/gold && \
22540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22542 "RANLIB=$${RANLIB}" \
22543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22544 html) \
22545 || exit 1
22546
22547@endif gold
22548
22549.PHONY: maybe-TAGS-gold TAGS-gold
22550maybe-TAGS-gold:
22551@if gold
22552maybe-TAGS-gold: TAGS-gold
22553
22554TAGS-gold: \
22555 configure-gold
22556 @[ -f ./gold/Makefile ] || exit 0; \
22557 r=`${PWD_COMMAND}`; export r; \
22558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22559 $(HOST_EXPORTS) \
22560 for flag in $(EXTRA_HOST_FLAGS) ; do \
22561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22562 done; \
22563 echo "Doing TAGS in gold" ; \
22564 (cd $(HOST_SUBDIR)/gold && \
22565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22567 "RANLIB=$${RANLIB}" \
22568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22569 TAGS) \
22570 || exit 1
22571
22572@endif gold
22573
22574.PHONY: maybe-install-info-gold install-info-gold
22575maybe-install-info-gold:
22576@if gold
22577maybe-install-info-gold: install-info-gold
22578
22579install-info-gold: \
22580 configure-gold \
22581 info-gold
22582 @[ -f ./gold/Makefile ] || exit 0; \
22583 r=`${PWD_COMMAND}`; export r; \
22584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22585 $(HOST_EXPORTS) \
22586 for flag in $(EXTRA_HOST_FLAGS) ; do \
22587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22588 done; \
22589 echo "Doing install-info in gold" ; \
22590 (cd $(HOST_SUBDIR)/gold && \
22591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22593 "RANLIB=$${RANLIB}" \
22594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22595 install-info) \
22596 || exit 1
22597
22598@endif gold
22599
22600.PHONY: maybe-install-pdf-gold install-pdf-gold
22601maybe-install-pdf-gold:
22602@if gold
22603maybe-install-pdf-gold: install-pdf-gold
22604
22605install-pdf-gold: \
22606 configure-gold \
22607 pdf-gold
22608 @[ -f ./gold/Makefile ] || exit 0; \
22609 r=`${PWD_COMMAND}`; export r; \
22610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22611 $(HOST_EXPORTS) \
22612 for flag in $(EXTRA_HOST_FLAGS) ; do \
22613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22614 done; \
22615 echo "Doing install-pdf in gold" ; \
22616 (cd $(HOST_SUBDIR)/gold && \
22617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22619 "RANLIB=$${RANLIB}" \
22620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22621 install-pdf) \
22622 || exit 1
22623
22624@endif gold
22625
22626.PHONY: maybe-install-html-gold install-html-gold
22627maybe-install-html-gold:
22628@if gold
22629maybe-install-html-gold: install-html-gold
22630
22631install-html-gold: \
22632 configure-gold \
22633 html-gold
22634 @[ -f ./gold/Makefile ] || exit 0; \
22635 r=`${PWD_COMMAND}`; export r; \
22636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22637 $(HOST_EXPORTS) \
22638 for flag in $(EXTRA_HOST_FLAGS) ; do \
22639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22640 done; \
22641 echo "Doing install-html in gold" ; \
22642 (cd $(HOST_SUBDIR)/gold && \
22643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22645 "RANLIB=$${RANLIB}" \
22646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22647 install-html) \
22648 || exit 1
22649
22650@endif gold
22651
22652.PHONY: maybe-installcheck-gold installcheck-gold
22653maybe-installcheck-gold:
22654@if gold
22655maybe-installcheck-gold: installcheck-gold
22656
22657installcheck-gold: \
22658 configure-gold
22659 @[ -f ./gold/Makefile ] || exit 0; \
22660 r=`${PWD_COMMAND}`; export r; \
22661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22662 $(HOST_EXPORTS) \
22663 for flag in $(EXTRA_HOST_FLAGS) ; do \
22664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22665 done; \
22666 echo "Doing installcheck in gold" ; \
22667 (cd $(HOST_SUBDIR)/gold && \
22668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22670 "RANLIB=$${RANLIB}" \
22671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22672 installcheck) \
22673 || exit 1
22674
22675@endif gold
22676
22677.PHONY: maybe-mostlyclean-gold mostlyclean-gold
22678maybe-mostlyclean-gold:
22679@if gold
22680maybe-mostlyclean-gold: mostlyclean-gold
22681
22682mostlyclean-gold:
22683 @[ -f ./gold/Makefile ] || exit 0; \
22684 r=`${PWD_COMMAND}`; export r; \
22685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22686 $(HOST_EXPORTS) \
22687 for flag in $(EXTRA_HOST_FLAGS) ; do \
22688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22689 done; \
22690 echo "Doing mostlyclean in gold" ; \
22691 (cd $(HOST_SUBDIR)/gold && \
22692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22694 "RANLIB=$${RANLIB}" \
22695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22696 mostlyclean) \
22697 || exit 1
22698
22699@endif gold
22700
22701.PHONY: maybe-clean-gold clean-gold
22702maybe-clean-gold:
22703@if gold
22704maybe-clean-gold: clean-gold
22705
22706clean-gold:
22707 @[ -f ./gold/Makefile ] || exit 0; \
22708 r=`${PWD_COMMAND}`; export r; \
22709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22710 $(HOST_EXPORTS) \
22711 for flag in $(EXTRA_HOST_FLAGS) ; do \
22712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22713 done; \
22714 echo "Doing clean in gold" ; \
22715 (cd $(HOST_SUBDIR)/gold && \
22716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22718 "RANLIB=$${RANLIB}" \
22719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22720 clean) \
22721 || exit 1
22722
22723@endif gold
22724
22725.PHONY: maybe-distclean-gold distclean-gold
22726maybe-distclean-gold:
22727@if gold
22728maybe-distclean-gold: distclean-gold
22729
22730distclean-gold:
22731 @[ -f ./gold/Makefile ] || exit 0; \
22732 r=`${PWD_COMMAND}`; export r; \
22733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22734 $(HOST_EXPORTS) \
22735 for flag in $(EXTRA_HOST_FLAGS) ; do \
22736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22737 done; \
22738 echo "Doing distclean in gold" ; \
22739 (cd $(HOST_SUBDIR)/gold && \
22740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22742 "RANLIB=$${RANLIB}" \
22743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22744 distclean) \
22745 || exit 1
22746
22747@endif gold
22748
22749.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
22750maybe-maintainer-clean-gold:
22751@if gold
22752maybe-maintainer-clean-gold: maintainer-clean-gold
22753
22754maintainer-clean-gold:
22755 @[ -f ./gold/Makefile ] || exit 0; \
22756 r=`${PWD_COMMAND}`; export r; \
22757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22758 $(HOST_EXPORTS) \
22759 for flag in $(EXTRA_HOST_FLAGS) ; do \
22760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22761 done; \
22762 echo "Doing maintainer-clean in gold" ; \
22763 (cd $(HOST_SUBDIR)/gold && \
22764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22766 "RANLIB=$${RANLIB}" \
22767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22768 maintainer-clean) \
22769 || exit 1
22770
22771@endif gold
22772
22773
22774
d5eec917
PB
22775.PHONY: configure-gprof maybe-configure-gprof
22776maybe-configure-gprof:
e1e5148c
CD
22777@if gcc-bootstrap
22778configure-gprof: stage_current
22779@endif gcc-bootstrap
d5eec917
PB
22780@if gprof
22781maybe-configure-gprof: configure-gprof
ec92c4d6 22782configure-gprof:
15b527ca 22783 @: $(MAKE); $(unstage)
ec92c4d6 22784 @r=`${PWD_COMMAND}`; export r; \
5230d454 22785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
22786 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22787 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
5074489a 22788 $(HOST_EXPORTS) \
f0fdfd34
PB
22789 echo Configuring in $(HOST_SUBDIR)/gprof; \
22790 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
8ec98d6c 22791 case $(srcdir) in \
7fc2ca22
PB
22792 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22793 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
22794 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 22795 esac; \
7fc2ca22
PB
22796 srcdiroption="--srcdir=$${topdir}/gprof"; \
22797 libsrcdir="$$s/gprof"; \
8ec98d6c 22798 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
22799 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22800 --target=${target_alias} $${srcdiroption} \
657b58f4 22801 || exit 1
d5eec917 22802@endif gprof
657b58f4 22803
f0fdfd34
PB
22804
22805
a8a96878
PB
22806
22807
d5eec917
PB
22808.PHONY: all-gprof maybe-all-gprof
22809maybe-all-gprof:
e1e5148c
CD
22810@if gcc-bootstrap
22811all-gprof: stage_current
22812@endif gcc-bootstrap
d5eec917 22813@if gprof
5e6b1f07 22814TARGET-gprof=all
d5eec917
PB
22815maybe-all-gprof: all-gprof
22816all-gprof: configure-gprof
15b527ca 22817 @: $(MAKE); $(unstage)
8ec98d6c
NN
22818 @r=`${PWD_COMMAND}`; export r; \
22819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 22820 $(HOST_EXPORTS) \
7fc2ca22 22821 (cd $(HOST_SUBDIR)/gprof && \
6532abb6
PB
22822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
22823 $(TARGET-gprof))
d5eec917 22824@endif gprof
657b58f4 22825
f0fdfd34 22826
a8a96878
PB
22827
22828
d5eec917
PB
22829.PHONY: check-gprof maybe-check-gprof
22830maybe-check-gprof:
22831@if gprof
22832maybe-check-gprof: check-gprof
657b58f4 22833
d5eec917 22834check-gprof:
15b527ca 22835 @: $(MAKE); $(unstage)
8ec98d6c 22836 @r=`${PWD_COMMAND}`; export r; \
5230d454 22837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22838 $(HOST_EXPORTS) \
7fc2ca22
PB
22839 (cd $(HOST_SUBDIR)/gprof && \
22840 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 22841
d5eec917 22842@endif gprof
657b58f4 22843
d5eec917
PB
22844.PHONY: install-gprof maybe-install-gprof
22845maybe-install-gprof:
22846@if gprof
22847maybe-install-gprof: install-gprof
8ec98d6c 22848
d5eec917 22849install-gprof: installdirs
15b527ca 22850 @: $(MAKE); $(unstage)
8ec98d6c 22851 @r=`${PWD_COMMAND}`; export r; \
5230d454 22852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22853 $(HOST_EXPORTS) \
7fc2ca22 22854 (cd $(HOST_SUBDIR)/gprof && \
93c60b6d 22855 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 22856
d5eec917 22857@endif gprof
657b58f4 22858
39bbbb69 22859# Other targets (info, dvi, pdf, etc.)
657b58f4 22860
d5eec917
PB
22861.PHONY: maybe-info-gprof info-gprof
22862maybe-info-gprof:
22863@if gprof
22864maybe-info-gprof: info-gprof
8ec98d6c 22865
d5eec917
PB
22866info-gprof: \
22867 configure-gprof
15b527ca 22868 @: $(MAKE); $(unstage)
d5eec917 22869 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
22870 r=`${PWD_COMMAND}`; export r; \
22871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22872 $(HOST_EXPORTS) \
d5eec917 22873 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22875 done; \
d5eec917 22876 echo "Doing info in gprof" ; \
7fc2ca22 22877 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
22878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22880 "RANLIB=$${RANLIB}" \
bffcbe34 22881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22882 info) \
657b58f4
NN
22883 || exit 1
22884
d5eec917 22885@endif gprof
657b58f4 22886
d5eec917
PB
22887.PHONY: maybe-dvi-gprof dvi-gprof
22888maybe-dvi-gprof:
22889@if gprof
22890maybe-dvi-gprof: dvi-gprof
657b58f4 22891
d5eec917
PB
22892dvi-gprof: \
22893 configure-gprof
15b527ca 22894 @: $(MAKE); $(unstage)
d5eec917 22895 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
22896 r=`${PWD_COMMAND}`; export r; \
22897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22898 $(HOST_EXPORTS) \
d5eec917 22899 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22901 done; \
d5eec917 22902 echo "Doing dvi in gprof" ; \
7fc2ca22 22903 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
22904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22906 "RANLIB=$${RANLIB}" \
bffcbe34 22907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22908 dvi) \
657b58f4
NN
22909 || exit 1
22910
d5eec917 22911@endif gprof
657b58f4 22912
39bbbb69
DD
22913.PHONY: maybe-pdf-gprof pdf-gprof
22914maybe-pdf-gprof:
22915@if gprof
22916maybe-pdf-gprof: pdf-gprof
22917
22918pdf-gprof: \
22919 configure-gprof
22920 @: $(MAKE); $(unstage)
22921 @[ -f ./gprof/Makefile ] || exit 0; \
22922 r=`${PWD_COMMAND}`; export r; \
22923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22924 $(HOST_EXPORTS) \
22925 for flag in $(EXTRA_HOST_FLAGS) ; do \
22926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22927 done; \
22928 echo "Doing pdf in gprof" ; \
22929 (cd $(HOST_SUBDIR)/gprof && \
22930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22932 "RANLIB=$${RANLIB}" \
bffcbe34 22933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
22934 pdf) \
22935 || exit 1
22936
22937@endif gprof
22938
b6fb961f
MS
22939.PHONY: maybe-html-gprof html-gprof
22940maybe-html-gprof:
22941@if gprof
22942maybe-html-gprof: html-gprof
22943
22944html-gprof: \
22945 configure-gprof
15b527ca 22946 @: $(MAKE); $(unstage)
b6fb961f
MS
22947 @[ -f ./gprof/Makefile ] || exit 0; \
22948 r=`${PWD_COMMAND}`; export r; \
22949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
22950 $(HOST_EXPORTS) \
22951 for flag in $(EXTRA_HOST_FLAGS) ; do \
22952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22953 done; \
22954 echo "Doing html in gprof" ; \
7fc2ca22 22955 (cd $(HOST_SUBDIR)/gprof && \
b6fb961f
MS
22956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22958 "RANLIB=$${RANLIB}" \
bffcbe34 22959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
22960 html) \
22961 || exit 1
22962
22963@endif gprof
22964
d5eec917
PB
22965.PHONY: maybe-TAGS-gprof TAGS-gprof
22966maybe-TAGS-gprof:
22967@if gprof
22968maybe-TAGS-gprof: TAGS-gprof
657b58f4 22969
d5eec917
PB
22970TAGS-gprof: \
22971 configure-gprof
15b527ca 22972 @: $(MAKE); $(unstage)
d5eec917 22973 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
22974 r=`${PWD_COMMAND}`; export r; \
22975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 22976 $(HOST_EXPORTS) \
d5eec917 22977 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
22978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22979 done; \
d5eec917 22980 echo "Doing TAGS in gprof" ; \
7fc2ca22 22981 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
22982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22984 "RANLIB=$${RANLIB}" \
bffcbe34 22985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 22986 TAGS) \
657b58f4
NN
22987 || exit 1
22988
d5eec917 22989@endif gprof
657b58f4 22990
d5eec917
PB
22991.PHONY: maybe-install-info-gprof install-info-gprof
22992maybe-install-info-gprof:
22993@if gprof
22994maybe-install-info-gprof: install-info-gprof
657b58f4 22995
d5eec917
PB
22996install-info-gprof: \
22997 configure-gprof \
22998 info-gprof
15b527ca 22999 @: $(MAKE); $(unstage)
d5eec917 23000 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23001 r=`${PWD_COMMAND}`; export r; \
23002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23003 $(HOST_EXPORTS) \
d5eec917 23004 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23006 done; \
d5eec917 23007 echo "Doing install-info in gprof" ; \
7fc2ca22 23008 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23011 "RANLIB=$${RANLIB}" \
bffcbe34 23012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23013 install-info) \
657b58f4
NN
23014 || exit 1
23015
d5eec917 23016@endif gprof
657b58f4 23017
d4954b6d
DD
23018.PHONY: maybe-install-pdf-gprof install-pdf-gprof
23019maybe-install-pdf-gprof:
23020@if gprof
23021maybe-install-pdf-gprof: install-pdf-gprof
23022
23023install-pdf-gprof: \
23024 configure-gprof \
23025 pdf-gprof
23026 @: $(MAKE); $(unstage)
23027 @[ -f ./gprof/Makefile ] || exit 0; \
23028 r=`${PWD_COMMAND}`; export r; \
23029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23030 $(HOST_EXPORTS) \
23031 for flag in $(EXTRA_HOST_FLAGS) ; do \
23032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23033 done; \
23034 echo "Doing install-pdf in gprof" ; \
23035 (cd $(HOST_SUBDIR)/gprof && \
23036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23038 "RANLIB=$${RANLIB}" \
bffcbe34 23039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
23040 install-pdf) \
23041 || exit 1
23042
23043@endif gprof
23044
83c9add4
CD
23045.PHONY: maybe-install-html-gprof install-html-gprof
23046maybe-install-html-gprof:
23047@if gprof
23048maybe-install-html-gprof: install-html-gprof
23049
23050install-html-gprof: \
23051 configure-gprof \
23052 html-gprof
23053 @: $(MAKE); $(unstage)
23054 @[ -f ./gprof/Makefile ] || exit 0; \
23055 r=`${PWD_COMMAND}`; export r; \
23056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23057 $(HOST_EXPORTS) \
23058 for flag in $(EXTRA_HOST_FLAGS) ; do \
23059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23060 done; \
23061 echo "Doing install-html in gprof" ; \
23062 (cd $(HOST_SUBDIR)/gprof && \
23063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23065 "RANLIB=$${RANLIB}" \
bffcbe34 23066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
23067 install-html) \
23068 || exit 1
23069
23070@endif gprof
23071
d5eec917
PB
23072.PHONY: maybe-installcheck-gprof installcheck-gprof
23073maybe-installcheck-gprof:
23074@if gprof
23075maybe-installcheck-gprof: installcheck-gprof
657b58f4 23076
d5eec917
PB
23077installcheck-gprof: \
23078 configure-gprof
15b527ca 23079 @: $(MAKE); $(unstage)
d5eec917 23080 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23081 r=`${PWD_COMMAND}`; export r; \
23082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23083 $(HOST_EXPORTS) \
d5eec917 23084 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23086 done; \
d5eec917 23087 echo "Doing installcheck in gprof" ; \
7fc2ca22 23088 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23091 "RANLIB=$${RANLIB}" \
bffcbe34 23092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23093 installcheck) \
657b58f4
NN
23094 || exit 1
23095
d5eec917 23096@endif gprof
657b58f4 23097
d5eec917
PB
23098.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
23099maybe-mostlyclean-gprof:
23100@if gprof
23101maybe-mostlyclean-gprof: mostlyclean-gprof
657b58f4 23102
d5eec917 23103mostlyclean-gprof:
15b527ca 23104 @: $(MAKE); $(unstage)
d5eec917 23105 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23106 r=`${PWD_COMMAND}`; export r; \
23107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23108 $(HOST_EXPORTS) \
d5eec917 23109 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23111 done; \
d5eec917 23112 echo "Doing mostlyclean in gprof" ; \
7fc2ca22 23113 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23116 "RANLIB=$${RANLIB}" \
bffcbe34 23117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23118 mostlyclean) \
657b58f4
NN
23119 || exit 1
23120
d5eec917 23121@endif gprof
657b58f4 23122
d5eec917
PB
23123.PHONY: maybe-clean-gprof clean-gprof
23124maybe-clean-gprof:
23125@if gprof
23126maybe-clean-gprof: clean-gprof
657b58f4 23127
d5eec917 23128clean-gprof:
15b527ca 23129 @: $(MAKE); $(unstage)
d5eec917 23130 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23131 r=`${PWD_COMMAND}`; export r; \
23132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23133 $(HOST_EXPORTS) \
d5eec917 23134 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23136 done; \
d5eec917 23137 echo "Doing clean in gprof" ; \
7fc2ca22 23138 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23141 "RANLIB=$${RANLIB}" \
bffcbe34 23142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23143 clean) \
657b58f4
NN
23144 || exit 1
23145
d5eec917 23146@endif gprof
657b58f4 23147
d5eec917
PB
23148.PHONY: maybe-distclean-gprof distclean-gprof
23149maybe-distclean-gprof:
23150@if gprof
23151maybe-distclean-gprof: distclean-gprof
657b58f4 23152
d5eec917 23153distclean-gprof:
15b527ca 23154 @: $(MAKE); $(unstage)
d5eec917 23155 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23156 r=`${PWD_COMMAND}`; export r; \
23157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23158 $(HOST_EXPORTS) \
d5eec917 23159 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23161 done; \
d5eec917 23162 echo "Doing distclean in gprof" ; \
7fc2ca22 23163 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23166 "RANLIB=$${RANLIB}" \
bffcbe34 23167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23168 distclean) \
657b58f4
NN
23169 || exit 1
23170
d5eec917 23171@endif gprof
657b58f4 23172
d5eec917
PB
23173.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
23174maybe-maintainer-clean-gprof:
23175@if gprof
23176maybe-maintainer-clean-gprof: maintainer-clean-gprof
657b58f4 23177
d5eec917 23178maintainer-clean-gprof:
15b527ca 23179 @: $(MAKE); $(unstage)
d5eec917 23180 @[ -f ./gprof/Makefile ] || exit 0; \
5230d454
L
23181 r=`${PWD_COMMAND}`; export r; \
23182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23183 $(HOST_EXPORTS) \
d5eec917 23184 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23186 done; \
d5eec917 23187 echo "Doing maintainer-clean in gprof" ; \
7fc2ca22 23188 (cd $(HOST_SUBDIR)/gprof && \
657b58f4
NN
23189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23191 "RANLIB=$${RANLIB}" \
bffcbe34 23192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23193 maintainer-clean) \
657b58f4
NN
23194 || exit 1
23195
d5eec917 23196@endif gprof
657b58f4 23197
657b58f4 23198
f0fdfd34 23199
d5eec917
PB
23200.PHONY: configure-gzip maybe-configure-gzip
23201maybe-configure-gzip:
e1e5148c
CD
23202@if gcc-bootstrap
23203configure-gzip: stage_current
23204@endif gcc-bootstrap
d5eec917
PB
23205@if gzip
23206maybe-configure-gzip: configure-gzip
ec92c4d6 23207configure-gzip:
15b527ca 23208 @: $(MAKE); $(unstage)
ec92c4d6 23209 @r=`${PWD_COMMAND}`; export r; \
5230d454 23210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
23211 test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
23212 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
5074489a 23213 $(HOST_EXPORTS) \
f0fdfd34
PB
23214 echo Configuring in $(HOST_SUBDIR)/gzip; \
23215 cd "$(HOST_SUBDIR)/gzip" || exit 1; \
8ec98d6c 23216 case $(srcdir) in \
7fc2ca22
PB
23217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23218 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
23219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 23220 esac; \
7fc2ca22
PB
23221 srcdiroption="--srcdir=$${topdir}/gzip"; \
23222 libsrcdir="$$s/gzip"; \
8ec98d6c 23223 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23225 --target=${target_alias} $${srcdiroption} \
657b58f4 23226 || exit 1
d5eec917 23227@endif gzip
657b58f4 23228
f0fdfd34
PB
23229
23230
a8a96878
PB
23231
23232
d5eec917
PB
23233.PHONY: all-gzip maybe-all-gzip
23234maybe-all-gzip:
e1e5148c
CD
23235@if gcc-bootstrap
23236all-gzip: stage_current
23237@endif gcc-bootstrap
d5eec917 23238@if gzip
5e6b1f07 23239TARGET-gzip=all
d5eec917
PB
23240maybe-all-gzip: all-gzip
23241all-gzip: configure-gzip
15b527ca 23242 @: $(MAKE); $(unstage)
8ec98d6c
NN
23243 @r=`${PWD_COMMAND}`; export r; \
23244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 23245 $(HOST_EXPORTS) \
7fc2ca22 23246 (cd $(HOST_SUBDIR)/gzip && \
6532abb6
PB
23247 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
23248 $(TARGET-gzip))
d5eec917 23249@endif gzip
657b58f4 23250
f0fdfd34 23251
a8a96878
PB
23252
23253
d5eec917
PB
23254.PHONY: check-gzip maybe-check-gzip
23255maybe-check-gzip:
23256@if gzip
23257maybe-check-gzip: check-gzip
657b58f4 23258
d5eec917 23259check-gzip:
15b527ca 23260 @: $(MAKE); $(unstage)
8ec98d6c 23261 @r=`${PWD_COMMAND}`; export r; \
5230d454 23262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23263 $(HOST_EXPORTS) \
7fc2ca22
PB
23264 (cd $(HOST_SUBDIR)/gzip && \
23265 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 23266
d5eec917 23267@endif gzip
657b58f4 23268
d5eec917
PB
23269.PHONY: install-gzip maybe-install-gzip
23270maybe-install-gzip:
23271@if gzip
23272maybe-install-gzip: install-gzip
657b58f4 23273
d5eec917 23274install-gzip: installdirs
15b527ca 23275 @: $(MAKE); $(unstage)
8ec98d6c 23276 @r=`${PWD_COMMAND}`; export r; \
5230d454 23277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23278 $(HOST_EXPORTS) \
7fc2ca22 23279 (cd $(HOST_SUBDIR)/gzip && \
93c60b6d 23280 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 23281
d5eec917 23282@endif gzip
657b58f4 23283
39bbbb69 23284# Other targets (info, dvi, pdf, etc.)
657b58f4 23285
d5eec917
PB
23286.PHONY: maybe-info-gzip info-gzip
23287maybe-info-gzip:
23288@if gzip
23289maybe-info-gzip: info-gzip
8ec98d6c 23290
d5eec917
PB
23291info-gzip: \
23292 configure-gzip
15b527ca 23293 @: $(MAKE); $(unstage)
d5eec917 23294 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23295 r=`${PWD_COMMAND}`; export r; \
23296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23297 $(HOST_EXPORTS) \
d5eec917 23298 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23300 done; \
d5eec917 23301 echo "Doing info in gzip" ; \
7fc2ca22 23302 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23305 "RANLIB=$${RANLIB}" \
bffcbe34 23306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23307 info) \
657b58f4
NN
23308 || exit 1
23309
d5eec917 23310@endif gzip
657b58f4 23311
d5eec917
PB
23312.PHONY: maybe-dvi-gzip dvi-gzip
23313maybe-dvi-gzip:
23314@if gzip
23315maybe-dvi-gzip: dvi-gzip
657b58f4 23316
d5eec917
PB
23317dvi-gzip: \
23318 configure-gzip
15b527ca 23319 @: $(MAKE); $(unstage)
d5eec917 23320 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23321 r=`${PWD_COMMAND}`; export r; \
23322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23323 $(HOST_EXPORTS) \
d5eec917 23324 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23326 done; \
d5eec917 23327 echo "Doing dvi in gzip" ; \
7fc2ca22 23328 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23331 "RANLIB=$${RANLIB}" \
bffcbe34 23332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23333 dvi) \
657b58f4
NN
23334 || exit 1
23335
d5eec917 23336@endif gzip
657b58f4 23337
39bbbb69
DD
23338.PHONY: maybe-pdf-gzip pdf-gzip
23339maybe-pdf-gzip:
23340@if gzip
23341maybe-pdf-gzip: pdf-gzip
23342
23343pdf-gzip: \
23344 configure-gzip
23345 @: $(MAKE); $(unstage)
23346 @[ -f ./gzip/Makefile ] || exit 0; \
23347 r=`${PWD_COMMAND}`; export r; \
23348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23349 $(HOST_EXPORTS) \
23350 for flag in $(EXTRA_HOST_FLAGS) ; do \
23351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23352 done; \
23353 echo "Doing pdf in gzip" ; \
23354 (cd $(HOST_SUBDIR)/gzip && \
23355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23357 "RANLIB=$${RANLIB}" \
bffcbe34 23358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
23359 pdf) \
23360 || exit 1
23361
23362@endif gzip
23363
b6fb961f
MS
23364.PHONY: maybe-html-gzip html-gzip
23365maybe-html-gzip:
23366@if gzip
23367maybe-html-gzip: html-gzip
23368
23369html-gzip: \
23370 configure-gzip
15b527ca 23371 @: $(MAKE); $(unstage)
b6fb961f
MS
23372 @[ -f ./gzip/Makefile ] || exit 0; \
23373 r=`${PWD_COMMAND}`; export r; \
23374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
23375 $(HOST_EXPORTS) \
23376 for flag in $(EXTRA_HOST_FLAGS) ; do \
23377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23378 done; \
23379 echo "Doing html in gzip" ; \
7fc2ca22 23380 (cd $(HOST_SUBDIR)/gzip && \
b6fb961f
MS
23381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23383 "RANLIB=$${RANLIB}" \
bffcbe34 23384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
23385 html) \
23386 || exit 1
23387
23388@endif gzip
23389
d5eec917
PB
23390.PHONY: maybe-TAGS-gzip TAGS-gzip
23391maybe-TAGS-gzip:
23392@if gzip
23393maybe-TAGS-gzip: TAGS-gzip
657b58f4 23394
d5eec917
PB
23395TAGS-gzip: \
23396 configure-gzip
15b527ca 23397 @: $(MAKE); $(unstage)
d5eec917 23398 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23399 r=`${PWD_COMMAND}`; export r; \
23400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23401 $(HOST_EXPORTS) \
d5eec917 23402 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23404 done; \
d5eec917 23405 echo "Doing TAGS in gzip" ; \
7fc2ca22 23406 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23409 "RANLIB=$${RANLIB}" \
bffcbe34 23410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23411 TAGS) \
657b58f4
NN
23412 || exit 1
23413
d5eec917 23414@endif gzip
657b58f4 23415
d5eec917
PB
23416.PHONY: maybe-install-info-gzip install-info-gzip
23417maybe-install-info-gzip:
23418@if gzip
23419maybe-install-info-gzip: install-info-gzip
657b58f4 23420
d5eec917
PB
23421install-info-gzip: \
23422 configure-gzip \
23423 info-gzip
15b527ca 23424 @: $(MAKE); $(unstage)
d5eec917 23425 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23426 r=`${PWD_COMMAND}`; export r; \
23427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23428 $(HOST_EXPORTS) \
d5eec917 23429 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23431 done; \
d5eec917 23432 echo "Doing install-info in gzip" ; \
7fc2ca22 23433 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23436 "RANLIB=$${RANLIB}" \
bffcbe34 23437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23438 install-info) \
657b58f4
NN
23439 || exit 1
23440
d5eec917 23441@endif gzip
657b58f4 23442
d4954b6d
DD
23443.PHONY: maybe-install-pdf-gzip install-pdf-gzip
23444maybe-install-pdf-gzip:
23445@if gzip
23446maybe-install-pdf-gzip: install-pdf-gzip
23447
23448install-pdf-gzip: \
23449 configure-gzip \
23450 pdf-gzip
23451 @: $(MAKE); $(unstage)
23452 @[ -f ./gzip/Makefile ] || exit 0; \
23453 r=`${PWD_COMMAND}`; export r; \
23454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23455 $(HOST_EXPORTS) \
23456 for flag in $(EXTRA_HOST_FLAGS) ; do \
23457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23458 done; \
23459 echo "Doing install-pdf in gzip" ; \
23460 (cd $(HOST_SUBDIR)/gzip && \
23461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23463 "RANLIB=$${RANLIB}" \
bffcbe34 23464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
23465 install-pdf) \
23466 || exit 1
23467
23468@endif gzip
23469
83c9add4
CD
23470.PHONY: maybe-install-html-gzip install-html-gzip
23471maybe-install-html-gzip:
23472@if gzip
23473maybe-install-html-gzip: install-html-gzip
23474
23475install-html-gzip: \
23476 configure-gzip \
23477 html-gzip
23478 @: $(MAKE); $(unstage)
23479 @[ -f ./gzip/Makefile ] || exit 0; \
23480 r=`${PWD_COMMAND}`; export r; \
23481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23482 $(HOST_EXPORTS) \
23483 for flag in $(EXTRA_HOST_FLAGS) ; do \
23484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23485 done; \
23486 echo "Doing install-html in gzip" ; \
23487 (cd $(HOST_SUBDIR)/gzip && \
23488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23490 "RANLIB=$${RANLIB}" \
bffcbe34 23491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
23492 install-html) \
23493 || exit 1
23494
23495@endif gzip
23496
d5eec917
PB
23497.PHONY: maybe-installcheck-gzip installcheck-gzip
23498maybe-installcheck-gzip:
23499@if gzip
23500maybe-installcheck-gzip: installcheck-gzip
657b58f4 23501
d5eec917
PB
23502installcheck-gzip: \
23503 configure-gzip
15b527ca 23504 @: $(MAKE); $(unstage)
d5eec917 23505 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23506 r=`${PWD_COMMAND}`; export r; \
23507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23508 $(HOST_EXPORTS) \
d5eec917 23509 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23511 done; \
d5eec917 23512 echo "Doing installcheck in gzip" ; \
7fc2ca22 23513 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23516 "RANLIB=$${RANLIB}" \
bffcbe34 23517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23518 installcheck) \
657b58f4
NN
23519 || exit 1
23520
d5eec917 23521@endif gzip
657b58f4 23522
d5eec917
PB
23523.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
23524maybe-mostlyclean-gzip:
23525@if gzip
23526maybe-mostlyclean-gzip: mostlyclean-gzip
657b58f4 23527
d5eec917 23528mostlyclean-gzip:
15b527ca 23529 @: $(MAKE); $(unstage)
d5eec917 23530 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23531 r=`${PWD_COMMAND}`; export r; \
23532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23533 $(HOST_EXPORTS) \
d5eec917 23534 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23536 done; \
d5eec917 23537 echo "Doing mostlyclean in gzip" ; \
7fc2ca22 23538 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23541 "RANLIB=$${RANLIB}" \
bffcbe34 23542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23543 mostlyclean) \
657b58f4
NN
23544 || exit 1
23545
d5eec917 23546@endif gzip
657b58f4 23547
d5eec917
PB
23548.PHONY: maybe-clean-gzip clean-gzip
23549maybe-clean-gzip:
23550@if gzip
23551maybe-clean-gzip: clean-gzip
657b58f4 23552
d5eec917 23553clean-gzip:
15b527ca 23554 @: $(MAKE); $(unstage)
d5eec917 23555 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23556 r=`${PWD_COMMAND}`; export r; \
23557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23558 $(HOST_EXPORTS) \
d5eec917 23559 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23561 done; \
d5eec917 23562 echo "Doing clean in gzip" ; \
7fc2ca22 23563 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23566 "RANLIB=$${RANLIB}" \
bffcbe34 23567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23568 clean) \
657b58f4
NN
23569 || exit 1
23570
d5eec917 23571@endif gzip
657b58f4 23572
d5eec917
PB
23573.PHONY: maybe-distclean-gzip distclean-gzip
23574maybe-distclean-gzip:
23575@if gzip
23576maybe-distclean-gzip: distclean-gzip
657b58f4 23577
d5eec917 23578distclean-gzip:
15b527ca 23579 @: $(MAKE); $(unstage)
d5eec917 23580 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23581 r=`${PWD_COMMAND}`; export r; \
23582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23583 $(HOST_EXPORTS) \
d5eec917 23584 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23586 done; \
d5eec917 23587 echo "Doing distclean in gzip" ; \
7fc2ca22 23588 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23591 "RANLIB=$${RANLIB}" \
bffcbe34 23592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23593 distclean) \
657b58f4
NN
23594 || exit 1
23595
d5eec917 23596@endif gzip
657b58f4 23597
d5eec917
PB
23598.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
23599maybe-maintainer-clean-gzip:
23600@if gzip
23601maybe-maintainer-clean-gzip: maintainer-clean-gzip
657b58f4 23602
d5eec917 23603maintainer-clean-gzip:
15b527ca 23604 @: $(MAKE); $(unstage)
d5eec917 23605 @[ -f ./gzip/Makefile ] || exit 0; \
5230d454
L
23606 r=`${PWD_COMMAND}`; export r; \
23607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23608 $(HOST_EXPORTS) \
d5eec917 23609 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23611 done; \
d5eec917 23612 echo "Doing maintainer-clean in gzip" ; \
7fc2ca22 23613 (cd $(HOST_SUBDIR)/gzip && \
657b58f4
NN
23614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23616 "RANLIB=$${RANLIB}" \
bffcbe34 23617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23618 maintainer-clean) \
657b58f4
NN
23619 || exit 1
23620
d5eec917 23621@endif gzip
657b58f4 23622
657b58f4 23623
f0fdfd34 23624
d5eec917
PB
23625.PHONY: configure-hello maybe-configure-hello
23626maybe-configure-hello:
e1e5148c
CD
23627@if gcc-bootstrap
23628configure-hello: stage_current
23629@endif gcc-bootstrap
d5eec917
PB
23630@if hello
23631maybe-configure-hello: configure-hello
ec92c4d6 23632configure-hello:
15b527ca 23633 @: $(MAKE); $(unstage)
ec92c4d6 23634 @r=`${PWD_COMMAND}`; export r; \
5230d454 23635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
23636 test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
23637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
5074489a 23638 $(HOST_EXPORTS) \
f0fdfd34
PB
23639 echo Configuring in $(HOST_SUBDIR)/hello; \
23640 cd "$(HOST_SUBDIR)/hello" || exit 1; \
8ec98d6c 23641 case $(srcdir) in \
7fc2ca22
PB
23642 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23643 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
23644 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 23645 esac; \
7fc2ca22
PB
23646 srcdiroption="--srcdir=$${topdir}/hello"; \
23647 libsrcdir="$$s/hello"; \
8ec98d6c 23648 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
23649 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23650 --target=${target_alias} $${srcdiroption} \
657b58f4 23651 || exit 1
d5eec917 23652@endif hello
657b58f4 23653
f0fdfd34
PB
23654
23655
a8a96878
PB
23656
23657
d5eec917
PB
23658.PHONY: all-hello maybe-all-hello
23659maybe-all-hello:
e1e5148c
CD
23660@if gcc-bootstrap
23661all-hello: stage_current
23662@endif gcc-bootstrap
d5eec917 23663@if hello
5e6b1f07 23664TARGET-hello=all
d5eec917
PB
23665maybe-all-hello: all-hello
23666all-hello: configure-hello
15b527ca 23667 @: $(MAKE); $(unstage)
8ec98d6c
NN
23668 @r=`${PWD_COMMAND}`; export r; \
23669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 23670 $(HOST_EXPORTS) \
7fc2ca22 23671 (cd $(HOST_SUBDIR)/hello && \
6532abb6
PB
23672 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
23673 $(TARGET-hello))
d5eec917 23674@endif hello
657b58f4 23675
f0fdfd34 23676
a8a96878
PB
23677
23678
d5eec917
PB
23679.PHONY: check-hello maybe-check-hello
23680maybe-check-hello:
23681@if hello
23682maybe-check-hello: check-hello
657b58f4 23683
d5eec917 23684check-hello:
15b527ca 23685 @: $(MAKE); $(unstage)
8ec98d6c 23686 @r=`${PWD_COMMAND}`; export r; \
5230d454 23687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23688 $(HOST_EXPORTS) \
7fc2ca22
PB
23689 (cd $(HOST_SUBDIR)/hello && \
23690 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 23691
d5eec917 23692@endif hello
657b58f4 23693
d5eec917
PB
23694.PHONY: install-hello maybe-install-hello
23695maybe-install-hello:
23696@if hello
23697maybe-install-hello: install-hello
657b58f4 23698
d5eec917 23699install-hello: installdirs
15b527ca 23700 @: $(MAKE); $(unstage)
8ec98d6c
NN
23701 @r=`${PWD_COMMAND}`; export r; \
23702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23703 $(HOST_EXPORTS) \
7fc2ca22 23704 (cd $(HOST_SUBDIR)/hello && \
93c60b6d 23705 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 23706
d5eec917 23707@endif hello
8ec98d6c 23708
39bbbb69 23709# Other targets (info, dvi, pdf, etc.)
8ec98d6c 23710
d5eec917
PB
23711.PHONY: maybe-info-hello info-hello
23712maybe-info-hello:
23713@if hello
23714maybe-info-hello: info-hello
8ec98d6c 23715
d5eec917
PB
23716info-hello: \
23717 configure-hello
15b527ca 23718 @: $(MAKE); $(unstage)
d5eec917 23719 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23720 r=`${PWD_COMMAND}`; export r; \
23721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23722 $(HOST_EXPORTS) \
d5eec917 23723 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23725 done; \
d5eec917 23726 echo "Doing info in hello" ; \
7fc2ca22 23727 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23730 "RANLIB=$${RANLIB}" \
bffcbe34 23731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23732 info) \
657b58f4
NN
23733 || exit 1
23734
d5eec917 23735@endif hello
657b58f4 23736
d5eec917
PB
23737.PHONY: maybe-dvi-hello dvi-hello
23738maybe-dvi-hello:
23739@if hello
23740maybe-dvi-hello: dvi-hello
657b58f4 23741
d5eec917
PB
23742dvi-hello: \
23743 configure-hello
15b527ca 23744 @: $(MAKE); $(unstage)
d5eec917 23745 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23746 r=`${PWD_COMMAND}`; export r; \
23747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23748 $(HOST_EXPORTS) \
d5eec917 23749 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23751 done; \
d5eec917 23752 echo "Doing dvi in hello" ; \
7fc2ca22 23753 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23756 "RANLIB=$${RANLIB}" \
bffcbe34 23757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23758 dvi) \
657b58f4
NN
23759 || exit 1
23760
d5eec917 23761@endif hello
657b58f4 23762
39bbbb69
DD
23763.PHONY: maybe-pdf-hello pdf-hello
23764maybe-pdf-hello:
23765@if hello
23766maybe-pdf-hello: pdf-hello
23767
23768pdf-hello: \
23769 configure-hello
23770 @: $(MAKE); $(unstage)
23771 @[ -f ./hello/Makefile ] || exit 0; \
23772 r=`${PWD_COMMAND}`; export r; \
23773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23774 $(HOST_EXPORTS) \
23775 for flag in $(EXTRA_HOST_FLAGS) ; do \
23776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23777 done; \
23778 echo "Doing pdf in hello" ; \
23779 (cd $(HOST_SUBDIR)/hello && \
23780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23782 "RANLIB=$${RANLIB}" \
bffcbe34 23783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
23784 pdf) \
23785 || exit 1
23786
23787@endif hello
23788
b6fb961f
MS
23789.PHONY: maybe-html-hello html-hello
23790maybe-html-hello:
23791@if hello
23792maybe-html-hello: html-hello
23793
23794html-hello: \
23795 configure-hello
15b527ca 23796 @: $(MAKE); $(unstage)
b6fb961f
MS
23797 @[ -f ./hello/Makefile ] || exit 0; \
23798 r=`${PWD_COMMAND}`; export r; \
23799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
23800 $(HOST_EXPORTS) \
23801 for flag in $(EXTRA_HOST_FLAGS) ; do \
23802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23803 done; \
23804 echo "Doing html in hello" ; \
7fc2ca22 23805 (cd $(HOST_SUBDIR)/hello && \
b6fb961f
MS
23806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23808 "RANLIB=$${RANLIB}" \
bffcbe34 23809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
23810 html) \
23811 || exit 1
23812
23813@endif hello
23814
d5eec917
PB
23815.PHONY: maybe-TAGS-hello TAGS-hello
23816maybe-TAGS-hello:
23817@if hello
23818maybe-TAGS-hello: TAGS-hello
657b58f4 23819
d5eec917
PB
23820TAGS-hello: \
23821 configure-hello
15b527ca 23822 @: $(MAKE); $(unstage)
d5eec917 23823 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23824 r=`${PWD_COMMAND}`; export r; \
23825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23826 $(HOST_EXPORTS) \
d5eec917 23827 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23829 done; \
d5eec917 23830 echo "Doing TAGS in hello" ; \
7fc2ca22 23831 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23834 "RANLIB=$${RANLIB}" \
bffcbe34 23835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23836 TAGS) \
657b58f4
NN
23837 || exit 1
23838
d5eec917 23839@endif hello
657b58f4 23840
d5eec917
PB
23841.PHONY: maybe-install-info-hello install-info-hello
23842maybe-install-info-hello:
23843@if hello
23844maybe-install-info-hello: install-info-hello
657b58f4 23845
d5eec917
PB
23846install-info-hello: \
23847 configure-hello \
23848 info-hello
15b527ca 23849 @: $(MAKE); $(unstage)
d5eec917 23850 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23851 r=`${PWD_COMMAND}`; export r; \
23852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23853 $(HOST_EXPORTS) \
d5eec917 23854 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23856 done; \
d5eec917 23857 echo "Doing install-info in hello" ; \
7fc2ca22 23858 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23861 "RANLIB=$${RANLIB}" \
bffcbe34 23862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23863 install-info) \
657b58f4
NN
23864 || exit 1
23865
d5eec917 23866@endif hello
657b58f4 23867
d4954b6d
DD
23868.PHONY: maybe-install-pdf-hello install-pdf-hello
23869maybe-install-pdf-hello:
23870@if hello
23871maybe-install-pdf-hello: install-pdf-hello
23872
23873install-pdf-hello: \
23874 configure-hello \
23875 pdf-hello
23876 @: $(MAKE); $(unstage)
23877 @[ -f ./hello/Makefile ] || exit 0; \
23878 r=`${PWD_COMMAND}`; export r; \
23879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23880 $(HOST_EXPORTS) \
23881 for flag in $(EXTRA_HOST_FLAGS) ; do \
23882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23883 done; \
23884 echo "Doing install-pdf in hello" ; \
23885 (cd $(HOST_SUBDIR)/hello && \
23886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23888 "RANLIB=$${RANLIB}" \
bffcbe34 23889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
23890 install-pdf) \
23891 || exit 1
23892
23893@endif hello
23894
83c9add4
CD
23895.PHONY: maybe-install-html-hello install-html-hello
23896maybe-install-html-hello:
23897@if hello
23898maybe-install-html-hello: install-html-hello
23899
23900install-html-hello: \
23901 configure-hello \
23902 html-hello
23903 @: $(MAKE); $(unstage)
23904 @[ -f ./hello/Makefile ] || exit 0; \
23905 r=`${PWD_COMMAND}`; export r; \
23906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23907 $(HOST_EXPORTS) \
23908 for flag in $(EXTRA_HOST_FLAGS) ; do \
23909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23910 done; \
23911 echo "Doing install-html in hello" ; \
23912 (cd $(HOST_SUBDIR)/hello && \
23913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23915 "RANLIB=$${RANLIB}" \
bffcbe34 23916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
23917 install-html) \
23918 || exit 1
23919
23920@endif hello
23921
d5eec917
PB
23922.PHONY: maybe-installcheck-hello installcheck-hello
23923maybe-installcheck-hello:
23924@if hello
23925maybe-installcheck-hello: installcheck-hello
657b58f4 23926
d5eec917
PB
23927installcheck-hello: \
23928 configure-hello
15b527ca 23929 @: $(MAKE); $(unstage)
d5eec917 23930 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23931 r=`${PWD_COMMAND}`; export r; \
23932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23933 $(HOST_EXPORTS) \
d5eec917 23934 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23936 done; \
d5eec917 23937 echo "Doing installcheck in hello" ; \
7fc2ca22 23938 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23941 "RANLIB=$${RANLIB}" \
bffcbe34 23942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23943 installcheck) \
657b58f4
NN
23944 || exit 1
23945
d5eec917 23946@endif hello
657b58f4 23947
d5eec917
PB
23948.PHONY: maybe-mostlyclean-hello mostlyclean-hello
23949maybe-mostlyclean-hello:
23950@if hello
23951maybe-mostlyclean-hello: mostlyclean-hello
657b58f4 23952
d5eec917 23953mostlyclean-hello:
15b527ca 23954 @: $(MAKE); $(unstage)
d5eec917 23955 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23956 r=`${PWD_COMMAND}`; export r; \
23957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23958 $(HOST_EXPORTS) \
d5eec917 23959 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23961 done; \
d5eec917 23962 echo "Doing mostlyclean in hello" ; \
7fc2ca22 23963 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23966 "RANLIB=$${RANLIB}" \
bffcbe34 23967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23968 mostlyclean) \
657b58f4
NN
23969 || exit 1
23970
d5eec917 23971@endif hello
657b58f4 23972
d5eec917
PB
23973.PHONY: maybe-clean-hello clean-hello
23974maybe-clean-hello:
23975@if hello
23976maybe-clean-hello: clean-hello
657b58f4 23977
d5eec917 23978clean-hello:
15b527ca 23979 @: $(MAKE); $(unstage)
d5eec917 23980 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
23981 r=`${PWD_COMMAND}`; export r; \
23982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 23983 $(HOST_EXPORTS) \
d5eec917 23984 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
23985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23986 done; \
d5eec917 23987 echo "Doing clean in hello" ; \
7fc2ca22 23988 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
23989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23991 "RANLIB=$${RANLIB}" \
bffcbe34 23992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 23993 clean) \
657b58f4
NN
23994 || exit 1
23995
d5eec917 23996@endif hello
657b58f4 23997
d5eec917
PB
23998.PHONY: maybe-distclean-hello distclean-hello
23999maybe-distclean-hello:
24000@if hello
24001maybe-distclean-hello: distclean-hello
657b58f4 24002
d5eec917 24003distclean-hello:
15b527ca 24004 @: $(MAKE); $(unstage)
d5eec917 24005 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
24006 r=`${PWD_COMMAND}`; export r; \
24007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24008 $(HOST_EXPORTS) \
d5eec917 24009 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24011 done; \
d5eec917 24012 echo "Doing distclean in hello" ; \
7fc2ca22 24013 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
24014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24016 "RANLIB=$${RANLIB}" \
bffcbe34 24017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24018 distclean) \
657b58f4
NN
24019 || exit 1
24020
d5eec917 24021@endif hello
657b58f4 24022
d5eec917
PB
24023.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
24024maybe-maintainer-clean-hello:
24025@if hello
24026maybe-maintainer-clean-hello: maintainer-clean-hello
657b58f4 24027
d5eec917 24028maintainer-clean-hello:
15b527ca 24029 @: $(MAKE); $(unstage)
d5eec917 24030 @[ -f ./hello/Makefile ] || exit 0; \
5230d454
L
24031 r=`${PWD_COMMAND}`; export r; \
24032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24033 $(HOST_EXPORTS) \
d5eec917 24034 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24036 done; \
d5eec917 24037 echo "Doing maintainer-clean in hello" ; \
7fc2ca22 24038 (cd $(HOST_SUBDIR)/hello && \
657b58f4
NN
24039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24041 "RANLIB=$${RANLIB}" \
bffcbe34 24042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24043 maintainer-clean) \
657b58f4
NN
24044 || exit 1
24045
d5eec917 24046@endif hello
657b58f4 24047
657b58f4 24048
f0fdfd34 24049
d5eec917
PB
24050.PHONY: configure-indent maybe-configure-indent
24051maybe-configure-indent:
e1e5148c
CD
24052@if gcc-bootstrap
24053configure-indent: stage_current
24054@endif gcc-bootstrap
d5eec917
PB
24055@if indent
24056maybe-configure-indent: configure-indent
ec92c4d6 24057configure-indent:
15b527ca 24058 @: $(MAKE); $(unstage)
ec92c4d6 24059 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 24060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
24061 test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
24062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
5074489a 24063 $(HOST_EXPORTS) \
f0fdfd34
PB
24064 echo Configuring in $(HOST_SUBDIR)/indent; \
24065 cd "$(HOST_SUBDIR)/indent" || exit 1; \
8ec98d6c 24066 case $(srcdir) in \
7fc2ca22
PB
24067 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24068 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
24069 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 24070 esac; \
7fc2ca22
PB
24071 srcdiroption="--srcdir=$${topdir}/indent"; \
24072 libsrcdir="$$s/indent"; \
8ec98d6c 24073 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24074 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24075 --target=${target_alias} $${srcdiroption} \
8ec98d6c 24076 || exit 1
d5eec917 24077@endif indent
657b58f4 24078
f0fdfd34
PB
24079
24080
a8a96878
PB
24081
24082
d5eec917
PB
24083.PHONY: all-indent maybe-all-indent
24084maybe-all-indent:
e1e5148c
CD
24085@if gcc-bootstrap
24086all-indent: stage_current
24087@endif gcc-bootstrap
d5eec917 24088@if indent
5e6b1f07 24089TARGET-indent=all
d5eec917
PB
24090maybe-all-indent: all-indent
24091all-indent: configure-indent
15b527ca 24092 @: $(MAKE); $(unstage)
8ec98d6c
NN
24093 @r=`${PWD_COMMAND}`; export r; \
24094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 24095 $(HOST_EXPORTS) \
7fc2ca22 24096 (cd $(HOST_SUBDIR)/indent && \
6532abb6
PB
24097 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
24098 $(TARGET-indent))
d5eec917 24099@endif indent
657b58f4 24100
f0fdfd34 24101
a8a96878
PB
24102
24103
d5eec917
PB
24104.PHONY: check-indent maybe-check-indent
24105maybe-check-indent:
24106@if indent
24107maybe-check-indent: check-indent
657b58f4 24108
d5eec917 24109check-indent:
15b527ca 24110 @: $(MAKE); $(unstage)
8ec98d6c 24111 @r=`${PWD_COMMAND}`; export r; \
5230d454 24112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24113 $(HOST_EXPORTS) \
7fc2ca22
PB
24114 (cd $(HOST_SUBDIR)/indent && \
24115 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 24116
d5eec917 24117@endif indent
657b58f4 24118
d5eec917
PB
24119.PHONY: install-indent maybe-install-indent
24120maybe-install-indent:
24121@if indent
24122maybe-install-indent: install-indent
657b58f4 24123
d5eec917 24124install-indent: installdirs
15b527ca 24125 @: $(MAKE); $(unstage)
8ec98d6c 24126 @r=`${PWD_COMMAND}`; export r; \
5230d454 24127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24128 $(HOST_EXPORTS) \
7fc2ca22 24129 (cd $(HOST_SUBDIR)/indent && \
93c60b6d 24130 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 24131
d5eec917 24132@endif indent
657b58f4 24133
39bbbb69 24134# Other targets (info, dvi, pdf, etc.)
657b58f4 24135
d5eec917
PB
24136.PHONY: maybe-info-indent info-indent
24137maybe-info-indent:
24138@if indent
24139maybe-info-indent: info-indent
8ec98d6c 24140
d5eec917
PB
24141info-indent: \
24142 configure-indent
15b527ca 24143 @: $(MAKE); $(unstage)
d5eec917 24144 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24145 r=`${PWD_COMMAND}`; export r; \
24146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24147 $(HOST_EXPORTS) \
d5eec917 24148 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24150 done; \
d5eec917 24151 echo "Doing info in indent" ; \
7fc2ca22 24152 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24155 "RANLIB=$${RANLIB}" \
bffcbe34 24156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24157 info) \
657b58f4
NN
24158 || exit 1
24159
d5eec917 24160@endif indent
657b58f4 24161
d5eec917
PB
24162.PHONY: maybe-dvi-indent dvi-indent
24163maybe-dvi-indent:
24164@if indent
24165maybe-dvi-indent: dvi-indent
657b58f4 24166
d5eec917
PB
24167dvi-indent: \
24168 configure-indent
15b527ca 24169 @: $(MAKE); $(unstage)
d5eec917 24170 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24171 r=`${PWD_COMMAND}`; export r; \
24172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24173 $(HOST_EXPORTS) \
d5eec917 24174 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24176 done; \
d5eec917 24177 echo "Doing dvi in indent" ; \
7fc2ca22 24178 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24181 "RANLIB=$${RANLIB}" \
bffcbe34 24182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24183 dvi) \
657b58f4
NN
24184 || exit 1
24185
d5eec917 24186@endif indent
657b58f4 24187
39bbbb69
DD
24188.PHONY: maybe-pdf-indent pdf-indent
24189maybe-pdf-indent:
24190@if indent
24191maybe-pdf-indent: pdf-indent
24192
24193pdf-indent: \
24194 configure-indent
24195 @: $(MAKE); $(unstage)
24196 @[ -f ./indent/Makefile ] || exit 0; \
24197 r=`${PWD_COMMAND}`; export r; \
24198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24199 $(HOST_EXPORTS) \
24200 for flag in $(EXTRA_HOST_FLAGS) ; do \
24201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24202 done; \
24203 echo "Doing pdf in indent" ; \
24204 (cd $(HOST_SUBDIR)/indent && \
24205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24207 "RANLIB=$${RANLIB}" \
bffcbe34 24208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
24209 pdf) \
24210 || exit 1
24211
24212@endif indent
24213
b6fb961f
MS
24214.PHONY: maybe-html-indent html-indent
24215maybe-html-indent:
24216@if indent
24217maybe-html-indent: html-indent
24218
24219html-indent: \
24220 configure-indent
15b527ca 24221 @: $(MAKE); $(unstage)
b6fb961f
MS
24222 @[ -f ./indent/Makefile ] || exit 0; \
24223 r=`${PWD_COMMAND}`; export r; \
24224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
24225 $(HOST_EXPORTS) \
24226 for flag in $(EXTRA_HOST_FLAGS) ; do \
24227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24228 done; \
24229 echo "Doing html in indent" ; \
7fc2ca22 24230 (cd $(HOST_SUBDIR)/indent && \
b6fb961f
MS
24231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24233 "RANLIB=$${RANLIB}" \
bffcbe34 24234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
24235 html) \
24236 || exit 1
24237
24238@endif indent
24239
d5eec917
PB
24240.PHONY: maybe-TAGS-indent TAGS-indent
24241maybe-TAGS-indent:
24242@if indent
24243maybe-TAGS-indent: TAGS-indent
657b58f4 24244
d5eec917
PB
24245TAGS-indent: \
24246 configure-indent
15b527ca 24247 @: $(MAKE); $(unstage)
d5eec917 24248 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24249 r=`${PWD_COMMAND}`; export r; \
24250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24251 $(HOST_EXPORTS) \
d5eec917 24252 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24254 done; \
d5eec917 24255 echo "Doing TAGS in indent" ; \
7fc2ca22 24256 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24259 "RANLIB=$${RANLIB}" \
bffcbe34 24260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24261 TAGS) \
657b58f4
NN
24262 || exit 1
24263
d5eec917 24264@endif indent
657b58f4 24265
d5eec917
PB
24266.PHONY: maybe-install-info-indent install-info-indent
24267maybe-install-info-indent:
24268@if indent
24269maybe-install-info-indent: install-info-indent
657b58f4 24270
d5eec917
PB
24271install-info-indent: \
24272 configure-indent \
24273 info-indent
15b527ca 24274 @: $(MAKE); $(unstage)
d5eec917 24275 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24276 r=`${PWD_COMMAND}`; export r; \
24277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24278 $(HOST_EXPORTS) \
d5eec917 24279 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24281 done; \
d5eec917 24282 echo "Doing install-info in indent" ; \
7fc2ca22 24283 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24286 "RANLIB=$${RANLIB}" \
bffcbe34 24287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24288 install-info) \
657b58f4
NN
24289 || exit 1
24290
d5eec917 24291@endif indent
657b58f4 24292
d4954b6d
DD
24293.PHONY: maybe-install-pdf-indent install-pdf-indent
24294maybe-install-pdf-indent:
24295@if indent
24296maybe-install-pdf-indent: install-pdf-indent
24297
24298install-pdf-indent: \
24299 configure-indent \
24300 pdf-indent
24301 @: $(MAKE); $(unstage)
24302 @[ -f ./indent/Makefile ] || exit 0; \
24303 r=`${PWD_COMMAND}`; export r; \
24304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24305 $(HOST_EXPORTS) \
24306 for flag in $(EXTRA_HOST_FLAGS) ; do \
24307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24308 done; \
24309 echo "Doing install-pdf in indent" ; \
24310 (cd $(HOST_SUBDIR)/indent && \
24311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24313 "RANLIB=$${RANLIB}" \
bffcbe34 24314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
24315 install-pdf) \
24316 || exit 1
24317
24318@endif indent
24319
83c9add4
CD
24320.PHONY: maybe-install-html-indent install-html-indent
24321maybe-install-html-indent:
24322@if indent
24323maybe-install-html-indent: install-html-indent
24324
24325install-html-indent: \
24326 configure-indent \
24327 html-indent
24328 @: $(MAKE); $(unstage)
24329 @[ -f ./indent/Makefile ] || exit 0; \
24330 r=`${PWD_COMMAND}`; export r; \
24331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24332 $(HOST_EXPORTS) \
24333 for flag in $(EXTRA_HOST_FLAGS) ; do \
24334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24335 done; \
24336 echo "Doing install-html in indent" ; \
24337 (cd $(HOST_SUBDIR)/indent && \
24338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24340 "RANLIB=$${RANLIB}" \
bffcbe34 24341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
24342 install-html) \
24343 || exit 1
24344
24345@endif indent
24346
d5eec917
PB
24347.PHONY: maybe-installcheck-indent installcheck-indent
24348maybe-installcheck-indent:
24349@if indent
24350maybe-installcheck-indent: installcheck-indent
657b58f4 24351
d5eec917
PB
24352installcheck-indent: \
24353 configure-indent
15b527ca 24354 @: $(MAKE); $(unstage)
d5eec917 24355 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24356 r=`${PWD_COMMAND}`; export r; \
24357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24358 $(HOST_EXPORTS) \
d5eec917 24359 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24361 done; \
d5eec917 24362 echo "Doing installcheck in indent" ; \
7fc2ca22 24363 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24366 "RANLIB=$${RANLIB}" \
bffcbe34 24367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24368 installcheck) \
657b58f4
NN
24369 || exit 1
24370
d5eec917 24371@endif indent
657b58f4 24372
d5eec917
PB
24373.PHONY: maybe-mostlyclean-indent mostlyclean-indent
24374maybe-mostlyclean-indent:
24375@if indent
24376maybe-mostlyclean-indent: mostlyclean-indent
657b58f4 24377
d5eec917 24378mostlyclean-indent:
15b527ca 24379 @: $(MAKE); $(unstage)
d5eec917 24380 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24381 r=`${PWD_COMMAND}`; export r; \
24382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24383 $(HOST_EXPORTS) \
d5eec917 24384 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24386 done; \
d5eec917 24387 echo "Doing mostlyclean in indent" ; \
7fc2ca22 24388 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24391 "RANLIB=$${RANLIB}" \
bffcbe34 24392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24393 mostlyclean) \
657b58f4
NN
24394 || exit 1
24395
d5eec917 24396@endif indent
657b58f4 24397
d5eec917
PB
24398.PHONY: maybe-clean-indent clean-indent
24399maybe-clean-indent:
24400@if indent
24401maybe-clean-indent: clean-indent
657b58f4 24402
d5eec917 24403clean-indent:
15b527ca 24404 @: $(MAKE); $(unstage)
d5eec917 24405 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24406 r=`${PWD_COMMAND}`; export r; \
24407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24408 $(HOST_EXPORTS) \
d5eec917 24409 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24411 done; \
d5eec917 24412 echo "Doing clean in indent" ; \
7fc2ca22 24413 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24416 "RANLIB=$${RANLIB}" \
bffcbe34 24417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24418 clean) \
657b58f4
NN
24419 || exit 1
24420
d5eec917 24421@endif indent
657b58f4 24422
d5eec917
PB
24423.PHONY: maybe-distclean-indent distclean-indent
24424maybe-distclean-indent:
24425@if indent
24426maybe-distclean-indent: distclean-indent
657b58f4 24427
d5eec917 24428distclean-indent:
15b527ca 24429 @: $(MAKE); $(unstage)
d5eec917 24430 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24431 r=`${PWD_COMMAND}`; export r; \
24432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24433 $(HOST_EXPORTS) \
d5eec917 24434 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24436 done; \
d5eec917 24437 echo "Doing distclean in indent" ; \
7fc2ca22 24438 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24441 "RANLIB=$${RANLIB}" \
bffcbe34 24442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24443 distclean) \
657b58f4
NN
24444 || exit 1
24445
d5eec917 24446@endif indent
657b58f4 24447
d5eec917
PB
24448.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
24449maybe-maintainer-clean-indent:
24450@if indent
24451maybe-maintainer-clean-indent: maintainer-clean-indent
657b58f4 24452
d5eec917 24453maintainer-clean-indent:
15b527ca 24454 @: $(MAKE); $(unstage)
d5eec917 24455 @[ -f ./indent/Makefile ] || exit 0; \
5230d454
L
24456 r=`${PWD_COMMAND}`; export r; \
24457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24458 $(HOST_EXPORTS) \
d5eec917 24459 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
24460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24461 done; \
d5eec917 24462 echo "Doing maintainer-clean in indent" ; \
7fc2ca22 24463 (cd $(HOST_SUBDIR)/indent && \
657b58f4
NN
24464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24466 "RANLIB=$${RANLIB}" \
bffcbe34 24467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 24468 maintainer-clean) \
657b58f4
NN
24469 || exit 1
24470
d5eec917 24471@endif indent
657b58f4 24472
d832a288 24473
f0fdfd34 24474
d5eec917
PB
24475.PHONY: configure-intl maybe-configure-intl
24476maybe-configure-intl:
e1e5148c
CD
24477@if gcc-bootstrap
24478configure-intl: stage_current
24479@endif gcc-bootstrap
d5eec917
PB
24480@if intl
24481maybe-configure-intl: configure-intl
ec92c4d6 24482configure-intl:
ec92c4d6
PB
24483 @r=`${PWD_COMMAND}`; export r; \
24484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
24485 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
24486 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
5074489a 24487 $(HOST_EXPORTS) \
f0fdfd34
PB
24488 echo Configuring in $(HOST_SUBDIR)/intl; \
24489 cd "$(HOST_SUBDIR)/intl" || exit 1; \
8ec98d6c 24490 case $(srcdir) in \
7fc2ca22
PB
24491 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24492 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24493 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 24494 esac; \
7fc2ca22
PB
24495 srcdiroption="--srcdir=$${topdir}/intl"; \
24496 libsrcdir="$$s/intl"; \
8ec98d6c 24497 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24498 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24499 --target=${target_alias} $${srcdiroption} \
d832a288 24500 || exit 1
d5eec917 24501@endif intl
d832a288 24502
f0fdfd34
PB
24503
24504
a8a96878
PB
24505.PHONY: configure-stage1-intl maybe-configure-stage1-intl
24506maybe-configure-stage1-intl:
24507@if intl-bootstrap
24508maybe-configure-stage1-intl: configure-stage1-intl
15b527ca 24509configure-stage1-intl:
ec92c4d6 24510 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 24511 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24512 @r=`${PWD_COMMAND}`; export r; \
24513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24514 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 24515 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
c91ae28f 24516 $(HOST_EXPORTS) \
2ba09444 24517 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
24518 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24519 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 24520 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
15b527ca 24521 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24522 cd $(HOST_SUBDIR)/intl || exit 1; \
24523 case $(srcdir) in \
24524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24525 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24527 esac; \
24528 srcdiroption="--srcdir=$${topdir}/intl"; \
24529 libsrcdir="$$s/intl"; \
24530 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24531 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24532 --target=${target_alias} $${srcdiroption} \
c91ae28f 24533 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
24534@endif intl-bootstrap
24535
24536.PHONY: configure-stage2-intl maybe-configure-stage2-intl
24537maybe-configure-stage2-intl:
24538@if intl-bootstrap
24539maybe-configure-stage2-intl: configure-stage2-intl
15b527ca 24540configure-stage2-intl:
ec92c4d6 24541 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 24542 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24543 @r=`${PWD_COMMAND}`; export r; \
24544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24545 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 24546 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 24547 $(HOST_EXPORTS) \
c91ae28f 24548 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24549 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
24550 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24551 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 24552 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
15b527ca 24553 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24554 cd $(HOST_SUBDIR)/intl || exit 1; \
24555 case $(srcdir) in \
24556 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24557 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24558 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24559 esac; \
24560 srcdiroption="--srcdir=$${topdir}/intl"; \
24561 libsrcdir="$$s/intl"; \
24562 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24563 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24564 --target=${target_alias} $${srcdiroption} \
380e48e5 24565 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 24566 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
24567@endif intl-bootstrap
24568
a8a96878
PB
24569.PHONY: configure-stage3-intl maybe-configure-stage3-intl
24570maybe-configure-stage3-intl:
24571@if intl-bootstrap
24572maybe-configure-stage3-intl: configure-stage3-intl
15b527ca 24573configure-stage3-intl:
ec92c4d6 24574 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 24575 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24576 @r=`${PWD_COMMAND}`; export r; \
24577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24578 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 24579 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 24580 $(HOST_EXPORTS) \
c91ae28f 24581 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24582 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
24583 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24584 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 24585 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
15b527ca 24586 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24587 cd $(HOST_SUBDIR)/intl || exit 1; \
24588 case $(srcdir) in \
24589 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24590 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24591 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24592 esac; \
24593 srcdiroption="--srcdir=$${topdir}/intl"; \
24594 libsrcdir="$$s/intl"; \
24595 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24596 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24597 --target=${target_alias} $${srcdiroption} \
380e48e5 24598 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 24599 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
24600@endif intl-bootstrap
24601
a8a96878
PB
24602.PHONY: configure-stage4-intl maybe-configure-stage4-intl
24603maybe-configure-stage4-intl:
24604@if intl-bootstrap
24605maybe-configure-stage4-intl: configure-stage4-intl
15b527ca 24606configure-stage4-intl:
ec92c4d6 24607 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 24608 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24609 @r=`${PWD_COMMAND}`; export r; \
24610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24611 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 24612 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 24613 $(HOST_EXPORTS) \
c91ae28f 24614 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 24615 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
24616 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24617 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 24618 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
15b527ca 24619 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24620 cd $(HOST_SUBDIR)/intl || exit 1; \
24621 case $(srcdir) in \
24622 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24623 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24624 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24625 esac; \
24626 srcdiroption="--srcdir=$${topdir}/intl"; \
24627 libsrcdir="$$s/intl"; \
24628 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24629 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24630 --target=${target_alias} $${srcdiroption} \
380e48e5 24631 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 24632 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
24633@endif intl-bootstrap
24634
24635.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
24636maybe-configure-stageprofile-intl:
24637@if intl-bootstrap
24638maybe-configure-stageprofile-intl: configure-stageprofile-intl
15b527ca 24639configure-stageprofile-intl:
ec92c4d6 24640 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 24641 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24642 @r=`${PWD_COMMAND}`; export r; \
24643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24644 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 24645 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 24646 $(HOST_EXPORTS) \
c91ae28f
AO
24647 $(POSTSTAGE1_HOST_EXPORTS) \
24648 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
24649 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24650 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 24651 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
15b527ca 24652 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24653 cd $(HOST_SUBDIR)/intl || exit 1; \
24654 case $(srcdir) in \
24655 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24656 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24657 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24658 esac; \
24659 srcdiroption="--srcdir=$${topdir}/intl"; \
24660 libsrcdir="$$s/intl"; \
24661 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24662 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24663 --target=${target_alias} $${srcdiroption} \
380e48e5 24664 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 24665 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
24666@endif intl-bootstrap
24667
24668.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
24669maybe-configure-stagefeedback-intl:
24670@if intl-bootstrap
24671maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
15b527ca 24672configure-stagefeedback-intl:
ec92c4d6 24673 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 24674 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
ec92c4d6
PB
24675 @r=`${PWD_COMMAND}`; export r; \
24676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24677 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 24678 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
a8a96878 24679 $(HOST_EXPORTS) \
c91ae28f
AO
24680 $(POSTSTAGE1_HOST_EXPORTS) \
24681 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
24682 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24683 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 24684 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
15b527ca 24685 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
a8a96878
PB
24686 cd $(HOST_SUBDIR)/intl || exit 1; \
24687 case $(srcdir) in \
24688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24689 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
24690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24691 esac; \
24692 srcdiroption="--srcdir=$${topdir}/intl"; \
24693 libsrcdir="$$s/intl"; \
24694 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
24695 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24696 --target=${target_alias} $${srcdiroption} \
380e48e5 24697 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 24698 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
24699@endif intl-bootstrap
24700
24701
24702
24703
24704
d5eec917
PB
24705.PHONY: all-intl maybe-all-intl
24706maybe-all-intl:
e1e5148c
CD
24707@if gcc-bootstrap
24708all-intl: stage_current
24709@endif gcc-bootstrap
d5eec917 24710@if intl
5e6b1f07 24711TARGET-intl=all
d5eec917
PB
24712maybe-all-intl: all-intl
24713all-intl: configure-intl
ec92c4d6 24714 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 24715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 24716 $(HOST_EXPORTS) \
7fc2ca22 24717 (cd $(HOST_SUBDIR)/intl && \
6532abb6
PB
24718 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
24719 $(TARGET-intl))
d5eec917 24720@endif intl
d832a288 24721
f0fdfd34 24722
a8a96878
PB
24723
24724.PHONY: all-stage1-intl maybe-all-stage1-intl
24725.PHONY: clean-stage1-intl maybe-clean-stage1-intl
24726maybe-all-stage1-intl:
24727maybe-clean-stage1-intl:
24728@if intl-bootstrap
24729maybe-all-stage1-intl: all-stage1-intl
24730all-stage1: all-stage1-intl
168b158c 24731TARGET-stage1-intl = $(TARGET-intl)
a8a96878 24732all-stage1-intl: configure-stage1-intl
ec92c4d6 24733 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
24734 @r=`${PWD_COMMAND}`; export r; \
24735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24736 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 24737 $(HOST_EXPORTS) \
a8a96878 24738 cd $(HOST_SUBDIR)/intl && \
6532abb6 24739 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24740 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 24741 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
24742 LIBCFLAGS="$(LIBCFLAGS)" \
24743 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24744 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24745 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24746 $(EXTRA_HOST_FLAGS) \
24747 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 24748 $(TARGET-stage1-intl)
a8a96878
PB
24749
24750maybe-clean-stage1-intl: clean-stage1-intl
24751clean-stage1: clean-stage1-intl
24752clean-stage1-intl:
a6a4e782
DD
24753 @if [ $(current_stage) = stage1 ]; then \
24754 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24755 else \
24756 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
24757 $(MAKE) stage1-start; \
24758 fi; \
a8a96878 24759 cd $(HOST_SUBDIR)/intl && \
6532abb6 24760 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 24761 clean
a8a96878
PB
24762@endif intl-bootstrap
24763
24764
24765.PHONY: all-stage2-intl maybe-all-stage2-intl
24766.PHONY: clean-stage2-intl maybe-clean-stage2-intl
24767maybe-all-stage2-intl:
24768maybe-clean-stage2-intl:
24769@if intl-bootstrap
24770maybe-all-stage2-intl: all-stage2-intl
24771all-stage2: all-stage2-intl
168b158c 24772TARGET-stage2-intl = $(TARGET-intl)
a8a96878 24773all-stage2-intl: configure-stage2-intl
ec92c4d6 24774 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
24775 @r=`${PWD_COMMAND}`; export r; \
24776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24777 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 24778 $(HOST_EXPORTS) \
5074489a 24779 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 24780 cd $(HOST_SUBDIR)/intl && \
6532abb6 24781 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24782 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 24783 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
24784 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24785 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24786 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24787 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24788 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24789 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 24790 $(TARGET-stage2-intl)
a8a96878
PB
24791
24792maybe-clean-stage2-intl: clean-stage2-intl
24793clean-stage2: clean-stage2-intl
24794clean-stage2-intl:
a6a4e782
DD
24795 @if [ $(current_stage) = stage2 ]; then \
24796 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24797 else \
24798 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
24799 $(MAKE) stage2-start; \
24800 fi; \
a8a96878 24801 cd $(HOST_SUBDIR)/intl && \
6532abb6 24802 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 24803 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 24804 clean
a8a96878
PB
24805@endif intl-bootstrap
24806
24807
24808.PHONY: all-stage3-intl maybe-all-stage3-intl
24809.PHONY: clean-stage3-intl maybe-clean-stage3-intl
24810maybe-all-stage3-intl:
24811maybe-clean-stage3-intl:
24812@if intl-bootstrap
24813maybe-all-stage3-intl: all-stage3-intl
24814all-stage3: all-stage3-intl
168b158c 24815TARGET-stage3-intl = $(TARGET-intl)
a8a96878 24816all-stage3-intl: configure-stage3-intl
ec92c4d6 24817 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
24818 @r=`${PWD_COMMAND}`; export r; \
24819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24820 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 24821 $(HOST_EXPORTS) \
5074489a 24822 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 24823 cd $(HOST_SUBDIR)/intl && \
6532abb6 24824 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24825 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 24826 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
24827 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24828 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24829 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24830 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24831 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24832 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 24833 $(TARGET-stage3-intl)
a8a96878
PB
24834
24835maybe-clean-stage3-intl: clean-stage3-intl
24836clean-stage3: clean-stage3-intl
24837clean-stage3-intl:
a6a4e782
DD
24838 @if [ $(current_stage) = stage3 ]; then \
24839 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24840 else \
24841 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
24842 $(MAKE) stage3-start; \
24843 fi; \
a8a96878 24844 cd $(HOST_SUBDIR)/intl && \
6532abb6 24845 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 24846 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 24847 clean
a8a96878
PB
24848@endif intl-bootstrap
24849
24850
24851.PHONY: all-stage4-intl maybe-all-stage4-intl
24852.PHONY: clean-stage4-intl maybe-clean-stage4-intl
24853maybe-all-stage4-intl:
24854maybe-clean-stage4-intl:
24855@if intl-bootstrap
24856maybe-all-stage4-intl: all-stage4-intl
24857all-stage4: all-stage4-intl
168b158c 24858TARGET-stage4-intl = $(TARGET-intl)
a8a96878 24859all-stage4-intl: configure-stage4-intl
ec92c4d6 24860 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
24861 @r=`${PWD_COMMAND}`; export r; \
24862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24863 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 24864 $(HOST_EXPORTS) \
5074489a 24865 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 24866 cd $(HOST_SUBDIR)/intl && \
6532abb6 24867 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24868 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 24869 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 24870 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
24871 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24872 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24873 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24874 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24875 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 24876 $(TARGET-stage4-intl)
a8a96878
PB
24877
24878maybe-clean-stage4-intl: clean-stage4-intl
24879clean-stage4: clean-stage4-intl
24880clean-stage4-intl:
a6a4e782
DD
24881 @if [ $(current_stage) = stage4 ]; then \
24882 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24883 else \
24884 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
24885 $(MAKE) stage4-start; \
24886 fi; \
a8a96878 24887 cd $(HOST_SUBDIR)/intl && \
6532abb6 24888 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 24889 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 24890 clean
a8a96878
PB
24891@endif intl-bootstrap
24892
24893
24894.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
24895.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
24896maybe-all-stageprofile-intl:
24897maybe-clean-stageprofile-intl:
24898@if intl-bootstrap
24899maybe-all-stageprofile-intl: all-stageprofile-intl
24900all-stageprofile: all-stageprofile-intl
168b158c 24901TARGET-stageprofile-intl = $(TARGET-intl)
a8a96878 24902all-stageprofile-intl: configure-stageprofile-intl
ec92c4d6 24903 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
24904 @r=`${PWD_COMMAND}`; export r; \
24905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24906 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 24907 $(HOST_EXPORTS) \
5074489a 24908 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 24909 cd $(HOST_SUBDIR)/intl && \
6532abb6 24910 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24911 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 24912 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
24913 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24914 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24915 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24916 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24917 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24918 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 24919 $(TARGET-stageprofile-intl)
a8a96878
PB
24920
24921maybe-clean-stageprofile-intl: clean-stageprofile-intl
24922clean-stageprofile: clean-stageprofile-intl
24923clean-stageprofile-intl:
a6a4e782
DD
24924 @if [ $(current_stage) = stageprofile ]; then \
24925 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24926 else \
24927 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
24928 $(MAKE) stageprofile-start; \
24929 fi; \
a8a96878 24930 cd $(HOST_SUBDIR)/intl && \
6532abb6 24931 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 24932 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 24933 clean
a8a96878
PB
24934@endif intl-bootstrap
24935
24936
24937.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
24938.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
24939maybe-all-stagefeedback-intl:
24940maybe-clean-stagefeedback-intl:
24941@if intl-bootstrap
24942maybe-all-stagefeedback-intl: all-stagefeedback-intl
24943all-stagefeedback: all-stagefeedback-intl
168b158c 24944TARGET-stagefeedback-intl = $(TARGET-intl)
a8a96878 24945all-stagefeedback-intl: configure-stagefeedback-intl
ec92c4d6 24946 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
24947 @r=`${PWD_COMMAND}`; export r; \
24948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 24949 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 24950 $(HOST_EXPORTS) \
5074489a 24951 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 24952 cd $(HOST_SUBDIR)/intl && \
6532abb6 24953 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 24954 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 24955 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
24956 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24957 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24958 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24959 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24960 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24961 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 24962 $(TARGET-stagefeedback-intl)
a8a96878
PB
24963
24964maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
24965clean-stagefeedback: clean-stagefeedback-intl
24966clean-stagefeedback-intl:
a6a4e782
DD
24967 @if [ $(current_stage) = stagefeedback ]; then \
24968 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
24969 else \
24970 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
24971 $(MAKE) stagefeedback-start; \
24972 fi; \
a8a96878 24973 cd $(HOST_SUBDIR)/intl && \
6532abb6 24974 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 24975 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 24976 clean
a8a96878
PB
24977@endif intl-bootstrap
24978
24979
24980
24981
24982
d5eec917
PB
24983.PHONY: check-intl maybe-check-intl
24984maybe-check-intl:
24985@if intl
24986maybe-check-intl: check-intl
657b58f4 24987
d5eec917 24988check-intl:
15b527ca 24989 @: $(MAKE); $(unstage)
8ec98d6c
NN
24990 @r=`${PWD_COMMAND}`; export r; \
24991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 24992 $(HOST_EXPORTS) \
7fc2ca22
PB
24993 (cd $(HOST_SUBDIR)/intl && \
24994 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 24995
d5eec917 24996@endif intl
657b58f4 24997
d5eec917
PB
24998.PHONY: install-intl maybe-install-intl
24999maybe-install-intl:
25000@if intl
25001maybe-install-intl: install-intl
657b58f4 25002
d5eec917 25003install-intl: installdirs
15b527ca 25004 @: $(MAKE); $(unstage)
8ec98d6c
NN
25005 @r=`${PWD_COMMAND}`; export r; \
25006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25007 $(HOST_EXPORTS) \
7fc2ca22 25008 (cd $(HOST_SUBDIR)/intl && \
93c60b6d 25009 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 25010
d5eec917 25011@endif intl
8ec98d6c 25012
39bbbb69 25013# Other targets (info, dvi, pdf, etc.)
8ec98d6c 25014
d5eec917
PB
25015.PHONY: maybe-info-intl info-intl
25016maybe-info-intl:
25017@if intl
25018maybe-info-intl: info-intl
8ec98d6c 25019
d5eec917
PB
25020info-intl: \
25021 configure-intl
25022 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25023 r=`${PWD_COMMAND}`; export r; \
25024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25025 $(HOST_EXPORTS) \
d5eec917 25026 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25028 done; \
d5eec917 25029 echo "Doing info in intl" ; \
7fc2ca22 25030 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25033 "RANLIB=$${RANLIB}" \
bffcbe34 25034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25035 info) \
657b58f4
NN
25036 || exit 1
25037
d5eec917 25038@endif intl
657b58f4 25039
d5eec917
PB
25040.PHONY: maybe-dvi-intl dvi-intl
25041maybe-dvi-intl:
25042@if intl
25043maybe-dvi-intl: dvi-intl
657b58f4 25044
d5eec917
PB
25045dvi-intl: \
25046 configure-intl
25047 @[ -f ./intl/Makefile ] || exit 0; \
25048 r=`${PWD_COMMAND}`; export r; \
5230d454 25049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25050 $(HOST_EXPORTS) \
d5eec917 25051 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25053 done; \
d5eec917 25054 echo "Doing dvi in intl" ; \
7fc2ca22 25055 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25058 "RANLIB=$${RANLIB}" \
bffcbe34 25059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25060 dvi) \
657b58f4
NN
25061 || exit 1
25062
d5eec917 25063@endif intl
657b58f4 25064
39bbbb69
DD
25065.PHONY: maybe-pdf-intl pdf-intl
25066maybe-pdf-intl:
25067@if intl
25068maybe-pdf-intl: pdf-intl
25069
25070pdf-intl: \
25071 configure-intl
25072 @[ -f ./intl/Makefile ] || exit 0; \
25073 r=`${PWD_COMMAND}`; export r; \
25074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25075 $(HOST_EXPORTS) \
25076 for flag in $(EXTRA_HOST_FLAGS) ; do \
25077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25078 done; \
25079 echo "Doing pdf in intl" ; \
25080 (cd $(HOST_SUBDIR)/intl && \
25081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25083 "RANLIB=$${RANLIB}" \
bffcbe34 25084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
25085 pdf) \
25086 || exit 1
25087
25088@endif intl
25089
b6fb961f
MS
25090.PHONY: maybe-html-intl html-intl
25091maybe-html-intl:
25092@if intl
25093maybe-html-intl: html-intl
25094
25095html-intl: \
25096 configure-intl
25097 @[ -f ./intl/Makefile ] || exit 0; \
25098 r=`${PWD_COMMAND}`; export r; \
25099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
25100 $(HOST_EXPORTS) \
25101 for flag in $(EXTRA_HOST_FLAGS) ; do \
25102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25103 done; \
25104 echo "Doing html in intl" ; \
7fc2ca22 25105 (cd $(HOST_SUBDIR)/intl && \
b6fb961f
MS
25106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25108 "RANLIB=$${RANLIB}" \
bffcbe34 25109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
25110 html) \
25111 || exit 1
25112
25113@endif intl
25114
d5eec917
PB
25115.PHONY: maybe-TAGS-intl TAGS-intl
25116maybe-TAGS-intl:
25117@if intl
25118maybe-TAGS-intl: TAGS-intl
657b58f4 25119
d5eec917
PB
25120TAGS-intl: \
25121 configure-intl
25122 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25123 r=`${PWD_COMMAND}`; export r; \
25124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25125 $(HOST_EXPORTS) \
d5eec917 25126 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25128 done; \
d5eec917 25129 echo "Doing TAGS in intl" ; \
7fc2ca22 25130 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25133 "RANLIB=$${RANLIB}" \
bffcbe34 25134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25135 TAGS) \
657b58f4
NN
25136 || exit 1
25137
d5eec917 25138@endif intl
657b58f4 25139
d5eec917
PB
25140.PHONY: maybe-install-info-intl install-info-intl
25141maybe-install-info-intl:
25142@if intl
25143maybe-install-info-intl: install-info-intl
657b58f4 25144
d5eec917
PB
25145install-info-intl: \
25146 configure-intl \
25147 info-intl
25148 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25149 r=`${PWD_COMMAND}`; export r; \
25150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25151 $(HOST_EXPORTS) \
d5eec917 25152 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25154 done; \
d5eec917 25155 echo "Doing install-info in intl" ; \
7fc2ca22 25156 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25159 "RANLIB=$${RANLIB}" \
bffcbe34 25160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25161 install-info) \
657b58f4
NN
25162 || exit 1
25163
d5eec917 25164@endif intl
657b58f4 25165
d4954b6d
DD
25166.PHONY: maybe-install-pdf-intl install-pdf-intl
25167maybe-install-pdf-intl:
25168@if intl
25169maybe-install-pdf-intl: install-pdf-intl
25170
25171install-pdf-intl: \
25172 configure-intl \
25173 pdf-intl
25174 @[ -f ./intl/Makefile ] || exit 0; \
25175 r=`${PWD_COMMAND}`; export r; \
25176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25177 $(HOST_EXPORTS) \
25178 for flag in $(EXTRA_HOST_FLAGS) ; do \
25179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25180 done; \
25181 echo "Doing install-pdf in intl" ; \
25182 (cd $(HOST_SUBDIR)/intl && \
25183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25185 "RANLIB=$${RANLIB}" \
bffcbe34 25186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
25187 install-pdf) \
25188 || exit 1
25189
25190@endif intl
25191
83c9add4
CD
25192.PHONY: maybe-install-html-intl install-html-intl
25193maybe-install-html-intl:
25194@if intl
25195maybe-install-html-intl: install-html-intl
25196
25197install-html-intl: \
25198 configure-intl \
25199 html-intl
25200 @[ -f ./intl/Makefile ] || exit 0; \
25201 r=`${PWD_COMMAND}`; export r; \
25202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25203 $(HOST_EXPORTS) \
25204 for flag in $(EXTRA_HOST_FLAGS) ; do \
25205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25206 done; \
25207 echo "Doing install-html in intl" ; \
25208 (cd $(HOST_SUBDIR)/intl && \
25209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25211 "RANLIB=$${RANLIB}" \
bffcbe34 25212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
25213 install-html) \
25214 || exit 1
25215
25216@endif intl
25217
d5eec917
PB
25218.PHONY: maybe-installcheck-intl installcheck-intl
25219maybe-installcheck-intl:
25220@if intl
25221maybe-installcheck-intl: installcheck-intl
657b58f4 25222
d5eec917
PB
25223installcheck-intl: \
25224 configure-intl
25225 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25226 r=`${PWD_COMMAND}`; export r; \
25227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25228 $(HOST_EXPORTS) \
d5eec917 25229 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25231 done; \
d5eec917 25232 echo "Doing installcheck in intl" ; \
7fc2ca22 25233 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25236 "RANLIB=$${RANLIB}" \
bffcbe34 25237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25238 installcheck) \
657b58f4
NN
25239 || exit 1
25240
d5eec917 25241@endif intl
657b58f4 25242
d5eec917
PB
25243.PHONY: maybe-mostlyclean-intl mostlyclean-intl
25244maybe-mostlyclean-intl:
25245@if intl
25246maybe-mostlyclean-intl: mostlyclean-intl
657b58f4 25247
d5eec917
PB
25248mostlyclean-intl:
25249 @[ -f ./intl/Makefile ] || exit 0; \
25250 r=`${PWD_COMMAND}`; export r; \
25251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917
PB
25252 $(HOST_EXPORTS) \
25253 for flag in $(EXTRA_HOST_FLAGS) ; do \
25254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25255 done; \
25256 echo "Doing mostlyclean in intl" ; \
7fc2ca22 25257 (cd $(HOST_SUBDIR)/intl && \
d5eec917
PB
25258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25260 "RANLIB=$${RANLIB}" \
bffcbe34 25261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917
PB
25262 mostlyclean) \
25263 || exit 1
8ec98d6c 25264
d5eec917 25265@endif intl
8ec98d6c 25266
d5eec917
PB
25267.PHONY: maybe-clean-intl clean-intl
25268maybe-clean-intl:
25269@if intl
25270maybe-clean-intl: clean-intl
8ec98d6c 25271
d5eec917
PB
25272clean-intl:
25273 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25274 r=`${PWD_COMMAND}`; export r; \
25275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25276 $(HOST_EXPORTS) \
d5eec917 25277 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25279 done; \
d5eec917 25280 echo "Doing clean in intl" ; \
7fc2ca22 25281 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25284 "RANLIB=$${RANLIB}" \
bffcbe34 25285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25286 clean) \
657b58f4
NN
25287 || exit 1
25288
d5eec917 25289@endif intl
657b58f4 25290
d5eec917
PB
25291.PHONY: maybe-distclean-intl distclean-intl
25292maybe-distclean-intl:
25293@if intl
25294maybe-distclean-intl: distclean-intl
657b58f4 25295
d5eec917
PB
25296distclean-intl:
25297 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25298 r=`${PWD_COMMAND}`; export r; \
25299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25300 $(HOST_EXPORTS) \
d5eec917 25301 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25303 done; \
d5eec917 25304 echo "Doing distclean in intl" ; \
7fc2ca22 25305 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25308 "RANLIB=$${RANLIB}" \
bffcbe34 25309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25310 distclean) \
657b58f4
NN
25311 || exit 1
25312
d5eec917 25313@endif intl
657b58f4 25314
d5eec917
PB
25315.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
25316maybe-maintainer-clean-intl:
25317@if intl
25318maybe-maintainer-clean-intl: maintainer-clean-intl
657b58f4 25319
d5eec917
PB
25320maintainer-clean-intl:
25321 @[ -f ./intl/Makefile ] || exit 0; \
5230d454
L
25322 r=`${PWD_COMMAND}`; export r; \
25323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25324 $(HOST_EXPORTS) \
d5eec917 25325 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25327 done; \
d5eec917 25328 echo "Doing maintainer-clean in intl" ; \
7fc2ca22 25329 (cd $(HOST_SUBDIR)/intl && \
657b58f4
NN
25330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25332 "RANLIB=$${RANLIB}" \
bffcbe34 25333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25334 maintainer-clean) \
657b58f4
NN
25335 || exit 1
25336
d5eec917 25337@endif intl
657b58f4 25338
657b58f4 25339
f0fdfd34 25340
d5eec917
PB
25341.PHONY: configure-tcl maybe-configure-tcl
25342maybe-configure-tcl:
e1e5148c
CD
25343@if gcc-bootstrap
25344configure-tcl: stage_current
25345@endif gcc-bootstrap
d5eec917
PB
25346@if tcl
25347maybe-configure-tcl: configure-tcl
ec92c4d6 25348configure-tcl:
15b527ca 25349 @: $(MAKE); $(unstage)
ec92c4d6 25350 @r=`${PWD_COMMAND}`; export r; \
5230d454 25351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
25352 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
25353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
5074489a 25354 $(HOST_EXPORTS) \
f0fdfd34
PB
25355 echo Configuring in $(HOST_SUBDIR)/tcl; \
25356 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
8ec98d6c 25357 case $(srcdir) in \
7fc2ca22
PB
25358 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25359 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
25360 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 25361 esac; \
7fc2ca22
PB
25362 srcdiroption="--srcdir=$${topdir}/tcl"; \
25363 libsrcdir="$$s/tcl"; \
8ec98d6c 25364 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25365 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25366 --target=${target_alias} $${srcdiroption} \
657b58f4 25367 || exit 1
d5eec917 25368@endif tcl
657b58f4 25369
f0fdfd34
PB
25370
25371
a8a96878
PB
25372
25373
d5eec917
PB
25374.PHONY: all-tcl maybe-all-tcl
25375maybe-all-tcl:
e1e5148c
CD
25376@if gcc-bootstrap
25377all-tcl: stage_current
25378@endif gcc-bootstrap
d5eec917 25379@if tcl
5e6b1f07 25380TARGET-tcl=all
d5eec917
PB
25381maybe-all-tcl: all-tcl
25382all-tcl: configure-tcl
15b527ca 25383 @: $(MAKE); $(unstage)
8ec98d6c
NN
25384 @r=`${PWD_COMMAND}`; export r; \
25385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 25386 $(HOST_EXPORTS) \
7fc2ca22 25387 (cd $(HOST_SUBDIR)/tcl && \
6532abb6
PB
25388 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
25389 $(TARGET-tcl))
d5eec917 25390@endif tcl
8ec98d6c 25391
f0fdfd34 25392
a8a96878
PB
25393
25394
d5eec917
PB
25395.PHONY: check-tcl maybe-check-tcl
25396maybe-check-tcl:
25397@if tcl
25398maybe-check-tcl: check-tcl
657b58f4 25399
d5eec917 25400check-tcl:
15b527ca 25401 @: $(MAKE); $(unstage)
8ec98d6c
NN
25402 @r=`${PWD_COMMAND}`; export r; \
25403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25404 $(HOST_EXPORTS) \
7fc2ca22
PB
25405 (cd $(HOST_SUBDIR)/tcl && \
25406 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 25407
d5eec917 25408@endif tcl
8ec98d6c 25409
d5eec917
PB
25410.PHONY: install-tcl maybe-install-tcl
25411maybe-install-tcl:
25412@if tcl
25413maybe-install-tcl: install-tcl
8ec98d6c 25414
d5eec917 25415install-tcl: installdirs
15b527ca 25416 @: $(MAKE); $(unstage)
8ec98d6c
NN
25417 @r=`${PWD_COMMAND}`; export r; \
25418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25419 $(HOST_EXPORTS) \
7fc2ca22 25420 (cd $(HOST_SUBDIR)/tcl && \
93c60b6d 25421 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 25422
d5eec917 25423@endif tcl
8ec98d6c 25424
39bbbb69 25425# Other targets (info, dvi, pdf, etc.)
8ec98d6c 25426
d5eec917
PB
25427.PHONY: maybe-info-tcl info-tcl
25428maybe-info-tcl:
25429@if tcl
25430maybe-info-tcl: info-tcl
8ec98d6c 25431
d5eec917
PB
25432info-tcl: \
25433 configure-tcl
15b527ca 25434 @: $(MAKE); $(unstage)
d5eec917 25435 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25436 r=`${PWD_COMMAND}`; export r; \
25437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25438 $(HOST_EXPORTS) \
d5eec917 25439 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25441 done; \
d5eec917 25442 echo "Doing info in tcl" ; \
7fc2ca22 25443 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25446 "RANLIB=$${RANLIB}" \
bffcbe34 25447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25448 info) \
657b58f4
NN
25449 || exit 1
25450
d5eec917 25451@endif tcl
657b58f4 25452
d5eec917
PB
25453.PHONY: maybe-dvi-tcl dvi-tcl
25454maybe-dvi-tcl:
25455@if tcl
25456maybe-dvi-tcl: dvi-tcl
657b58f4 25457
d5eec917
PB
25458dvi-tcl: \
25459 configure-tcl
15b527ca 25460 @: $(MAKE); $(unstage)
d5eec917 25461 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25462 r=`${PWD_COMMAND}`; export r; \
25463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25464 $(HOST_EXPORTS) \
d5eec917 25465 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25467 done; \
d5eec917 25468 echo "Doing dvi in tcl" ; \
7fc2ca22 25469 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25472 "RANLIB=$${RANLIB}" \
bffcbe34 25473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25474 dvi) \
657b58f4
NN
25475 || exit 1
25476
d5eec917 25477@endif tcl
657b58f4 25478
39bbbb69
DD
25479.PHONY: maybe-pdf-tcl pdf-tcl
25480maybe-pdf-tcl:
25481@if tcl
25482maybe-pdf-tcl: pdf-tcl
25483
25484pdf-tcl: \
25485 configure-tcl
25486 @: $(MAKE); $(unstage)
25487 @[ -f ./tcl/Makefile ] || exit 0; \
25488 r=`${PWD_COMMAND}`; export r; \
25489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25490 $(HOST_EXPORTS) \
25491 for flag in $(EXTRA_HOST_FLAGS) ; do \
25492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25493 done; \
25494 echo "Doing pdf in tcl" ; \
25495 (cd $(HOST_SUBDIR)/tcl && \
25496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25498 "RANLIB=$${RANLIB}" \
bffcbe34 25499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
25500 pdf) \
25501 || exit 1
25502
25503@endif tcl
25504
b6fb961f
MS
25505.PHONY: maybe-html-tcl html-tcl
25506maybe-html-tcl:
25507@if tcl
25508maybe-html-tcl: html-tcl
25509
25510html-tcl: \
25511 configure-tcl
15b527ca 25512 @: $(MAKE); $(unstage)
b6fb961f
MS
25513 @[ -f ./tcl/Makefile ] || exit 0; \
25514 r=`${PWD_COMMAND}`; export r; \
25515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
25516 $(HOST_EXPORTS) \
25517 for flag in $(EXTRA_HOST_FLAGS) ; do \
25518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25519 done; \
25520 echo "Doing html in tcl" ; \
7fc2ca22 25521 (cd $(HOST_SUBDIR)/tcl && \
b6fb961f
MS
25522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25524 "RANLIB=$${RANLIB}" \
bffcbe34 25525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
25526 html) \
25527 || exit 1
25528
25529@endif tcl
25530
d5eec917
PB
25531.PHONY: maybe-TAGS-tcl TAGS-tcl
25532maybe-TAGS-tcl:
25533@if tcl
25534maybe-TAGS-tcl: TAGS-tcl
657b58f4 25535
d5eec917
PB
25536TAGS-tcl: \
25537 configure-tcl
15b527ca 25538 @: $(MAKE); $(unstage)
d5eec917 25539 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25540 r=`${PWD_COMMAND}`; export r; \
25541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25542 $(HOST_EXPORTS) \
d5eec917 25543 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25545 done; \
d5eec917 25546 echo "Doing TAGS in tcl" ; \
7fc2ca22 25547 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25550 "RANLIB=$${RANLIB}" \
bffcbe34 25551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25552 TAGS) \
657b58f4
NN
25553 || exit 1
25554
d5eec917 25555@endif tcl
657b58f4 25556
d5eec917
PB
25557.PHONY: maybe-install-info-tcl install-info-tcl
25558maybe-install-info-tcl:
25559@if tcl
25560maybe-install-info-tcl: install-info-tcl
657b58f4 25561
d5eec917
PB
25562install-info-tcl: \
25563 configure-tcl \
25564 info-tcl
15b527ca 25565 @: $(MAKE); $(unstage)
d5eec917 25566 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25567 r=`${PWD_COMMAND}`; export r; \
25568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25569 $(HOST_EXPORTS) \
d5eec917 25570 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25572 done; \
d5eec917 25573 echo "Doing install-info in tcl" ; \
7fc2ca22 25574 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25577 "RANLIB=$${RANLIB}" \
bffcbe34 25578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25579 install-info) \
657b58f4
NN
25580 || exit 1
25581
d5eec917 25582@endif tcl
657b58f4 25583
d4954b6d
DD
25584.PHONY: maybe-install-pdf-tcl install-pdf-tcl
25585maybe-install-pdf-tcl:
25586@if tcl
25587maybe-install-pdf-tcl: install-pdf-tcl
25588
25589install-pdf-tcl: \
25590 configure-tcl \
25591 pdf-tcl
25592 @: $(MAKE); $(unstage)
25593 @[ -f ./tcl/Makefile ] || exit 0; \
25594 r=`${PWD_COMMAND}`; export r; \
25595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25596 $(HOST_EXPORTS) \
25597 for flag in $(EXTRA_HOST_FLAGS) ; do \
25598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25599 done; \
25600 echo "Doing install-pdf in tcl" ; \
25601 (cd $(HOST_SUBDIR)/tcl && \
25602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25604 "RANLIB=$${RANLIB}" \
bffcbe34 25605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
25606 install-pdf) \
25607 || exit 1
25608
25609@endif tcl
25610
83c9add4
CD
25611.PHONY: maybe-install-html-tcl install-html-tcl
25612maybe-install-html-tcl:
25613@if tcl
25614maybe-install-html-tcl: install-html-tcl
25615
25616install-html-tcl: \
25617 configure-tcl \
25618 html-tcl
25619 @: $(MAKE); $(unstage)
25620 @[ -f ./tcl/Makefile ] || exit 0; \
25621 r=`${PWD_COMMAND}`; export r; \
25622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25623 $(HOST_EXPORTS) \
25624 for flag in $(EXTRA_HOST_FLAGS) ; do \
25625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25626 done; \
25627 echo "Doing install-html in tcl" ; \
25628 (cd $(HOST_SUBDIR)/tcl && \
25629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25631 "RANLIB=$${RANLIB}" \
bffcbe34 25632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
25633 install-html) \
25634 || exit 1
25635
25636@endif tcl
25637
d5eec917
PB
25638.PHONY: maybe-installcheck-tcl installcheck-tcl
25639maybe-installcheck-tcl:
25640@if tcl
25641maybe-installcheck-tcl: installcheck-tcl
657b58f4 25642
d5eec917
PB
25643installcheck-tcl: \
25644 configure-tcl
15b527ca 25645 @: $(MAKE); $(unstage)
d5eec917 25646 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25647 r=`${PWD_COMMAND}`; export r; \
25648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25649 $(HOST_EXPORTS) \
d5eec917 25650 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25652 done; \
d5eec917 25653 echo "Doing installcheck in tcl" ; \
7fc2ca22 25654 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25657 "RANLIB=$${RANLIB}" \
bffcbe34 25658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25659 installcheck) \
657b58f4
NN
25660 || exit 1
25661
d5eec917 25662@endif tcl
657b58f4 25663
d5eec917
PB
25664.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
25665maybe-mostlyclean-tcl:
25666@if tcl
25667maybe-mostlyclean-tcl: mostlyclean-tcl
657b58f4 25668
d5eec917
PB
25669# tcl doesn't support mostlyclean.
25670mostlyclean-tcl:
657b58f4 25671
d5eec917 25672@endif tcl
657b58f4 25673
d5eec917
PB
25674.PHONY: maybe-clean-tcl clean-tcl
25675maybe-clean-tcl:
25676@if tcl
25677maybe-clean-tcl: clean-tcl
657b58f4 25678
d5eec917 25679clean-tcl:
15b527ca 25680 @: $(MAKE); $(unstage)
d5eec917 25681 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25682 r=`${PWD_COMMAND}`; export r; \
25683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25684 $(HOST_EXPORTS) \
d5eec917 25685 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25687 done; \
d5eec917 25688 echo "Doing clean in tcl" ; \
7fc2ca22 25689 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25692 "RANLIB=$${RANLIB}" \
bffcbe34 25693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25694 clean) \
657b58f4
NN
25695 || exit 1
25696
d5eec917 25697@endif tcl
657b58f4 25698
d5eec917
PB
25699.PHONY: maybe-distclean-tcl distclean-tcl
25700maybe-distclean-tcl:
25701@if tcl
25702maybe-distclean-tcl: distclean-tcl
657b58f4 25703
d5eec917 25704distclean-tcl:
15b527ca 25705 @: $(MAKE); $(unstage)
d5eec917 25706 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25707 r=`${PWD_COMMAND}`; export r; \
25708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25709 $(HOST_EXPORTS) \
d5eec917 25710 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25712 done; \
d5eec917 25713 echo "Doing distclean in tcl" ; \
7fc2ca22 25714 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25717 "RANLIB=$${RANLIB}" \
bffcbe34 25718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25719 distclean) \
657b58f4
NN
25720 || exit 1
25721
d5eec917 25722@endif tcl
657b58f4 25723
d5eec917
PB
25724.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
25725maybe-maintainer-clean-tcl:
25726@if tcl
25727maybe-maintainer-clean-tcl: maintainer-clean-tcl
657b58f4 25728
d5eec917 25729maintainer-clean-tcl:
15b527ca 25730 @: $(MAKE); $(unstage)
d5eec917 25731 @[ -f ./tcl/Makefile ] || exit 0; \
5230d454
L
25732 r=`${PWD_COMMAND}`; export r; \
25733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25734 $(HOST_EXPORTS) \
d5eec917 25735 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25737 done; \
d5eec917 25738 echo "Doing maintainer-clean in tcl" ; \
7fc2ca22 25739 (cd $(HOST_SUBDIR)/tcl && \
657b58f4
NN
25740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25742 "RANLIB=$${RANLIB}" \
bffcbe34 25743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25744 maintainer-clean) \
657b58f4
NN
25745 || exit 1
25746
d5eec917 25747@endif tcl
657b58f4 25748
657b58f4 25749
f0fdfd34 25750
d5eec917
PB
25751.PHONY: configure-itcl maybe-configure-itcl
25752maybe-configure-itcl:
e1e5148c
CD
25753@if gcc-bootstrap
25754configure-itcl: stage_current
25755@endif gcc-bootstrap
d5eec917
PB
25756@if itcl
25757maybe-configure-itcl: configure-itcl
ec92c4d6 25758configure-itcl:
15b527ca 25759 @: $(MAKE); $(unstage)
ec92c4d6 25760 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 25761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
25762 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
25763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
5074489a 25764 $(HOST_EXPORTS) \
f0fdfd34
PB
25765 echo Configuring in $(HOST_SUBDIR)/itcl; \
25766 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
8ec98d6c 25767 case $(srcdir) in \
7fc2ca22
PB
25768 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25769 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
25770 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 25771 esac; \
7fc2ca22
PB
25772 srcdiroption="--srcdir=$${topdir}/itcl"; \
25773 libsrcdir="$$s/itcl"; \
8ec98d6c 25774 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
25775 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25776 --target=${target_alias} $${srcdiroption} \
8ec98d6c 25777 || exit 1
d5eec917 25778@endif itcl
8ec98d6c 25779
f0fdfd34
PB
25780
25781
a8a96878
PB
25782
25783
d5eec917
PB
25784.PHONY: all-itcl maybe-all-itcl
25785maybe-all-itcl:
e1e5148c
CD
25786@if gcc-bootstrap
25787all-itcl: stage_current
25788@endif gcc-bootstrap
d5eec917 25789@if itcl
5e6b1f07 25790TARGET-itcl=all
d5eec917
PB
25791maybe-all-itcl: all-itcl
25792all-itcl: configure-itcl
15b527ca 25793 @: $(MAKE); $(unstage)
8ec98d6c
NN
25794 @r=`${PWD_COMMAND}`; export r; \
25795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 25796 $(HOST_EXPORTS) \
7fc2ca22 25797 (cd $(HOST_SUBDIR)/itcl && \
6532abb6
PB
25798 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
25799 $(TARGET-itcl))
d5eec917 25800@endif itcl
8ec98d6c 25801
f0fdfd34 25802
a8a96878
PB
25803
25804
d5eec917
PB
25805.PHONY: check-itcl maybe-check-itcl
25806maybe-check-itcl:
25807@if itcl
25808maybe-check-itcl: check-itcl
8ec98d6c 25809
d5eec917 25810check-itcl:
15b527ca 25811 @: $(MAKE); $(unstage)
8ec98d6c
NN
25812 @r=`${PWD_COMMAND}`; export r; \
25813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25814 $(HOST_EXPORTS) \
7fc2ca22
PB
25815 (cd $(HOST_SUBDIR)/itcl && \
25816 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 25817
d5eec917 25818@endif itcl
8ec98d6c 25819
d5eec917
PB
25820.PHONY: install-itcl maybe-install-itcl
25821maybe-install-itcl:
25822@if itcl
25823maybe-install-itcl: install-itcl
8ec98d6c 25824
d5eec917 25825install-itcl: installdirs
15b527ca 25826 @: $(MAKE); $(unstage)
8ec98d6c
NN
25827 @r=`${PWD_COMMAND}`; export r; \
25828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25829 $(HOST_EXPORTS) \
7fc2ca22 25830 (cd $(HOST_SUBDIR)/itcl && \
93c60b6d 25831 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 25832
d5eec917 25833@endif itcl
8ec98d6c 25834
39bbbb69 25835# Other targets (info, dvi, pdf, etc.)
8ec98d6c 25836
d5eec917
PB
25837.PHONY: maybe-info-itcl info-itcl
25838maybe-info-itcl:
25839@if itcl
25840maybe-info-itcl: info-itcl
8ec98d6c 25841
d5eec917
PB
25842info-itcl: \
25843 configure-itcl
15b527ca 25844 @: $(MAKE); $(unstage)
d5eec917 25845 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
25846 r=`${PWD_COMMAND}`; export r; \
25847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25848 $(HOST_EXPORTS) \
d5eec917 25849 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25851 done; \
d5eec917 25852 echo "Doing info in itcl" ; \
7fc2ca22 25853 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
25854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25856 "RANLIB=$${RANLIB}" \
bffcbe34 25857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25858 info) \
657b58f4
NN
25859 || exit 1
25860
d5eec917 25861@endif itcl
657b58f4 25862
d5eec917
PB
25863.PHONY: maybe-dvi-itcl dvi-itcl
25864maybe-dvi-itcl:
25865@if itcl
25866maybe-dvi-itcl: dvi-itcl
657b58f4 25867
d5eec917
PB
25868dvi-itcl: \
25869 configure-itcl
15b527ca 25870 @: $(MAKE); $(unstage)
d5eec917 25871 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
25872 r=`${PWD_COMMAND}`; export r; \
25873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25874 $(HOST_EXPORTS) \
d5eec917 25875 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25877 done; \
d5eec917 25878 echo "Doing dvi in itcl" ; \
7fc2ca22 25879 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
25880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25882 "RANLIB=$${RANLIB}" \
bffcbe34 25883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25884 dvi) \
657b58f4
NN
25885 || exit 1
25886
d5eec917 25887@endif itcl
657b58f4 25888
39bbbb69
DD
25889.PHONY: maybe-pdf-itcl pdf-itcl
25890maybe-pdf-itcl:
25891@if itcl
25892maybe-pdf-itcl: pdf-itcl
25893
25894pdf-itcl: \
25895 configure-itcl
25896 @: $(MAKE); $(unstage)
25897 @[ -f ./itcl/Makefile ] || exit 0; \
25898 r=`${PWD_COMMAND}`; export r; \
25899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25900 $(HOST_EXPORTS) \
25901 for flag in $(EXTRA_HOST_FLAGS) ; do \
25902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25903 done; \
25904 echo "Doing pdf in itcl" ; \
25905 (cd $(HOST_SUBDIR)/itcl && \
25906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25908 "RANLIB=$${RANLIB}" \
bffcbe34 25909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
25910 pdf) \
25911 || exit 1
25912
25913@endif itcl
25914
b6fb961f
MS
25915.PHONY: maybe-html-itcl html-itcl
25916maybe-html-itcl:
25917@if itcl
25918maybe-html-itcl: html-itcl
25919
25920html-itcl: \
25921 configure-itcl
15b527ca 25922 @: $(MAKE); $(unstage)
b6fb961f
MS
25923 @[ -f ./itcl/Makefile ] || exit 0; \
25924 r=`${PWD_COMMAND}`; export r; \
25925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
25926 $(HOST_EXPORTS) \
25927 for flag in $(EXTRA_HOST_FLAGS) ; do \
25928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25929 done; \
25930 echo "Doing html in itcl" ; \
7fc2ca22 25931 (cd $(HOST_SUBDIR)/itcl && \
b6fb961f
MS
25932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25934 "RANLIB=$${RANLIB}" \
bffcbe34 25935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
25936 html) \
25937 || exit 1
25938
25939@endif itcl
25940
d5eec917
PB
25941.PHONY: maybe-TAGS-itcl TAGS-itcl
25942maybe-TAGS-itcl:
25943@if itcl
25944maybe-TAGS-itcl: TAGS-itcl
657b58f4 25945
d5eec917
PB
25946TAGS-itcl: \
25947 configure-itcl
15b527ca 25948 @: $(MAKE); $(unstage)
d5eec917 25949 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
25950 r=`${PWD_COMMAND}`; export r; \
25951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25952 $(HOST_EXPORTS) \
d5eec917 25953 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25955 done; \
d5eec917 25956 echo "Doing TAGS in itcl" ; \
7fc2ca22 25957 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
25958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25960 "RANLIB=$${RANLIB}" \
bffcbe34 25961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25962 TAGS) \
657b58f4
NN
25963 || exit 1
25964
d5eec917 25965@endif itcl
657b58f4 25966
d5eec917
PB
25967.PHONY: maybe-install-info-itcl install-info-itcl
25968maybe-install-info-itcl:
25969@if itcl
25970maybe-install-info-itcl: install-info-itcl
657b58f4 25971
d5eec917
PB
25972install-info-itcl: \
25973 configure-itcl \
25974 info-itcl
15b527ca 25975 @: $(MAKE); $(unstage)
d5eec917 25976 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
25977 r=`${PWD_COMMAND}`; export r; \
25978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 25979 $(HOST_EXPORTS) \
d5eec917 25980 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
25981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25982 done; \
d5eec917 25983 echo "Doing install-info in itcl" ; \
7fc2ca22 25984 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
25985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25987 "RANLIB=$${RANLIB}" \
bffcbe34 25988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 25989 install-info) \
657b58f4
NN
25990 || exit 1
25991
d5eec917 25992@endif itcl
657b58f4 25993
d4954b6d
DD
25994.PHONY: maybe-install-pdf-itcl install-pdf-itcl
25995maybe-install-pdf-itcl:
25996@if itcl
25997maybe-install-pdf-itcl: install-pdf-itcl
25998
25999install-pdf-itcl: \
26000 configure-itcl \
26001 pdf-itcl
26002 @: $(MAKE); $(unstage)
26003 @[ -f ./itcl/Makefile ] || exit 0; \
26004 r=`${PWD_COMMAND}`; export r; \
26005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26006 $(HOST_EXPORTS) \
26007 for flag in $(EXTRA_HOST_FLAGS) ; do \
26008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26009 done; \
26010 echo "Doing install-pdf in itcl" ; \
26011 (cd $(HOST_SUBDIR)/itcl && \
26012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26014 "RANLIB=$${RANLIB}" \
bffcbe34 26015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
26016 install-pdf) \
26017 || exit 1
26018
26019@endif itcl
26020
83c9add4
CD
26021.PHONY: maybe-install-html-itcl install-html-itcl
26022maybe-install-html-itcl:
26023@if itcl
26024maybe-install-html-itcl: install-html-itcl
26025
26026install-html-itcl: \
26027 configure-itcl \
26028 html-itcl
26029 @: $(MAKE); $(unstage)
26030 @[ -f ./itcl/Makefile ] || exit 0; \
26031 r=`${PWD_COMMAND}`; export r; \
26032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26033 $(HOST_EXPORTS) \
26034 for flag in $(EXTRA_HOST_FLAGS) ; do \
26035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26036 done; \
26037 echo "Doing install-html in itcl" ; \
26038 (cd $(HOST_SUBDIR)/itcl && \
26039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26041 "RANLIB=$${RANLIB}" \
bffcbe34 26042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
26043 install-html) \
26044 || exit 1
26045
26046@endif itcl
26047
d5eec917
PB
26048.PHONY: maybe-installcheck-itcl installcheck-itcl
26049maybe-installcheck-itcl:
26050@if itcl
26051maybe-installcheck-itcl: installcheck-itcl
657b58f4 26052
d5eec917
PB
26053installcheck-itcl: \
26054 configure-itcl
15b527ca 26055 @: $(MAKE); $(unstage)
d5eec917 26056 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
26057 r=`${PWD_COMMAND}`; export r; \
26058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26059 $(HOST_EXPORTS) \
d5eec917 26060 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26062 done; \
d5eec917 26063 echo "Doing installcheck in itcl" ; \
7fc2ca22 26064 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
26065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26067 "RANLIB=$${RANLIB}" \
bffcbe34 26068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26069 installcheck) \
657b58f4
NN
26070 || exit 1
26071
d5eec917 26072@endif itcl
657b58f4 26073
d5eec917
PB
26074.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
26075maybe-mostlyclean-itcl:
26076@if itcl
26077maybe-mostlyclean-itcl: mostlyclean-itcl
657b58f4 26078
d5eec917 26079mostlyclean-itcl:
15b527ca 26080 @: $(MAKE); $(unstage)
d5eec917 26081 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
26082 r=`${PWD_COMMAND}`; export r; \
26083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26084 $(HOST_EXPORTS) \
d5eec917 26085 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26087 done; \
d5eec917 26088 echo "Doing mostlyclean in itcl" ; \
7fc2ca22 26089 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
26090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26092 "RANLIB=$${RANLIB}" \
bffcbe34 26093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26094 mostlyclean) \
657b58f4
NN
26095 || exit 1
26096
d5eec917 26097@endif itcl
657b58f4 26098
d5eec917
PB
26099.PHONY: maybe-clean-itcl clean-itcl
26100maybe-clean-itcl:
26101@if itcl
26102maybe-clean-itcl: clean-itcl
657b58f4 26103
d5eec917 26104clean-itcl:
15b527ca 26105 @: $(MAKE); $(unstage)
d5eec917 26106 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
26107 r=`${PWD_COMMAND}`; export r; \
26108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26109 $(HOST_EXPORTS) \
d5eec917 26110 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26112 done; \
d5eec917 26113 echo "Doing clean in itcl" ; \
7fc2ca22 26114 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
26115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26117 "RANLIB=$${RANLIB}" \
bffcbe34 26118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26119 clean) \
657b58f4
NN
26120 || exit 1
26121
d5eec917 26122@endif itcl
657b58f4 26123
d5eec917
PB
26124.PHONY: maybe-distclean-itcl distclean-itcl
26125maybe-distclean-itcl:
26126@if itcl
26127maybe-distclean-itcl: distclean-itcl
657b58f4 26128
d5eec917 26129distclean-itcl:
15b527ca 26130 @: $(MAKE); $(unstage)
d5eec917 26131 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
26132 r=`${PWD_COMMAND}`; export r; \
26133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26134 $(HOST_EXPORTS) \
d5eec917 26135 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26137 done; \
d5eec917 26138 echo "Doing distclean in itcl" ; \
7fc2ca22 26139 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
26140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26142 "RANLIB=$${RANLIB}" \
bffcbe34 26143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26144 distclean) \
657b58f4
NN
26145 || exit 1
26146
d5eec917 26147@endif itcl
657b58f4 26148
d5eec917
PB
26149.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
26150maybe-maintainer-clean-itcl:
26151@if itcl
26152maybe-maintainer-clean-itcl: maintainer-clean-itcl
657b58f4 26153
d5eec917 26154maintainer-clean-itcl:
15b527ca 26155 @: $(MAKE); $(unstage)
d5eec917 26156 @[ -f ./itcl/Makefile ] || exit 0; \
5230d454
L
26157 r=`${PWD_COMMAND}`; export r; \
26158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26159 $(HOST_EXPORTS) \
d5eec917 26160 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
26161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26162 done; \
d5eec917 26163 echo "Doing maintainer-clean in itcl" ; \
7fc2ca22 26164 (cd $(HOST_SUBDIR)/itcl && \
657b58f4
NN
26165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26167 "RANLIB=$${RANLIB}" \
bffcbe34 26168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26169 maintainer-clean) \
657b58f4
NN
26170 || exit 1
26171
d5eec917 26172@endif itcl
657b58f4 26173
657b58f4 26174
f0fdfd34 26175
d5eec917
PB
26176.PHONY: configure-ld maybe-configure-ld
26177maybe-configure-ld:
e1e5148c
CD
26178@if gcc-bootstrap
26179configure-ld: stage_current
26180@endif gcc-bootstrap
d5eec917
PB
26181@if ld
26182maybe-configure-ld: configure-ld
ec92c4d6 26183configure-ld:
ec92c4d6
PB
26184 @r=`${PWD_COMMAND}`; export r; \
26185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
26186 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
26187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
5074489a 26188 $(HOST_EXPORTS) \
f0fdfd34
PB
26189 echo Configuring in $(HOST_SUBDIR)/ld; \
26190 cd "$(HOST_SUBDIR)/ld" || exit 1; \
c580d516 26191 case $(srcdir) in \
7fc2ca22
PB
26192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26193 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
c580d516 26195 esac; \
7fc2ca22
PB
26196 srcdiroption="--srcdir=$${topdir}/ld"; \
26197 libsrcdir="$$s/ld"; \
c580d516 26198 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26199 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26200 --target=${target_alias} $${srcdiroption} \
c580d516 26201 || exit 1
d5eec917 26202@endif ld
c580d516 26203
f0fdfd34
PB
26204
26205
a8a96878
PB
26206.PHONY: configure-stage1-ld maybe-configure-stage1-ld
26207maybe-configure-stage1-ld:
26208@if ld-bootstrap
26209maybe-configure-stage1-ld: configure-stage1-ld
15b527ca 26210configure-stage1-ld:
ec92c4d6 26211 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 26212 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26213 @r=`${PWD_COMMAND}`; export r; \
26214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26215 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 26216 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
c91ae28f 26217 $(HOST_EXPORTS) \
2ba09444 26218 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
26219 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
26220 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 26221 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
15b527ca 26222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26223 cd $(HOST_SUBDIR)/ld || exit 1; \
26224 case $(srcdir) in \
26225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26226 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26228 esac; \
26229 srcdiroption="--srcdir=$${topdir}/ld"; \
26230 libsrcdir="$$s/ld"; \
26231 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26233 --target=${target_alias} $${srcdiroption} \
c91ae28f 26234 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
26235@endif ld-bootstrap
26236
26237.PHONY: configure-stage2-ld maybe-configure-stage2-ld
26238maybe-configure-stage2-ld:
26239@if ld-bootstrap
26240maybe-configure-stage2-ld: configure-stage2-ld
15b527ca 26241configure-stage2-ld:
ec92c4d6 26242 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 26243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26244 @r=`${PWD_COMMAND}`; export r; \
26245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26246 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 26247 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 26248 $(HOST_EXPORTS) \
c91ae28f 26249 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26250 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
26251 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26252 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 26253 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
15b527ca 26254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26255 cd $(HOST_SUBDIR)/ld || exit 1; \
26256 case $(srcdir) in \
26257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26258 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26260 esac; \
26261 srcdiroption="--srcdir=$${topdir}/ld"; \
26262 libsrcdir="$$s/ld"; \
26263 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26265 --target=${target_alias} $${srcdiroption} \
380e48e5 26266 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 26267 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
26268@endif ld-bootstrap
26269
a8a96878
PB
26270.PHONY: configure-stage3-ld maybe-configure-stage3-ld
26271maybe-configure-stage3-ld:
26272@if ld-bootstrap
26273maybe-configure-stage3-ld: configure-stage3-ld
15b527ca 26274configure-stage3-ld:
ec92c4d6 26275 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 26276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26277 @r=`${PWD_COMMAND}`; export r; \
26278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26279 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 26280 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 26281 $(HOST_EXPORTS) \
c91ae28f 26282 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26283 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
26284 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26285 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 26286 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
15b527ca 26287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26288 cd $(HOST_SUBDIR)/ld || exit 1; \
26289 case $(srcdir) in \
26290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26291 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26293 esac; \
26294 srcdiroption="--srcdir=$${topdir}/ld"; \
26295 libsrcdir="$$s/ld"; \
26296 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26297 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26298 --target=${target_alias} $${srcdiroption} \
380e48e5 26299 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 26300 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
26301@endif ld-bootstrap
26302
a8a96878
PB
26303.PHONY: configure-stage4-ld maybe-configure-stage4-ld
26304maybe-configure-stage4-ld:
26305@if ld-bootstrap
26306maybe-configure-stage4-ld: configure-stage4-ld
15b527ca 26307configure-stage4-ld:
ec92c4d6 26308 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 26309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26310 @r=`${PWD_COMMAND}`; export r; \
26311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26312 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 26313 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 26314 $(HOST_EXPORTS) \
c91ae28f 26315 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 26316 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
26317 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26318 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 26319 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
15b527ca 26320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26321 cd $(HOST_SUBDIR)/ld || exit 1; \
26322 case $(srcdir) in \
26323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26324 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26326 esac; \
26327 srcdiroption="--srcdir=$${topdir}/ld"; \
26328 libsrcdir="$$s/ld"; \
26329 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26331 --target=${target_alias} $${srcdiroption} \
380e48e5 26332 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 26333 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
26334@endif ld-bootstrap
26335
26336.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
26337maybe-configure-stageprofile-ld:
26338@if ld-bootstrap
26339maybe-configure-stageprofile-ld: configure-stageprofile-ld
15b527ca 26340configure-stageprofile-ld:
ec92c4d6 26341 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 26342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26343 @r=`${PWD_COMMAND}`; export r; \
26344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26345 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 26346 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 26347 $(HOST_EXPORTS) \
c91ae28f
AO
26348 $(POSTSTAGE1_HOST_EXPORTS) \
26349 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
26350 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26351 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 26352 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
15b527ca 26353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26354 cd $(HOST_SUBDIR)/ld || exit 1; \
26355 case $(srcdir) in \
26356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26357 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26359 esac; \
26360 srcdiroption="--srcdir=$${topdir}/ld"; \
26361 libsrcdir="$$s/ld"; \
26362 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26364 --target=${target_alias} $${srcdiroption} \
380e48e5 26365 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 26366 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
26367@endif ld-bootstrap
26368
26369.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
26370maybe-configure-stagefeedback-ld:
26371@if ld-bootstrap
26372maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
15b527ca 26373configure-stagefeedback-ld:
ec92c4d6 26374 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 26375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
ec92c4d6
PB
26376 @r=`${PWD_COMMAND}`; export r; \
26377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26378 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 26379 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
a8a96878 26380 $(HOST_EXPORTS) \
c91ae28f
AO
26381 $(POSTSTAGE1_HOST_EXPORTS) \
26382 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
26383 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26384 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 26385 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
15b527ca 26386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
a8a96878
PB
26387 cd $(HOST_SUBDIR)/ld || exit 1; \
26388 case $(srcdir) in \
26389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26390 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
26391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26392 esac; \
26393 srcdiroption="--srcdir=$${topdir}/ld"; \
26394 libsrcdir="$$s/ld"; \
26395 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
26396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26397 --target=${target_alias} $${srcdiroption} \
380e48e5 26398 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 26399 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
26400@endif ld-bootstrap
26401
26402
26403
26404
26405
d5eec917
PB
26406.PHONY: all-ld maybe-all-ld
26407maybe-all-ld:
e1e5148c
CD
26408@if gcc-bootstrap
26409all-ld: stage_current
26410@endif gcc-bootstrap
d5eec917 26411@if ld
5e6b1f07 26412TARGET-ld=all
d5eec917
PB
26413maybe-all-ld: all-ld
26414all-ld: configure-ld
ec92c4d6 26415 @r=`${PWD_COMMAND}`; export r; \
c580d516 26416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 26417 $(HOST_EXPORTS) \
7fc2ca22 26418 (cd $(HOST_SUBDIR)/ld && \
6532abb6
PB
26419 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
26420 $(TARGET-ld))
d5eec917 26421@endif ld
c580d516 26422
f0fdfd34 26423
a8a96878
PB
26424
26425.PHONY: all-stage1-ld maybe-all-stage1-ld
26426.PHONY: clean-stage1-ld maybe-clean-stage1-ld
26427maybe-all-stage1-ld:
26428maybe-clean-stage1-ld:
26429@if ld-bootstrap
26430maybe-all-stage1-ld: all-stage1-ld
26431all-stage1: all-stage1-ld
168b158c 26432TARGET-stage1-ld = $(TARGET-ld)
a8a96878 26433all-stage1-ld: configure-stage1-ld
ec92c4d6 26434 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
26435 @r=`${PWD_COMMAND}`; export r; \
26436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26437 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 26438 $(HOST_EXPORTS) \
a8a96878 26439 cd $(HOST_SUBDIR)/ld && \
6532abb6 26440 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26441 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 26442 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
26443 LIBCFLAGS="$(LIBCFLAGS)" \
26444 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26445 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26446 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26447 $(EXTRA_HOST_FLAGS) \
26448 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 26449 $(TARGET-stage1-ld)
a8a96878
PB
26450
26451maybe-clean-stage1-ld: clean-stage1-ld
26452clean-stage1: clean-stage1-ld
26453clean-stage1-ld:
a6a4e782
DD
26454 @if [ $(current_stage) = stage1 ]; then \
26455 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26456 else \
26457 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
26458 $(MAKE) stage1-start; \
26459 fi; \
a8a96878 26460 cd $(HOST_SUBDIR)/ld && \
6532abb6 26461 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 26462 clean
a8a96878
PB
26463@endif ld-bootstrap
26464
26465
26466.PHONY: all-stage2-ld maybe-all-stage2-ld
26467.PHONY: clean-stage2-ld maybe-clean-stage2-ld
26468maybe-all-stage2-ld:
26469maybe-clean-stage2-ld:
26470@if ld-bootstrap
26471maybe-all-stage2-ld: all-stage2-ld
26472all-stage2: all-stage2-ld
168b158c 26473TARGET-stage2-ld = $(TARGET-ld)
a8a96878 26474all-stage2-ld: configure-stage2-ld
ec92c4d6 26475 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
26476 @r=`${PWD_COMMAND}`; export r; \
26477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26478 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 26479 $(HOST_EXPORTS) \
5074489a 26480 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 26481 cd $(HOST_SUBDIR)/ld && \
6532abb6 26482 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26483 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 26484 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
26485 LIBCFLAGS="$(STAGE2_CFLAGS)" \
26486 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26487 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26488 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26489 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26490 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 26491 $(TARGET-stage2-ld)
a8a96878
PB
26492
26493maybe-clean-stage2-ld: clean-stage2-ld
26494clean-stage2: clean-stage2-ld
26495clean-stage2-ld:
a6a4e782
DD
26496 @if [ $(current_stage) = stage2 ]; then \
26497 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26498 else \
26499 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
26500 $(MAKE) stage2-start; \
26501 fi; \
a8a96878 26502 cd $(HOST_SUBDIR)/ld && \
6532abb6 26503 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26504 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26505 clean
a8a96878
PB
26506@endif ld-bootstrap
26507
26508
26509.PHONY: all-stage3-ld maybe-all-stage3-ld
26510.PHONY: clean-stage3-ld maybe-clean-stage3-ld
26511maybe-all-stage3-ld:
26512maybe-clean-stage3-ld:
26513@if ld-bootstrap
26514maybe-all-stage3-ld: all-stage3-ld
26515all-stage3: all-stage3-ld
168b158c 26516TARGET-stage3-ld = $(TARGET-ld)
a8a96878 26517all-stage3-ld: configure-stage3-ld
ec92c4d6 26518 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
26519 @r=`${PWD_COMMAND}`; export r; \
26520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26521 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 26522 $(HOST_EXPORTS) \
5074489a 26523 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 26524 cd $(HOST_SUBDIR)/ld && \
6532abb6 26525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26526 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 26527 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
26528 LIBCFLAGS="$(STAGE3_CFLAGS)" \
26529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26532 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26533 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 26534 $(TARGET-stage3-ld)
a8a96878
PB
26535
26536maybe-clean-stage3-ld: clean-stage3-ld
26537clean-stage3: clean-stage3-ld
26538clean-stage3-ld:
a6a4e782
DD
26539 @if [ $(current_stage) = stage3 ]; then \
26540 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26541 else \
26542 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
26543 $(MAKE) stage3-start; \
26544 fi; \
a8a96878 26545 cd $(HOST_SUBDIR)/ld && \
6532abb6 26546 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26547 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26548 clean
a8a96878
PB
26549@endif ld-bootstrap
26550
26551
26552.PHONY: all-stage4-ld maybe-all-stage4-ld
26553.PHONY: clean-stage4-ld maybe-clean-stage4-ld
26554maybe-all-stage4-ld:
26555maybe-clean-stage4-ld:
26556@if ld-bootstrap
26557maybe-all-stage4-ld: all-stage4-ld
26558all-stage4: all-stage4-ld
168b158c 26559TARGET-stage4-ld = $(TARGET-ld)
a8a96878 26560all-stage4-ld: configure-stage4-ld
ec92c4d6 26561 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
26562 @r=`${PWD_COMMAND}`; export r; \
26563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26564 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 26565 $(HOST_EXPORTS) \
5074489a 26566 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 26567 cd $(HOST_SUBDIR)/ld && \
6532abb6 26568 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26569 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 26570 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 26571 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
26572 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26573 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26574 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26575 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26576 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 26577 $(TARGET-stage4-ld)
a8a96878
PB
26578
26579maybe-clean-stage4-ld: clean-stage4-ld
26580clean-stage4: clean-stage4-ld
26581clean-stage4-ld:
a6a4e782
DD
26582 @if [ $(current_stage) = stage4 ]; then \
26583 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26584 else \
26585 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
26586 $(MAKE) stage4-start; \
26587 fi; \
a8a96878 26588 cd $(HOST_SUBDIR)/ld && \
6532abb6 26589 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26590 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26591 clean
a8a96878
PB
26592@endif ld-bootstrap
26593
26594
26595.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
26596.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
26597maybe-all-stageprofile-ld:
26598maybe-clean-stageprofile-ld:
26599@if ld-bootstrap
26600maybe-all-stageprofile-ld: all-stageprofile-ld
26601all-stageprofile: all-stageprofile-ld
168b158c 26602TARGET-stageprofile-ld = $(TARGET-ld)
a8a96878 26603all-stageprofile-ld: configure-stageprofile-ld
ec92c4d6 26604 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
26605 @r=`${PWD_COMMAND}`; export r; \
26606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26607 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 26608 $(HOST_EXPORTS) \
5074489a 26609 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 26610 cd $(HOST_SUBDIR)/ld && \
6532abb6 26611 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26612 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 26613 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
26614 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
26615 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26616 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26617 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26618 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26619 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 26620 $(TARGET-stageprofile-ld)
a8a96878
PB
26621
26622maybe-clean-stageprofile-ld: clean-stageprofile-ld
26623clean-stageprofile: clean-stageprofile-ld
26624clean-stageprofile-ld:
a6a4e782
DD
26625 @if [ $(current_stage) = stageprofile ]; then \
26626 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26627 else \
26628 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
26629 $(MAKE) stageprofile-start; \
26630 fi; \
a8a96878 26631 cd $(HOST_SUBDIR)/ld && \
6532abb6 26632 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26633 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26634 clean
a8a96878
PB
26635@endif ld-bootstrap
26636
26637
26638.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
26639.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
26640maybe-all-stagefeedback-ld:
26641maybe-clean-stagefeedback-ld:
26642@if ld-bootstrap
26643maybe-all-stagefeedback-ld: all-stagefeedback-ld
26644all-stagefeedback: all-stagefeedback-ld
168b158c 26645TARGET-stagefeedback-ld = $(TARGET-ld)
a8a96878 26646all-stagefeedback-ld: configure-stagefeedback-ld
ec92c4d6 26647 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
26648 @r=`${PWD_COMMAND}`; export r; \
26649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 26650 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 26651 $(HOST_EXPORTS) \
5074489a 26652 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 26653 cd $(HOST_SUBDIR)/ld && \
6532abb6 26654 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 26655 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 26656 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
26657 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
26658 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26659 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26660 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26661 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26662 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 26663 $(TARGET-stagefeedback-ld)
a8a96878
PB
26664
26665maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
26666clean-stagefeedback: clean-stagefeedback-ld
26667clean-stagefeedback-ld:
a6a4e782
DD
26668 @if [ $(current_stage) = stagefeedback ]; then \
26669 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
26670 else \
26671 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
26672 $(MAKE) stagefeedback-start; \
26673 fi; \
a8a96878 26674 cd $(HOST_SUBDIR)/ld && \
6532abb6 26675 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 26676 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 26677 clean
a8a96878
PB
26678@endif ld-bootstrap
26679
26680
26681
26682
26683
d5eec917
PB
26684.PHONY: check-ld maybe-check-ld
26685maybe-check-ld:
26686@if ld
26687maybe-check-ld: check-ld
c580d516 26688
d5eec917 26689check-ld:
15b527ca 26690 @: $(MAKE); $(unstage)
c580d516
PB
26691 @r=`${PWD_COMMAND}`; export r; \
26692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26693 $(HOST_EXPORTS) \
7fc2ca22
PB
26694 (cd $(HOST_SUBDIR)/ld && \
26695 $(MAKE) $(FLAGS_TO_PASS) check)
c580d516 26696
d5eec917 26697@endif ld
c580d516 26698
d5eec917
PB
26699.PHONY: install-ld maybe-install-ld
26700maybe-install-ld:
26701@if ld
26702maybe-install-ld: install-ld
c580d516 26703
d5eec917 26704install-ld: installdirs
15b527ca 26705 @: $(MAKE); $(unstage)
c580d516
PB
26706 @r=`${PWD_COMMAND}`; export r; \
26707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26708 $(HOST_EXPORTS) \
7fc2ca22 26709 (cd $(HOST_SUBDIR)/ld && \
93c60b6d 26710 $(MAKE) $(FLAGS_TO_PASS) install)
c580d516 26711
d5eec917 26712@endif ld
c580d516 26713
39bbbb69 26714# Other targets (info, dvi, pdf, etc.)
c580d516 26715
d5eec917
PB
26716.PHONY: maybe-info-ld info-ld
26717maybe-info-ld:
26718@if ld
26719maybe-info-ld: info-ld
c580d516 26720
d5eec917
PB
26721info-ld: \
26722 configure-ld
26723 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26724 r=`${PWD_COMMAND}`; export r; \
26725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26726 $(HOST_EXPORTS) \
d5eec917 26727 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26729 done; \
d5eec917 26730 echo "Doing info in ld" ; \
7fc2ca22 26731 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26734 "RANLIB=$${RANLIB}" \
bffcbe34 26735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26736 info) \
c580d516
PB
26737 || exit 1
26738
d5eec917 26739@endif ld
c580d516 26740
d5eec917
PB
26741.PHONY: maybe-dvi-ld dvi-ld
26742maybe-dvi-ld:
26743@if ld
26744maybe-dvi-ld: dvi-ld
c580d516 26745
d5eec917
PB
26746dvi-ld: \
26747 configure-ld
26748 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26749 r=`${PWD_COMMAND}`; export r; \
26750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26751 $(HOST_EXPORTS) \
d5eec917 26752 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26754 done; \
d5eec917 26755 echo "Doing dvi in ld" ; \
7fc2ca22 26756 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26759 "RANLIB=$${RANLIB}" \
bffcbe34 26760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26761 dvi) \
c580d516
PB
26762 || exit 1
26763
d5eec917 26764@endif ld
c580d516 26765
39bbbb69
DD
26766.PHONY: maybe-pdf-ld pdf-ld
26767maybe-pdf-ld:
26768@if ld
26769maybe-pdf-ld: pdf-ld
26770
26771pdf-ld: \
26772 configure-ld
26773 @[ -f ./ld/Makefile ] || exit 0; \
26774 r=`${PWD_COMMAND}`; export r; \
26775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26776 $(HOST_EXPORTS) \
26777 for flag in $(EXTRA_HOST_FLAGS) ; do \
26778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26779 done; \
26780 echo "Doing pdf in ld" ; \
26781 (cd $(HOST_SUBDIR)/ld && \
26782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26784 "RANLIB=$${RANLIB}" \
bffcbe34 26785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
26786 pdf) \
26787 || exit 1
26788
26789@endif ld
26790
b6fb961f
MS
26791.PHONY: maybe-html-ld html-ld
26792maybe-html-ld:
26793@if ld
26794maybe-html-ld: html-ld
26795
26796html-ld: \
26797 configure-ld
26798 @[ -f ./ld/Makefile ] || exit 0; \
26799 r=`${PWD_COMMAND}`; export r; \
26800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
26801 $(HOST_EXPORTS) \
26802 for flag in $(EXTRA_HOST_FLAGS) ; do \
26803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26804 done; \
26805 echo "Doing html in ld" ; \
7fc2ca22 26806 (cd $(HOST_SUBDIR)/ld && \
b6fb961f
MS
26807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26809 "RANLIB=$${RANLIB}" \
bffcbe34 26810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
26811 html) \
26812 || exit 1
26813
26814@endif ld
26815
d5eec917
PB
26816.PHONY: maybe-TAGS-ld TAGS-ld
26817maybe-TAGS-ld:
26818@if ld
26819maybe-TAGS-ld: TAGS-ld
c580d516 26820
d5eec917
PB
26821TAGS-ld: \
26822 configure-ld
26823 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26824 r=`${PWD_COMMAND}`; export r; \
26825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26826 $(HOST_EXPORTS) \
d5eec917 26827 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26829 done; \
d5eec917 26830 echo "Doing TAGS in ld" ; \
7fc2ca22 26831 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26834 "RANLIB=$${RANLIB}" \
bffcbe34 26835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26836 TAGS) \
c580d516
PB
26837 || exit 1
26838
d5eec917 26839@endif ld
c580d516 26840
d5eec917
PB
26841.PHONY: maybe-install-info-ld install-info-ld
26842maybe-install-info-ld:
26843@if ld
26844maybe-install-info-ld: install-info-ld
c580d516 26845
d5eec917
PB
26846install-info-ld: \
26847 configure-ld \
26848 info-ld
26849 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26850 r=`${PWD_COMMAND}`; export r; \
26851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26852 $(HOST_EXPORTS) \
d5eec917 26853 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26855 done; \
d5eec917 26856 echo "Doing install-info in ld" ; \
7fc2ca22 26857 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26860 "RANLIB=$${RANLIB}" \
bffcbe34 26861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26862 install-info) \
c580d516
PB
26863 || exit 1
26864
d5eec917 26865@endif ld
c580d516 26866
d4954b6d
DD
26867.PHONY: maybe-install-pdf-ld install-pdf-ld
26868maybe-install-pdf-ld:
26869@if ld
26870maybe-install-pdf-ld: install-pdf-ld
26871
26872install-pdf-ld: \
26873 configure-ld \
26874 pdf-ld
26875 @[ -f ./ld/Makefile ] || exit 0; \
26876 r=`${PWD_COMMAND}`; export r; \
26877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26878 $(HOST_EXPORTS) \
26879 for flag in $(EXTRA_HOST_FLAGS) ; do \
26880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26881 done; \
26882 echo "Doing install-pdf in ld" ; \
26883 (cd $(HOST_SUBDIR)/ld && \
26884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26886 "RANLIB=$${RANLIB}" \
bffcbe34 26887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
26888 install-pdf) \
26889 || exit 1
26890
26891@endif ld
26892
83c9add4
CD
26893.PHONY: maybe-install-html-ld install-html-ld
26894maybe-install-html-ld:
26895@if ld
26896maybe-install-html-ld: install-html-ld
26897
26898install-html-ld: \
26899 configure-ld \
26900 html-ld
26901 @[ -f ./ld/Makefile ] || exit 0; \
26902 r=`${PWD_COMMAND}`; export r; \
26903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26904 $(HOST_EXPORTS) \
26905 for flag in $(EXTRA_HOST_FLAGS) ; do \
26906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26907 done; \
26908 echo "Doing install-html in ld" ; \
26909 (cd $(HOST_SUBDIR)/ld && \
26910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26912 "RANLIB=$${RANLIB}" \
bffcbe34 26913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
26914 install-html) \
26915 || exit 1
26916
26917@endif ld
26918
d5eec917
PB
26919.PHONY: maybe-installcheck-ld installcheck-ld
26920maybe-installcheck-ld:
26921@if ld
26922maybe-installcheck-ld: installcheck-ld
c580d516 26923
d5eec917
PB
26924installcheck-ld: \
26925 configure-ld
26926 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26927 r=`${PWD_COMMAND}`; export r; \
26928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26929 $(HOST_EXPORTS) \
d5eec917 26930 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26932 done; \
d5eec917 26933 echo "Doing installcheck in ld" ; \
7fc2ca22 26934 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26937 "RANLIB=$${RANLIB}" \
bffcbe34 26938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26939 installcheck) \
c580d516
PB
26940 || exit 1
26941
d5eec917 26942@endif ld
c580d516 26943
d5eec917
PB
26944.PHONY: maybe-mostlyclean-ld mostlyclean-ld
26945maybe-mostlyclean-ld:
26946@if ld
26947maybe-mostlyclean-ld: mostlyclean-ld
c580d516 26948
d5eec917
PB
26949mostlyclean-ld:
26950 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26951 r=`${PWD_COMMAND}`; export r; \
26952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26953 $(HOST_EXPORTS) \
d5eec917 26954 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26956 done; \
d5eec917 26957 echo "Doing mostlyclean in ld" ; \
7fc2ca22 26958 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26961 "RANLIB=$${RANLIB}" \
bffcbe34 26962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26963 mostlyclean) \
c580d516
PB
26964 || exit 1
26965
d5eec917 26966@endif ld
c580d516 26967
d5eec917
PB
26968.PHONY: maybe-clean-ld clean-ld
26969maybe-clean-ld:
26970@if ld
26971maybe-clean-ld: clean-ld
c580d516 26972
d5eec917
PB
26973clean-ld:
26974 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26975 r=`${PWD_COMMAND}`; export r; \
26976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 26977 $(HOST_EXPORTS) \
d5eec917 26978 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
26979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26980 done; \
d5eec917 26981 echo "Doing clean in ld" ; \
7fc2ca22 26982 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
26983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26985 "RANLIB=$${RANLIB}" \
bffcbe34 26986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 26987 clean) \
c580d516
PB
26988 || exit 1
26989
d5eec917 26990@endif ld
c580d516 26991
d5eec917
PB
26992.PHONY: maybe-distclean-ld distclean-ld
26993maybe-distclean-ld:
26994@if ld
26995maybe-distclean-ld: distclean-ld
c580d516 26996
d5eec917
PB
26997distclean-ld:
26998 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
26999 r=`${PWD_COMMAND}`; export r; \
27000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27001 $(HOST_EXPORTS) \
d5eec917 27002 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
27003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27004 done; \
d5eec917 27005 echo "Doing distclean in ld" ; \
7fc2ca22 27006 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
27007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27009 "RANLIB=$${RANLIB}" \
bffcbe34 27010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27011 distclean) \
c580d516
PB
27012 || exit 1
27013
d5eec917 27014@endif ld
c580d516 27015
d5eec917
PB
27016.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
27017maybe-maintainer-clean-ld:
27018@if ld
27019maybe-maintainer-clean-ld: maintainer-clean-ld
c580d516 27020
d5eec917
PB
27021maintainer-clean-ld:
27022 @[ -f ./ld/Makefile ] || exit 0; \
c580d516
PB
27023 r=`${PWD_COMMAND}`; export r; \
27024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27025 $(HOST_EXPORTS) \
d5eec917 27026 for flag in $(EXTRA_HOST_FLAGS) ; do \
c580d516
PB
27027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27028 done; \
d5eec917 27029 echo "Doing maintainer-clean in ld" ; \
7fc2ca22 27030 (cd $(HOST_SUBDIR)/ld && \
c580d516
PB
27031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27033 "RANLIB=$${RANLIB}" \
bffcbe34 27034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27035 maintainer-clean) \
c580d516
PB
27036 || exit 1
27037
d5eec917 27038@endif ld
c580d516
PB
27039
27040
f0fdfd34 27041
d5eec917
PB
27042.PHONY: configure-libcpp maybe-configure-libcpp
27043maybe-configure-libcpp:
e1e5148c
CD
27044@if gcc-bootstrap
27045configure-libcpp: stage_current
27046@endif gcc-bootstrap
d5eec917
PB
27047@if libcpp
27048maybe-configure-libcpp: configure-libcpp
ec92c4d6 27049configure-libcpp:
ec92c4d6
PB
27050 @r=`${PWD_COMMAND}`; export r; \
27051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
27052 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
27053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
5074489a 27054 $(HOST_EXPORTS) \
f0fdfd34
PB
27055 echo Configuring in $(HOST_SUBDIR)/libcpp; \
27056 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
8ec98d6c 27057 case $(srcdir) in \
7fc2ca22
PB
27058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27059 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 27061 esac; \
7fc2ca22
PB
27062 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27063 libsrcdir="$$s/libcpp"; \
8ec98d6c 27064 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27065 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27066 --target=${target_alias} $${srcdiroption} \
8ec98d6c 27067 || exit 1
d5eec917 27068@endif libcpp
8ec98d6c 27069
f0fdfd34
PB
27070
27071
a8a96878
PB
27072.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
27073maybe-configure-stage1-libcpp:
27074@if libcpp-bootstrap
27075maybe-configure-stage1-libcpp: configure-stage1-libcpp
15b527ca 27076configure-stage1-libcpp:
ec92c4d6 27077 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 27078 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27079 @r=`${PWD_COMMAND}`; export r; \
27080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27081 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 27082 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
c91ae28f 27083 $(HOST_EXPORTS) \
2ba09444 27084 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
27085 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27086 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 27087 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27088 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27089 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27090 case $(srcdir) in \
27091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27092 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27094 esac; \
27095 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27096 libsrcdir="$$s/libcpp"; \
27097 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27098 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27099 --target=${target_alias} $${srcdiroption} \
c91ae28f 27100 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
27101@endif libcpp-bootstrap
27102
27103.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
27104maybe-configure-stage2-libcpp:
27105@if libcpp-bootstrap
27106maybe-configure-stage2-libcpp: configure-stage2-libcpp
15b527ca 27107configure-stage2-libcpp:
ec92c4d6 27108 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 27109 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27110 @r=`${PWD_COMMAND}`; export r; \
27111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27112 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 27113 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 27114 $(HOST_EXPORTS) \
c91ae28f 27115 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 27116 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
27117 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27118 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 27119 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27120 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27121 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27122 case $(srcdir) in \
27123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27124 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27126 esac; \
27127 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27128 libsrcdir="$$s/libcpp"; \
27129 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27130 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27131 --target=${target_alias} $${srcdiroption} \
380e48e5 27132 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27133 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
27134@endif libcpp-bootstrap
27135
a8a96878
PB
27136.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
27137maybe-configure-stage3-libcpp:
27138@if libcpp-bootstrap
27139maybe-configure-stage3-libcpp: configure-stage3-libcpp
15b527ca 27140configure-stage3-libcpp:
ec92c4d6 27141 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 27142 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27143 @r=`${PWD_COMMAND}`; export r; \
27144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27145 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 27146 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 27147 $(HOST_EXPORTS) \
c91ae28f 27148 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 27149 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
27150 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27151 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 27152 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27154 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27155 case $(srcdir) in \
27156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27157 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27159 esac; \
27160 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27161 libsrcdir="$$s/libcpp"; \
27162 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27163 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27164 --target=${target_alias} $${srcdiroption} \
380e48e5 27165 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27166 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
27167@endif libcpp-bootstrap
27168
a8a96878
PB
27169.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
27170maybe-configure-stage4-libcpp:
27171@if libcpp-bootstrap
27172maybe-configure-stage4-libcpp: configure-stage4-libcpp
15b527ca 27173configure-stage4-libcpp:
ec92c4d6 27174 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 27175 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27176 @r=`${PWD_COMMAND}`; export r; \
27177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27178 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 27179 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 27180 $(HOST_EXPORTS) \
c91ae28f 27181 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 27182 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
27183 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27184 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 27185 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27186 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27187 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27188 case $(srcdir) in \
27189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27190 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27192 esac; \
27193 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27194 libsrcdir="$$s/libcpp"; \
27195 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27197 --target=${target_alias} $${srcdiroption} \
380e48e5 27198 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27199 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
27200@endif libcpp-bootstrap
27201
27202.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
27203maybe-configure-stageprofile-libcpp:
27204@if libcpp-bootstrap
27205maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
15b527ca 27206configure-stageprofile-libcpp:
ec92c4d6 27207 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 27208 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27209 @r=`${PWD_COMMAND}`; export r; \
27210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27211 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 27212 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 27213 $(HOST_EXPORTS) \
c91ae28f
AO
27214 $(POSTSTAGE1_HOST_EXPORTS) \
27215 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
27216 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27217 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 27218 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27220 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27221 case $(srcdir) in \
27222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27223 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27225 esac; \
27226 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27227 libsrcdir="$$s/libcpp"; \
27228 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27230 --target=${target_alias} $${srcdiroption} \
380e48e5 27231 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27232 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
27233@endif libcpp-bootstrap
27234
27235.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
27236maybe-configure-stagefeedback-libcpp:
27237@if libcpp-bootstrap
27238maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
15b527ca 27239configure-stagefeedback-libcpp:
ec92c4d6 27240 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 27241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
ec92c4d6
PB
27242 @r=`${PWD_COMMAND}`; export r; \
27243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27244 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 27245 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
a8a96878 27246 $(HOST_EXPORTS) \
c91ae28f
AO
27247 $(POSTSTAGE1_HOST_EXPORTS) \
27248 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
27249 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27250 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 27251 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
15b527ca 27252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
a8a96878
PB
27253 cd $(HOST_SUBDIR)/libcpp || exit 1; \
27254 case $(srcdir) in \
27255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27256 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
27257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27258 esac; \
27259 srcdiroption="--srcdir=$${topdir}/libcpp"; \
27260 libsrcdir="$$s/libcpp"; \
27261 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27263 --target=${target_alias} $${srcdiroption} \
380e48e5 27264 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27265 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
27266@endif libcpp-bootstrap
27267
27268
27269
27270
27271
d5eec917
PB
27272.PHONY: all-libcpp maybe-all-libcpp
27273maybe-all-libcpp:
e1e5148c
CD
27274@if gcc-bootstrap
27275all-libcpp: stage_current
27276@endif gcc-bootstrap
d5eec917 27277@if libcpp
5e6b1f07 27278TARGET-libcpp=all
d5eec917
PB
27279maybe-all-libcpp: all-libcpp
27280all-libcpp: configure-libcpp
ec92c4d6 27281 @r=`${PWD_COMMAND}`; export r; \
8ec98d6c 27282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 27283 $(HOST_EXPORTS) \
7fc2ca22 27284 (cd $(HOST_SUBDIR)/libcpp && \
6532abb6
PB
27285 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
27286 $(TARGET-libcpp))
d5eec917 27287@endif libcpp
8ec98d6c 27288
f0fdfd34 27289
a8a96878
PB
27290
27291.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
27292.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
27293maybe-all-stage1-libcpp:
27294maybe-clean-stage1-libcpp:
27295@if libcpp-bootstrap
27296maybe-all-stage1-libcpp: all-stage1-libcpp
27297all-stage1: all-stage1-libcpp
168b158c 27298TARGET-stage1-libcpp = $(TARGET-libcpp)
a8a96878 27299all-stage1-libcpp: configure-stage1-libcpp
ec92c4d6 27300 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
27301 @r=`${PWD_COMMAND}`; export r; \
27302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27303 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 27304 $(HOST_EXPORTS) \
a8a96878 27305 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27307 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 27308 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
27309 LIBCFLAGS="$(LIBCFLAGS)" \
27310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27313 $(EXTRA_HOST_FLAGS) \
27314 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 27315 $(TARGET-stage1-libcpp)
a8a96878
PB
27316
27317maybe-clean-stage1-libcpp: clean-stage1-libcpp
27318clean-stage1: clean-stage1-libcpp
27319clean-stage1-libcpp:
a6a4e782
DD
27320 @if [ $(current_stage) = stage1 ]; then \
27321 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27322 else \
27323 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
27324 $(MAKE) stage1-start; \
27325 fi; \
a8a96878 27326 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27327 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 27328 clean
a8a96878
PB
27329@endif libcpp-bootstrap
27330
27331
27332.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
27333.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
27334maybe-all-stage2-libcpp:
27335maybe-clean-stage2-libcpp:
27336@if libcpp-bootstrap
27337maybe-all-stage2-libcpp: all-stage2-libcpp
27338all-stage2: all-stage2-libcpp
168b158c 27339TARGET-stage2-libcpp = $(TARGET-libcpp)
a8a96878 27340all-stage2-libcpp: configure-stage2-libcpp
ec92c4d6 27341 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
27342 @r=`${PWD_COMMAND}`; export r; \
27343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27344 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 27345 $(HOST_EXPORTS) \
5074489a 27346 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 27347 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27349 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 27350 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
27351 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27355 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27356 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 27357 $(TARGET-stage2-libcpp)
a8a96878
PB
27358
27359maybe-clean-stage2-libcpp: clean-stage2-libcpp
27360clean-stage2: clean-stage2-libcpp
27361clean-stage2-libcpp:
a6a4e782
DD
27362 @if [ $(current_stage) = stage2 ]; then \
27363 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27364 else \
27365 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
27366 $(MAKE) stage2-start; \
27367 fi; \
a8a96878 27368 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27369 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 27370 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27371 clean
a8a96878
PB
27372@endif libcpp-bootstrap
27373
27374
27375.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
27376.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
27377maybe-all-stage3-libcpp:
27378maybe-clean-stage3-libcpp:
27379@if libcpp-bootstrap
27380maybe-all-stage3-libcpp: all-stage3-libcpp
27381all-stage3: all-stage3-libcpp
168b158c 27382TARGET-stage3-libcpp = $(TARGET-libcpp)
a8a96878 27383all-stage3-libcpp: configure-stage3-libcpp
ec92c4d6 27384 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
27385 @r=`${PWD_COMMAND}`; export r; \
27386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27387 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 27388 $(HOST_EXPORTS) \
5074489a 27389 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 27390 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27391 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27392 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 27393 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
27394 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27395 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27396 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27397 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27398 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27399 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 27400 $(TARGET-stage3-libcpp)
a8a96878
PB
27401
27402maybe-clean-stage3-libcpp: clean-stage3-libcpp
27403clean-stage3: clean-stage3-libcpp
27404clean-stage3-libcpp:
a6a4e782
DD
27405 @if [ $(current_stage) = stage3 ]; then \
27406 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27407 else \
27408 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
27409 $(MAKE) stage3-start; \
27410 fi; \
a8a96878 27411 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27412 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 27413 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27414 clean
a8a96878
PB
27415@endif libcpp-bootstrap
27416
27417
27418.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
27419.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
27420maybe-all-stage4-libcpp:
27421maybe-clean-stage4-libcpp:
27422@if libcpp-bootstrap
27423maybe-all-stage4-libcpp: all-stage4-libcpp
27424all-stage4: all-stage4-libcpp
168b158c 27425TARGET-stage4-libcpp = $(TARGET-libcpp)
a8a96878 27426all-stage4-libcpp: configure-stage4-libcpp
ec92c4d6 27427 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
27428 @r=`${PWD_COMMAND}`; export r; \
27429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27430 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 27431 $(HOST_EXPORTS) \
5074489a 27432 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 27433 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27435 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 27436 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 27437 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
27438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27441 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27442 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 27443 $(TARGET-stage4-libcpp)
a8a96878
PB
27444
27445maybe-clean-stage4-libcpp: clean-stage4-libcpp
27446clean-stage4: clean-stage4-libcpp
27447clean-stage4-libcpp:
a6a4e782
DD
27448 @if [ $(current_stage) = stage4 ]; then \
27449 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27450 else \
27451 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
27452 $(MAKE) stage4-start; \
27453 fi; \
a8a96878 27454 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27455 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 27456 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27457 clean
a8a96878
PB
27458@endif libcpp-bootstrap
27459
27460
27461.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
27462.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
27463maybe-all-stageprofile-libcpp:
27464maybe-clean-stageprofile-libcpp:
27465@if libcpp-bootstrap
27466maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
27467all-stageprofile: all-stageprofile-libcpp
168b158c 27468TARGET-stageprofile-libcpp = $(TARGET-libcpp)
a8a96878 27469all-stageprofile-libcpp: configure-stageprofile-libcpp
ec92c4d6 27470 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
27471 @r=`${PWD_COMMAND}`; export r; \
27472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27473 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 27474 $(HOST_EXPORTS) \
5074489a 27475 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 27476 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27477 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27478 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 27479 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
27480 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27481 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27482 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27483 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27484 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27485 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 27486 $(TARGET-stageprofile-libcpp)
a8a96878
PB
27487
27488maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
27489clean-stageprofile: clean-stageprofile-libcpp
27490clean-stageprofile-libcpp:
a6a4e782
DD
27491 @if [ $(current_stage) = stageprofile ]; then \
27492 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27493 else \
27494 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
27495 $(MAKE) stageprofile-start; \
27496 fi; \
a8a96878 27497 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27498 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 27499 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27500 clean
a8a96878
PB
27501@endif libcpp-bootstrap
27502
27503
27504.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
27505.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
27506maybe-all-stagefeedback-libcpp:
27507maybe-clean-stagefeedback-libcpp:
27508@if libcpp-bootstrap
27509maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
27510all-stagefeedback: all-stagefeedback-libcpp
168b158c 27511TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
a8a96878 27512all-stagefeedback-libcpp: configure-stagefeedback-libcpp
ec92c4d6 27513 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
27514 @r=`${PWD_COMMAND}`; export r; \
27515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27516 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 27517 $(HOST_EXPORTS) \
5074489a 27518 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 27519 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27520 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 27521 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 27522 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
27523 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27524 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27525 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27526 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27527 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27528 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 27529 $(TARGET-stagefeedback-libcpp)
a8a96878
PB
27530
27531maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
27532clean-stagefeedback: clean-stagefeedback-libcpp
27533clean-stagefeedback-libcpp:
a6a4e782
DD
27534 @if [ $(current_stage) = stagefeedback ]; then \
27535 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
27536 else \
27537 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
27538 $(MAKE) stagefeedback-start; \
27539 fi; \
a8a96878 27540 cd $(HOST_SUBDIR)/libcpp && \
6532abb6 27541 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 27542 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 27543 clean
a8a96878
PB
27544@endif libcpp-bootstrap
27545
27546
27547
27548
27549
d5eec917
PB
27550.PHONY: check-libcpp maybe-check-libcpp
27551maybe-check-libcpp:
27552@if libcpp
27553maybe-check-libcpp: check-libcpp
8ec98d6c 27554
d5eec917 27555check-libcpp:
15b527ca 27556 @: $(MAKE); $(unstage)
8ec98d6c
NN
27557 @r=`${PWD_COMMAND}`; export r; \
27558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27559 $(HOST_EXPORTS) \
7fc2ca22
PB
27560 (cd $(HOST_SUBDIR)/libcpp && \
27561 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 27562
d5eec917 27563@endif libcpp
8ec98d6c 27564
d5eec917
PB
27565.PHONY: install-libcpp maybe-install-libcpp
27566maybe-install-libcpp:
27567@if libcpp
27568maybe-install-libcpp: install-libcpp
27569
27570install-libcpp: installdirs
15b527ca 27571 @: $(MAKE); $(unstage)
8ec98d6c
NN
27572 @r=`${PWD_COMMAND}`; export r; \
27573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27574 $(HOST_EXPORTS) \
7fc2ca22 27575 (cd $(HOST_SUBDIR)/libcpp && \
93c60b6d 27576 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 27577
d5eec917 27578@endif libcpp
8ec98d6c 27579
39bbbb69 27580# Other targets (info, dvi, pdf, etc.)
8ec98d6c 27581
d5eec917
PB
27582.PHONY: maybe-info-libcpp info-libcpp
27583maybe-info-libcpp:
27584@if libcpp
27585maybe-info-libcpp: info-libcpp
8ec98d6c 27586
d5eec917
PB
27587info-libcpp: \
27588 configure-libcpp
27589 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27590 r=`${PWD_COMMAND}`; export r; \
27591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27592 $(HOST_EXPORTS) \
d5eec917 27593 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27595 done; \
d5eec917 27596 echo "Doing info in libcpp" ; \
7fc2ca22 27597 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27600 "RANLIB=$${RANLIB}" \
bffcbe34 27601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27602 info) \
657b58f4
NN
27603 || exit 1
27604
d5eec917 27605@endif libcpp
657b58f4 27606
d5eec917
PB
27607.PHONY: maybe-dvi-libcpp dvi-libcpp
27608maybe-dvi-libcpp:
27609@if libcpp
27610maybe-dvi-libcpp: dvi-libcpp
657b58f4 27611
d5eec917
PB
27612dvi-libcpp: \
27613 configure-libcpp
27614 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27615 r=`${PWD_COMMAND}`; export r; \
27616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27617 $(HOST_EXPORTS) \
d5eec917 27618 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27620 done; \
d5eec917 27621 echo "Doing dvi in libcpp" ; \
7fc2ca22 27622 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27625 "RANLIB=$${RANLIB}" \
bffcbe34 27626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27627 dvi) \
657b58f4
NN
27628 || exit 1
27629
d5eec917 27630@endif libcpp
657b58f4 27631
39bbbb69
DD
27632.PHONY: maybe-pdf-libcpp pdf-libcpp
27633maybe-pdf-libcpp:
27634@if libcpp
27635maybe-pdf-libcpp: pdf-libcpp
27636
27637pdf-libcpp: \
27638 configure-libcpp
27639 @[ -f ./libcpp/Makefile ] || exit 0; \
27640 r=`${PWD_COMMAND}`; export r; \
27641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27642 $(HOST_EXPORTS) \
27643 for flag in $(EXTRA_HOST_FLAGS) ; do \
27644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27645 done; \
27646 echo "Doing pdf in libcpp" ; \
27647 (cd $(HOST_SUBDIR)/libcpp && \
27648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27650 "RANLIB=$${RANLIB}" \
bffcbe34 27651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
27652 pdf) \
27653 || exit 1
27654
27655@endif libcpp
27656
b6fb961f
MS
27657.PHONY: maybe-html-libcpp html-libcpp
27658maybe-html-libcpp:
27659@if libcpp
27660maybe-html-libcpp: html-libcpp
27661
27662html-libcpp: \
27663 configure-libcpp
27664 @[ -f ./libcpp/Makefile ] || exit 0; \
27665 r=`${PWD_COMMAND}`; export r; \
27666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
27667 $(HOST_EXPORTS) \
27668 for flag in $(EXTRA_HOST_FLAGS) ; do \
27669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27670 done; \
27671 echo "Doing html in libcpp" ; \
7fc2ca22 27672 (cd $(HOST_SUBDIR)/libcpp && \
b6fb961f
MS
27673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27675 "RANLIB=$${RANLIB}" \
bffcbe34 27676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
27677 html) \
27678 || exit 1
27679
27680@endif libcpp
27681
d5eec917
PB
27682.PHONY: maybe-TAGS-libcpp TAGS-libcpp
27683maybe-TAGS-libcpp:
27684@if libcpp
27685maybe-TAGS-libcpp: TAGS-libcpp
657b58f4 27686
d5eec917
PB
27687TAGS-libcpp: \
27688 configure-libcpp
27689 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27690 r=`${PWD_COMMAND}`; export r; \
27691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27692 $(HOST_EXPORTS) \
d5eec917 27693 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27695 done; \
d5eec917 27696 echo "Doing TAGS in libcpp" ; \
7fc2ca22 27697 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27700 "RANLIB=$${RANLIB}" \
bffcbe34 27701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27702 TAGS) \
657b58f4
NN
27703 || exit 1
27704
d5eec917 27705@endif libcpp
657b58f4 27706
d5eec917
PB
27707.PHONY: maybe-install-info-libcpp install-info-libcpp
27708maybe-install-info-libcpp:
27709@if libcpp
27710maybe-install-info-libcpp: install-info-libcpp
657b58f4 27711
d5eec917
PB
27712install-info-libcpp: \
27713 configure-libcpp \
27714 info-libcpp
27715 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27716 r=`${PWD_COMMAND}`; export r; \
27717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27718 $(HOST_EXPORTS) \
d5eec917 27719 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27721 done; \
d5eec917 27722 echo "Doing install-info in libcpp" ; \
7fc2ca22 27723 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27726 "RANLIB=$${RANLIB}" \
bffcbe34 27727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27728 install-info) \
657b58f4
NN
27729 || exit 1
27730
d5eec917 27731@endif libcpp
657b58f4 27732
d4954b6d
DD
27733.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
27734maybe-install-pdf-libcpp:
27735@if libcpp
27736maybe-install-pdf-libcpp: install-pdf-libcpp
27737
27738install-pdf-libcpp: \
27739 configure-libcpp \
27740 pdf-libcpp
27741 @[ -f ./libcpp/Makefile ] || exit 0; \
27742 r=`${PWD_COMMAND}`; export r; \
27743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27744 $(HOST_EXPORTS) \
27745 for flag in $(EXTRA_HOST_FLAGS) ; do \
27746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27747 done; \
27748 echo "Doing install-pdf in libcpp" ; \
27749 (cd $(HOST_SUBDIR)/libcpp && \
27750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27752 "RANLIB=$${RANLIB}" \
bffcbe34 27753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
27754 install-pdf) \
27755 || exit 1
27756
27757@endif libcpp
27758
83c9add4
CD
27759.PHONY: maybe-install-html-libcpp install-html-libcpp
27760maybe-install-html-libcpp:
27761@if libcpp
27762maybe-install-html-libcpp: install-html-libcpp
27763
27764install-html-libcpp: \
27765 configure-libcpp \
27766 html-libcpp
27767 @[ -f ./libcpp/Makefile ] || exit 0; \
27768 r=`${PWD_COMMAND}`; export r; \
27769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27770 $(HOST_EXPORTS) \
27771 for flag in $(EXTRA_HOST_FLAGS) ; do \
27772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27773 done; \
27774 echo "Doing install-html in libcpp" ; \
27775 (cd $(HOST_SUBDIR)/libcpp && \
27776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27778 "RANLIB=$${RANLIB}" \
bffcbe34 27779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
27780 install-html) \
27781 || exit 1
27782
27783@endif libcpp
27784
d5eec917
PB
27785.PHONY: maybe-installcheck-libcpp installcheck-libcpp
27786maybe-installcheck-libcpp:
27787@if libcpp
27788maybe-installcheck-libcpp: installcheck-libcpp
657b58f4 27789
d5eec917
PB
27790installcheck-libcpp: \
27791 configure-libcpp
27792 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27793 r=`${PWD_COMMAND}`; export r; \
27794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27795 $(HOST_EXPORTS) \
d5eec917 27796 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27798 done; \
d5eec917 27799 echo "Doing installcheck in libcpp" ; \
7fc2ca22 27800 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27803 "RANLIB=$${RANLIB}" \
bffcbe34 27804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27805 installcheck) \
657b58f4
NN
27806 || exit 1
27807
d5eec917 27808@endif libcpp
657b58f4 27809
d5eec917
PB
27810.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
27811maybe-mostlyclean-libcpp:
27812@if libcpp
27813maybe-mostlyclean-libcpp: mostlyclean-libcpp
657b58f4 27814
d5eec917
PB
27815mostlyclean-libcpp:
27816 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27817 r=`${PWD_COMMAND}`; export r; \
27818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27819 $(HOST_EXPORTS) \
d5eec917 27820 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27822 done; \
d5eec917 27823 echo "Doing mostlyclean in libcpp" ; \
7fc2ca22 27824 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27827 "RANLIB=$${RANLIB}" \
bffcbe34 27828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27829 mostlyclean) \
657b58f4
NN
27830 || exit 1
27831
d5eec917 27832@endif libcpp
657b58f4 27833
d5eec917
PB
27834.PHONY: maybe-clean-libcpp clean-libcpp
27835maybe-clean-libcpp:
27836@if libcpp
27837maybe-clean-libcpp: clean-libcpp
657b58f4 27838
d5eec917
PB
27839clean-libcpp:
27840 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27841 r=`${PWD_COMMAND}`; export r; \
27842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27843 $(HOST_EXPORTS) \
d5eec917 27844 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27846 done; \
d5eec917 27847 echo "Doing clean in libcpp" ; \
7fc2ca22 27848 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27851 "RANLIB=$${RANLIB}" \
bffcbe34 27852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27853 clean) \
657b58f4
NN
27854 || exit 1
27855
d5eec917 27856@endif libcpp
657b58f4 27857
d5eec917
PB
27858.PHONY: maybe-distclean-libcpp distclean-libcpp
27859maybe-distclean-libcpp:
27860@if libcpp
27861maybe-distclean-libcpp: distclean-libcpp
657b58f4 27862
d5eec917
PB
27863distclean-libcpp:
27864 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27865 r=`${PWD_COMMAND}`; export r; \
27866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27867 $(HOST_EXPORTS) \
d5eec917 27868 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27870 done; \
d5eec917 27871 echo "Doing distclean in libcpp" ; \
7fc2ca22 27872 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27875 "RANLIB=$${RANLIB}" \
bffcbe34 27876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27877 distclean) \
657b58f4
NN
27878 || exit 1
27879
d5eec917 27880@endif libcpp
657b58f4 27881
d5eec917
PB
27882.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
27883maybe-maintainer-clean-libcpp:
27884@if libcpp
27885maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
657b58f4 27886
d5eec917
PB
27887maintainer-clean-libcpp:
27888 @[ -f ./libcpp/Makefile ] || exit 0; \
5230d454
L
27889 r=`${PWD_COMMAND}`; export r; \
27890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 27891 $(HOST_EXPORTS) \
d5eec917 27892 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
27893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27894 done; \
d5eec917 27895 echo "Doing maintainer-clean in libcpp" ; \
7fc2ca22 27896 (cd $(HOST_SUBDIR)/libcpp && \
657b58f4
NN
27897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27899 "RANLIB=$${RANLIB}" \
bffcbe34 27900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 27901 maintainer-clean) \
657b58f4
NN
27902 || exit 1
27903
d5eec917 27904@endif libcpp
657b58f4 27905
657b58f4 27906
f0fdfd34 27907
a7dc05b5
PB
27908.PHONY: configure-libdecnumber maybe-configure-libdecnumber
27909maybe-configure-libdecnumber:
e1e5148c
CD
27910@if gcc-bootstrap
27911configure-libdecnumber: stage_current
27912@endif gcc-bootstrap
a7dc05b5
PB
27913@if libdecnumber
27914maybe-configure-libdecnumber: configure-libdecnumber
ec92c4d6 27915configure-libdecnumber:
ec92c4d6
PB
27916 @r=`${PWD_COMMAND}`; export r; \
27917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a7dc05b5
PB
27918 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
27919 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
5074489a 27920 $(HOST_EXPORTS) \
a7dc05b5
PB
27921 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
27922 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
27923 case $(srcdir) in \
27924 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27925 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
27926 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27927 esac; \
27928 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
27929 libsrcdir="$$s/libdecnumber"; \
27930 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27931 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27932 --target=${target_alias} $${srcdiroption} \
a7dc05b5
PB
27933 || exit 1
27934@endif libdecnumber
27935
27936
27937
27938.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
27939maybe-configure-stage1-libdecnumber:
27940@if libdecnumber-bootstrap
27941maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
15b527ca 27942configure-stage1-libdecnumber:
ec92c4d6 27943 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 27944 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
27945 @r=`${PWD_COMMAND}`; export r; \
27946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27947 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 27948 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
c91ae28f 27949 $(HOST_EXPORTS) \
2ba09444 27950 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
27951 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27952 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a7dc05b5 27953 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 27954 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
27955 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
27956 case $(srcdir) in \
27957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27958 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
27959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27960 esac; \
27961 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
27962 libsrcdir="$$s/libdecnumber"; \
27963 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27964 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27965 --target=${target_alias} $${srcdiroption} \
c91ae28f 27966 $(STAGE1_CONFIGURE_FLAGS)
a7dc05b5
PB
27967@endif libdecnumber-bootstrap
27968
27969.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
27970maybe-configure-stage2-libdecnumber:
27971@if libdecnumber-bootstrap
27972maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
15b527ca 27973configure-stage2-libdecnumber:
ec92c4d6 27974 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 27975 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
27976 @r=`${PWD_COMMAND}`; export r; \
27977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 27978 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 27979 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 27980 $(HOST_EXPORTS) \
c91ae28f 27981 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 27982 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
27983 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27984 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a7dc05b5 27985 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 27986 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
27987 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
27988 case $(srcdir) in \
27989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27990 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
27991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27992 esac; \
27993 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
27994 libsrcdir="$$s/libdecnumber"; \
27995 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
27996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27997 --target=${target_alias} $${srcdiroption} \
380e48e5 27998 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 27999 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
28000@endif libdecnumber-bootstrap
28001
a7dc05b5
PB
28002.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
28003maybe-configure-stage3-libdecnumber:
28004@if libdecnumber-bootstrap
28005maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
15b527ca 28006configure-stage3-libdecnumber:
ec92c4d6 28007 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 28008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
28009 @r=`${PWD_COMMAND}`; export r; \
28010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28011 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 28012 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 28013 $(HOST_EXPORTS) \
c91ae28f 28014 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28015 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
28016 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
28017 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a7dc05b5 28018 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 28019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
28020 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
28021 case $(srcdir) in \
28022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28023 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
28024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28025 esac; \
28026 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
28027 libsrcdir="$$s/libdecnumber"; \
28028 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28029 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28030 --target=${target_alias} $${srcdiroption} \
380e48e5 28031 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 28032 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
28033@endif libdecnumber-bootstrap
28034
a7dc05b5
PB
28035.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
28036maybe-configure-stage4-libdecnumber:
28037@if libdecnumber-bootstrap
28038maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
15b527ca 28039configure-stage4-libdecnumber:
ec92c4d6 28040 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 28041 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
28042 @r=`${PWD_COMMAND}`; export r; \
28043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28044 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 28045 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 28046 $(HOST_EXPORTS) \
c91ae28f 28047 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 28048 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
28049 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
28050 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a7dc05b5 28051 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 28052 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
28053 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
28054 case $(srcdir) in \
28055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28056 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
28057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28058 esac; \
28059 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
28060 libsrcdir="$$s/libdecnumber"; \
28061 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28062 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28063 --target=${target_alias} $${srcdiroption} \
380e48e5 28064 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 28065 $(STAGE4_CONFIGURE_FLAGS)
a7dc05b5
PB
28066@endif libdecnumber-bootstrap
28067
28068.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
28069maybe-configure-stageprofile-libdecnumber:
28070@if libdecnumber-bootstrap
28071maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
15b527ca 28072configure-stageprofile-libdecnumber:
ec92c4d6 28073 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 28074 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
28075 @r=`${PWD_COMMAND}`; export r; \
28076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28077 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 28078 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 28079 $(HOST_EXPORTS) \
c91ae28f
AO
28080 $(POSTSTAGE1_HOST_EXPORTS) \
28081 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
28082 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
28083 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a7dc05b5 28084 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 28085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
28086 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
28087 case $(srcdir) in \
28088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28089 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
28090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28091 esac; \
28092 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
28093 libsrcdir="$$s/libdecnumber"; \
28094 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28096 --target=${target_alias} $${srcdiroption} \
380e48e5 28097 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 28098 $(STAGEprofile_CONFIGURE_FLAGS)
a7dc05b5
PB
28099@endif libdecnumber-bootstrap
28100
28101.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
28102maybe-configure-stagefeedback-libdecnumber:
28103@if libdecnumber-bootstrap
28104maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
15b527ca 28105configure-stagefeedback-libdecnumber:
ec92c4d6 28106 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 28107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
ec92c4d6
PB
28108 @r=`${PWD_COMMAND}`; export r; \
28109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28110 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 28111 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a7dc05b5 28112 $(HOST_EXPORTS) \
c91ae28f
AO
28113 $(POSTSTAGE1_HOST_EXPORTS) \
28114 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
28115 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
28116 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a7dc05b5 28117 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
15b527ca 28118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a7dc05b5
PB
28119 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
28120 case $(srcdir) in \
28121 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28122 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
28123 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28124 esac; \
28125 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
28126 libsrcdir="$$s/libdecnumber"; \
28127 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28128 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28129 --target=${target_alias} $${srcdiroption} \
380e48e5 28130 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 28131 $(STAGEfeedback_CONFIGURE_FLAGS)
a7dc05b5
PB
28132@endif libdecnumber-bootstrap
28133
28134
28135
28136
28137
28138.PHONY: all-libdecnumber maybe-all-libdecnumber
28139maybe-all-libdecnumber:
e1e5148c
CD
28140@if gcc-bootstrap
28141all-libdecnumber: stage_current
28142@endif gcc-bootstrap
a7dc05b5
PB
28143@if libdecnumber
28144TARGET-libdecnumber=all
28145maybe-all-libdecnumber: all-libdecnumber
28146all-libdecnumber: configure-libdecnumber
ec92c4d6 28147 @r=`${PWD_COMMAND}`; export r; \
a7dc05b5 28148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 28149 $(HOST_EXPORTS) \
a7dc05b5 28150 (cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6
PB
28151 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
28152 $(TARGET-libdecnumber))
a7dc05b5
PB
28153@endif libdecnumber
28154
28155
28156
28157.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
28158.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
28159maybe-all-stage1-libdecnumber:
28160maybe-clean-stage1-libdecnumber:
28161@if libdecnumber-bootstrap
28162maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
28163all-stage1: all-stage1-libdecnumber
28164TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
28165all-stage1-libdecnumber: configure-stage1-libdecnumber
ec92c4d6 28166 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a7dc05b5
PB
28167 @r=`${PWD_COMMAND}`; export r; \
28168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28169 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 28170 $(HOST_EXPORTS) \
a7dc05b5 28171 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28172 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28173 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 28174 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
28175 LIBCFLAGS="$(LIBCFLAGS)" \
28176 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28177 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28178 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28179 $(EXTRA_HOST_FLAGS) \
28180 TFLAGS="$(STAGE1_TFLAGS)" \
a7dc05b5
PB
28181 $(TARGET-stage1-libdecnumber)
28182
28183maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
28184clean-stage1: clean-stage1-libdecnumber
28185clean-stage1-libdecnumber:
a6a4e782
DD
28186 @if [ $(current_stage) = stage1 ]; then \
28187 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28188 else \
28189 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
28190 $(MAKE) stage1-start; \
28191 fi; \
a7dc05b5 28192 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28193 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 28194 clean
a7dc05b5
PB
28195@endif libdecnumber-bootstrap
28196
28197
28198.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
28199.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
28200maybe-all-stage2-libdecnumber:
28201maybe-clean-stage2-libdecnumber:
28202@if libdecnumber-bootstrap
28203maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
28204all-stage2: all-stage2-libdecnumber
28205TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
28206all-stage2-libdecnumber: configure-stage2-libdecnumber
ec92c4d6 28207 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a7dc05b5
PB
28208 @r=`${PWD_COMMAND}`; export r; \
28209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28210 TFLAGS="$(STAGE2_TFLAGS)"; \
a7dc05b5 28211 $(HOST_EXPORTS) \
5074489a 28212 $(POSTSTAGE1_HOST_EXPORTS) \
a7dc05b5 28213 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28214 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28215 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 28216 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
28217 LIBCFLAGS="$(STAGE2_CFLAGS)" \
28218 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28219 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28220 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28221 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28222 TFLAGS="$(STAGE2_TFLAGS)" \
a7dc05b5
PB
28223 $(TARGET-stage2-libdecnumber)
28224
28225maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
28226clean-stage2: clean-stage2-libdecnumber
28227clean-stage2-libdecnumber:
a6a4e782
DD
28228 @if [ $(current_stage) = stage2 ]; then \
28229 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28230 else \
28231 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
28232 $(MAKE) stage2-start; \
28233 fi; \
a7dc05b5 28234 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28235 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 28236 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28237 clean
a7dc05b5
PB
28238@endif libdecnumber-bootstrap
28239
28240
28241.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
28242.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
28243maybe-all-stage3-libdecnumber:
28244maybe-clean-stage3-libdecnumber:
28245@if libdecnumber-bootstrap
28246maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
28247all-stage3: all-stage3-libdecnumber
28248TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
28249all-stage3-libdecnumber: configure-stage3-libdecnumber
ec92c4d6 28250 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a7dc05b5
PB
28251 @r=`${PWD_COMMAND}`; export r; \
28252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28253 TFLAGS="$(STAGE3_TFLAGS)"; \
a7dc05b5 28254 $(HOST_EXPORTS) \
5074489a 28255 $(POSTSTAGE1_HOST_EXPORTS) \
a7dc05b5 28256 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28257 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28258 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 28259 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
28260 LIBCFLAGS="$(STAGE3_CFLAGS)" \
28261 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28262 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28263 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28264 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28265 TFLAGS="$(STAGE3_TFLAGS)" \
a7dc05b5
PB
28266 $(TARGET-stage3-libdecnumber)
28267
28268maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
28269clean-stage3: clean-stage3-libdecnumber
28270clean-stage3-libdecnumber:
a6a4e782
DD
28271 @if [ $(current_stage) = stage3 ]; then \
28272 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28273 else \
28274 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
28275 $(MAKE) stage3-start; \
28276 fi; \
a7dc05b5 28277 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28278 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 28279 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28280 clean
a7dc05b5
PB
28281@endif libdecnumber-bootstrap
28282
28283
28284.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
28285.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
28286maybe-all-stage4-libdecnumber:
28287maybe-clean-stage4-libdecnumber:
28288@if libdecnumber-bootstrap
28289maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
28290all-stage4: all-stage4-libdecnumber
28291TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
28292all-stage4-libdecnumber: configure-stage4-libdecnumber
ec92c4d6 28293 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a7dc05b5
PB
28294 @r=`${PWD_COMMAND}`; export r; \
28295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28296 TFLAGS="$(STAGE4_TFLAGS)"; \
a7dc05b5 28297 $(HOST_EXPORTS) \
5074489a 28298 $(POSTSTAGE1_HOST_EXPORTS) \
a7dc05b5 28299 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28300 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28301 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 28302 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 28303 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
28304 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28305 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28306 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28307 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28308 TFLAGS="$(STAGE4_TFLAGS)" \
a7dc05b5
PB
28309 $(TARGET-stage4-libdecnumber)
28310
28311maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
28312clean-stage4: clean-stage4-libdecnumber
28313clean-stage4-libdecnumber:
a6a4e782
DD
28314 @if [ $(current_stage) = stage4 ]; then \
28315 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28316 else \
28317 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
28318 $(MAKE) stage4-start; \
28319 fi; \
a7dc05b5 28320 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28321 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 28322 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28323 clean
a7dc05b5
PB
28324@endif libdecnumber-bootstrap
28325
28326
28327.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
28328.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
28329maybe-all-stageprofile-libdecnumber:
28330maybe-clean-stageprofile-libdecnumber:
28331@if libdecnumber-bootstrap
28332maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
28333all-stageprofile: all-stageprofile-libdecnumber
28334TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
28335all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
ec92c4d6 28336 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a7dc05b5
PB
28337 @r=`${PWD_COMMAND}`; export r; \
28338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28339 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a7dc05b5 28340 $(HOST_EXPORTS) \
5074489a 28341 $(POSTSTAGE1_HOST_EXPORTS) \
a7dc05b5 28342 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28343 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28344 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 28345 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
28346 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
28347 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28348 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28349 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28350 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28351 TFLAGS="$(STAGEprofile_TFLAGS)" \
a7dc05b5
PB
28352 $(TARGET-stageprofile-libdecnumber)
28353
28354maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
28355clean-stageprofile: clean-stageprofile-libdecnumber
28356clean-stageprofile-libdecnumber:
a6a4e782
DD
28357 @if [ $(current_stage) = stageprofile ]; then \
28358 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28359 else \
28360 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
28361 $(MAKE) stageprofile-start; \
28362 fi; \
a7dc05b5 28363 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28364 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 28365 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28366 clean
a7dc05b5
PB
28367@endif libdecnumber-bootstrap
28368
28369
28370.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
28371.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
28372maybe-all-stagefeedback-libdecnumber:
28373maybe-clean-stagefeedback-libdecnumber:
28374@if libdecnumber-bootstrap
28375maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
28376all-stagefeedback: all-stagefeedback-libdecnumber
28377TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
28378all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
ec92c4d6 28379 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a7dc05b5
PB
28380 @r=`${PWD_COMMAND}`; export r; \
28381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 28382 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a7dc05b5 28383 $(HOST_EXPORTS) \
5074489a 28384 $(POSTSTAGE1_HOST_EXPORTS) \
a7dc05b5 28385 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28386 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 28387 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 28388 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
28389 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
28390 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28391 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28392 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28393 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28394 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a7dc05b5
PB
28395 $(TARGET-stagefeedback-libdecnumber)
28396
28397maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
28398clean-stagefeedback: clean-stagefeedback-libdecnumber
28399clean-stagefeedback-libdecnumber:
a6a4e782
DD
28400 @if [ $(current_stage) = stagefeedback ]; then \
28401 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
28402 else \
28403 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
28404 $(MAKE) stagefeedback-start; \
28405 fi; \
a7dc05b5 28406 cd $(HOST_SUBDIR)/libdecnumber && \
6532abb6 28407 $(MAKE) $(EXTRA_HOST_FLAGS) \
a7dc05b5 28408 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 28409 clean
a7dc05b5
PB
28410@endif libdecnumber-bootstrap
28411
28412
28413
28414
28415
28416.PHONY: check-libdecnumber maybe-check-libdecnumber
28417maybe-check-libdecnumber:
28418@if libdecnumber
28419maybe-check-libdecnumber: check-libdecnumber
28420
28421check-libdecnumber:
15b527ca 28422 @: $(MAKE); $(unstage)
a7dc05b5
PB
28423 @r=`${PWD_COMMAND}`; export r; \
28424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28425 $(HOST_EXPORTS) \
28426 (cd $(HOST_SUBDIR)/libdecnumber && \
28427 $(MAKE) $(FLAGS_TO_PASS) check)
28428
28429@endif libdecnumber
28430
28431.PHONY: install-libdecnumber maybe-install-libdecnumber
28432maybe-install-libdecnumber:
28433@if libdecnumber
28434maybe-install-libdecnumber: install-libdecnumber
28435
28436install-libdecnumber: installdirs
15b527ca 28437 @: $(MAKE); $(unstage)
a7dc05b5
PB
28438 @r=`${PWD_COMMAND}`; export r; \
28439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28440 $(HOST_EXPORTS) \
28441 (cd $(HOST_SUBDIR)/libdecnumber && \
28442 $(MAKE) $(FLAGS_TO_PASS) install)
28443
28444@endif libdecnumber
28445
39bbbb69 28446# Other targets (info, dvi, pdf, etc.)
a7dc05b5
PB
28447
28448.PHONY: maybe-info-libdecnumber info-libdecnumber
28449maybe-info-libdecnumber:
28450@if libdecnumber
28451maybe-info-libdecnumber: info-libdecnumber
28452
28453info-libdecnumber: \
28454 configure-libdecnumber
28455 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28456 r=`${PWD_COMMAND}`; export r; \
28457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28458 $(HOST_EXPORTS) \
28459 for flag in $(EXTRA_HOST_FLAGS) ; do \
28460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28461 done; \
28462 echo "Doing info in libdecnumber" ; \
28463 (cd $(HOST_SUBDIR)/libdecnumber && \
28464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28466 "RANLIB=$${RANLIB}" \
bffcbe34 28467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28468 info) \
28469 || exit 1
28470
28471@endif libdecnumber
28472
28473.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
28474maybe-dvi-libdecnumber:
28475@if libdecnumber
28476maybe-dvi-libdecnumber: dvi-libdecnumber
28477
28478dvi-libdecnumber: \
28479 configure-libdecnumber
28480 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28481 r=`${PWD_COMMAND}`; export r; \
28482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28483 $(HOST_EXPORTS) \
28484 for flag in $(EXTRA_HOST_FLAGS) ; do \
28485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28486 done; \
28487 echo "Doing dvi in libdecnumber" ; \
28488 (cd $(HOST_SUBDIR)/libdecnumber && \
28489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28491 "RANLIB=$${RANLIB}" \
bffcbe34 28492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28493 dvi) \
28494 || exit 1
28495
28496@endif libdecnumber
28497
39bbbb69
DD
28498.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
28499maybe-pdf-libdecnumber:
28500@if libdecnumber
28501maybe-pdf-libdecnumber: pdf-libdecnumber
28502
28503pdf-libdecnumber: \
28504 configure-libdecnumber
28505 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28506 r=`${PWD_COMMAND}`; export r; \
28507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28508 $(HOST_EXPORTS) \
28509 for flag in $(EXTRA_HOST_FLAGS) ; do \
28510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28511 done; \
28512 echo "Doing pdf in libdecnumber" ; \
28513 (cd $(HOST_SUBDIR)/libdecnumber && \
28514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28516 "RANLIB=$${RANLIB}" \
bffcbe34 28517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
28518 pdf) \
28519 || exit 1
28520
28521@endif libdecnumber
28522
a7dc05b5
PB
28523.PHONY: maybe-html-libdecnumber html-libdecnumber
28524maybe-html-libdecnumber:
28525@if libdecnumber
28526maybe-html-libdecnumber: html-libdecnumber
28527
28528html-libdecnumber: \
28529 configure-libdecnumber
28530 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28531 r=`${PWD_COMMAND}`; export r; \
28532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28533 $(HOST_EXPORTS) \
28534 for flag in $(EXTRA_HOST_FLAGS) ; do \
28535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28536 done; \
28537 echo "Doing html in libdecnumber" ; \
28538 (cd $(HOST_SUBDIR)/libdecnumber && \
28539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28541 "RANLIB=$${RANLIB}" \
bffcbe34 28542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28543 html) \
28544 || exit 1
28545
28546@endif libdecnumber
28547
28548.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
28549maybe-TAGS-libdecnumber:
28550@if libdecnumber
28551maybe-TAGS-libdecnumber: TAGS-libdecnumber
28552
28553TAGS-libdecnumber: \
28554 configure-libdecnumber
28555 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28556 r=`${PWD_COMMAND}`; export r; \
28557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28558 $(HOST_EXPORTS) \
28559 for flag in $(EXTRA_HOST_FLAGS) ; do \
28560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28561 done; \
28562 echo "Doing TAGS in libdecnumber" ; \
28563 (cd $(HOST_SUBDIR)/libdecnumber && \
28564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28566 "RANLIB=$${RANLIB}" \
bffcbe34 28567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28568 TAGS) \
28569 || exit 1
28570
28571@endif libdecnumber
28572
28573.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
28574maybe-install-info-libdecnumber:
28575@if libdecnumber
28576maybe-install-info-libdecnumber: install-info-libdecnumber
28577
28578install-info-libdecnumber: \
28579 configure-libdecnumber \
28580 info-libdecnumber
28581 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28582 r=`${PWD_COMMAND}`; export r; \
28583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28584 $(HOST_EXPORTS) \
28585 for flag in $(EXTRA_HOST_FLAGS) ; do \
28586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28587 done; \
28588 echo "Doing install-info in libdecnumber" ; \
28589 (cd $(HOST_SUBDIR)/libdecnumber && \
28590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28592 "RANLIB=$${RANLIB}" \
bffcbe34 28593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28594 install-info) \
28595 || exit 1
28596
28597@endif libdecnumber
28598
d4954b6d
DD
28599.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
28600maybe-install-pdf-libdecnumber:
28601@if libdecnumber
28602maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
28603
28604install-pdf-libdecnumber: \
28605 configure-libdecnumber \
28606 pdf-libdecnumber
28607 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28608 r=`${PWD_COMMAND}`; export r; \
28609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28610 $(HOST_EXPORTS) \
28611 for flag in $(EXTRA_HOST_FLAGS) ; do \
28612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28613 done; \
28614 echo "Doing install-pdf in libdecnumber" ; \
28615 (cd $(HOST_SUBDIR)/libdecnumber && \
28616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28618 "RANLIB=$${RANLIB}" \
bffcbe34 28619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
28620 install-pdf) \
28621 || exit 1
28622
28623@endif libdecnumber
28624
83c9add4
CD
28625.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
28626maybe-install-html-libdecnumber:
28627@if libdecnumber
28628maybe-install-html-libdecnumber: install-html-libdecnumber
28629
28630install-html-libdecnumber: \
28631 configure-libdecnumber \
28632 html-libdecnumber
28633 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28634 r=`${PWD_COMMAND}`; export r; \
28635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28636 $(HOST_EXPORTS) \
28637 for flag in $(EXTRA_HOST_FLAGS) ; do \
28638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28639 done; \
28640 echo "Doing install-html in libdecnumber" ; \
28641 (cd $(HOST_SUBDIR)/libdecnumber && \
28642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28644 "RANLIB=$${RANLIB}" \
bffcbe34 28645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
28646 install-html) \
28647 || exit 1
28648
28649@endif libdecnumber
28650
a7dc05b5
PB
28651.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
28652maybe-installcheck-libdecnumber:
28653@if libdecnumber
28654maybe-installcheck-libdecnumber: installcheck-libdecnumber
28655
28656installcheck-libdecnumber: \
28657 configure-libdecnumber
28658 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28659 r=`${PWD_COMMAND}`; export r; \
28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28661 $(HOST_EXPORTS) \
28662 for flag in $(EXTRA_HOST_FLAGS) ; do \
28663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28664 done; \
28665 echo "Doing installcheck in libdecnumber" ; \
28666 (cd $(HOST_SUBDIR)/libdecnumber && \
28667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28669 "RANLIB=$${RANLIB}" \
bffcbe34 28670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28671 installcheck) \
28672 || exit 1
28673
28674@endif libdecnumber
28675
28676.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
28677maybe-mostlyclean-libdecnumber:
28678@if libdecnumber
28679maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
28680
28681mostlyclean-libdecnumber:
28682 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28683 r=`${PWD_COMMAND}`; export r; \
28684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28685 $(HOST_EXPORTS) \
28686 for flag in $(EXTRA_HOST_FLAGS) ; do \
28687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28688 done; \
28689 echo "Doing mostlyclean in libdecnumber" ; \
28690 (cd $(HOST_SUBDIR)/libdecnumber && \
28691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28693 "RANLIB=$${RANLIB}" \
bffcbe34 28694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28695 mostlyclean) \
28696 || exit 1
28697
28698@endif libdecnumber
28699
28700.PHONY: maybe-clean-libdecnumber clean-libdecnumber
28701maybe-clean-libdecnumber:
28702@if libdecnumber
28703maybe-clean-libdecnumber: clean-libdecnumber
28704
28705clean-libdecnumber:
28706 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28707 r=`${PWD_COMMAND}`; export r; \
28708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28709 $(HOST_EXPORTS) \
28710 for flag in $(EXTRA_HOST_FLAGS) ; do \
28711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28712 done; \
28713 echo "Doing clean in libdecnumber" ; \
28714 (cd $(HOST_SUBDIR)/libdecnumber && \
28715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28717 "RANLIB=$${RANLIB}" \
bffcbe34 28718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28719 clean) \
28720 || exit 1
28721
28722@endif libdecnumber
28723
28724.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
28725maybe-distclean-libdecnumber:
28726@if libdecnumber
28727maybe-distclean-libdecnumber: distclean-libdecnumber
28728
28729distclean-libdecnumber:
28730 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28731 r=`${PWD_COMMAND}`; export r; \
28732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28733 $(HOST_EXPORTS) \
28734 for flag in $(EXTRA_HOST_FLAGS) ; do \
28735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28736 done; \
28737 echo "Doing distclean in libdecnumber" ; \
28738 (cd $(HOST_SUBDIR)/libdecnumber && \
28739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28741 "RANLIB=$${RANLIB}" \
bffcbe34 28742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28743 distclean) \
28744 || exit 1
28745
28746@endif libdecnumber
28747
28748.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
28749maybe-maintainer-clean-libdecnumber:
28750@if libdecnumber
28751maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
28752
28753maintainer-clean-libdecnumber:
28754 @[ -f ./libdecnumber/Makefile ] || exit 0; \
28755 r=`${PWD_COMMAND}`; export r; \
28756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28757 $(HOST_EXPORTS) \
28758 for flag in $(EXTRA_HOST_FLAGS) ; do \
28759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28760 done; \
28761 echo "Doing maintainer-clean in libdecnumber" ; \
28762 (cd $(HOST_SUBDIR)/libdecnumber && \
28763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28765 "RANLIB=$${RANLIB}" \
bffcbe34 28766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a7dc05b5
PB
28767 maintainer-clean) \
28768 || exit 1
28769
28770@endif libdecnumber
28771
28772
28773
d5eec917
PB
28774.PHONY: configure-libgui maybe-configure-libgui
28775maybe-configure-libgui:
e1e5148c
CD
28776@if gcc-bootstrap
28777configure-libgui: stage_current
28778@endif gcc-bootstrap
d5eec917
PB
28779@if libgui
28780maybe-configure-libgui: configure-libgui
ec92c4d6 28781configure-libgui:
15b527ca 28782 @: $(MAKE); $(unstage)
ec92c4d6 28783 @r=`${PWD_COMMAND}`; export r; \
cb2333e8 28784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
28785 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
28786 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
5074489a 28787 $(HOST_EXPORTS) \
f0fdfd34
PB
28788 echo Configuring in $(HOST_SUBDIR)/libgui; \
28789 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
cb2333e8 28790 case $(srcdir) in \
7fc2ca22
PB
28791 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28792 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
28793 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 28794 esac; \
7fc2ca22
PB
28795 srcdiroption="--srcdir=$${topdir}/libgui"; \
28796 libsrcdir="$$s/libgui"; \
cb2333e8 28797 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
28798 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28799 --target=${target_alias} $${srcdiroption} \
cb2333e8 28800 || exit 1
d5eec917 28801@endif libgui
cb2333e8 28802
f0fdfd34
PB
28803
28804
a8a96878
PB
28805
28806
d5eec917
PB
28807.PHONY: all-libgui maybe-all-libgui
28808maybe-all-libgui:
e1e5148c
CD
28809@if gcc-bootstrap
28810all-libgui: stage_current
28811@endif gcc-bootstrap
d5eec917 28812@if libgui
5e6b1f07 28813TARGET-libgui=all
d5eec917
PB
28814maybe-all-libgui: all-libgui
28815all-libgui: configure-libgui
15b527ca 28816 @: $(MAKE); $(unstage)
cb2333e8
DD
28817 @r=`${PWD_COMMAND}`; export r; \
28818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 28819 $(HOST_EXPORTS) \
7fc2ca22 28820 (cd $(HOST_SUBDIR)/libgui && \
6532abb6
PB
28821 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
28822 $(TARGET-libgui))
d5eec917 28823@endif libgui
cb2333e8 28824
f0fdfd34 28825
a8a96878
PB
28826
28827
d5eec917
PB
28828.PHONY: check-libgui maybe-check-libgui
28829maybe-check-libgui:
28830@if libgui
28831maybe-check-libgui: check-libgui
cb2333e8 28832
d5eec917 28833check-libgui:
15b527ca 28834 @: $(MAKE); $(unstage)
cb2333e8
DD
28835 @r=`${PWD_COMMAND}`; export r; \
28836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28837 $(HOST_EXPORTS) \
7fc2ca22
PB
28838 (cd $(HOST_SUBDIR)/libgui && \
28839 $(MAKE) $(FLAGS_TO_PASS) check)
cb2333e8 28840
d5eec917 28841@endif libgui
cb2333e8 28842
d5eec917
PB
28843.PHONY: install-libgui maybe-install-libgui
28844maybe-install-libgui:
28845@if libgui
28846maybe-install-libgui: install-libgui
cb2333e8 28847
d5eec917 28848install-libgui: installdirs
15b527ca 28849 @: $(MAKE); $(unstage)
d5eec917
PB
28850 @r=`${PWD_COMMAND}`; export r; \
28851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 28852 $(HOST_EXPORTS) \
7fc2ca22 28853 (cd $(HOST_SUBDIR)/libgui && \
93c60b6d 28854 $(MAKE) $(FLAGS_TO_PASS) install)
cb2333e8 28855
d5eec917 28856@endif libgui
cb2333e8 28857
39bbbb69 28858# Other targets (info, dvi, pdf, etc.)
cb2333e8 28859
d5eec917
PB
28860.PHONY: maybe-info-libgui info-libgui
28861maybe-info-libgui:
28862@if libgui
28863maybe-info-libgui: info-libgui
cb2333e8 28864
d5eec917
PB
28865info-libgui: \
28866 configure-libgui
15b527ca 28867 @: $(MAKE); $(unstage)
d5eec917 28868 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28869 r=`${PWD_COMMAND}`; export r; \
28870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28871 $(HOST_EXPORTS) \
d5eec917 28872 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28874 done; \
d5eec917 28875 echo "Doing info in libgui" ; \
7fc2ca22 28876 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28879 "RANLIB=$${RANLIB}" \
bffcbe34 28880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28881 info) \
cb2333e8
DD
28882 || exit 1
28883
d5eec917 28884@endif libgui
cb2333e8 28885
d5eec917
PB
28886.PHONY: maybe-dvi-libgui dvi-libgui
28887maybe-dvi-libgui:
28888@if libgui
28889maybe-dvi-libgui: dvi-libgui
cb2333e8 28890
d5eec917
PB
28891dvi-libgui: \
28892 configure-libgui
15b527ca 28893 @: $(MAKE); $(unstage)
d5eec917 28894 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28895 r=`${PWD_COMMAND}`; export r; \
28896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28897 $(HOST_EXPORTS) \
d5eec917 28898 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28900 done; \
d5eec917 28901 echo "Doing dvi in libgui" ; \
7fc2ca22 28902 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28905 "RANLIB=$${RANLIB}" \
bffcbe34 28906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28907 dvi) \
cb2333e8
DD
28908 || exit 1
28909
d5eec917 28910@endif libgui
cb2333e8 28911
39bbbb69
DD
28912.PHONY: maybe-pdf-libgui pdf-libgui
28913maybe-pdf-libgui:
28914@if libgui
28915maybe-pdf-libgui: pdf-libgui
28916
28917pdf-libgui: \
28918 configure-libgui
28919 @: $(MAKE); $(unstage)
28920 @[ -f ./libgui/Makefile ] || exit 0; \
28921 r=`${PWD_COMMAND}`; export r; \
28922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28923 $(HOST_EXPORTS) \
28924 for flag in $(EXTRA_HOST_FLAGS) ; do \
28925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28926 done; \
28927 echo "Doing pdf in libgui" ; \
28928 (cd $(HOST_SUBDIR)/libgui && \
28929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28931 "RANLIB=$${RANLIB}" \
bffcbe34 28932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
28933 pdf) \
28934 || exit 1
28935
28936@endif libgui
28937
b6fb961f
MS
28938.PHONY: maybe-html-libgui html-libgui
28939maybe-html-libgui:
28940@if libgui
28941maybe-html-libgui: html-libgui
28942
28943html-libgui: \
28944 configure-libgui
15b527ca 28945 @: $(MAKE); $(unstage)
b6fb961f
MS
28946 @[ -f ./libgui/Makefile ] || exit 0; \
28947 r=`${PWD_COMMAND}`; export r; \
28948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
28949 $(HOST_EXPORTS) \
28950 for flag in $(EXTRA_HOST_FLAGS) ; do \
28951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28952 done; \
28953 echo "Doing html in libgui" ; \
7fc2ca22 28954 (cd $(HOST_SUBDIR)/libgui && \
b6fb961f
MS
28955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28957 "RANLIB=$${RANLIB}" \
bffcbe34 28958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
28959 html) \
28960 || exit 1
28961
28962@endif libgui
28963
d5eec917
PB
28964.PHONY: maybe-TAGS-libgui TAGS-libgui
28965maybe-TAGS-libgui:
28966@if libgui
28967maybe-TAGS-libgui: TAGS-libgui
cb2333e8 28968
d5eec917
PB
28969TAGS-libgui: \
28970 configure-libgui
15b527ca 28971 @: $(MAKE); $(unstage)
d5eec917 28972 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
28973 r=`${PWD_COMMAND}`; export r; \
28974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 28975 $(HOST_EXPORTS) \
d5eec917 28976 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
28977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28978 done; \
d5eec917 28979 echo "Doing TAGS in libgui" ; \
7fc2ca22 28980 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
28981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28983 "RANLIB=$${RANLIB}" \
bffcbe34 28984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 28985 TAGS) \
cb2333e8
DD
28986 || exit 1
28987
d5eec917 28988@endif libgui
cb2333e8 28989
d5eec917
PB
28990.PHONY: maybe-install-info-libgui install-info-libgui
28991maybe-install-info-libgui:
28992@if libgui
28993maybe-install-info-libgui: install-info-libgui
cb2333e8 28994
d5eec917
PB
28995install-info-libgui: \
28996 configure-libgui \
28997 info-libgui
15b527ca 28998 @: $(MAKE); $(unstage)
d5eec917 28999 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29000 r=`${PWD_COMMAND}`; export r; \
29001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29002 $(HOST_EXPORTS) \
d5eec917 29003 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29005 done; \
d5eec917 29006 echo "Doing install-info in libgui" ; \
7fc2ca22 29007 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29010 "RANLIB=$${RANLIB}" \
bffcbe34 29011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29012 install-info) \
cb2333e8
DD
29013 || exit 1
29014
d5eec917 29015@endif libgui
cb2333e8 29016
d4954b6d
DD
29017.PHONY: maybe-install-pdf-libgui install-pdf-libgui
29018maybe-install-pdf-libgui:
29019@if libgui
29020maybe-install-pdf-libgui: install-pdf-libgui
29021
29022install-pdf-libgui: \
29023 configure-libgui \
29024 pdf-libgui
29025 @: $(MAKE); $(unstage)
29026 @[ -f ./libgui/Makefile ] || exit 0; \
29027 r=`${PWD_COMMAND}`; export r; \
29028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29029 $(HOST_EXPORTS) \
29030 for flag in $(EXTRA_HOST_FLAGS) ; do \
29031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29032 done; \
29033 echo "Doing install-pdf in libgui" ; \
29034 (cd $(HOST_SUBDIR)/libgui && \
29035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29037 "RANLIB=$${RANLIB}" \
bffcbe34 29038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
29039 install-pdf) \
29040 || exit 1
29041
29042@endif libgui
29043
83c9add4
CD
29044.PHONY: maybe-install-html-libgui install-html-libgui
29045maybe-install-html-libgui:
29046@if libgui
29047maybe-install-html-libgui: install-html-libgui
29048
29049install-html-libgui: \
29050 configure-libgui \
29051 html-libgui
29052 @: $(MAKE); $(unstage)
29053 @[ -f ./libgui/Makefile ] || exit 0; \
29054 r=`${PWD_COMMAND}`; export r; \
29055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29056 $(HOST_EXPORTS) \
29057 for flag in $(EXTRA_HOST_FLAGS) ; do \
29058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29059 done; \
29060 echo "Doing install-html in libgui" ; \
29061 (cd $(HOST_SUBDIR)/libgui && \
29062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29064 "RANLIB=$${RANLIB}" \
bffcbe34 29065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
29066 install-html) \
29067 || exit 1
29068
29069@endif libgui
29070
d5eec917
PB
29071.PHONY: maybe-installcheck-libgui installcheck-libgui
29072maybe-installcheck-libgui:
29073@if libgui
29074maybe-installcheck-libgui: installcheck-libgui
cb2333e8 29075
d5eec917
PB
29076installcheck-libgui: \
29077 configure-libgui
15b527ca 29078 @: $(MAKE); $(unstage)
d5eec917 29079 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29080 r=`${PWD_COMMAND}`; export r; \
29081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29082 $(HOST_EXPORTS) \
d5eec917 29083 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29085 done; \
d5eec917 29086 echo "Doing installcheck in libgui" ; \
7fc2ca22 29087 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29090 "RANLIB=$${RANLIB}" \
bffcbe34 29091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29092 installcheck) \
cb2333e8
DD
29093 || exit 1
29094
d5eec917 29095@endif libgui
cb2333e8 29096
d5eec917
PB
29097.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
29098maybe-mostlyclean-libgui:
29099@if libgui
29100maybe-mostlyclean-libgui: mostlyclean-libgui
cb2333e8 29101
d5eec917 29102mostlyclean-libgui:
15b527ca 29103 @: $(MAKE); $(unstage)
d5eec917 29104 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29105 r=`${PWD_COMMAND}`; export r; \
29106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29107 $(HOST_EXPORTS) \
d5eec917 29108 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29110 done; \
d5eec917 29111 echo "Doing mostlyclean in libgui" ; \
7fc2ca22 29112 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29115 "RANLIB=$${RANLIB}" \
bffcbe34 29116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29117 mostlyclean) \
cb2333e8
DD
29118 || exit 1
29119
d5eec917 29120@endif libgui
cb2333e8 29121
d5eec917
PB
29122.PHONY: maybe-clean-libgui clean-libgui
29123maybe-clean-libgui:
29124@if libgui
29125maybe-clean-libgui: clean-libgui
cb2333e8 29126
d5eec917 29127clean-libgui:
15b527ca 29128 @: $(MAKE); $(unstage)
d5eec917 29129 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29130 r=`${PWD_COMMAND}`; export r; \
29131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29132 $(HOST_EXPORTS) \
d5eec917 29133 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29135 done; \
d5eec917 29136 echo "Doing clean in libgui" ; \
7fc2ca22 29137 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29140 "RANLIB=$${RANLIB}" \
bffcbe34 29141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29142 clean) \
cb2333e8
DD
29143 || exit 1
29144
d5eec917 29145@endif libgui
cb2333e8 29146
d5eec917
PB
29147.PHONY: maybe-distclean-libgui distclean-libgui
29148maybe-distclean-libgui:
29149@if libgui
29150maybe-distclean-libgui: distclean-libgui
cb2333e8 29151
d5eec917 29152distclean-libgui:
15b527ca 29153 @: $(MAKE); $(unstage)
d5eec917 29154 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29155 r=`${PWD_COMMAND}`; export r; \
29156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29157 $(HOST_EXPORTS) \
d5eec917 29158 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29160 done; \
d5eec917 29161 echo "Doing distclean in libgui" ; \
7fc2ca22 29162 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29165 "RANLIB=$${RANLIB}" \
bffcbe34 29166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29167 distclean) \
cb2333e8
DD
29168 || exit 1
29169
d5eec917 29170@endif libgui
cb2333e8 29171
d5eec917
PB
29172.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
29173maybe-maintainer-clean-libgui:
29174@if libgui
29175maybe-maintainer-clean-libgui: maintainer-clean-libgui
cb2333e8 29176
d5eec917 29177maintainer-clean-libgui:
15b527ca 29178 @: $(MAKE); $(unstage)
d5eec917 29179 @[ -f ./libgui/Makefile ] || exit 0; \
cb2333e8
DD
29180 r=`${PWD_COMMAND}`; export r; \
29181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29182 $(HOST_EXPORTS) \
d5eec917 29183 for flag in $(EXTRA_HOST_FLAGS) ; do \
cb2333e8
DD
29184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29185 done; \
d5eec917 29186 echo "Doing maintainer-clean in libgui" ; \
7fc2ca22 29187 (cd $(HOST_SUBDIR)/libgui && \
cb2333e8
DD
29188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29190 "RANLIB=$${RANLIB}" \
bffcbe34 29191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29192 maintainer-clean) \
cb2333e8
DD
29193 || exit 1
29194
d5eec917 29195@endif libgui
cb2333e8
DD
29196
29197
f0fdfd34 29198
d5eec917
PB
29199.PHONY: configure-libiberty maybe-configure-libiberty
29200maybe-configure-libiberty:
e1e5148c
CD
29201@if gcc-bootstrap
29202configure-libiberty: stage_current
29203@endif gcc-bootstrap
d5eec917
PB
29204@if libiberty
29205maybe-configure-libiberty: configure-libiberty
ec92c4d6 29206configure-libiberty:
ec92c4d6
PB
29207 @r=`${PWD_COMMAND}`; export r; \
29208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
29209 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
29210 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
5074489a 29211 $(HOST_EXPORTS) \
f0fdfd34
PB
29212 echo Configuring in $(HOST_SUBDIR)/libiberty; \
29213 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
8ec98d6c 29214 case $(srcdir) in \
7fc2ca22
PB
29215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29216 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 29218 esac; \
7fc2ca22
PB
29219 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29220 libsrcdir="$$s/libiberty"; \
8ec98d6c 29221 $(SHELL) $${libsrcdir}/configure \
42f55f77 29222 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
bd45d6fa 29223 --target=${target_alias} $${srcdiroption} @extra_host_libiberty_configure_flags@ \
657b58f4 29224 || exit 1
d5eec917 29225@endif libiberty
657b58f4 29226
f0fdfd34
PB
29227
29228
a8a96878
PB
29229.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
29230maybe-configure-stage1-libiberty:
29231@if libiberty-bootstrap
29232maybe-configure-stage1-libiberty: configure-stage1-libiberty
15b527ca 29233configure-stage1-libiberty:
ec92c4d6 29234 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 29235 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29236 @r=`${PWD_COMMAND}`; export r; \
29237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29238 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 29239 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
c91ae28f 29240 $(HOST_EXPORTS) \
2ba09444 29241 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
29242 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
29243 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 29244 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29245 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29246 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29247 case $(srcdir) in \
29248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29249 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29251 esac; \
29252 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29253 libsrcdir="$$s/libiberty"; \
29254 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29255 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29256 --target=${target_alias} $${srcdiroption} \
bd45d6fa
ILT
29257 $(STAGE1_CONFIGURE_FLAGS) \
29258 @extra_host_libiberty_configure_flags@
a8a96878
PB
29259@endif libiberty-bootstrap
29260
29261.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
29262maybe-configure-stage2-libiberty:
29263@if libiberty-bootstrap
29264maybe-configure-stage2-libiberty: configure-stage2-libiberty
15b527ca 29265configure-stage2-libiberty:
ec92c4d6 29266 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 29267 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29268 @r=`${PWD_COMMAND}`; export r; \
29269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29270 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 29271 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 29272 $(HOST_EXPORTS) \
c91ae28f 29273 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 29274 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
29275 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
29276 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 29277 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29279 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29280 case $(srcdir) in \
29281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29282 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29284 esac; \
29285 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29286 libsrcdir="$$s/libiberty"; \
29287 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29288 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29289 --target=${target_alias} $${srcdiroption} \
380e48e5 29290 --with-build-libsubdir=$(HOST_SUBDIR) \
bd45d6fa
ILT
29291 $(STAGE2_CONFIGURE_FLAGS) \
29292 @extra_host_libiberty_configure_flags@
2b41ef78
AO
29293@endif libiberty-bootstrap
29294
a8a96878
PB
29295.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
29296maybe-configure-stage3-libiberty:
29297@if libiberty-bootstrap
29298maybe-configure-stage3-libiberty: configure-stage3-libiberty
15b527ca 29299configure-stage3-libiberty:
ec92c4d6 29300 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 29301 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29302 @r=`${PWD_COMMAND}`; export r; \
29303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29304 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 29305 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 29306 $(HOST_EXPORTS) \
c91ae28f 29307 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 29308 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
29309 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
29310 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 29311 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29313 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29314 case $(srcdir) in \
29315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29316 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29318 esac; \
29319 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29320 libsrcdir="$$s/libiberty"; \
29321 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29323 --target=${target_alias} $${srcdiroption} \
380e48e5 29324 --with-build-libsubdir=$(HOST_SUBDIR) \
bd45d6fa
ILT
29325 $(STAGE3_CONFIGURE_FLAGS) \
29326 @extra_host_libiberty_configure_flags@
2b41ef78
AO
29327@endif libiberty-bootstrap
29328
a8a96878
PB
29329.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
29330maybe-configure-stage4-libiberty:
29331@if libiberty-bootstrap
29332maybe-configure-stage4-libiberty: configure-stage4-libiberty
15b527ca 29333configure-stage4-libiberty:
ec92c4d6 29334 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 29335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29336 @r=`${PWD_COMMAND}`; export r; \
29337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29338 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 29339 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 29340 $(HOST_EXPORTS) \
c91ae28f 29341 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 29342 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
29343 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
29344 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 29345 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29347 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29348 case $(srcdir) in \
29349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29350 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29352 esac; \
29353 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29354 libsrcdir="$$s/libiberty"; \
29355 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29357 --target=${target_alias} $${srcdiroption} \
380e48e5 29358 --with-build-libsubdir=$(HOST_SUBDIR) \
bd45d6fa
ILT
29359 $(STAGE4_CONFIGURE_FLAGS) \
29360 @extra_host_libiberty_configure_flags@
a8a96878
PB
29361@endif libiberty-bootstrap
29362
29363.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
29364maybe-configure-stageprofile-libiberty:
29365@if libiberty-bootstrap
29366maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
15b527ca 29367configure-stageprofile-libiberty:
ec92c4d6 29368 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 29369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29370 @r=`${PWD_COMMAND}`; export r; \
29371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29372 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 29373 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 29374 $(HOST_EXPORTS) \
c91ae28f
AO
29375 $(POSTSTAGE1_HOST_EXPORTS) \
29376 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
29377 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
29378 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 29379 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29381 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29382 case $(srcdir) in \
29383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29384 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29386 esac; \
29387 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29388 libsrcdir="$$s/libiberty"; \
29389 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29391 --target=${target_alias} $${srcdiroption} \
380e48e5 29392 --with-build-libsubdir=$(HOST_SUBDIR) \
bd45d6fa
ILT
29393 $(STAGEprofile_CONFIGURE_FLAGS) \
29394 @extra_host_libiberty_configure_flags@
a8a96878
PB
29395@endif libiberty-bootstrap
29396
29397.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
29398maybe-configure-stagefeedback-libiberty:
29399@if libiberty-bootstrap
29400maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
15b527ca 29401configure-stagefeedback-libiberty:
ec92c4d6 29402 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 29403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
ec92c4d6
PB
29404 @r=`${PWD_COMMAND}`; export r; \
29405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29406 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 29407 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
a8a96878 29408 $(HOST_EXPORTS) \
c91ae28f
AO
29409 $(POSTSTAGE1_HOST_EXPORTS) \
29410 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
29411 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
29412 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 29413 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
15b527ca 29414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
a8a96878
PB
29415 cd $(HOST_SUBDIR)/libiberty || exit 1; \
29416 case $(srcdir) in \
29417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29418 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
29419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29420 esac; \
29421 srcdiroption="--srcdir=$${topdir}/libiberty"; \
29422 libsrcdir="$$s/libiberty"; \
29423 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
29424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29425 --target=${target_alias} $${srcdiroption} \
380e48e5 29426 --with-build-libsubdir=$(HOST_SUBDIR) \
bd45d6fa
ILT
29427 $(STAGEfeedback_CONFIGURE_FLAGS) \
29428 @extra_host_libiberty_configure_flags@
a8a96878
PB
29429@endif libiberty-bootstrap
29430
29431
29432
29433
29434
d5eec917
PB
29435.PHONY: all-libiberty maybe-all-libiberty
29436maybe-all-libiberty:
e1e5148c
CD
29437@if gcc-bootstrap
29438all-libiberty: stage_current
29439@endif gcc-bootstrap
d5eec917 29440@if libiberty
5e6b1f07 29441TARGET-libiberty=all
d5eec917
PB
29442maybe-all-libiberty: all-libiberty
29443all-libiberty: configure-libiberty
ec92c4d6 29444 @r=`${PWD_COMMAND}`; export r; \
d5eec917 29445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 29446 $(HOST_EXPORTS) \
7fc2ca22 29447 (cd $(HOST_SUBDIR)/libiberty && \
6532abb6
PB
29448 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
29449 $(TARGET-libiberty))
d5eec917 29450@endif libiberty
657b58f4 29451
f0fdfd34 29452
a8a96878
PB
29453
29454.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
29455.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
29456maybe-all-stage1-libiberty:
29457maybe-clean-stage1-libiberty:
29458@if libiberty-bootstrap
29459maybe-all-stage1-libiberty: all-stage1-libiberty
29460all-stage1: all-stage1-libiberty
168b158c 29461TARGET-stage1-libiberty = $(TARGET-libiberty)
a8a96878 29462all-stage1-libiberty: configure-stage1-libiberty
ec92c4d6 29463 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
29464 @r=`${PWD_COMMAND}`; export r; \
29465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29466 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 29467 $(HOST_EXPORTS) \
a8a96878 29468 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29470 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 29471 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
29472 LIBCFLAGS="$(LIBCFLAGS)" \
29473 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29474 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29475 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29476 $(EXTRA_HOST_FLAGS) \
29477 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 29478 $(TARGET-stage1-libiberty)
a8a96878
PB
29479
29480maybe-clean-stage1-libiberty: clean-stage1-libiberty
29481clean-stage1: clean-stage1-libiberty
29482clean-stage1-libiberty:
a6a4e782
DD
29483 @if [ $(current_stage) = stage1 ]; then \
29484 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29485 else \
29486 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
29487 $(MAKE) stage1-start; \
29488 fi; \
a8a96878 29489 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29490 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 29491 clean
a8a96878
PB
29492@endif libiberty-bootstrap
29493
29494
29495.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
29496.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
29497maybe-all-stage2-libiberty:
29498maybe-clean-stage2-libiberty:
29499@if libiberty-bootstrap
29500maybe-all-stage2-libiberty: all-stage2-libiberty
29501all-stage2: all-stage2-libiberty
168b158c 29502TARGET-stage2-libiberty = $(TARGET-libiberty)
a8a96878 29503all-stage2-libiberty: configure-stage2-libiberty
ec92c4d6 29504 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
29505 @r=`${PWD_COMMAND}`; export r; \
29506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29507 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 29508 $(HOST_EXPORTS) \
5074489a 29509 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 29510 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29512 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 29513 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
29514 LIBCFLAGS="$(STAGE2_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="$(STAGE2_TFLAGS)" \
168b158c 29520 $(TARGET-stage2-libiberty)
a8a96878
PB
29521
29522maybe-clean-stage2-libiberty: clean-stage2-libiberty
29523clean-stage2: clean-stage2-libiberty
29524clean-stage2-libiberty:
a6a4e782
DD
29525 @if [ $(current_stage) = stage2 ]; then \
29526 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29527 else \
29528 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
29529 $(MAKE) stage2-start; \
29530 fi; \
a8a96878 29531 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29532 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 29533 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 29534 clean
a8a96878
PB
29535@endif libiberty-bootstrap
29536
29537
29538.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
29539.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
29540maybe-all-stage3-libiberty:
29541maybe-clean-stage3-libiberty:
29542@if libiberty-bootstrap
29543maybe-all-stage3-libiberty: all-stage3-libiberty
29544all-stage3: all-stage3-libiberty
168b158c 29545TARGET-stage3-libiberty = $(TARGET-libiberty)
a8a96878 29546all-stage3-libiberty: configure-stage3-libiberty
ec92c4d6 29547 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
29548 @r=`${PWD_COMMAND}`; export r; \
29549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29550 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 29551 $(HOST_EXPORTS) \
5074489a 29552 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 29553 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29554 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29555 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 29556 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
29557 LIBCFLAGS="$(STAGE3_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="$(STAGE3_TFLAGS)" \
168b158c 29563 $(TARGET-stage3-libiberty)
a8a96878
PB
29564
29565maybe-clean-stage3-libiberty: clean-stage3-libiberty
29566clean-stage3: clean-stage3-libiberty
29567clean-stage3-libiberty:
a6a4e782
DD
29568 @if [ $(current_stage) = stage3 ]; then \
29569 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29570 else \
29571 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
29572 $(MAKE) stage3-start; \
29573 fi; \
a8a96878 29574 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29575 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 29576 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 29577 clean
a8a96878
PB
29578@endif libiberty-bootstrap
29579
29580
29581.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
29582.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
29583maybe-all-stage4-libiberty:
29584maybe-clean-stage4-libiberty:
29585@if libiberty-bootstrap
29586maybe-all-stage4-libiberty: all-stage4-libiberty
29587all-stage4: all-stage4-libiberty
168b158c 29588TARGET-stage4-libiberty = $(TARGET-libiberty)
a8a96878 29589all-stage4-libiberty: configure-stage4-libiberty
ec92c4d6 29590 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
29591 @r=`${PWD_COMMAND}`; export r; \
29592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29593 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 29594 $(HOST_EXPORTS) \
5074489a 29595 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 29596 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29598 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 29599 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 29600 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
29601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29604 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29605 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 29606 $(TARGET-stage4-libiberty)
a8a96878
PB
29607
29608maybe-clean-stage4-libiberty: clean-stage4-libiberty
29609clean-stage4: clean-stage4-libiberty
29610clean-stage4-libiberty:
a6a4e782
DD
29611 @if [ $(current_stage) = stage4 ]; then \
29612 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29613 else \
29614 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
29615 $(MAKE) stage4-start; \
29616 fi; \
a8a96878 29617 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29618 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 29619 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 29620 clean
a8a96878
PB
29621@endif libiberty-bootstrap
29622
29623
29624.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
29625.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
29626maybe-all-stageprofile-libiberty:
29627maybe-clean-stageprofile-libiberty:
29628@if libiberty-bootstrap
29629maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
29630all-stageprofile: all-stageprofile-libiberty
168b158c 29631TARGET-stageprofile-libiberty = $(TARGET-libiberty)
a8a96878 29632all-stageprofile-libiberty: configure-stageprofile-libiberty
ec92c4d6 29633 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
29634 @r=`${PWD_COMMAND}`; export r; \
29635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29636 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 29637 $(HOST_EXPORTS) \
5074489a 29638 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 29639 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29640 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29641 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 29642 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
29643 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
29644 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29645 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29646 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29647 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29648 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 29649 $(TARGET-stageprofile-libiberty)
a8a96878
PB
29650
29651maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
29652clean-stageprofile: clean-stageprofile-libiberty
29653clean-stageprofile-libiberty:
a6a4e782
DD
29654 @if [ $(current_stage) = stageprofile ]; then \
29655 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29656 else \
29657 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
29658 $(MAKE) stageprofile-start; \
29659 fi; \
a8a96878 29660 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29661 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 29662 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 29663 clean
a8a96878
PB
29664@endif libiberty-bootstrap
29665
29666
29667.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
29668.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
29669maybe-all-stagefeedback-libiberty:
29670maybe-clean-stagefeedback-libiberty:
29671@if libiberty-bootstrap
29672maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
29673all-stagefeedback: all-stagefeedback-libiberty
168b158c 29674TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
a8a96878 29675all-stagefeedback-libiberty: configure-stagefeedback-libiberty
ec92c4d6 29676 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
29677 @r=`${PWD_COMMAND}`; export r; \
29678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 29679 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 29680 $(HOST_EXPORTS) \
5074489a 29681 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 29682 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29683 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 29684 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 29685 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
29686 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
29687 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29688 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29689 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29690 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29691 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 29692 $(TARGET-stagefeedback-libiberty)
a8a96878
PB
29693
29694maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
29695clean-stagefeedback: clean-stagefeedback-libiberty
29696clean-stagefeedback-libiberty:
a6a4e782
DD
29697 @if [ $(current_stage) = stagefeedback ]; then \
29698 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
29699 else \
29700 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
29701 $(MAKE) stagefeedback-start; \
29702 fi; \
a8a96878 29703 cd $(HOST_SUBDIR)/libiberty && \
6532abb6 29704 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 29705 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 29706 clean
a8a96878
PB
29707@endif libiberty-bootstrap
29708
29709
29710
29711
29712
d5eec917
PB
29713.PHONY: check-libiberty maybe-check-libiberty
29714maybe-check-libiberty:
29715@if libiberty
29716maybe-check-libiberty: check-libiberty
657b58f4 29717
d5eec917 29718check-libiberty:
15b527ca 29719 @: $(MAKE); $(unstage)
8ec98d6c 29720 @r=`${PWD_COMMAND}`; export r; \
5230d454 29721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29722 $(HOST_EXPORTS) \
7fc2ca22
PB
29723 (cd $(HOST_SUBDIR)/libiberty && \
29724 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 29725
d5eec917 29726@endif libiberty
657b58f4 29727
d5eec917
PB
29728.PHONY: install-libiberty maybe-install-libiberty
29729maybe-install-libiberty:
29730@if libiberty
29731maybe-install-libiberty: install-libiberty
657b58f4 29732
d5eec917 29733install-libiberty: installdirs
15b527ca 29734 @: $(MAKE); $(unstage)
8ec98d6c 29735 @r=`${PWD_COMMAND}`; export r; \
5230d454 29736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29737 $(HOST_EXPORTS) \
7fc2ca22 29738 (cd $(HOST_SUBDIR)/libiberty && \
93c60b6d 29739 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 29740
d5eec917 29741@endif libiberty
657b58f4 29742
39bbbb69 29743# Other targets (info, dvi, pdf, etc.)
657b58f4 29744
d5eec917
PB
29745.PHONY: maybe-info-libiberty info-libiberty
29746maybe-info-libiberty:
29747@if libiberty
29748maybe-info-libiberty: info-libiberty
8ec98d6c 29749
d5eec917
PB
29750info-libiberty: \
29751 configure-libiberty
29752 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29753 r=`${PWD_COMMAND}`; export r; \
29754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29755 $(HOST_EXPORTS) \
d5eec917 29756 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29758 done; \
b6fb961f 29759 echo "Doing info in libiberty" ; \
7fc2ca22 29760 (cd $(HOST_SUBDIR)/libiberty && \
b6fb961f
MS
29761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29763 "RANLIB=$${RANLIB}" \
bffcbe34 29764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
29765 info) \
29766 || exit 1
29767
29768@endif libiberty
29769
29770.PHONY: maybe-dvi-libiberty dvi-libiberty
29771maybe-dvi-libiberty:
29772@if libiberty
29773maybe-dvi-libiberty: dvi-libiberty
29774
29775dvi-libiberty: \
29776 configure-libiberty
29777 @[ -f ./libiberty/Makefile ] || exit 0; \
29778 r=`${PWD_COMMAND}`; export r; \
29779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
29780 $(HOST_EXPORTS) \
29781 for flag in $(EXTRA_HOST_FLAGS) ; do \
29782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29783 done; \
29784 echo "Doing dvi in libiberty" ; \
7fc2ca22 29785 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29788 "RANLIB=$${RANLIB}" \
bffcbe34 29789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 29790 dvi) \
657b58f4
NN
29791 || exit 1
29792
d5eec917 29793@endif libiberty
657b58f4 29794
39bbbb69
DD
29795.PHONY: maybe-pdf-libiberty pdf-libiberty
29796maybe-pdf-libiberty:
29797@if libiberty
29798maybe-pdf-libiberty: pdf-libiberty
29799
29800pdf-libiberty: \
29801 configure-libiberty
29802 @[ -f ./libiberty/Makefile ] || exit 0; \
29803 r=`${PWD_COMMAND}`; export r; \
29804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29805 $(HOST_EXPORTS) \
29806 for flag in $(EXTRA_HOST_FLAGS) ; do \
29807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29808 done; \
29809 echo "Doing pdf in libiberty" ; \
29810 (cd $(HOST_SUBDIR)/libiberty && \
29811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29813 "RANLIB=$${RANLIB}" \
bffcbe34 29814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
29815 pdf) \
29816 || exit 1
29817
29818@endif libiberty
29819
b6fb961f
MS
29820.PHONY: maybe-html-libiberty html-libiberty
29821maybe-html-libiberty:
d5eec917 29822@if libiberty
b6fb961f 29823maybe-html-libiberty: html-libiberty
657b58f4 29824
b6fb961f 29825html-libiberty: \
d5eec917
PB
29826 configure-libiberty
29827 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29828 r=`${PWD_COMMAND}`; export r; \
29829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29830 $(HOST_EXPORTS) \
d5eec917 29831 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29833 done; \
b6fb961f 29834 echo "Doing html in libiberty" ; \
7fc2ca22 29835 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29838 "RANLIB=$${RANLIB}" \
bffcbe34 29839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 29840 html) \
657b58f4
NN
29841 || exit 1
29842
d5eec917 29843@endif libiberty
657b58f4 29844
d5eec917
PB
29845.PHONY: maybe-TAGS-libiberty TAGS-libiberty
29846maybe-TAGS-libiberty:
29847@if libiberty
29848maybe-TAGS-libiberty: TAGS-libiberty
657b58f4 29849
d5eec917
PB
29850TAGS-libiberty: \
29851 configure-libiberty
29852 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29853 r=`${PWD_COMMAND}`; export r; \
29854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29855 $(HOST_EXPORTS) \
d5eec917 29856 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29858 done; \
d5eec917 29859 echo "Doing TAGS in libiberty" ; \
7fc2ca22 29860 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29863 "RANLIB=$${RANLIB}" \
bffcbe34 29864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29865 TAGS) \
657b58f4
NN
29866 || exit 1
29867
d5eec917 29868@endif libiberty
657b58f4 29869
d5eec917
PB
29870.PHONY: maybe-install-info-libiberty install-info-libiberty
29871maybe-install-info-libiberty:
29872@if libiberty
29873maybe-install-info-libiberty: install-info-libiberty
657b58f4 29874
d5eec917
PB
29875install-info-libiberty: \
29876 configure-libiberty \
29877 info-libiberty
29878 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29879 r=`${PWD_COMMAND}`; export r; \
29880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29881 $(HOST_EXPORTS) \
d5eec917 29882 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29884 done; \
d5eec917 29885 echo "Doing install-info in libiberty" ; \
7fc2ca22 29886 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29889 "RANLIB=$${RANLIB}" \
bffcbe34 29890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29891 install-info) \
657b58f4
NN
29892 || exit 1
29893
d5eec917 29894@endif libiberty
657b58f4 29895
d4954b6d
DD
29896.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
29897maybe-install-pdf-libiberty:
29898@if libiberty
29899maybe-install-pdf-libiberty: install-pdf-libiberty
29900
29901install-pdf-libiberty: \
29902 configure-libiberty \
29903 pdf-libiberty
29904 @[ -f ./libiberty/Makefile ] || exit 0; \
29905 r=`${PWD_COMMAND}`; export r; \
29906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29907 $(HOST_EXPORTS) \
29908 for flag in $(EXTRA_HOST_FLAGS) ; do \
29909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29910 done; \
29911 echo "Doing install-pdf in libiberty" ; \
29912 (cd $(HOST_SUBDIR)/libiberty && \
29913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29915 "RANLIB=$${RANLIB}" \
bffcbe34 29916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
29917 install-pdf) \
29918 || exit 1
29919
29920@endif libiberty
29921
83c9add4
CD
29922.PHONY: maybe-install-html-libiberty install-html-libiberty
29923maybe-install-html-libiberty:
29924@if libiberty
29925maybe-install-html-libiberty: install-html-libiberty
29926
29927install-html-libiberty: \
29928 configure-libiberty \
29929 html-libiberty
29930 @[ -f ./libiberty/Makefile ] || exit 0; \
29931 r=`${PWD_COMMAND}`; export r; \
29932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29933 $(HOST_EXPORTS) \
29934 for flag in $(EXTRA_HOST_FLAGS) ; do \
29935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29936 done; \
29937 echo "Doing install-html in libiberty" ; \
29938 (cd $(HOST_SUBDIR)/libiberty && \
29939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29941 "RANLIB=$${RANLIB}" \
bffcbe34 29942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
29943 install-html) \
29944 || exit 1
29945
29946@endif libiberty
29947
d5eec917
PB
29948.PHONY: maybe-installcheck-libiberty installcheck-libiberty
29949maybe-installcheck-libiberty:
29950@if libiberty
29951maybe-installcheck-libiberty: installcheck-libiberty
657b58f4 29952
d5eec917
PB
29953installcheck-libiberty: \
29954 configure-libiberty
29955 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29956 r=`${PWD_COMMAND}`; export r; \
29957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29958 $(HOST_EXPORTS) \
d5eec917 29959 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29961 done; \
d5eec917 29962 echo "Doing installcheck in libiberty" ; \
7fc2ca22 29963 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29966 "RANLIB=$${RANLIB}" \
bffcbe34 29967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29968 installcheck) \
657b58f4
NN
29969 || exit 1
29970
d5eec917 29971@endif libiberty
657b58f4 29972
d5eec917
PB
29973.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
29974maybe-mostlyclean-libiberty:
29975@if libiberty
29976maybe-mostlyclean-libiberty: mostlyclean-libiberty
657b58f4 29977
d5eec917
PB
29978mostlyclean-libiberty:
29979 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
29980 r=`${PWD_COMMAND}`; export r; \
29981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 29982 $(HOST_EXPORTS) \
d5eec917 29983 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
29984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29985 done; \
d5eec917 29986 echo "Doing mostlyclean in libiberty" ; \
7fc2ca22 29987 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
29988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29990 "RANLIB=$${RANLIB}" \
bffcbe34 29991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 29992 mostlyclean) \
657b58f4
NN
29993 || exit 1
29994
d5eec917 29995@endif libiberty
657b58f4 29996
d5eec917
PB
29997.PHONY: maybe-clean-libiberty clean-libiberty
29998maybe-clean-libiberty:
29999@if libiberty
30000maybe-clean-libiberty: clean-libiberty
657b58f4 30001
d5eec917
PB
30002clean-libiberty:
30003 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
30004 r=`${PWD_COMMAND}`; export r; \
30005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30006 $(HOST_EXPORTS) \
d5eec917 30007 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30009 done; \
d5eec917 30010 echo "Doing clean in libiberty" ; \
7fc2ca22 30011 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
30012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30014 "RANLIB=$${RANLIB}" \
bffcbe34 30015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30016 clean) \
657b58f4
NN
30017 || exit 1
30018
d5eec917 30019@endif libiberty
657b58f4 30020
d5eec917
PB
30021.PHONY: maybe-distclean-libiberty distclean-libiberty
30022maybe-distclean-libiberty:
30023@if libiberty
30024maybe-distclean-libiberty: distclean-libiberty
657b58f4 30025
d5eec917
PB
30026distclean-libiberty:
30027 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
30028 r=`${PWD_COMMAND}`; export r; \
30029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30030 $(HOST_EXPORTS) \
d5eec917 30031 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30033 done; \
d5eec917 30034 echo "Doing distclean in libiberty" ; \
7fc2ca22 30035 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
30036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30038 "RANLIB=$${RANLIB}" \
bffcbe34 30039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30040 distclean) \
657b58f4
NN
30041 || exit 1
30042
d5eec917 30043@endif libiberty
657b58f4 30044
d5eec917
PB
30045.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
30046maybe-maintainer-clean-libiberty:
30047@if libiberty
30048maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
657b58f4 30049
d5eec917
PB
30050maintainer-clean-libiberty:
30051 @[ -f ./libiberty/Makefile ] || exit 0; \
5230d454
L
30052 r=`${PWD_COMMAND}`; export r; \
30053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30054 $(HOST_EXPORTS) \
d5eec917 30055 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30057 done; \
d5eec917 30058 echo "Doing maintainer-clean in libiberty" ; \
7fc2ca22 30059 (cd $(HOST_SUBDIR)/libiberty && \
657b58f4
NN
30060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30062 "RANLIB=$${RANLIB}" \
bffcbe34 30063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30064 maintainer-clean) \
657b58f4
NN
30065 || exit 1
30066
d5eec917 30067@endif libiberty
657b58f4 30068
657b58f4 30069
f0fdfd34 30070
59455d2f
TT
30071.PHONY: configure-libiconv maybe-configure-libiconv
30072maybe-configure-libiconv:
30073@if gcc-bootstrap
30074configure-libiconv: stage_current
30075@endif gcc-bootstrap
30076@if libiconv
30077maybe-configure-libiconv: configure-libiconv
30078configure-libiconv:
30079 @: $(MAKE); $(unstage)
30080 @r=`${PWD_COMMAND}`; export r; \
30081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30082 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
30083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
5074489a 30084 $(HOST_EXPORTS) \
59455d2f
TT
30085 echo Configuring in $(HOST_SUBDIR)/libiconv; \
30086 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
30087 case $(srcdir) in \
30088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30089 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
30090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30091 esac; \
30092 srcdiroption="--srcdir=$${topdir}/libiconv"; \
30093 libsrcdir="$$s/libiconv"; \
30094 $(SHELL) $${libsrcdir}/configure \
30095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30096 --target=${target_alias} $${srcdiroption} --disable-shared \
30097 || exit 1
30098@endif libiconv
30099
30100
30101
30102
30103
30104.PHONY: all-libiconv maybe-all-libiconv
30105maybe-all-libiconv:
30106@if gcc-bootstrap
30107all-libiconv: stage_current
30108@endif gcc-bootstrap
30109@if libiconv
30110TARGET-libiconv=all
30111maybe-all-libiconv: all-libiconv
30112all-libiconv: configure-libiconv
30113 @: $(MAKE); $(unstage)
30114 @r=`${PWD_COMMAND}`; export r; \
30115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 30116 $(HOST_EXPORTS) \
59455d2f
TT
30117 (cd $(HOST_SUBDIR)/libiconv && \
30118 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
30119 $(TARGET-libiconv))
30120@endif libiconv
30121
30122
30123
30124
30125.PHONY: check-libiconv maybe-check-libiconv
30126maybe-check-libiconv:
30127@if libiconv
30128maybe-check-libiconv: check-libiconv
30129
30130check-libiconv:
30131 @: $(MAKE); $(unstage)
30132 @r=`${PWD_COMMAND}`; export r; \
30133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30134 $(HOST_EXPORTS) \
30135 (cd $(HOST_SUBDIR)/libiconv && \
30136 $(MAKE) $(FLAGS_TO_PASS) check)
30137
30138@endif libiconv
30139
30140.PHONY: install-libiconv maybe-install-libiconv
30141maybe-install-libiconv:
30142@if libiconv
30143maybe-install-libiconv: install-libiconv
30144
30145install-libiconv:
30146
30147@endif libiconv
30148
30149# Other targets (info, dvi, pdf, etc.)
30150
30151.PHONY: maybe-info-libiconv info-libiconv
30152maybe-info-libiconv:
30153@if libiconv
30154maybe-info-libiconv: info-libiconv
30155
30156info-libiconv: \
30157 configure-libiconv
30158 @: $(MAKE); $(unstage)
30159 @[ -f ./libiconv/Makefile ] || exit 0; \
30160 r=`${PWD_COMMAND}`; export r; \
30161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30162 $(HOST_EXPORTS) \
30163 for flag in $(EXTRA_HOST_FLAGS) ; do \
30164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30165 done; \
30166 echo "Doing info in libiconv" ; \
30167 (cd $(HOST_SUBDIR)/libiconv && \
30168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30170 "RANLIB=$${RANLIB}" \
30171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30172 info) \
30173 || exit 1
30174
30175@endif libiconv
30176
30177.PHONY: maybe-dvi-libiconv dvi-libiconv
30178maybe-dvi-libiconv:
30179@if libiconv
30180maybe-dvi-libiconv: dvi-libiconv
30181
30182dvi-libiconv: \
30183 configure-libiconv
30184 @: $(MAKE); $(unstage)
30185 @[ -f ./libiconv/Makefile ] || exit 0; \
30186 r=`${PWD_COMMAND}`; export r; \
30187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30188 $(HOST_EXPORTS) \
30189 for flag in $(EXTRA_HOST_FLAGS) ; do \
30190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30191 done; \
30192 echo "Doing dvi in libiconv" ; \
30193 (cd $(HOST_SUBDIR)/libiconv && \
30194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30196 "RANLIB=$${RANLIB}" \
30197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30198 dvi) \
30199 || exit 1
30200
30201@endif libiconv
30202
30203.PHONY: maybe-pdf-libiconv pdf-libiconv
30204maybe-pdf-libiconv:
30205@if libiconv
30206maybe-pdf-libiconv: pdf-libiconv
30207
30208pdf-libiconv: \
30209 configure-libiconv
30210 @: $(MAKE); $(unstage)
30211 @[ -f ./libiconv/Makefile ] || exit 0; \
30212 r=`${PWD_COMMAND}`; export r; \
30213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30214 $(HOST_EXPORTS) \
30215 for flag in $(EXTRA_HOST_FLAGS) ; do \
30216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30217 done; \
30218 echo "Doing pdf in libiconv" ; \
30219 (cd $(HOST_SUBDIR)/libiconv && \
30220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30222 "RANLIB=$${RANLIB}" \
30223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30224 pdf) \
30225 || exit 1
30226
30227@endif libiconv
30228
30229.PHONY: maybe-html-libiconv html-libiconv
30230maybe-html-libiconv:
30231@if libiconv
30232maybe-html-libiconv: html-libiconv
30233
30234html-libiconv: \
30235 configure-libiconv
30236 @: $(MAKE); $(unstage)
30237 @[ -f ./libiconv/Makefile ] || exit 0; \
30238 r=`${PWD_COMMAND}`; export r; \
30239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30240 $(HOST_EXPORTS) \
30241 for flag in $(EXTRA_HOST_FLAGS) ; do \
30242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30243 done; \
30244 echo "Doing html in libiconv" ; \
30245 (cd $(HOST_SUBDIR)/libiconv && \
30246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30248 "RANLIB=$${RANLIB}" \
30249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30250 html) \
30251 || exit 1
30252
30253@endif libiconv
30254
30255.PHONY: maybe-TAGS-libiconv TAGS-libiconv
30256maybe-TAGS-libiconv:
30257@if libiconv
30258maybe-TAGS-libiconv: TAGS-libiconv
30259
30260TAGS-libiconv: \
30261 configure-libiconv
30262 @: $(MAKE); $(unstage)
30263 @[ -f ./libiconv/Makefile ] || exit 0; \
30264 r=`${PWD_COMMAND}`; export r; \
30265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30266 $(HOST_EXPORTS) \
30267 for flag in $(EXTRA_HOST_FLAGS) ; do \
30268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30269 done; \
30270 echo "Doing TAGS in libiconv" ; \
30271 (cd $(HOST_SUBDIR)/libiconv && \
30272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30274 "RANLIB=$${RANLIB}" \
30275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30276 TAGS) \
30277 || exit 1
30278
30279@endif libiconv
30280
30281.PHONY: maybe-install-info-libiconv install-info-libiconv
30282maybe-install-info-libiconv:
30283@if libiconv
30284maybe-install-info-libiconv: install-info-libiconv
30285
30286# libiconv doesn't support install-info.
30287install-info-libiconv:
30288
30289@endif libiconv
30290
30291.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
30292maybe-install-pdf-libiconv:
30293@if libiconv
30294maybe-install-pdf-libiconv: install-pdf-libiconv
30295
30296# libiconv doesn't support install-pdf.
30297install-pdf-libiconv:
30298
30299@endif libiconv
30300
30301.PHONY: maybe-install-html-libiconv install-html-libiconv
30302maybe-install-html-libiconv:
30303@if libiconv
30304maybe-install-html-libiconv: install-html-libiconv
30305
30306# libiconv doesn't support install-html.
30307install-html-libiconv:
30308
30309@endif libiconv
30310
30311.PHONY: maybe-installcheck-libiconv installcheck-libiconv
30312maybe-installcheck-libiconv:
30313@if libiconv
30314maybe-installcheck-libiconv: installcheck-libiconv
30315
30316installcheck-libiconv: \
30317 configure-libiconv
30318 @: $(MAKE); $(unstage)
30319 @[ -f ./libiconv/Makefile ] || exit 0; \
30320 r=`${PWD_COMMAND}`; export r; \
30321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30322 $(HOST_EXPORTS) \
30323 for flag in $(EXTRA_HOST_FLAGS) ; do \
30324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30325 done; \
30326 echo "Doing installcheck in libiconv" ; \
30327 (cd $(HOST_SUBDIR)/libiconv && \
30328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30330 "RANLIB=$${RANLIB}" \
30331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30332 installcheck) \
30333 || exit 1
30334
30335@endif libiconv
30336
30337.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
30338maybe-mostlyclean-libiconv:
30339@if libiconv
30340maybe-mostlyclean-libiconv: mostlyclean-libiconv
30341
30342mostlyclean-libiconv:
30343 @: $(MAKE); $(unstage)
30344 @[ -f ./libiconv/Makefile ] || exit 0; \
30345 r=`${PWD_COMMAND}`; export r; \
30346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30347 $(HOST_EXPORTS) \
30348 for flag in $(EXTRA_HOST_FLAGS) ; do \
30349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30350 done; \
30351 echo "Doing mostlyclean in libiconv" ; \
30352 (cd $(HOST_SUBDIR)/libiconv && \
30353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30355 "RANLIB=$${RANLIB}" \
30356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30357 mostlyclean) \
30358 || exit 1
30359
30360@endif libiconv
30361
30362.PHONY: maybe-clean-libiconv clean-libiconv
30363maybe-clean-libiconv:
30364@if libiconv
30365maybe-clean-libiconv: clean-libiconv
30366
30367clean-libiconv:
30368 @: $(MAKE); $(unstage)
30369 @[ -f ./libiconv/Makefile ] || exit 0; \
30370 r=`${PWD_COMMAND}`; export r; \
30371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30372 $(HOST_EXPORTS) \
30373 for flag in $(EXTRA_HOST_FLAGS) ; do \
30374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30375 done; \
30376 echo "Doing clean in libiconv" ; \
30377 (cd $(HOST_SUBDIR)/libiconv && \
30378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30380 "RANLIB=$${RANLIB}" \
30381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30382 clean) \
30383 || exit 1
30384
30385@endif libiconv
30386
30387.PHONY: maybe-distclean-libiconv distclean-libiconv
30388maybe-distclean-libiconv:
30389@if libiconv
30390maybe-distclean-libiconv: distclean-libiconv
30391
30392distclean-libiconv:
30393 @: $(MAKE); $(unstage)
30394 @[ -f ./libiconv/Makefile ] || exit 0; \
30395 r=`${PWD_COMMAND}`; export r; \
30396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30397 $(HOST_EXPORTS) \
30398 for flag in $(EXTRA_HOST_FLAGS) ; do \
30399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30400 done; \
30401 echo "Doing distclean in libiconv" ; \
30402 (cd $(HOST_SUBDIR)/libiconv && \
30403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30405 "RANLIB=$${RANLIB}" \
30406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30407 distclean) \
30408 || exit 1
30409
30410@endif libiconv
30411
30412.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
30413maybe-maintainer-clean-libiconv:
30414@if libiconv
30415maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
30416
30417maintainer-clean-libiconv:
30418 @: $(MAKE); $(unstage)
30419 @[ -f ./libiconv/Makefile ] || exit 0; \
30420 r=`${PWD_COMMAND}`; export r; \
30421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30422 $(HOST_EXPORTS) \
30423 for flag in $(EXTRA_HOST_FLAGS) ; do \
30424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30425 done; \
30426 echo "Doing maintainer-clean in libiconv" ; \
30427 (cd $(HOST_SUBDIR)/libiconv && \
30428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30430 "RANLIB=$${RANLIB}" \
30431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30432 maintainer-clean) \
30433 || exit 1
30434
30435@endif libiconv
30436
30437
30438
d5eec917
PB
30439.PHONY: configure-libtool maybe-configure-libtool
30440maybe-configure-libtool:
e1e5148c
CD
30441@if gcc-bootstrap
30442configure-libtool: stage_current
30443@endif gcc-bootstrap
d5eec917
PB
30444@if libtool
30445maybe-configure-libtool: configure-libtool
ec92c4d6 30446configure-libtool:
15b527ca 30447 @: $(MAKE); $(unstage)
ec92c4d6 30448 @r=`${PWD_COMMAND}`; export r; \
5230d454 30449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
30450 test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
30451 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
5074489a 30452 $(HOST_EXPORTS) \
f0fdfd34
PB
30453 echo Configuring in $(HOST_SUBDIR)/libtool; \
30454 cd "$(HOST_SUBDIR)/libtool" || exit 1; \
8ec98d6c 30455 case $(srcdir) in \
7fc2ca22
PB
30456 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30457 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
30458 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 30459 esac; \
7fc2ca22
PB
30460 srcdiroption="--srcdir=$${topdir}/libtool"; \
30461 libsrcdir="$$s/libtool"; \
8ec98d6c 30462 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
30463 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30464 --target=${target_alias} $${srcdiroption} \
657b58f4 30465 || exit 1
d5eec917 30466@endif libtool
657b58f4 30467
f0fdfd34
PB
30468
30469
a8a96878
PB
30470
30471
d5eec917
PB
30472.PHONY: all-libtool maybe-all-libtool
30473maybe-all-libtool:
e1e5148c
CD
30474@if gcc-bootstrap
30475all-libtool: stage_current
30476@endif gcc-bootstrap
d5eec917 30477@if libtool
5e6b1f07 30478TARGET-libtool=all
d5eec917
PB
30479maybe-all-libtool: all-libtool
30480all-libtool: configure-libtool
15b527ca 30481 @: $(MAKE); $(unstage)
8ec98d6c
NN
30482 @r=`${PWD_COMMAND}`; export r; \
30483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 30484 $(HOST_EXPORTS) \
7fc2ca22 30485 (cd $(HOST_SUBDIR)/libtool && \
6532abb6
PB
30486 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
30487 $(TARGET-libtool))
d5eec917 30488@endif libtool
657b58f4 30489
f0fdfd34 30490
a8a96878
PB
30491
30492
d5eec917
PB
30493.PHONY: check-libtool maybe-check-libtool
30494maybe-check-libtool:
30495@if libtool
30496maybe-check-libtool: check-libtool
657b58f4 30497
d5eec917 30498check-libtool:
15b527ca 30499 @: $(MAKE); $(unstage)
8ec98d6c 30500 @r=`${PWD_COMMAND}`; export r; \
5230d454 30501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30502 $(HOST_EXPORTS) \
7fc2ca22
PB
30503 (cd $(HOST_SUBDIR)/libtool && \
30504 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 30505
d5eec917 30506@endif libtool
657b58f4 30507
d5eec917
PB
30508.PHONY: install-libtool maybe-install-libtool
30509maybe-install-libtool:
30510@if libtool
30511maybe-install-libtool: install-libtool
657b58f4 30512
d5eec917 30513install-libtool: installdirs
15b527ca 30514 @: $(MAKE); $(unstage)
8ec98d6c 30515 @r=`${PWD_COMMAND}`; export r; \
5230d454 30516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30517 $(HOST_EXPORTS) \
7fc2ca22 30518 (cd $(HOST_SUBDIR)/libtool && \
93c60b6d 30519 $(MAKE) $(FLAGS_TO_PASS) install)
657b58f4 30520
d5eec917 30521@endif libtool
657b58f4 30522
39bbbb69 30523# Other targets (info, dvi, pdf, etc.)
657b58f4 30524
d5eec917
PB
30525.PHONY: maybe-info-libtool info-libtool
30526maybe-info-libtool:
30527@if libtool
30528maybe-info-libtool: info-libtool
8ec98d6c 30529
d5eec917
PB
30530info-libtool: \
30531 configure-libtool
15b527ca 30532 @: $(MAKE); $(unstage)
d5eec917 30533 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30534 r=`${PWD_COMMAND}`; export r; \
30535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30536 $(HOST_EXPORTS) \
d5eec917 30537 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30539 done; \
d5eec917 30540 echo "Doing info in libtool" ; \
7fc2ca22 30541 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30544 "RANLIB=$${RANLIB}" \
bffcbe34 30545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30546 info) \
657b58f4
NN
30547 || exit 1
30548
d5eec917 30549@endif libtool
657b58f4 30550
d5eec917
PB
30551.PHONY: maybe-dvi-libtool dvi-libtool
30552maybe-dvi-libtool:
30553@if libtool
30554maybe-dvi-libtool: dvi-libtool
657b58f4 30555
d5eec917
PB
30556dvi-libtool: \
30557 configure-libtool
15b527ca 30558 @: $(MAKE); $(unstage)
d5eec917 30559 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30560 r=`${PWD_COMMAND}`; export r; \
30561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30562 $(HOST_EXPORTS) \
d5eec917 30563 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30565 done; \
d5eec917 30566 echo "Doing dvi in libtool" ; \
7fc2ca22 30567 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30570 "RANLIB=$${RANLIB}" \
bffcbe34 30571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30572 dvi) \
657b58f4
NN
30573 || exit 1
30574
d5eec917 30575@endif libtool
657b58f4 30576
39bbbb69
DD
30577.PHONY: maybe-pdf-libtool pdf-libtool
30578maybe-pdf-libtool:
30579@if libtool
30580maybe-pdf-libtool: pdf-libtool
30581
30582pdf-libtool: \
30583 configure-libtool
30584 @: $(MAKE); $(unstage)
30585 @[ -f ./libtool/Makefile ] || exit 0; \
30586 r=`${PWD_COMMAND}`; export r; \
30587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30588 $(HOST_EXPORTS) \
30589 for flag in $(EXTRA_HOST_FLAGS) ; do \
30590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30591 done; \
30592 echo "Doing pdf in libtool" ; \
30593 (cd $(HOST_SUBDIR)/libtool && \
30594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30596 "RANLIB=$${RANLIB}" \
bffcbe34 30597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
30598 pdf) \
30599 || exit 1
30600
30601@endif libtool
30602
b6fb961f
MS
30603.PHONY: maybe-html-libtool html-libtool
30604maybe-html-libtool:
30605@if libtool
30606maybe-html-libtool: html-libtool
30607
30608html-libtool: \
30609 configure-libtool
15b527ca 30610 @: $(MAKE); $(unstage)
b6fb961f
MS
30611 @[ -f ./libtool/Makefile ] || exit 0; \
30612 r=`${PWD_COMMAND}`; export r; \
30613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
30614 $(HOST_EXPORTS) \
30615 for flag in $(EXTRA_HOST_FLAGS) ; do \
30616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30617 done; \
30618 echo "Doing html in libtool" ; \
7fc2ca22 30619 (cd $(HOST_SUBDIR)/libtool && \
b6fb961f
MS
30620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30622 "RANLIB=$${RANLIB}" \
bffcbe34 30623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
30624 html) \
30625 || exit 1
30626
30627@endif libtool
30628
d5eec917
PB
30629.PHONY: maybe-TAGS-libtool TAGS-libtool
30630maybe-TAGS-libtool:
30631@if libtool
30632maybe-TAGS-libtool: TAGS-libtool
657b58f4 30633
d5eec917
PB
30634TAGS-libtool: \
30635 configure-libtool
15b527ca 30636 @: $(MAKE); $(unstage)
d5eec917 30637 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30638 r=`${PWD_COMMAND}`; export r; \
30639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30640 $(HOST_EXPORTS) \
d5eec917 30641 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30643 done; \
d5eec917 30644 echo "Doing TAGS in libtool" ; \
7fc2ca22 30645 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30648 "RANLIB=$${RANLIB}" \
bffcbe34 30649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30650 TAGS) \
657b58f4
NN
30651 || exit 1
30652
d5eec917 30653@endif libtool
657b58f4 30654
d5eec917
PB
30655.PHONY: maybe-install-info-libtool install-info-libtool
30656maybe-install-info-libtool:
30657@if libtool
30658maybe-install-info-libtool: install-info-libtool
657b58f4 30659
d5eec917
PB
30660install-info-libtool: \
30661 configure-libtool \
30662 info-libtool
15b527ca 30663 @: $(MAKE); $(unstage)
d5eec917 30664 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30665 r=`${PWD_COMMAND}`; export r; \
30666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30667 $(HOST_EXPORTS) \
d5eec917 30668 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30670 done; \
d5eec917 30671 echo "Doing install-info in libtool" ; \
7fc2ca22 30672 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30675 "RANLIB=$${RANLIB}" \
bffcbe34 30676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30677 install-info) \
657b58f4
NN
30678 || exit 1
30679
d5eec917 30680@endif libtool
657b58f4 30681
d4954b6d
DD
30682.PHONY: maybe-install-pdf-libtool install-pdf-libtool
30683maybe-install-pdf-libtool:
30684@if libtool
30685maybe-install-pdf-libtool: install-pdf-libtool
30686
30687install-pdf-libtool: \
30688 configure-libtool \
30689 pdf-libtool
30690 @: $(MAKE); $(unstage)
30691 @[ -f ./libtool/Makefile ] || exit 0; \
30692 r=`${PWD_COMMAND}`; export r; \
30693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30694 $(HOST_EXPORTS) \
30695 for flag in $(EXTRA_HOST_FLAGS) ; do \
30696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30697 done; \
30698 echo "Doing install-pdf in libtool" ; \
30699 (cd $(HOST_SUBDIR)/libtool && \
30700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30702 "RANLIB=$${RANLIB}" \
bffcbe34 30703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
30704 install-pdf) \
30705 || exit 1
30706
30707@endif libtool
30708
83c9add4
CD
30709.PHONY: maybe-install-html-libtool install-html-libtool
30710maybe-install-html-libtool:
30711@if libtool
30712maybe-install-html-libtool: install-html-libtool
30713
30714install-html-libtool: \
30715 configure-libtool \
30716 html-libtool
30717 @: $(MAKE); $(unstage)
30718 @[ -f ./libtool/Makefile ] || exit 0; \
30719 r=`${PWD_COMMAND}`; export r; \
30720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30721 $(HOST_EXPORTS) \
30722 for flag in $(EXTRA_HOST_FLAGS) ; do \
30723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30724 done; \
30725 echo "Doing install-html in libtool" ; \
30726 (cd $(HOST_SUBDIR)/libtool && \
30727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30729 "RANLIB=$${RANLIB}" \
bffcbe34 30730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
30731 install-html) \
30732 || exit 1
30733
30734@endif libtool
30735
d5eec917
PB
30736.PHONY: maybe-installcheck-libtool installcheck-libtool
30737maybe-installcheck-libtool:
30738@if libtool
30739maybe-installcheck-libtool: installcheck-libtool
657b58f4 30740
d5eec917
PB
30741installcheck-libtool: \
30742 configure-libtool
15b527ca 30743 @: $(MAKE); $(unstage)
d5eec917 30744 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30745 r=`${PWD_COMMAND}`; export r; \
30746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30747 $(HOST_EXPORTS) \
d5eec917 30748 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30750 done; \
d5eec917 30751 echo "Doing installcheck in libtool" ; \
7fc2ca22 30752 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30755 "RANLIB=$${RANLIB}" \
bffcbe34 30756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30757 installcheck) \
657b58f4
NN
30758 || exit 1
30759
d5eec917 30760@endif libtool
657b58f4 30761
d5eec917
PB
30762.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
30763maybe-mostlyclean-libtool:
30764@if libtool
30765maybe-mostlyclean-libtool: mostlyclean-libtool
657b58f4 30766
d5eec917 30767mostlyclean-libtool:
15b527ca 30768 @: $(MAKE); $(unstage)
d5eec917 30769 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30770 r=`${PWD_COMMAND}`; export r; \
30771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30772 $(HOST_EXPORTS) \
d5eec917 30773 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30775 done; \
d5eec917 30776 echo "Doing mostlyclean in libtool" ; \
7fc2ca22 30777 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30780 "RANLIB=$${RANLIB}" \
bffcbe34 30781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30782 mostlyclean) \
657b58f4
NN
30783 || exit 1
30784
d5eec917 30785@endif libtool
657b58f4 30786
d5eec917
PB
30787.PHONY: maybe-clean-libtool clean-libtool
30788maybe-clean-libtool:
30789@if libtool
30790maybe-clean-libtool: clean-libtool
657b58f4 30791
d5eec917 30792clean-libtool:
15b527ca 30793 @: $(MAKE); $(unstage)
d5eec917 30794 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30795 r=`${PWD_COMMAND}`; export r; \
30796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30797 $(HOST_EXPORTS) \
d5eec917 30798 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30800 done; \
d5eec917 30801 echo "Doing clean in libtool" ; \
7fc2ca22 30802 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30805 "RANLIB=$${RANLIB}" \
bffcbe34 30806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30807 clean) \
657b58f4
NN
30808 || exit 1
30809
d5eec917 30810@endif libtool
657b58f4 30811
d5eec917
PB
30812.PHONY: maybe-distclean-libtool distclean-libtool
30813maybe-distclean-libtool:
30814@if libtool
30815maybe-distclean-libtool: distclean-libtool
657b58f4 30816
d5eec917 30817distclean-libtool:
15b527ca 30818 @: $(MAKE); $(unstage)
d5eec917 30819 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30820 r=`${PWD_COMMAND}`; export r; \
30821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30822 $(HOST_EXPORTS) \
d5eec917 30823 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30825 done; \
d5eec917 30826 echo "Doing distclean in libtool" ; \
7fc2ca22 30827 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30830 "RANLIB=$${RANLIB}" \
bffcbe34 30831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30832 distclean) \
657b58f4
NN
30833 || exit 1
30834
d5eec917 30835@endif libtool
657b58f4 30836
d5eec917
PB
30837.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
30838maybe-maintainer-clean-libtool:
30839@if libtool
30840maybe-maintainer-clean-libtool: maintainer-clean-libtool
657b58f4 30841
d5eec917 30842maintainer-clean-libtool:
15b527ca 30843 @: $(MAKE); $(unstage)
d5eec917 30844 @[ -f ./libtool/Makefile ] || exit 0; \
5230d454
L
30845 r=`${PWD_COMMAND}`; export r; \
30846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30847 $(HOST_EXPORTS) \
d5eec917 30848 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30850 done; \
d5eec917 30851 echo "Doing maintainer-clean in libtool" ; \
7fc2ca22 30852 (cd $(HOST_SUBDIR)/libtool && \
657b58f4
NN
30853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30855 "RANLIB=$${RANLIB}" \
bffcbe34 30856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30857 maintainer-clean) \
657b58f4
NN
30858 || exit 1
30859
d5eec917 30860@endif libtool
657b58f4 30861
657b58f4 30862
f0fdfd34 30863
d5eec917
PB
30864.PHONY: configure-m4 maybe-configure-m4
30865maybe-configure-m4:
e1e5148c
CD
30866@if gcc-bootstrap
30867configure-m4: stage_current
30868@endif gcc-bootstrap
d5eec917
PB
30869@if m4
30870maybe-configure-m4: configure-m4
ec92c4d6 30871configure-m4:
15b527ca 30872 @: $(MAKE); $(unstage)
ec92c4d6 30873 @r=`${PWD_COMMAND}`; export r; \
5230d454 30874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
30875 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
30876 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
5074489a 30877 $(HOST_EXPORTS) \
f0fdfd34
PB
30878 echo Configuring in $(HOST_SUBDIR)/m4; \
30879 cd "$(HOST_SUBDIR)/m4" || exit 1; \
8ec98d6c 30880 case $(srcdir) in \
7fc2ca22
PB
30881 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30882 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
30883 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 30884 esac; \
7fc2ca22
PB
30885 srcdiroption="--srcdir=$${topdir}/m4"; \
30886 libsrcdir="$$s/m4"; \
8ec98d6c 30887 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
30888 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30889 --target=${target_alias} $${srcdiroption} \
657b58f4 30890 || exit 1
d5eec917 30891@endif m4
657b58f4 30892
f0fdfd34
PB
30893
30894
a8a96878
PB
30895
30896
d5eec917
PB
30897.PHONY: all-m4 maybe-all-m4
30898maybe-all-m4:
e1e5148c
CD
30899@if gcc-bootstrap
30900all-m4: stage_current
30901@endif gcc-bootstrap
d5eec917 30902@if m4
5e6b1f07 30903TARGET-m4=all
d5eec917
PB
30904maybe-all-m4: all-m4
30905all-m4: configure-m4
15b527ca 30906 @: $(MAKE); $(unstage)
8ec98d6c
NN
30907 @r=`${PWD_COMMAND}`; export r; \
30908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 30909 $(HOST_EXPORTS) \
7fc2ca22 30910 (cd $(HOST_SUBDIR)/m4 && \
6532abb6
PB
30911 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
30912 $(TARGET-m4))
d5eec917 30913@endif m4
8ec98d6c 30914
f0fdfd34 30915
a8a96878
PB
30916
30917
d5eec917
PB
30918.PHONY: check-m4 maybe-check-m4
30919maybe-check-m4:
30920@if m4
30921maybe-check-m4: check-m4
657b58f4 30922
d5eec917 30923check-m4:
15b527ca 30924 @: $(MAKE); $(unstage)
8ec98d6c
NN
30925 @r=`${PWD_COMMAND}`; export r; \
30926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30927 $(HOST_EXPORTS) \
7fc2ca22
PB
30928 (cd $(HOST_SUBDIR)/m4 && \
30929 $(MAKE) $(FLAGS_TO_PASS) check)
657b58f4 30930
d5eec917 30931@endif m4
8ec98d6c 30932
d5eec917
PB
30933.PHONY: install-m4 maybe-install-m4
30934maybe-install-m4:
30935@if m4
30936maybe-install-m4: install-m4
8ec98d6c 30937
d5eec917 30938install-m4: installdirs
15b527ca 30939 @: $(MAKE); $(unstage)
8ec98d6c
NN
30940 @r=`${PWD_COMMAND}`; export r; \
30941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30942 $(HOST_EXPORTS) \
7fc2ca22 30943 (cd $(HOST_SUBDIR)/m4 && \
93c60b6d 30944 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 30945
d5eec917 30946@endif m4
8ec98d6c 30947
39bbbb69 30948# Other targets (info, dvi, pdf, etc.)
8ec98d6c 30949
d5eec917
PB
30950.PHONY: maybe-info-m4 info-m4
30951maybe-info-m4:
30952@if m4
30953maybe-info-m4: info-m4
8ec98d6c 30954
d5eec917
PB
30955info-m4: \
30956 configure-m4
15b527ca 30957 @: $(MAKE); $(unstage)
d5eec917 30958 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
30959 r=`${PWD_COMMAND}`; export r; \
30960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30961 $(HOST_EXPORTS) \
d5eec917 30962 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30964 done; \
d5eec917 30965 echo "Doing info in m4" ; \
7fc2ca22 30966 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
30967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30969 "RANLIB=$${RANLIB}" \
bffcbe34 30970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30971 info) \
657b58f4
NN
30972 || exit 1
30973
d5eec917 30974@endif m4
657b58f4 30975
d5eec917
PB
30976.PHONY: maybe-dvi-m4 dvi-m4
30977maybe-dvi-m4:
30978@if m4
30979maybe-dvi-m4: dvi-m4
657b58f4 30980
d5eec917
PB
30981dvi-m4: \
30982 configure-m4
15b527ca 30983 @: $(MAKE); $(unstage)
d5eec917 30984 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
30985 r=`${PWD_COMMAND}`; export r; \
30986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 30987 $(HOST_EXPORTS) \
d5eec917 30988 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
30989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30990 done; \
d5eec917 30991 echo "Doing dvi in m4" ; \
7fc2ca22 30992 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
30993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30995 "RANLIB=$${RANLIB}" \
bffcbe34 30996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 30997 dvi) \
657b58f4
NN
30998 || exit 1
30999
d5eec917 31000@endif m4
657b58f4 31001
39bbbb69
DD
31002.PHONY: maybe-pdf-m4 pdf-m4
31003maybe-pdf-m4:
31004@if m4
31005maybe-pdf-m4: pdf-m4
31006
31007pdf-m4: \
31008 configure-m4
31009 @: $(MAKE); $(unstage)
31010 @[ -f ./m4/Makefile ] || exit 0; \
31011 r=`${PWD_COMMAND}`; export r; \
31012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31013 $(HOST_EXPORTS) \
31014 for flag in $(EXTRA_HOST_FLAGS) ; do \
31015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31016 done; \
31017 echo "Doing pdf in m4" ; \
31018 (cd $(HOST_SUBDIR)/m4 && \
31019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31021 "RANLIB=$${RANLIB}" \
bffcbe34 31022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
31023 pdf) \
31024 || exit 1
31025
31026@endif m4
31027
b6fb961f
MS
31028.PHONY: maybe-html-m4 html-m4
31029maybe-html-m4:
31030@if m4
31031maybe-html-m4: html-m4
31032
31033html-m4: \
31034 configure-m4
15b527ca 31035 @: $(MAKE); $(unstage)
b6fb961f
MS
31036 @[ -f ./m4/Makefile ] || exit 0; \
31037 r=`${PWD_COMMAND}`; export r; \
31038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
31039 $(HOST_EXPORTS) \
31040 for flag in $(EXTRA_HOST_FLAGS) ; do \
31041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31042 done; \
31043 echo "Doing html in m4" ; \
7fc2ca22 31044 (cd $(HOST_SUBDIR)/m4 && \
b6fb961f
MS
31045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31047 "RANLIB=$${RANLIB}" \
bffcbe34 31048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
31049 html) \
31050 || exit 1
31051
31052@endif m4
31053
d5eec917
PB
31054.PHONY: maybe-TAGS-m4 TAGS-m4
31055maybe-TAGS-m4:
31056@if m4
31057maybe-TAGS-m4: TAGS-m4
657b58f4 31058
d5eec917
PB
31059TAGS-m4: \
31060 configure-m4
15b527ca 31061 @: $(MAKE); $(unstage)
d5eec917 31062 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
31063 r=`${PWD_COMMAND}`; export r; \
31064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31065 $(HOST_EXPORTS) \
d5eec917 31066 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
31067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31068 done; \
d5eec917 31069 echo "Doing TAGS in m4" ; \
7fc2ca22 31070 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
31071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31073 "RANLIB=$${RANLIB}" \
bffcbe34 31074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31075 TAGS) \
657b58f4
NN
31076 || exit 1
31077
d5eec917 31078@endif m4
657b58f4 31079
d5eec917
PB
31080.PHONY: maybe-install-info-m4 install-info-m4
31081maybe-install-info-m4:
31082@if m4
31083maybe-install-info-m4: install-info-m4
657b58f4 31084
d5eec917
PB
31085install-info-m4: \
31086 configure-m4 \
31087 info-m4
15b527ca 31088 @: $(MAKE); $(unstage)
d5eec917 31089 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
31090 r=`${PWD_COMMAND}`; export r; \
31091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31092 $(HOST_EXPORTS) \
d5eec917 31093 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
31094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31095 done; \
d5eec917 31096 echo "Doing install-info in m4" ; \
7fc2ca22 31097 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
31098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31100 "RANLIB=$${RANLIB}" \
bffcbe34 31101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31102 install-info) \
657b58f4
NN
31103 || exit 1
31104
d5eec917 31105@endif m4
657b58f4 31106
d4954b6d
DD
31107.PHONY: maybe-install-pdf-m4 install-pdf-m4
31108maybe-install-pdf-m4:
31109@if m4
31110maybe-install-pdf-m4: install-pdf-m4
31111
31112install-pdf-m4: \
31113 configure-m4 \
31114 pdf-m4
31115 @: $(MAKE); $(unstage)
31116 @[ -f ./m4/Makefile ] || exit 0; \
31117 r=`${PWD_COMMAND}`; export r; \
31118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31119 $(HOST_EXPORTS) \
31120 for flag in $(EXTRA_HOST_FLAGS) ; do \
31121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31122 done; \
31123 echo "Doing install-pdf in m4" ; \
31124 (cd $(HOST_SUBDIR)/m4 && \
31125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31127 "RANLIB=$${RANLIB}" \
bffcbe34 31128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31129 install-pdf) \
31130 || exit 1
31131
31132@endif m4
31133
83c9add4
CD
31134.PHONY: maybe-install-html-m4 install-html-m4
31135maybe-install-html-m4:
31136@if m4
31137maybe-install-html-m4: install-html-m4
31138
31139install-html-m4: \
31140 configure-m4 \
31141 html-m4
31142 @: $(MAKE); $(unstage)
31143 @[ -f ./m4/Makefile ] || exit 0; \
31144 r=`${PWD_COMMAND}`; export r; \
31145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31146 $(HOST_EXPORTS) \
31147 for flag in $(EXTRA_HOST_FLAGS) ; do \
31148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31149 done; \
31150 echo "Doing install-html in m4" ; \
31151 (cd $(HOST_SUBDIR)/m4 && \
31152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31154 "RANLIB=$${RANLIB}" \
bffcbe34 31155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
31156 install-html) \
31157 || exit 1
31158
31159@endif m4
31160
d5eec917
PB
31161.PHONY: maybe-installcheck-m4 installcheck-m4
31162maybe-installcheck-m4:
31163@if m4
31164maybe-installcheck-m4: installcheck-m4
657b58f4 31165
d5eec917
PB
31166installcheck-m4: \
31167 configure-m4
15b527ca 31168 @: $(MAKE); $(unstage)
d5eec917 31169 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
31170 r=`${PWD_COMMAND}`; export r; \
31171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31172 $(HOST_EXPORTS) \
d5eec917 31173 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
31174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31175 done; \
d5eec917 31176 echo "Doing installcheck in m4" ; \
7fc2ca22 31177 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
31178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31180 "RANLIB=$${RANLIB}" \
bffcbe34 31181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31182 installcheck) \
657b58f4
NN
31183 || exit 1
31184
d5eec917 31185@endif m4
657b58f4 31186
d5eec917
PB
31187.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
31188maybe-mostlyclean-m4:
31189@if m4
31190maybe-mostlyclean-m4: mostlyclean-m4
657b58f4 31191
d5eec917 31192mostlyclean-m4:
15b527ca 31193 @: $(MAKE); $(unstage)
d5eec917 31194 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
31195 r=`${PWD_COMMAND}`; export r; \
31196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31197 $(HOST_EXPORTS) \
d5eec917 31198 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
31199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31200 done; \
d5eec917 31201 echo "Doing mostlyclean in m4" ; \
7fc2ca22 31202 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
31203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31205 "RANLIB=$${RANLIB}" \
bffcbe34 31206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31207 mostlyclean) \
657b58f4
NN
31208 || exit 1
31209
d5eec917 31210@endif m4
657b58f4 31211
d5eec917
PB
31212.PHONY: maybe-clean-m4 clean-m4
31213maybe-clean-m4:
31214@if m4
31215maybe-clean-m4: clean-m4
657b58f4 31216
d5eec917 31217clean-m4:
15b527ca 31218 @: $(MAKE); $(unstage)
d5eec917 31219 @[ -f ./m4/Makefile ] || exit 0; \
5230d454
L
31220 r=`${PWD_COMMAND}`; export r; \
31221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31222 $(HOST_EXPORTS) \
d5eec917 31223 for flag in $(EXTRA_HOST_FLAGS) ; do \
657b58f4
NN
31224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31225 done; \
d5eec917 31226 echo "Doing clean in m4" ; \
7fc2ca22 31227 (cd $(HOST_SUBDIR)/m4 && \
657b58f4
NN
31228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31230 "RANLIB=$${RANLIB}" \
bffcbe34 31231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31232 clean) \
657b58f4
NN
31233 || exit 1
31234
d5eec917 31235@endif m4
657b58f4 31236
d5eec917
PB
31237.PHONY: maybe-distclean-m4 distclean-m4
31238maybe-distclean-m4:
31239@if m4
31240maybe-distclean-m4: distclean-m4
d832a288 31241
d5eec917 31242distclean-m4:
15b527ca 31243 @: $(MAKE); $(unstage)
d5eec917 31244 @[ -f ./m4/Makefile ] || exit 0; \
d832a288
DD
31245 r=`${PWD_COMMAND}`; export r; \
31246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31247 $(HOST_EXPORTS) \
d5eec917 31248 for flag in $(EXTRA_HOST_FLAGS) ; do \
d832a288
DD
31249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31250 done; \
d5eec917 31251 echo "Doing distclean in m4" ; \
7fc2ca22 31252 (cd $(HOST_SUBDIR)/m4 && \
d832a288
DD
31253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31255 "RANLIB=$${RANLIB}" \
bffcbe34 31256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31257 distclean) \
d832a288
DD
31258 || exit 1
31259
d5eec917 31260@endif m4
d832a288 31261
d5eec917
PB
31262.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
31263maybe-maintainer-clean-m4:
31264@if m4
31265maybe-maintainer-clean-m4: maintainer-clean-m4
657b58f4 31266
d5eec917 31267maintainer-clean-m4:
15b527ca 31268 @: $(MAKE); $(unstage)
d5eec917 31269 @[ -f ./m4/Makefile ] || exit 0; \
8ec98d6c 31270 r=`${PWD_COMMAND}`; export r; \
5230d454 31271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31272 $(HOST_EXPORTS) \
d5eec917 31273 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31275 done; \
d5eec917 31276 echo "Doing maintainer-clean in m4" ; \
7fc2ca22 31277 (cd $(HOST_SUBDIR)/m4 && \
8ec98d6c
NN
31278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31280 "RANLIB=$${RANLIB}" \
bffcbe34 31281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31282 maintainer-clean) \
8ec98d6c 31283 || exit 1
a3acbf46 31284
d5eec917 31285@endif m4
a3acbf46 31286
a3acbf46 31287
f0fdfd34 31288
d5eec917
PB
31289.PHONY: configure-make maybe-configure-make
31290maybe-configure-make:
e1e5148c
CD
31291@if gcc-bootstrap
31292configure-make: stage_current
31293@endif gcc-bootstrap
d5eec917
PB
31294@if make
31295maybe-configure-make: configure-make
ec92c4d6 31296configure-make:
15b527ca 31297 @: $(MAKE); $(unstage)
ec92c4d6 31298 @r=`${PWD_COMMAND}`; export r; \
d5eec917 31299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
31300 test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
31301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
5074489a 31302 $(HOST_EXPORTS) \
f0fdfd34
PB
31303 echo Configuring in $(HOST_SUBDIR)/make; \
31304 cd "$(HOST_SUBDIR)/make" || exit 1; \
8ec98d6c 31305 case $(srcdir) in \
7fc2ca22
PB
31306 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31307 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
31308 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8ec98d6c 31309 esac; \
7fc2ca22
PB
31310 srcdiroption="--srcdir=$${topdir}/make"; \
31311 libsrcdir="$$s/make"; \
8ec98d6c 31312 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
31313 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31314 --target=${target_alias} $${srcdiroption} \
8ec98d6c 31315 || exit 1
d5eec917 31316@endif make
a3acbf46 31317
f0fdfd34
PB
31318
31319
a8a96878
PB
31320
31321
d5eec917
PB
31322.PHONY: all-make maybe-all-make
31323maybe-all-make:
e1e5148c
CD
31324@if gcc-bootstrap
31325all-make: stage_current
31326@endif gcc-bootstrap
d5eec917 31327@if make
5e6b1f07 31328TARGET-make=all
d5eec917
PB
31329maybe-all-make: all-make
31330all-make: configure-make
15b527ca 31331 @: $(MAKE); $(unstage)
8ec98d6c
NN
31332 @r=`${PWD_COMMAND}`; export r; \
31333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 31334 $(HOST_EXPORTS) \
7fc2ca22 31335 (cd $(HOST_SUBDIR)/make && \
6532abb6
PB
31336 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
31337 $(TARGET-make))
d5eec917 31338@endif make
a3acbf46 31339
f0fdfd34 31340
a8a96878
PB
31341
31342
d5eec917
PB
31343.PHONY: check-make maybe-check-make
31344maybe-check-make:
31345@if make
31346maybe-check-make: check-make
a3acbf46 31347
d5eec917 31348check-make:
15b527ca 31349 @: $(MAKE); $(unstage)
d5eec917
PB
31350 @r=`${PWD_COMMAND}`; export r; \
31351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 31352 $(HOST_EXPORTS) \
7fc2ca22
PB
31353 (cd $(HOST_SUBDIR)/make && \
31354 $(MAKE) $(FLAGS_TO_PASS) check)
9b520963 31355
d5eec917 31356@endif make
70ffc148 31357
d5eec917
PB
31358.PHONY: install-make maybe-install-make
31359maybe-install-make:
31360@if make
31361maybe-install-make: install-make
8ec98d6c 31362
d5eec917 31363install-make: installdirs
15b527ca 31364 @: $(MAKE); $(unstage)
8ec98d6c
NN
31365 @r=`${PWD_COMMAND}`; export r; \
31366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31367 $(HOST_EXPORTS) \
7fc2ca22 31368 (cd $(HOST_SUBDIR)/make && \
93c60b6d 31369 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 31370
d5eec917 31371@endif make
8ec98d6c 31372
39bbbb69 31373# Other targets (info, dvi, pdf, etc.)
8ec98d6c 31374
d5eec917
PB
31375.PHONY: maybe-info-make info-make
31376maybe-info-make:
31377@if make
31378maybe-info-make: info-make
8ec98d6c 31379
d5eec917
PB
31380info-make: \
31381 configure-make
15b527ca 31382 @: $(MAKE); $(unstage)
d5eec917 31383 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31384 r=`${PWD_COMMAND}`; export r; \
31385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31386 $(HOST_EXPORTS) \
d5eec917 31387 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31389 done; \
d5eec917 31390 echo "Doing info in make" ; \
7fc2ca22 31391 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31394 "RANLIB=$${RANLIB}" \
bffcbe34 31395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31396 info) \
8ec98d6c
NN
31397 || exit 1
31398
d5eec917 31399@endif make
8ec98d6c 31400
d5eec917
PB
31401.PHONY: maybe-dvi-make dvi-make
31402maybe-dvi-make:
31403@if make
31404maybe-dvi-make: dvi-make
8ec98d6c 31405
d5eec917
PB
31406dvi-make: \
31407 configure-make
15b527ca 31408 @: $(MAKE); $(unstage)
d5eec917 31409 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31410 r=`${PWD_COMMAND}`; export r; \
31411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31412 $(HOST_EXPORTS) \
d5eec917 31413 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31415 done; \
d5eec917 31416 echo "Doing dvi in make" ; \
7fc2ca22 31417 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31420 "RANLIB=$${RANLIB}" \
bffcbe34 31421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31422 dvi) \
8ec98d6c 31423 || exit 1
70ffc148 31424
d5eec917 31425@endif make
a3acbf46 31426
39bbbb69
DD
31427.PHONY: maybe-pdf-make pdf-make
31428maybe-pdf-make:
31429@if make
31430maybe-pdf-make: pdf-make
31431
31432pdf-make: \
31433 configure-make
31434 @: $(MAKE); $(unstage)
31435 @[ -f ./make/Makefile ] || exit 0; \
31436 r=`${PWD_COMMAND}`; export r; \
31437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31438 $(HOST_EXPORTS) \
31439 for flag in $(EXTRA_HOST_FLAGS) ; do \
31440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31441 done; \
31442 echo "Doing pdf in make" ; \
31443 (cd $(HOST_SUBDIR)/make && \
31444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31446 "RANLIB=$${RANLIB}" \
bffcbe34 31447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
31448 pdf) \
31449 || exit 1
31450
31451@endif make
31452
b6fb961f
MS
31453.PHONY: maybe-html-make html-make
31454maybe-html-make:
31455@if make
31456maybe-html-make: html-make
31457
31458html-make: \
31459 configure-make
15b527ca 31460 @: $(MAKE); $(unstage)
b6fb961f
MS
31461 @[ -f ./make/Makefile ] || exit 0; \
31462 r=`${PWD_COMMAND}`; export r; \
31463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
31464 $(HOST_EXPORTS) \
31465 for flag in $(EXTRA_HOST_FLAGS) ; do \
31466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31467 done; \
31468 echo "Doing html in make" ; \
7fc2ca22 31469 (cd $(HOST_SUBDIR)/make && \
b6fb961f
MS
31470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31472 "RANLIB=$${RANLIB}" \
bffcbe34 31473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
31474 html) \
31475 || exit 1
31476
31477@endif make
31478
d5eec917
PB
31479.PHONY: maybe-TAGS-make TAGS-make
31480maybe-TAGS-make:
31481@if make
31482maybe-TAGS-make: TAGS-make
a3acbf46 31483
d5eec917
PB
31484TAGS-make: \
31485 configure-make
15b527ca 31486 @: $(MAKE); $(unstage)
d5eec917 31487 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31488 r=`${PWD_COMMAND}`; export r; \
31489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31490 $(HOST_EXPORTS) \
d5eec917 31491 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31493 done; \
d5eec917 31494 echo "Doing TAGS in make" ; \
7fc2ca22 31495 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31498 "RANLIB=$${RANLIB}" \
bffcbe34 31499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31500 TAGS) \
8ec98d6c 31501 || exit 1
8ecc6504 31502
d5eec917 31503@endif make
8ecc6504 31504
d5eec917
PB
31505.PHONY: maybe-install-info-make install-info-make
31506maybe-install-info-make:
31507@if make
31508maybe-install-info-make: install-info-make
8ecc6504 31509
d5eec917
PB
31510install-info-make: \
31511 configure-make \
31512 info-make
15b527ca 31513 @: $(MAKE); $(unstage)
d5eec917 31514 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31515 r=`${PWD_COMMAND}`; export r; \
31516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31517 $(HOST_EXPORTS) \
d5eec917 31518 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31520 done; \
d5eec917 31521 echo "Doing install-info in make" ; \
7fc2ca22 31522 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31525 "RANLIB=$${RANLIB}" \
bffcbe34 31526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31527 install-info) \
8ec98d6c 31528 || exit 1
8ecc6504 31529
d5eec917 31530@endif make
8ecc6504 31531
d4954b6d
DD
31532.PHONY: maybe-install-pdf-make install-pdf-make
31533maybe-install-pdf-make:
31534@if make
31535maybe-install-pdf-make: install-pdf-make
31536
31537install-pdf-make: \
31538 configure-make \
31539 pdf-make
31540 @: $(MAKE); $(unstage)
31541 @[ -f ./make/Makefile ] || exit 0; \
31542 r=`${PWD_COMMAND}`; export r; \
31543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31544 $(HOST_EXPORTS) \
31545 for flag in $(EXTRA_HOST_FLAGS) ; do \
31546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31547 done; \
31548 echo "Doing install-pdf in make" ; \
31549 (cd $(HOST_SUBDIR)/make && \
31550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31552 "RANLIB=$${RANLIB}" \
bffcbe34 31553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31554 install-pdf) \
31555 || exit 1
31556
31557@endif make
31558
83c9add4
CD
31559.PHONY: maybe-install-html-make install-html-make
31560maybe-install-html-make:
31561@if make
31562maybe-install-html-make: install-html-make
31563
31564install-html-make: \
31565 configure-make \
31566 html-make
31567 @: $(MAKE); $(unstage)
31568 @[ -f ./make/Makefile ] || exit 0; \
31569 r=`${PWD_COMMAND}`; export r; \
31570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31571 $(HOST_EXPORTS) \
31572 for flag in $(EXTRA_HOST_FLAGS) ; do \
31573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31574 done; \
31575 echo "Doing install-html in make" ; \
31576 (cd $(HOST_SUBDIR)/make && \
31577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31579 "RANLIB=$${RANLIB}" \
bffcbe34 31580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
31581 install-html) \
31582 || exit 1
31583
31584@endif make
31585
d5eec917
PB
31586.PHONY: maybe-installcheck-make installcheck-make
31587maybe-installcheck-make:
31588@if make
31589maybe-installcheck-make: installcheck-make
43bdb69a 31590
d5eec917
PB
31591installcheck-make: \
31592 configure-make
15b527ca 31593 @: $(MAKE); $(unstage)
d5eec917 31594 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31595 r=`${PWD_COMMAND}`; export r; \
31596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31597 $(HOST_EXPORTS) \
d5eec917 31598 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31600 done; \
d5eec917 31601 echo "Doing installcheck in make" ; \
7fc2ca22 31602 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31605 "RANLIB=$${RANLIB}" \
bffcbe34 31606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31607 installcheck) \
8ec98d6c 31608 || exit 1
43bdb69a 31609
d5eec917 31610@endif make
43bdb69a 31611
d5eec917
PB
31612.PHONY: maybe-mostlyclean-make mostlyclean-make
31613maybe-mostlyclean-make:
31614@if make
31615maybe-mostlyclean-make: mostlyclean-make
43bdb69a 31616
d5eec917 31617mostlyclean-make:
15b527ca 31618 @: $(MAKE); $(unstage)
d5eec917 31619 @[ -f ./make/Makefile ] || exit 0; \
5230d454
L
31620 r=`${PWD_COMMAND}`; export r; \
31621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31622 $(HOST_EXPORTS) \
d5eec917 31623 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31625 done; \
d5eec917 31626 echo "Doing mostlyclean in make" ; \
7fc2ca22 31627 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31630 "RANLIB=$${RANLIB}" \
bffcbe34 31631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31632 mostlyclean) \
2245eb63 31633 || exit 1
43bdb69a 31634
d5eec917 31635@endif make
8ec98d6c 31636
d5eec917
PB
31637.PHONY: maybe-clean-make clean-make
31638maybe-clean-make:
31639@if make
31640maybe-clean-make: clean-make
8ec98d6c 31641
d5eec917 31642clean-make:
15b527ca 31643 @: $(MAKE); $(unstage)
d5eec917 31644 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31645 r=`${PWD_COMMAND}`; export r; \
31646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31647 $(HOST_EXPORTS) \
d5eec917 31648 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31650 done; \
d5eec917 31651 echo "Doing clean in make" ; \
7fc2ca22 31652 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31655 "RANLIB=$${RANLIB}" \
bffcbe34 31656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31657 clean) \
8ec98d6c
NN
31658 || exit 1
31659
d5eec917 31660@endif make
8ec98d6c 31661
d5eec917
PB
31662.PHONY: maybe-distclean-make distclean-make
31663maybe-distclean-make:
31664@if make
31665maybe-distclean-make: distclean-make
8ec98d6c 31666
d5eec917 31667distclean-make:
15b527ca 31668 @: $(MAKE); $(unstage)
d5eec917 31669 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c
NN
31670 r=`${PWD_COMMAND}`; export r; \
31671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31672 $(HOST_EXPORTS) \
d5eec917 31673 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31675 done; \
d5eec917 31676 echo "Doing distclean in make" ; \
7fc2ca22 31677 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31680 "RANLIB=$${RANLIB}" \
bffcbe34 31681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31682 distclean) \
8ec98d6c
NN
31683 || exit 1
31684
d5eec917 31685@endif make
8ec98d6c 31686
d5eec917
PB
31687.PHONY: maybe-maintainer-clean-make maintainer-clean-make
31688maybe-maintainer-clean-make:
31689@if make
31690maybe-maintainer-clean-make: maintainer-clean-make
8ec98d6c 31691
d5eec917 31692maintainer-clean-make:
15b527ca 31693 @: $(MAKE); $(unstage)
d5eec917 31694 @[ -f ./make/Makefile ] || exit 0; \
8ec98d6c 31695 r=`${PWD_COMMAND}`; export r; \
5230d454 31696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31697 $(HOST_EXPORTS) \
d5eec917 31698 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31700 done; \
d5eec917 31701 echo "Doing maintainer-clean in make" ; \
7fc2ca22 31702 (cd $(HOST_SUBDIR)/make && \
8ec98d6c
NN
31703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31705 "RANLIB=$${RANLIB}" \
bffcbe34 31706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31707 maintainer-clean) \
8ec98d6c 31708 || exit 1
8ecc6504 31709
d5eec917 31710@endif make
8ecc6504 31711
8ecc6504 31712
f0fdfd34 31713
d5eec917
PB
31714.PHONY: configure-mmalloc maybe-configure-mmalloc
31715maybe-configure-mmalloc:
e1e5148c
CD
31716@if gcc-bootstrap
31717configure-mmalloc: stage_current
31718@endif gcc-bootstrap
d5eec917
PB
31719@if mmalloc
31720maybe-configure-mmalloc: configure-mmalloc
ec92c4d6 31721configure-mmalloc:
15b527ca 31722 @: $(MAKE); $(unstage)
ec92c4d6 31723 @r=`${PWD_COMMAND}`; export r; \
5230d454 31724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
31725 test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
31726 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
5074489a 31727 $(HOST_EXPORTS) \
f0fdfd34
PB
31728 echo Configuring in $(HOST_SUBDIR)/mmalloc; \
31729 cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \
94f860c0 31730 case $(srcdir) in \
7fc2ca22
PB
31731 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31732 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
31733 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 31734 esac; \
7fc2ca22
PB
31735 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
31736 libsrcdir="$$s/mmalloc"; \
94f860c0 31737 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
31738 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31739 --target=${target_alias} $${srcdiroption} \
94f860c0 31740 || exit 1
d5eec917 31741@endif mmalloc
94f860c0 31742
f0fdfd34
PB
31743
31744
a8a96878
PB
31745
31746
d5eec917
PB
31747.PHONY: all-mmalloc maybe-all-mmalloc
31748maybe-all-mmalloc:
e1e5148c
CD
31749@if gcc-bootstrap
31750all-mmalloc: stage_current
31751@endif gcc-bootstrap
d5eec917 31752@if mmalloc
5e6b1f07 31753TARGET-mmalloc=all
d5eec917
PB
31754maybe-all-mmalloc: all-mmalloc
31755all-mmalloc: configure-mmalloc
15b527ca 31756 @: $(MAKE); $(unstage)
5230d454
L
31757 @r=`${PWD_COMMAND}`; export r; \
31758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 31759 $(HOST_EXPORTS) \
7fc2ca22 31760 (cd $(HOST_SUBDIR)/mmalloc && \
6532abb6
PB
31761 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
31762 $(TARGET-mmalloc))
d5eec917 31763@endif mmalloc
8ecc6504 31764
f0fdfd34 31765
a8a96878
PB
31766
31767
d5eec917
PB
31768.PHONY: check-mmalloc maybe-check-mmalloc
31769maybe-check-mmalloc:
31770@if mmalloc
31771maybe-check-mmalloc: check-mmalloc
8ecc6504 31772
d5eec917 31773check-mmalloc:
8ecc6504 31774
d5eec917 31775@endif mmalloc
8ecc6504 31776
d5eec917
PB
31777.PHONY: install-mmalloc maybe-install-mmalloc
31778maybe-install-mmalloc:
31779@if mmalloc
31780maybe-install-mmalloc: install-mmalloc
8ec98d6c 31781
d5eec917 31782install-mmalloc: installdirs
15b527ca 31783 @: $(MAKE); $(unstage)
8ec98d6c
NN
31784 @r=`${PWD_COMMAND}`; export r; \
31785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31786 $(HOST_EXPORTS) \
7fc2ca22 31787 (cd $(HOST_SUBDIR)/mmalloc && \
93c60b6d 31788 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 31789
d5eec917 31790@endif mmalloc
8ec98d6c 31791
39bbbb69 31792# Other targets (info, dvi, pdf, etc.)
8ec98d6c 31793
d5eec917
PB
31794.PHONY: maybe-info-mmalloc info-mmalloc
31795maybe-info-mmalloc:
31796@if mmalloc
31797maybe-info-mmalloc: info-mmalloc
8ec98d6c 31798
d5eec917
PB
31799info-mmalloc: \
31800 configure-mmalloc
15b527ca 31801 @: $(MAKE); $(unstage)
d5eec917 31802 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
31803 r=`${PWD_COMMAND}`; export r; \
31804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31805 $(HOST_EXPORTS) \
d5eec917 31806 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31808 done; \
d5eec917 31809 echo "Doing info in mmalloc" ; \
7fc2ca22 31810 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
31811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31813 "RANLIB=$${RANLIB}" \
bffcbe34 31814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31815 info) \
8ec98d6c
NN
31816 || exit 1
31817
d5eec917 31818@endif mmalloc
8ec98d6c 31819
d5eec917
PB
31820.PHONY: maybe-dvi-mmalloc dvi-mmalloc
31821maybe-dvi-mmalloc:
31822@if mmalloc
31823maybe-dvi-mmalloc: dvi-mmalloc
8ec98d6c 31824
d5eec917
PB
31825dvi-mmalloc: \
31826 configure-mmalloc
15b527ca 31827 @: $(MAKE); $(unstage)
d5eec917 31828 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
31829 r=`${PWD_COMMAND}`; export r; \
31830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31831 $(HOST_EXPORTS) \
d5eec917 31832 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31834 done; \
d5eec917 31835 echo "Doing dvi in mmalloc" ; \
7fc2ca22 31836 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
31837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31839 "RANLIB=$${RANLIB}" \
bffcbe34 31840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31841 dvi) \
8ec98d6c
NN
31842 || exit 1
31843
d5eec917 31844@endif mmalloc
8ec98d6c 31845
39bbbb69
DD
31846.PHONY: maybe-pdf-mmalloc pdf-mmalloc
31847maybe-pdf-mmalloc:
31848@if mmalloc
31849maybe-pdf-mmalloc: pdf-mmalloc
31850
31851pdf-mmalloc: \
31852 configure-mmalloc
31853 @: $(MAKE); $(unstage)
31854 @[ -f ./mmalloc/Makefile ] || exit 0; \
31855 r=`${PWD_COMMAND}`; export r; \
31856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31857 $(HOST_EXPORTS) \
31858 for flag in $(EXTRA_HOST_FLAGS) ; do \
31859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31860 done; \
31861 echo "Doing pdf in mmalloc" ; \
31862 (cd $(HOST_SUBDIR)/mmalloc && \
31863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31865 "RANLIB=$${RANLIB}" \
bffcbe34 31866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
31867 pdf) \
31868 || exit 1
31869
31870@endif mmalloc
31871
b6fb961f
MS
31872.PHONY: maybe-html-mmalloc html-mmalloc
31873maybe-html-mmalloc:
31874@if mmalloc
31875maybe-html-mmalloc: html-mmalloc
31876
31877html-mmalloc: \
31878 configure-mmalloc
15b527ca 31879 @: $(MAKE); $(unstage)
b6fb961f
MS
31880 @[ -f ./mmalloc/Makefile ] || exit 0; \
31881 r=`${PWD_COMMAND}`; export r; \
31882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
31883 $(HOST_EXPORTS) \
31884 for flag in $(EXTRA_HOST_FLAGS) ; do \
31885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31886 done; \
31887 echo "Doing html in mmalloc" ; \
7fc2ca22 31888 (cd $(HOST_SUBDIR)/mmalloc && \
b6fb961f
MS
31889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31891 "RANLIB=$${RANLIB}" \
bffcbe34 31892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
31893 html) \
31894 || exit 1
31895
31896@endif mmalloc
31897
d5eec917
PB
31898.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
31899maybe-TAGS-mmalloc:
31900@if mmalloc
31901maybe-TAGS-mmalloc: TAGS-mmalloc
8ec98d6c 31902
d5eec917
PB
31903TAGS-mmalloc: \
31904 configure-mmalloc
15b527ca 31905 @: $(MAKE); $(unstage)
d5eec917 31906 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
31907 r=`${PWD_COMMAND}`; export r; \
31908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31909 $(HOST_EXPORTS) \
d5eec917 31910 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31912 done; \
d5eec917 31913 echo "Doing TAGS in mmalloc" ; \
7fc2ca22 31914 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
31915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31917 "RANLIB=$${RANLIB}" \
bffcbe34 31918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31919 TAGS) \
8ec98d6c
NN
31920 || exit 1
31921
d5eec917 31922@endif mmalloc
8ec98d6c 31923
d5eec917
PB
31924.PHONY: maybe-install-info-mmalloc install-info-mmalloc
31925maybe-install-info-mmalloc:
31926@if mmalloc
31927maybe-install-info-mmalloc: install-info-mmalloc
8ec98d6c 31928
d5eec917
PB
31929install-info-mmalloc: \
31930 configure-mmalloc \
31931 info-mmalloc
15b527ca 31932 @: $(MAKE); $(unstage)
d5eec917 31933 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
31934 r=`${PWD_COMMAND}`; export r; \
31935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 31936 $(HOST_EXPORTS) \
d5eec917 31937 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
31938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31939 done; \
d5eec917 31940 echo "Doing install-info in mmalloc" ; \
7fc2ca22 31941 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
31942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31944 "RANLIB=$${RANLIB}" \
bffcbe34 31945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 31946 install-info) \
8ec98d6c
NN
31947 || exit 1
31948
d5eec917 31949@endif mmalloc
8ec98d6c 31950
d4954b6d
DD
31951.PHONY: maybe-install-pdf-mmalloc install-pdf-mmalloc
31952maybe-install-pdf-mmalloc:
31953@if mmalloc
31954maybe-install-pdf-mmalloc: install-pdf-mmalloc
31955
31956install-pdf-mmalloc: \
31957 configure-mmalloc \
31958 pdf-mmalloc
31959 @: $(MAKE); $(unstage)
31960 @[ -f ./mmalloc/Makefile ] || exit 0; \
31961 r=`${PWD_COMMAND}`; export r; \
31962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31963 $(HOST_EXPORTS) \
31964 for flag in $(EXTRA_HOST_FLAGS) ; do \
31965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31966 done; \
31967 echo "Doing install-pdf in mmalloc" ; \
31968 (cd $(HOST_SUBDIR)/mmalloc && \
31969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31971 "RANLIB=$${RANLIB}" \
bffcbe34 31972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
31973 install-pdf) \
31974 || exit 1
31975
31976@endif mmalloc
31977
83c9add4
CD
31978.PHONY: maybe-install-html-mmalloc install-html-mmalloc
31979maybe-install-html-mmalloc:
31980@if mmalloc
31981maybe-install-html-mmalloc: install-html-mmalloc
31982
31983install-html-mmalloc: \
31984 configure-mmalloc \
31985 html-mmalloc
31986 @: $(MAKE); $(unstage)
31987 @[ -f ./mmalloc/Makefile ] || exit 0; \
31988 r=`${PWD_COMMAND}`; export r; \
31989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31990 $(HOST_EXPORTS) \
31991 for flag in $(EXTRA_HOST_FLAGS) ; do \
31992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31993 done; \
31994 echo "Doing install-html in mmalloc" ; \
31995 (cd $(HOST_SUBDIR)/mmalloc && \
31996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31998 "RANLIB=$${RANLIB}" \
bffcbe34 31999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
32000 install-html) \
32001 || exit 1
32002
32003@endif mmalloc
32004
d5eec917
PB
32005.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
32006maybe-installcheck-mmalloc:
32007@if mmalloc
32008maybe-installcheck-mmalloc: installcheck-mmalloc
8ec98d6c 32009
d5eec917
PB
32010installcheck-mmalloc: \
32011 configure-mmalloc
15b527ca 32012 @: $(MAKE); $(unstage)
d5eec917 32013 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
32014 r=`${PWD_COMMAND}`; export r; \
32015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32016 $(HOST_EXPORTS) \
d5eec917 32017 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32019 done; \
d5eec917 32020 echo "Doing installcheck in mmalloc" ; \
7fc2ca22 32021 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
32022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32024 "RANLIB=$${RANLIB}" \
bffcbe34 32025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32026 installcheck) \
8ec98d6c
NN
32027 || exit 1
32028
d5eec917 32029@endif mmalloc
8ec98d6c 32030
d5eec917
PB
32031.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
32032maybe-mostlyclean-mmalloc:
32033@if mmalloc
32034maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
8ec98d6c 32035
d5eec917 32036mostlyclean-mmalloc:
15b527ca 32037 @: $(MAKE); $(unstage)
d5eec917 32038 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
32039 r=`${PWD_COMMAND}`; export r; \
32040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32041 $(HOST_EXPORTS) \
d5eec917 32042 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32044 done; \
d5eec917 32045 echo "Doing mostlyclean in mmalloc" ; \
7fc2ca22 32046 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
32047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32049 "RANLIB=$${RANLIB}" \
bffcbe34 32050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32051 mostlyclean) \
8ec98d6c
NN
32052 || exit 1
32053
d5eec917 32054@endif mmalloc
8ec98d6c 32055
d5eec917
PB
32056.PHONY: maybe-clean-mmalloc clean-mmalloc
32057maybe-clean-mmalloc:
32058@if mmalloc
32059maybe-clean-mmalloc: clean-mmalloc
8ec98d6c 32060
d5eec917 32061clean-mmalloc:
15b527ca 32062 @: $(MAKE); $(unstage)
d5eec917 32063 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
32064 r=`${PWD_COMMAND}`; export r; \
32065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32066 $(HOST_EXPORTS) \
d5eec917 32067 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32069 done; \
d5eec917 32070 echo "Doing clean in mmalloc" ; \
7fc2ca22 32071 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
32072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32074 "RANLIB=$${RANLIB}" \
bffcbe34 32075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32076 clean) \
8ec98d6c
NN
32077 || exit 1
32078
d5eec917 32079@endif mmalloc
8ec98d6c 32080
d5eec917
PB
32081.PHONY: maybe-distclean-mmalloc distclean-mmalloc
32082maybe-distclean-mmalloc:
32083@if mmalloc
32084maybe-distclean-mmalloc: distclean-mmalloc
8ec98d6c 32085
d5eec917 32086distclean-mmalloc:
15b527ca 32087 @: $(MAKE); $(unstage)
d5eec917 32088 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
32089 r=`${PWD_COMMAND}`; export r; \
32090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32091 $(HOST_EXPORTS) \
d5eec917 32092 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32094 done; \
d5eec917 32095 echo "Doing distclean in mmalloc" ; \
7fc2ca22 32096 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
32097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32099 "RANLIB=$${RANLIB}" \
bffcbe34 32100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32101 distclean) \
8ec98d6c
NN
32102 || exit 1
32103
d5eec917 32104@endif mmalloc
8ec98d6c 32105
d5eec917
PB
32106.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
32107maybe-maintainer-clean-mmalloc:
32108@if mmalloc
32109maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
8ec98d6c 32110
d5eec917 32111maintainer-clean-mmalloc:
15b527ca 32112 @: $(MAKE); $(unstage)
d5eec917 32113 @[ -f ./mmalloc/Makefile ] || exit 0; \
8ec98d6c
NN
32114 r=`${PWD_COMMAND}`; export r; \
32115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32116 $(HOST_EXPORTS) \
d5eec917 32117 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32119 done; \
d5eec917 32120 echo "Doing maintainer-clean in mmalloc" ; \
7fc2ca22 32121 (cd $(HOST_SUBDIR)/mmalloc && \
8ec98d6c
NN
32122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32124 "RANLIB=$${RANLIB}" \
bffcbe34 32125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32126 maintainer-clean) \
8ec98d6c 32127 || exit 1
70ffc148 32128
d5eec917 32129@endif mmalloc
8ecc6504
NN
32130
32131
f0fdfd34 32132
d5eec917
PB
32133.PHONY: configure-patch maybe-configure-patch
32134maybe-configure-patch:
e1e5148c
CD
32135@if gcc-bootstrap
32136configure-patch: stage_current
32137@endif gcc-bootstrap
d5eec917
PB
32138@if patch
32139maybe-configure-patch: configure-patch
ec92c4d6 32140configure-patch:
15b527ca 32141 @: $(MAKE); $(unstage)
ec92c4d6 32142 @r=`${PWD_COMMAND}`; export r; \
5230d454 32143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32144 test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
32145 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
5074489a 32146 $(HOST_EXPORTS) \
f0fdfd34
PB
32147 echo Configuring in $(HOST_SUBDIR)/patch; \
32148 cd "$(HOST_SUBDIR)/patch" || exit 1; \
94f860c0 32149 case $(srcdir) in \
7fc2ca22
PB
32150 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32151 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
32152 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 32153 esac; \
7fc2ca22
PB
32154 srcdiroption="--srcdir=$${topdir}/patch"; \
32155 libsrcdir="$$s/patch"; \
94f860c0 32156 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
32157 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32158 --target=${target_alias} $${srcdiroption} \
94f860c0 32159 || exit 1
d5eec917 32160@endif patch
94f860c0 32161
f0fdfd34
PB
32162
32163
a8a96878
PB
32164
32165
d5eec917
PB
32166.PHONY: all-patch maybe-all-patch
32167maybe-all-patch:
e1e5148c
CD
32168@if gcc-bootstrap
32169all-patch: stage_current
32170@endif gcc-bootstrap
d5eec917 32171@if patch
5e6b1f07 32172TARGET-patch=all
d5eec917
PB
32173maybe-all-patch: all-patch
32174all-patch: configure-patch
15b527ca 32175 @: $(MAKE); $(unstage)
5230d454
L
32176 @r=`${PWD_COMMAND}`; export r; \
32177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 32178 $(HOST_EXPORTS) \
7fc2ca22 32179 (cd $(HOST_SUBDIR)/patch && \
6532abb6
PB
32180 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
32181 $(TARGET-patch))
d5eec917 32182@endif patch
8ecc6504 32183
f0fdfd34 32184
a8a96878
PB
32185
32186
d5eec917
PB
32187.PHONY: check-patch maybe-check-patch
32188maybe-check-patch:
32189@if patch
32190maybe-check-patch: check-patch
8ecc6504 32191
d5eec917 32192check-patch:
15b527ca 32193 @: $(MAKE); $(unstage)
5230d454
L
32194 @r=`${PWD_COMMAND}`; export r; \
32195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32196 $(HOST_EXPORTS) \
7fc2ca22
PB
32197 (cd $(HOST_SUBDIR)/patch && \
32198 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 32199
d5eec917 32200@endif patch
8ecc6504 32201
d5eec917
PB
32202.PHONY: install-patch maybe-install-patch
32203maybe-install-patch:
32204@if patch
32205maybe-install-patch: install-patch
70ffc148 32206
d5eec917 32207install-patch: installdirs
15b527ca 32208 @: $(MAKE); $(unstage)
5230d454
L
32209 @r=`${PWD_COMMAND}`; export r; \
32210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32211 $(HOST_EXPORTS) \
7fc2ca22 32212 (cd $(HOST_SUBDIR)/patch && \
93c60b6d 32213 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 32214
d5eec917 32215@endif patch
8ecc6504 32216
39bbbb69 32217# Other targets (info, dvi, pdf, etc.)
8ec98d6c 32218
d5eec917
PB
32219.PHONY: maybe-info-patch info-patch
32220maybe-info-patch:
32221@if patch
32222maybe-info-patch: info-patch
8ec98d6c 32223
d5eec917
PB
32224info-patch: \
32225 configure-patch
15b527ca 32226 @: $(MAKE); $(unstage)
d5eec917 32227 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32228 r=`${PWD_COMMAND}`; export r; \
32229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32230 $(HOST_EXPORTS) \
d5eec917 32231 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32233 done; \
d5eec917 32234 echo "Doing info in patch" ; \
7fc2ca22 32235 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32238 "RANLIB=$${RANLIB}" \
bffcbe34 32239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32240 info) \
8ec98d6c
NN
32241 || exit 1
32242
d5eec917 32243@endif patch
8ec98d6c 32244
d5eec917
PB
32245.PHONY: maybe-dvi-patch dvi-patch
32246maybe-dvi-patch:
32247@if patch
32248maybe-dvi-patch: dvi-patch
8ec98d6c 32249
d5eec917
PB
32250dvi-patch: \
32251 configure-patch
15b527ca 32252 @: $(MAKE); $(unstage)
d5eec917 32253 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32254 r=`${PWD_COMMAND}`; export r; \
32255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32256 $(HOST_EXPORTS) \
d5eec917 32257 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32259 done; \
d5eec917 32260 echo "Doing dvi in patch" ; \
7fc2ca22 32261 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32264 "RANLIB=$${RANLIB}" \
bffcbe34 32265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32266 dvi) \
8ec98d6c
NN
32267 || exit 1
32268
d5eec917 32269@endif patch
8ec98d6c 32270
39bbbb69
DD
32271.PHONY: maybe-pdf-patch pdf-patch
32272maybe-pdf-patch:
32273@if patch
32274maybe-pdf-patch: pdf-patch
32275
32276pdf-patch: \
32277 configure-patch
32278 @: $(MAKE); $(unstage)
32279 @[ -f ./patch/Makefile ] || exit 0; \
32280 r=`${PWD_COMMAND}`; export r; \
32281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32282 $(HOST_EXPORTS) \
32283 for flag in $(EXTRA_HOST_FLAGS) ; do \
32284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32285 done; \
32286 echo "Doing pdf in patch" ; \
32287 (cd $(HOST_SUBDIR)/patch && \
32288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32290 "RANLIB=$${RANLIB}" \
bffcbe34 32291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
32292 pdf) \
32293 || exit 1
32294
32295@endif patch
32296
b6fb961f
MS
32297.PHONY: maybe-html-patch html-patch
32298maybe-html-patch:
32299@if patch
32300maybe-html-patch: html-patch
32301
32302html-patch: \
32303 configure-patch
15b527ca 32304 @: $(MAKE); $(unstage)
b6fb961f
MS
32305 @[ -f ./patch/Makefile ] || exit 0; \
32306 r=`${PWD_COMMAND}`; export r; \
32307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
32308 $(HOST_EXPORTS) \
32309 for flag in $(EXTRA_HOST_FLAGS) ; do \
32310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32311 done; \
32312 echo "Doing html in patch" ; \
7fc2ca22 32313 (cd $(HOST_SUBDIR)/patch && \
b6fb961f
MS
32314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32316 "RANLIB=$${RANLIB}" \
bffcbe34 32317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
32318 html) \
32319 || exit 1
32320
32321@endif patch
32322
d5eec917
PB
32323.PHONY: maybe-TAGS-patch TAGS-patch
32324maybe-TAGS-patch:
32325@if patch
32326maybe-TAGS-patch: TAGS-patch
8ec98d6c 32327
d5eec917
PB
32328TAGS-patch: \
32329 configure-patch
15b527ca 32330 @: $(MAKE); $(unstage)
d5eec917 32331 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32332 r=`${PWD_COMMAND}`; export r; \
32333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32334 $(HOST_EXPORTS) \
d5eec917 32335 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32337 done; \
d5eec917 32338 echo "Doing TAGS in patch" ; \
7fc2ca22 32339 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32342 "RANLIB=$${RANLIB}" \
bffcbe34 32343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32344 TAGS) \
8ec98d6c
NN
32345 || exit 1
32346
d5eec917 32347@endif patch
8ec98d6c 32348
d5eec917
PB
32349.PHONY: maybe-install-info-patch install-info-patch
32350maybe-install-info-patch:
32351@if patch
32352maybe-install-info-patch: install-info-patch
8ec98d6c 32353
d5eec917
PB
32354install-info-patch: \
32355 configure-patch \
32356 info-patch
15b527ca 32357 @: $(MAKE); $(unstage)
d5eec917 32358 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32359 r=`${PWD_COMMAND}`; export r; \
32360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32361 $(HOST_EXPORTS) \
d5eec917 32362 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32364 done; \
d5eec917 32365 echo "Doing install-info in patch" ; \
7fc2ca22 32366 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32369 "RANLIB=$${RANLIB}" \
bffcbe34 32370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32371 install-info) \
8ec98d6c
NN
32372 || exit 1
32373
d5eec917 32374@endif patch
8ec98d6c 32375
d4954b6d
DD
32376.PHONY: maybe-install-pdf-patch install-pdf-patch
32377maybe-install-pdf-patch:
32378@if patch
32379maybe-install-pdf-patch: install-pdf-patch
32380
32381install-pdf-patch: \
32382 configure-patch \
32383 pdf-patch
32384 @: $(MAKE); $(unstage)
32385 @[ -f ./patch/Makefile ] || exit 0; \
32386 r=`${PWD_COMMAND}`; export r; \
32387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32388 $(HOST_EXPORTS) \
32389 for flag in $(EXTRA_HOST_FLAGS) ; do \
32390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32391 done; \
32392 echo "Doing install-pdf in patch" ; \
32393 (cd $(HOST_SUBDIR)/patch && \
32394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32396 "RANLIB=$${RANLIB}" \
bffcbe34 32397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
32398 install-pdf) \
32399 || exit 1
32400
32401@endif patch
32402
83c9add4
CD
32403.PHONY: maybe-install-html-patch install-html-patch
32404maybe-install-html-patch:
32405@if patch
32406maybe-install-html-patch: install-html-patch
32407
32408install-html-patch: \
32409 configure-patch \
32410 html-patch
32411 @: $(MAKE); $(unstage)
32412 @[ -f ./patch/Makefile ] || exit 0; \
32413 r=`${PWD_COMMAND}`; export r; \
32414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32415 $(HOST_EXPORTS) \
32416 for flag in $(EXTRA_HOST_FLAGS) ; do \
32417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32418 done; \
32419 echo "Doing install-html in patch" ; \
32420 (cd $(HOST_SUBDIR)/patch && \
32421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32423 "RANLIB=$${RANLIB}" \
bffcbe34 32424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
32425 install-html) \
32426 || exit 1
32427
32428@endif patch
32429
d5eec917
PB
32430.PHONY: maybe-installcheck-patch installcheck-patch
32431maybe-installcheck-patch:
32432@if patch
32433maybe-installcheck-patch: installcheck-patch
8ec98d6c 32434
d5eec917
PB
32435installcheck-patch: \
32436 configure-patch
15b527ca 32437 @: $(MAKE); $(unstage)
d5eec917 32438 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32439 r=`${PWD_COMMAND}`; export r; \
32440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32441 $(HOST_EXPORTS) \
d5eec917 32442 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32444 done; \
d5eec917 32445 echo "Doing installcheck in patch" ; \
7fc2ca22 32446 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32449 "RANLIB=$${RANLIB}" \
bffcbe34 32450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32451 installcheck) \
8ec98d6c
NN
32452 || exit 1
32453
d5eec917 32454@endif patch
8ec98d6c 32455
d5eec917
PB
32456.PHONY: maybe-mostlyclean-patch mostlyclean-patch
32457maybe-mostlyclean-patch:
32458@if patch
32459maybe-mostlyclean-patch: mostlyclean-patch
8ec98d6c 32460
d5eec917 32461mostlyclean-patch:
15b527ca 32462 @: $(MAKE); $(unstage)
d5eec917 32463 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32464 r=`${PWD_COMMAND}`; export r; \
32465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32466 $(HOST_EXPORTS) \
d5eec917 32467 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32469 done; \
d5eec917 32470 echo "Doing mostlyclean in patch" ; \
7fc2ca22 32471 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32474 "RANLIB=$${RANLIB}" \
bffcbe34 32475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32476 mostlyclean) \
8ec98d6c
NN
32477 || exit 1
32478
d5eec917 32479@endif patch
8ec98d6c 32480
d5eec917
PB
32481.PHONY: maybe-clean-patch clean-patch
32482maybe-clean-patch:
32483@if patch
32484maybe-clean-patch: clean-patch
8ec98d6c 32485
d5eec917 32486clean-patch:
15b527ca 32487 @: $(MAKE); $(unstage)
d5eec917 32488 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32489 r=`${PWD_COMMAND}`; export r; \
32490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32491 $(HOST_EXPORTS) \
d5eec917 32492 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32494 done; \
d5eec917 32495 echo "Doing clean in patch" ; \
7fc2ca22 32496 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32499 "RANLIB=$${RANLIB}" \
bffcbe34 32500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32501 clean) \
8ec98d6c
NN
32502 || exit 1
32503
d5eec917 32504@endif patch
8ec98d6c 32505
d5eec917
PB
32506.PHONY: maybe-distclean-patch distclean-patch
32507maybe-distclean-patch:
32508@if patch
32509maybe-distclean-patch: distclean-patch
8ec98d6c 32510
d5eec917 32511distclean-patch:
15b527ca 32512 @: $(MAKE); $(unstage)
d5eec917 32513 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32514 r=`${PWD_COMMAND}`; export r; \
32515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32516 $(HOST_EXPORTS) \
d5eec917 32517 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32519 done; \
d5eec917 32520 echo "Doing distclean in patch" ; \
7fc2ca22 32521 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32524 "RANLIB=$${RANLIB}" \
bffcbe34 32525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32526 distclean) \
8ec98d6c
NN
32527 || exit 1
32528
d5eec917 32529@endif patch
8ec98d6c 32530
d5eec917
PB
32531.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
32532maybe-maintainer-clean-patch:
32533@if patch
32534maybe-maintainer-clean-patch: maintainer-clean-patch
8ec98d6c 32535
d5eec917 32536maintainer-clean-patch:
15b527ca 32537 @: $(MAKE); $(unstage)
d5eec917 32538 @[ -f ./patch/Makefile ] || exit 0; \
8ec98d6c
NN
32539 r=`${PWD_COMMAND}`; export r; \
32540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32541 $(HOST_EXPORTS) \
d5eec917 32542 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32544 done; \
d5eec917 32545 echo "Doing maintainer-clean in patch" ; \
7fc2ca22 32546 (cd $(HOST_SUBDIR)/patch && \
8ec98d6c
NN
32547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32549 "RANLIB=$${RANLIB}" \
bffcbe34 32550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32551 maintainer-clean) \
8ec98d6c
NN
32552 || exit 1
32553
d5eec917 32554@endif patch
8ec98d6c
NN
32555
32556
f0fdfd34 32557
d5eec917
PB
32558.PHONY: configure-perl maybe-configure-perl
32559maybe-configure-perl:
e1e5148c
CD
32560@if gcc-bootstrap
32561configure-perl: stage_current
32562@endif gcc-bootstrap
d5eec917
PB
32563@if perl
32564maybe-configure-perl: configure-perl
ec92c4d6 32565configure-perl:
15b527ca 32566 @: $(MAKE); $(unstage)
ec92c4d6 32567 @r=`${PWD_COMMAND}`; export r; \
5230d454 32568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32569 test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
32570 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
5074489a 32571 $(HOST_EXPORTS) \
f0fdfd34
PB
32572 echo Configuring in $(HOST_SUBDIR)/perl; \
32573 cd "$(HOST_SUBDIR)/perl" || exit 1; \
94f860c0 32574 case $(srcdir) in \
7fc2ca22
PB
32575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32576 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
32577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 32578 esac; \
7fc2ca22
PB
32579 srcdiroption="--srcdir=$${topdir}/perl"; \
32580 libsrcdir="$$s/perl"; \
94f860c0 32581 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
32582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32583 --target=${target_alias} $${srcdiroption} \
94f860c0 32584 || exit 1
d5eec917 32585@endif perl
94f860c0 32586
f0fdfd34
PB
32587
32588
a8a96878
PB
32589
32590
d5eec917
PB
32591.PHONY: all-perl maybe-all-perl
32592maybe-all-perl:
e1e5148c
CD
32593@if gcc-bootstrap
32594all-perl: stage_current
32595@endif gcc-bootstrap
d5eec917 32596@if perl
5e6b1f07 32597TARGET-perl=all
d5eec917
PB
32598maybe-all-perl: all-perl
32599all-perl: configure-perl
15b527ca 32600 @: $(MAKE); $(unstage)
5230d454
L
32601 @r=`${PWD_COMMAND}`; export r; \
32602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 32603 $(HOST_EXPORTS) \
7fc2ca22 32604 (cd $(HOST_SUBDIR)/perl && \
6532abb6
PB
32605 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
32606 $(TARGET-perl))
d5eec917 32607@endif perl
8ecc6504 32608
f0fdfd34 32609
a8a96878
PB
32610
32611
d5eec917
PB
32612.PHONY: check-perl maybe-check-perl
32613maybe-check-perl:
32614@if perl
32615maybe-check-perl: check-perl
8ecc6504 32616
d5eec917 32617check-perl:
15b527ca 32618 @: $(MAKE); $(unstage)
5230d454
L
32619 @r=`${PWD_COMMAND}`; export r; \
32620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32621 $(HOST_EXPORTS) \
7fc2ca22
PB
32622 (cd $(HOST_SUBDIR)/perl && \
32623 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 32624
d5eec917 32625@endif perl
8ecc6504 32626
d5eec917
PB
32627.PHONY: install-perl maybe-install-perl
32628maybe-install-perl:
32629@if perl
32630maybe-install-perl: install-perl
70ffc148 32631
d5eec917 32632install-perl: installdirs
15b527ca 32633 @: $(MAKE); $(unstage)
5230d454
L
32634 @r=`${PWD_COMMAND}`; export r; \
32635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32636 $(HOST_EXPORTS) \
7fc2ca22 32637 (cd $(HOST_SUBDIR)/perl && \
93c60b6d 32638 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 32639
d5eec917 32640@endif perl
8ecc6504 32641
39bbbb69 32642# Other targets (info, dvi, pdf, etc.)
8ec98d6c 32643
d5eec917
PB
32644.PHONY: maybe-info-perl info-perl
32645maybe-info-perl:
32646@if perl
32647maybe-info-perl: info-perl
8ec98d6c 32648
d5eec917
PB
32649info-perl: \
32650 configure-perl
15b527ca 32651 @: $(MAKE); $(unstage)
d5eec917 32652 @[ -f ./perl/Makefile ] || exit 0; \
5230d454
L
32653 r=`${PWD_COMMAND}`; export r; \
32654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32655 $(HOST_EXPORTS) \
d5eec917 32656 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32658 done; \
d5eec917 32659 echo "Doing info in perl" ; \
7fc2ca22 32660 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32663 "RANLIB=$${RANLIB}" \
bffcbe34 32664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32665 info) \
94f860c0
NN
32666 || exit 1
32667
d5eec917 32668@endif perl
8ec98d6c 32669
d5eec917
PB
32670.PHONY: maybe-dvi-perl dvi-perl
32671maybe-dvi-perl:
32672@if perl
32673maybe-dvi-perl: dvi-perl
8ec98d6c 32674
d5eec917
PB
32675dvi-perl: \
32676 configure-perl
15b527ca 32677 @: $(MAKE); $(unstage)
d5eec917 32678 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 32679 r=`${PWD_COMMAND}`; export r; \
5230d454 32680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32681 $(HOST_EXPORTS) \
d5eec917 32682 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32684 done; \
d5eec917 32685 echo "Doing dvi in perl" ; \
7fc2ca22 32686 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32689 "RANLIB=$${RANLIB}" \
bffcbe34 32690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32691 dvi) \
8ec98d6c 32692 || exit 1
8ecc6504 32693
d5eec917 32694@endif perl
8ecc6504 32695
39bbbb69
DD
32696.PHONY: maybe-pdf-perl pdf-perl
32697maybe-pdf-perl:
32698@if perl
32699maybe-pdf-perl: pdf-perl
32700
32701pdf-perl: \
32702 configure-perl
32703 @: $(MAKE); $(unstage)
32704 @[ -f ./perl/Makefile ] || exit 0; \
32705 r=`${PWD_COMMAND}`; export r; \
32706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32707 $(HOST_EXPORTS) \
32708 for flag in $(EXTRA_HOST_FLAGS) ; do \
32709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32710 done; \
32711 echo "Doing pdf in perl" ; \
32712 (cd $(HOST_SUBDIR)/perl && \
32713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32715 "RANLIB=$${RANLIB}" \
bffcbe34 32716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
32717 pdf) \
32718 || exit 1
32719
32720@endif perl
32721
b6fb961f
MS
32722.PHONY: maybe-html-perl html-perl
32723maybe-html-perl:
32724@if perl
32725maybe-html-perl: html-perl
32726
32727html-perl: \
32728 configure-perl
15b527ca 32729 @: $(MAKE); $(unstage)
b6fb961f
MS
32730 @[ -f ./perl/Makefile ] || exit 0; \
32731 r=`${PWD_COMMAND}`; export r; \
32732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
32733 $(HOST_EXPORTS) \
32734 for flag in $(EXTRA_HOST_FLAGS) ; do \
32735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32736 done; \
32737 echo "Doing html in perl" ; \
7fc2ca22 32738 (cd $(HOST_SUBDIR)/perl && \
b6fb961f
MS
32739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32741 "RANLIB=$${RANLIB}" \
bffcbe34 32742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
32743 html) \
32744 || exit 1
32745
32746@endif perl
32747
d5eec917
PB
32748.PHONY: maybe-TAGS-perl TAGS-perl
32749maybe-TAGS-perl:
32750@if perl
32751maybe-TAGS-perl: TAGS-perl
8ec98d6c 32752
d5eec917
PB
32753TAGS-perl: \
32754 configure-perl
15b527ca 32755 @: $(MAKE); $(unstage)
d5eec917 32756 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 32757 r=`${PWD_COMMAND}`; export r; \
5230d454 32758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32759 $(HOST_EXPORTS) \
d5eec917 32760 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32762 done; \
d5eec917 32763 echo "Doing TAGS in perl" ; \
7fc2ca22 32764 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32767 "RANLIB=$${RANLIB}" \
bffcbe34 32768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32769 TAGS) \
8ec98d6c 32770 || exit 1
8ecc6504 32771
d5eec917 32772@endif perl
8ecc6504 32773
d5eec917
PB
32774.PHONY: maybe-install-info-perl install-info-perl
32775maybe-install-info-perl:
32776@if perl
32777maybe-install-info-perl: install-info-perl
70ffc148 32778
d5eec917
PB
32779install-info-perl: \
32780 configure-perl \
32781 info-perl
15b527ca 32782 @: $(MAKE); $(unstage)
d5eec917 32783 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
32784 r=`${PWD_COMMAND}`; export r; \
32785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32786 $(HOST_EXPORTS) \
d5eec917 32787 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32789 done; \
d5eec917 32790 echo "Doing install-info in perl" ; \
7fc2ca22 32791 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32794 "RANLIB=$${RANLIB}" \
bffcbe34 32795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32796 install-info) \
8ec98d6c
NN
32797 || exit 1
32798
d5eec917 32799@endif perl
8ec98d6c 32800
d4954b6d
DD
32801.PHONY: maybe-install-pdf-perl install-pdf-perl
32802maybe-install-pdf-perl:
32803@if perl
32804maybe-install-pdf-perl: install-pdf-perl
32805
32806install-pdf-perl: \
32807 configure-perl \
32808 pdf-perl
32809 @: $(MAKE); $(unstage)
32810 @[ -f ./perl/Makefile ] || exit 0; \
32811 r=`${PWD_COMMAND}`; export r; \
32812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32813 $(HOST_EXPORTS) \
32814 for flag in $(EXTRA_HOST_FLAGS) ; do \
32815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32816 done; \
32817 echo "Doing install-pdf in perl" ; \
32818 (cd $(HOST_SUBDIR)/perl && \
32819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32821 "RANLIB=$${RANLIB}" \
bffcbe34 32822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
32823 install-pdf) \
32824 || exit 1
32825
32826@endif perl
32827
83c9add4
CD
32828.PHONY: maybe-install-html-perl install-html-perl
32829maybe-install-html-perl:
32830@if perl
32831maybe-install-html-perl: install-html-perl
32832
32833install-html-perl: \
32834 configure-perl \
32835 html-perl
32836 @: $(MAKE); $(unstage)
32837 @[ -f ./perl/Makefile ] || exit 0; \
32838 r=`${PWD_COMMAND}`; export r; \
32839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32840 $(HOST_EXPORTS) \
32841 for flag in $(EXTRA_HOST_FLAGS) ; do \
32842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32843 done; \
32844 echo "Doing install-html in perl" ; \
32845 (cd $(HOST_SUBDIR)/perl && \
32846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32848 "RANLIB=$${RANLIB}" \
bffcbe34 32849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
32850 install-html) \
32851 || exit 1
32852
32853@endif perl
32854
d5eec917
PB
32855.PHONY: maybe-installcheck-perl installcheck-perl
32856maybe-installcheck-perl:
32857@if perl
32858maybe-installcheck-perl: installcheck-perl
8ec98d6c 32859
d5eec917
PB
32860installcheck-perl: \
32861 configure-perl
15b527ca 32862 @: $(MAKE); $(unstage)
d5eec917 32863 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
32864 r=`${PWD_COMMAND}`; export r; \
32865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32866 $(HOST_EXPORTS) \
d5eec917 32867 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32869 done; \
d5eec917 32870 echo "Doing installcheck in perl" ; \
7fc2ca22 32871 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32874 "RANLIB=$${RANLIB}" \
bffcbe34 32875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32876 installcheck) \
8ec98d6c
NN
32877 || exit 1
32878
d5eec917 32879@endif perl
8ec98d6c 32880
d5eec917
PB
32881.PHONY: maybe-mostlyclean-perl mostlyclean-perl
32882maybe-mostlyclean-perl:
32883@if perl
32884maybe-mostlyclean-perl: mostlyclean-perl
8ec98d6c 32885
d5eec917 32886mostlyclean-perl:
15b527ca 32887 @: $(MAKE); $(unstage)
d5eec917 32888 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
32889 r=`${PWD_COMMAND}`; export r; \
32890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32891 $(HOST_EXPORTS) \
d5eec917 32892 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32894 done; \
d5eec917 32895 echo "Doing mostlyclean in perl" ; \
7fc2ca22 32896 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32899 "RANLIB=$${RANLIB}" \
bffcbe34 32900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32901 mostlyclean) \
8ec98d6c
NN
32902 || exit 1
32903
d5eec917 32904@endif perl
8ec98d6c 32905
d5eec917
PB
32906.PHONY: maybe-clean-perl clean-perl
32907maybe-clean-perl:
32908@if perl
32909maybe-clean-perl: clean-perl
8ec98d6c 32910
d5eec917 32911clean-perl:
15b527ca 32912 @: $(MAKE); $(unstage)
d5eec917 32913 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
32914 r=`${PWD_COMMAND}`; export r; \
32915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32916 $(HOST_EXPORTS) \
d5eec917 32917 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32919 done; \
d5eec917 32920 echo "Doing clean in perl" ; \
7fc2ca22 32921 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32924 "RANLIB=$${RANLIB}" \
bffcbe34 32925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32926 clean) \
8ec98d6c
NN
32927 || exit 1
32928
d5eec917 32929@endif perl
8ec98d6c 32930
d5eec917
PB
32931.PHONY: maybe-distclean-perl distclean-perl
32932maybe-distclean-perl:
32933@if perl
32934maybe-distclean-perl: distclean-perl
8ec98d6c 32935
d5eec917 32936distclean-perl:
15b527ca 32937 @: $(MAKE); $(unstage)
d5eec917 32938 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c
NN
32939 r=`${PWD_COMMAND}`; export r; \
32940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32941 $(HOST_EXPORTS) \
d5eec917 32942 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32944 done; \
d5eec917 32945 echo "Doing distclean in perl" ; \
7fc2ca22 32946 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32949 "RANLIB=$${RANLIB}" \
bffcbe34 32950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32951 distclean) \
8ec98d6c
NN
32952 || exit 1
32953
d5eec917 32954@endif perl
8ec98d6c 32955
d5eec917
PB
32956.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
32957maybe-maintainer-clean-perl:
32958@if perl
32959maybe-maintainer-clean-perl: maintainer-clean-perl
8ec98d6c 32960
d5eec917 32961maintainer-clean-perl:
15b527ca 32962 @: $(MAKE); $(unstage)
d5eec917 32963 @[ -f ./perl/Makefile ] || exit 0; \
8ec98d6c 32964 r=`${PWD_COMMAND}`; export r; \
5230d454 32965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 32966 $(HOST_EXPORTS) \
d5eec917 32967 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
32968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32969 done; \
d5eec917 32970 echo "Doing maintainer-clean in perl" ; \
7fc2ca22 32971 (cd $(HOST_SUBDIR)/perl && \
8ec98d6c
NN
32972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32974 "RANLIB=$${RANLIB}" \
bffcbe34 32975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 32976 maintainer-clean) \
8ec98d6c 32977 || exit 1
8ecc6504 32978
d5eec917 32979@endif perl
8ecc6504 32980
8ec98d6c 32981
f0fdfd34 32982
d5eec917
PB
32983.PHONY: configure-prms maybe-configure-prms
32984maybe-configure-prms:
e1e5148c
CD
32985@if gcc-bootstrap
32986configure-prms: stage_current
32987@endif gcc-bootstrap
d5eec917
PB
32988@if prms
32989maybe-configure-prms: configure-prms
ec92c4d6 32990configure-prms:
15b527ca 32991 @: $(MAKE); $(unstage)
ec92c4d6 32992 @r=`${PWD_COMMAND}`; export r; \
5230d454 32993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
32994 test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
32995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
5074489a 32996 $(HOST_EXPORTS) \
f0fdfd34
PB
32997 echo Configuring in $(HOST_SUBDIR)/prms; \
32998 cd "$(HOST_SUBDIR)/prms" || exit 1; \
94f860c0 32999 case $(srcdir) in \
7fc2ca22
PB
33000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33001 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
33002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 33003 esac; \
7fc2ca22
PB
33004 srcdiroption="--srcdir=$${topdir}/prms"; \
33005 libsrcdir="$$s/prms"; \
94f860c0 33006 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
33007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33008 --target=${target_alias} $${srcdiroption} \
94f860c0 33009 || exit 1
d5eec917 33010@endif prms
94f860c0 33011
f0fdfd34
PB
33012
33013
a8a96878
PB
33014
33015
d5eec917
PB
33016.PHONY: all-prms maybe-all-prms
33017maybe-all-prms:
e1e5148c
CD
33018@if gcc-bootstrap
33019all-prms: stage_current
33020@endif gcc-bootstrap
d5eec917 33021@if prms
5e6b1f07 33022TARGET-prms=all
d5eec917
PB
33023maybe-all-prms: all-prms
33024all-prms: configure-prms
15b527ca 33025 @: $(MAKE); $(unstage)
5230d454
L
33026 @r=`${PWD_COMMAND}`; export r; \
33027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 33028 $(HOST_EXPORTS) \
7fc2ca22 33029 (cd $(HOST_SUBDIR)/prms && \
6532abb6
PB
33030 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
33031 $(TARGET-prms))
d5eec917 33032@endif prms
8ecc6504 33033
f0fdfd34 33034
a8a96878
PB
33035
33036
d5eec917
PB
33037.PHONY: check-prms maybe-check-prms
33038maybe-check-prms:
33039@if prms
33040maybe-check-prms: check-prms
8ecc6504 33041
d5eec917 33042check-prms:
15b527ca 33043 @: $(MAKE); $(unstage)
5230d454
L
33044 @r=`${PWD_COMMAND}`; export r; \
33045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33046 $(HOST_EXPORTS) \
7fc2ca22
PB
33047 (cd $(HOST_SUBDIR)/prms && \
33048 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 33049
d5eec917 33050@endif prms
8ecc6504 33051
d5eec917
PB
33052.PHONY: install-prms maybe-install-prms
33053maybe-install-prms:
33054@if prms
33055maybe-install-prms: install-prms
8ec98d6c 33056
d5eec917 33057install-prms: installdirs
15b527ca 33058 @: $(MAKE); $(unstage)
8ec98d6c
NN
33059 @r=`${PWD_COMMAND}`; export r; \
33060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33061 $(HOST_EXPORTS) \
7fc2ca22 33062 (cd $(HOST_SUBDIR)/prms && \
93c60b6d 33063 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 33064
d5eec917 33065@endif prms
8ec98d6c 33066
39bbbb69 33067# Other targets (info, dvi, pdf, etc.)
8ec98d6c 33068
d5eec917
PB
33069.PHONY: maybe-info-prms info-prms
33070maybe-info-prms:
33071@if prms
33072maybe-info-prms: info-prms
8ec98d6c 33073
d5eec917
PB
33074info-prms: \
33075 configure-prms
15b527ca 33076 @: $(MAKE); $(unstage)
d5eec917 33077 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33078 r=`${PWD_COMMAND}`; export r; \
33079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33080 $(HOST_EXPORTS) \
d5eec917 33081 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33083 done; \
d5eec917 33084 echo "Doing info in prms" ; \
7fc2ca22 33085 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33088 "RANLIB=$${RANLIB}" \
bffcbe34 33089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33090 info) \
8ec98d6c
NN
33091 || exit 1
33092
d5eec917 33093@endif prms
8ec98d6c 33094
d5eec917
PB
33095.PHONY: maybe-dvi-prms dvi-prms
33096maybe-dvi-prms:
33097@if prms
33098maybe-dvi-prms: dvi-prms
8ec98d6c 33099
d5eec917
PB
33100dvi-prms: \
33101 configure-prms
15b527ca 33102 @: $(MAKE); $(unstage)
d5eec917 33103 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33104 r=`${PWD_COMMAND}`; export r; \
33105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33106 $(HOST_EXPORTS) \
d5eec917 33107 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33109 done; \
d5eec917 33110 echo "Doing dvi in prms" ; \
7fc2ca22 33111 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33114 "RANLIB=$${RANLIB}" \
bffcbe34 33115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33116 dvi) \
8ec98d6c
NN
33117 || exit 1
33118
d5eec917 33119@endif prms
8ec98d6c 33120
39bbbb69
DD
33121.PHONY: maybe-pdf-prms pdf-prms
33122maybe-pdf-prms:
33123@if prms
33124maybe-pdf-prms: pdf-prms
33125
33126pdf-prms: \
33127 configure-prms
33128 @: $(MAKE); $(unstage)
33129 @[ -f ./prms/Makefile ] || exit 0; \
33130 r=`${PWD_COMMAND}`; export r; \
33131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33132 $(HOST_EXPORTS) \
33133 for flag in $(EXTRA_HOST_FLAGS) ; do \
33134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33135 done; \
33136 echo "Doing pdf in prms" ; \
33137 (cd $(HOST_SUBDIR)/prms && \
33138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33140 "RANLIB=$${RANLIB}" \
bffcbe34 33141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33142 pdf) \
33143 || exit 1
33144
33145@endif prms
33146
b6fb961f
MS
33147.PHONY: maybe-html-prms html-prms
33148maybe-html-prms:
33149@if prms
33150maybe-html-prms: html-prms
33151
33152html-prms: \
33153 configure-prms
15b527ca 33154 @: $(MAKE); $(unstage)
b6fb961f
MS
33155 @[ -f ./prms/Makefile ] || exit 0; \
33156 r=`${PWD_COMMAND}`; export r; \
33157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
33158 $(HOST_EXPORTS) \
33159 for flag in $(EXTRA_HOST_FLAGS) ; do \
33160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33161 done; \
33162 echo "Doing html in prms" ; \
7fc2ca22 33163 (cd $(HOST_SUBDIR)/prms && \
b6fb961f
MS
33164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33166 "RANLIB=$${RANLIB}" \
bffcbe34 33167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
33168 html) \
33169 || exit 1
33170
33171@endif prms
33172
d5eec917
PB
33173.PHONY: maybe-TAGS-prms TAGS-prms
33174maybe-TAGS-prms:
33175@if prms
33176maybe-TAGS-prms: TAGS-prms
8ec98d6c 33177
d5eec917
PB
33178TAGS-prms: \
33179 configure-prms
15b527ca 33180 @: $(MAKE); $(unstage)
d5eec917 33181 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33182 r=`${PWD_COMMAND}`; export r; \
33183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33184 $(HOST_EXPORTS) \
d5eec917 33185 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33187 done; \
d5eec917 33188 echo "Doing TAGS in prms" ; \
7fc2ca22 33189 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33192 "RANLIB=$${RANLIB}" \
bffcbe34 33193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33194 TAGS) \
8ec98d6c
NN
33195 || exit 1
33196
d5eec917 33197@endif prms
8ec98d6c 33198
d5eec917
PB
33199.PHONY: maybe-install-info-prms install-info-prms
33200maybe-install-info-prms:
33201@if prms
33202maybe-install-info-prms: install-info-prms
8ec98d6c 33203
d5eec917
PB
33204install-info-prms: \
33205 configure-prms \
33206 info-prms
15b527ca 33207 @: $(MAKE); $(unstage)
d5eec917 33208 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33209 r=`${PWD_COMMAND}`; export r; \
33210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33211 $(HOST_EXPORTS) \
d5eec917 33212 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33214 done; \
d5eec917 33215 echo "Doing install-info in prms" ; \
7fc2ca22 33216 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33219 "RANLIB=$${RANLIB}" \
bffcbe34 33220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33221 install-info) \
8ec98d6c
NN
33222 || exit 1
33223
d5eec917 33224@endif prms
8ec98d6c 33225
d4954b6d
DD
33226.PHONY: maybe-install-pdf-prms install-pdf-prms
33227maybe-install-pdf-prms:
33228@if prms
33229maybe-install-pdf-prms: install-pdf-prms
33230
33231install-pdf-prms: \
33232 configure-prms \
33233 pdf-prms
33234 @: $(MAKE); $(unstage)
33235 @[ -f ./prms/Makefile ] || exit 0; \
33236 r=`${PWD_COMMAND}`; export r; \
33237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33238 $(HOST_EXPORTS) \
33239 for flag in $(EXTRA_HOST_FLAGS) ; do \
33240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33241 done; \
33242 echo "Doing install-pdf in prms" ; \
33243 (cd $(HOST_SUBDIR)/prms && \
33244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33246 "RANLIB=$${RANLIB}" \
bffcbe34 33247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
33248 install-pdf) \
33249 || exit 1
33250
33251@endif prms
33252
83c9add4
CD
33253.PHONY: maybe-install-html-prms install-html-prms
33254maybe-install-html-prms:
33255@if prms
33256maybe-install-html-prms: install-html-prms
33257
33258install-html-prms: \
33259 configure-prms \
33260 html-prms
33261 @: $(MAKE); $(unstage)
33262 @[ -f ./prms/Makefile ] || exit 0; \
33263 r=`${PWD_COMMAND}`; export r; \
33264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33265 $(HOST_EXPORTS) \
33266 for flag in $(EXTRA_HOST_FLAGS) ; do \
33267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33268 done; \
33269 echo "Doing install-html in prms" ; \
33270 (cd $(HOST_SUBDIR)/prms && \
33271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33273 "RANLIB=$${RANLIB}" \
bffcbe34 33274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
33275 install-html) \
33276 || exit 1
33277
33278@endif prms
33279
d5eec917
PB
33280.PHONY: maybe-installcheck-prms installcheck-prms
33281maybe-installcheck-prms:
33282@if prms
33283maybe-installcheck-prms: installcheck-prms
8ec98d6c 33284
d5eec917
PB
33285installcheck-prms: \
33286 configure-prms
15b527ca 33287 @: $(MAKE); $(unstage)
d5eec917 33288 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33289 r=`${PWD_COMMAND}`; export r; \
33290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33291 $(HOST_EXPORTS) \
d5eec917 33292 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33294 done; \
d5eec917 33295 echo "Doing installcheck in prms" ; \
7fc2ca22 33296 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33299 "RANLIB=$${RANLIB}" \
bffcbe34 33300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33301 installcheck) \
8ec98d6c
NN
33302 || exit 1
33303
d5eec917 33304@endif prms
8ec98d6c 33305
d5eec917
PB
33306.PHONY: maybe-mostlyclean-prms mostlyclean-prms
33307maybe-mostlyclean-prms:
33308@if prms
33309maybe-mostlyclean-prms: mostlyclean-prms
8ec98d6c 33310
d5eec917 33311mostlyclean-prms:
15b527ca 33312 @: $(MAKE); $(unstage)
d5eec917 33313 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33314 r=`${PWD_COMMAND}`; export r; \
33315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33316 $(HOST_EXPORTS) \
d5eec917 33317 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33319 done; \
d5eec917 33320 echo "Doing mostlyclean in prms" ; \
7fc2ca22 33321 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33324 "RANLIB=$${RANLIB}" \
bffcbe34 33325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33326 mostlyclean) \
8ec98d6c
NN
33327 || exit 1
33328
d5eec917 33329@endif prms
8ec98d6c 33330
d5eec917
PB
33331.PHONY: maybe-clean-prms clean-prms
33332maybe-clean-prms:
33333@if prms
33334maybe-clean-prms: clean-prms
8ec98d6c 33335
d5eec917 33336clean-prms:
15b527ca 33337 @: $(MAKE); $(unstage)
d5eec917 33338 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33339 r=`${PWD_COMMAND}`; export r; \
33340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33341 $(HOST_EXPORTS) \
d5eec917 33342 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33344 done; \
d5eec917 33345 echo "Doing clean in prms" ; \
7fc2ca22 33346 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33349 "RANLIB=$${RANLIB}" \
bffcbe34 33350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33351 clean) \
8ec98d6c
NN
33352 || exit 1
33353
d5eec917 33354@endif prms
8ec98d6c 33355
d5eec917
PB
33356.PHONY: maybe-distclean-prms distclean-prms
33357maybe-distclean-prms:
33358@if prms
33359maybe-distclean-prms: distclean-prms
8ec98d6c 33360
d5eec917 33361distclean-prms:
15b527ca 33362 @: $(MAKE); $(unstage)
d5eec917 33363 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33364 r=`${PWD_COMMAND}`; export r; \
33365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33366 $(HOST_EXPORTS) \
d5eec917 33367 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33369 done; \
d5eec917 33370 echo "Doing distclean in prms" ; \
7fc2ca22 33371 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33374 "RANLIB=$${RANLIB}" \
bffcbe34 33375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33376 distclean) \
8ec98d6c
NN
33377 || exit 1
33378
d5eec917 33379@endif prms
8ec98d6c 33380
d5eec917
PB
33381.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
33382maybe-maintainer-clean-prms:
33383@if prms
33384maybe-maintainer-clean-prms: maintainer-clean-prms
8ec98d6c 33385
d5eec917 33386maintainer-clean-prms:
15b527ca 33387 @: $(MAKE); $(unstage)
d5eec917 33388 @[ -f ./prms/Makefile ] || exit 0; \
8ec98d6c
NN
33389 r=`${PWD_COMMAND}`; export r; \
33390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33391 $(HOST_EXPORTS) \
d5eec917 33392 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33394 done; \
d5eec917 33395 echo "Doing maintainer-clean in prms" ; \
7fc2ca22 33396 (cd $(HOST_SUBDIR)/prms && \
8ec98d6c
NN
33397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33399 "RANLIB=$${RANLIB}" \
bffcbe34 33400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33401 maintainer-clean) \
8ec98d6c 33402 || exit 1
70ffc148 33403
d5eec917 33404@endif prms
8ecc6504
NN
33405
33406
f0fdfd34 33407
d5eec917
PB
33408.PHONY: configure-rcs maybe-configure-rcs
33409maybe-configure-rcs:
e1e5148c
CD
33410@if gcc-bootstrap
33411configure-rcs: stage_current
33412@endif gcc-bootstrap
d5eec917
PB
33413@if rcs
33414maybe-configure-rcs: configure-rcs
ec92c4d6 33415configure-rcs:
15b527ca 33416 @: $(MAKE); $(unstage)
ec92c4d6 33417 @r=`${PWD_COMMAND}`; export r; \
5230d454 33418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
33419 test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
33420 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
5074489a 33421 $(HOST_EXPORTS) \
f0fdfd34
PB
33422 echo Configuring in $(HOST_SUBDIR)/rcs; \
33423 cd "$(HOST_SUBDIR)/rcs" || exit 1; \
94f860c0 33424 case $(srcdir) in \
7fc2ca22
PB
33425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33426 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
33427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 33428 esac; \
7fc2ca22
PB
33429 srcdiroption="--srcdir=$${topdir}/rcs"; \
33430 libsrcdir="$$s/rcs"; \
94f860c0 33431 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
33432 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33433 --target=${target_alias} $${srcdiroption} \
94f860c0 33434 || exit 1
d5eec917 33435@endif rcs
94f860c0 33436
f0fdfd34
PB
33437
33438
a8a96878
PB
33439
33440
d5eec917
PB
33441.PHONY: all-rcs maybe-all-rcs
33442maybe-all-rcs:
e1e5148c
CD
33443@if gcc-bootstrap
33444all-rcs: stage_current
33445@endif gcc-bootstrap
d5eec917 33446@if rcs
5e6b1f07 33447TARGET-rcs=all
d5eec917
PB
33448maybe-all-rcs: all-rcs
33449all-rcs: configure-rcs
15b527ca 33450 @: $(MAKE); $(unstage)
5230d454
L
33451 @r=`${PWD_COMMAND}`; export r; \
33452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 33453 $(HOST_EXPORTS) \
7fc2ca22 33454 (cd $(HOST_SUBDIR)/rcs && \
6532abb6
PB
33455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
33456 $(TARGET-rcs))
d5eec917 33457@endif rcs
8ecc6504 33458
f0fdfd34 33459
a8a96878
PB
33460
33461
d5eec917
PB
33462.PHONY: check-rcs maybe-check-rcs
33463maybe-check-rcs:
33464@if rcs
33465maybe-check-rcs: check-rcs
8ecc6504 33466
d5eec917 33467check-rcs:
15b527ca 33468 @: $(MAKE); $(unstage)
5230d454
L
33469 @r=`${PWD_COMMAND}`; export r; \
33470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33471 $(HOST_EXPORTS) \
7fc2ca22
PB
33472 (cd $(HOST_SUBDIR)/rcs && \
33473 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 33474
d5eec917 33475@endif rcs
8ecc6504 33476
d5eec917
PB
33477.PHONY: install-rcs maybe-install-rcs
33478maybe-install-rcs:
33479@if rcs
33480maybe-install-rcs: install-rcs
70ffc148 33481
d5eec917 33482install-rcs: installdirs
15b527ca 33483 @: $(MAKE); $(unstage)
5230d454
L
33484 @r=`${PWD_COMMAND}`; export r; \
33485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33486 $(HOST_EXPORTS) \
7fc2ca22 33487 (cd $(HOST_SUBDIR)/rcs && \
93c60b6d 33488 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 33489
d5eec917 33490@endif rcs
8ecc6504 33491
39bbbb69 33492# Other targets (info, dvi, pdf, etc.)
8ec98d6c 33493
d5eec917
PB
33494.PHONY: maybe-info-rcs info-rcs
33495maybe-info-rcs:
33496@if rcs
33497maybe-info-rcs: info-rcs
8ec98d6c 33498
d5eec917
PB
33499info-rcs: \
33500 configure-rcs
15b527ca 33501 @: $(MAKE); $(unstage)
d5eec917 33502 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33503 r=`${PWD_COMMAND}`; export r; \
33504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33505 $(HOST_EXPORTS) \
d5eec917 33506 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33508 done; \
d5eec917 33509 echo "Doing info in rcs" ; \
7fc2ca22 33510 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33513 "RANLIB=$${RANLIB}" \
bffcbe34 33514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33515 info) \
8ec98d6c
NN
33516 || exit 1
33517
d5eec917 33518@endif rcs
8ec98d6c 33519
d5eec917
PB
33520.PHONY: maybe-dvi-rcs dvi-rcs
33521maybe-dvi-rcs:
33522@if rcs
33523maybe-dvi-rcs: dvi-rcs
8ec98d6c 33524
d5eec917
PB
33525dvi-rcs: \
33526 configure-rcs
15b527ca 33527 @: $(MAKE); $(unstage)
d5eec917 33528 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33529 r=`${PWD_COMMAND}`; export r; \
33530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33531 $(HOST_EXPORTS) \
d5eec917 33532 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33534 done; \
d5eec917 33535 echo "Doing dvi in rcs" ; \
7fc2ca22 33536 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33539 "RANLIB=$${RANLIB}" \
bffcbe34 33540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33541 dvi) \
8ec98d6c
NN
33542 || exit 1
33543
d5eec917 33544@endif rcs
8ec98d6c 33545
39bbbb69
DD
33546.PHONY: maybe-pdf-rcs pdf-rcs
33547maybe-pdf-rcs:
33548@if rcs
33549maybe-pdf-rcs: pdf-rcs
33550
33551pdf-rcs: \
33552 configure-rcs
33553 @: $(MAKE); $(unstage)
33554 @[ -f ./rcs/Makefile ] || exit 0; \
33555 r=`${PWD_COMMAND}`; export r; \
33556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33557 $(HOST_EXPORTS) \
33558 for flag in $(EXTRA_HOST_FLAGS) ; do \
33559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33560 done; \
33561 echo "Doing pdf in rcs" ; \
33562 (cd $(HOST_SUBDIR)/rcs && \
33563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33565 "RANLIB=$${RANLIB}" \
bffcbe34 33566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33567 pdf) \
33568 || exit 1
33569
33570@endif rcs
33571
b6fb961f
MS
33572.PHONY: maybe-html-rcs html-rcs
33573maybe-html-rcs:
33574@if rcs
33575maybe-html-rcs: html-rcs
33576
33577html-rcs: \
33578 configure-rcs
15b527ca 33579 @: $(MAKE); $(unstage)
b6fb961f
MS
33580 @[ -f ./rcs/Makefile ] || exit 0; \
33581 r=`${PWD_COMMAND}`; export r; \
33582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
33583 $(HOST_EXPORTS) \
33584 for flag in $(EXTRA_HOST_FLAGS) ; do \
33585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33586 done; \
33587 echo "Doing html in rcs" ; \
7fc2ca22 33588 (cd $(HOST_SUBDIR)/rcs && \
b6fb961f
MS
33589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33591 "RANLIB=$${RANLIB}" \
bffcbe34 33592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
33593 html) \
33594 || exit 1
33595
33596@endif rcs
33597
d5eec917
PB
33598.PHONY: maybe-TAGS-rcs TAGS-rcs
33599maybe-TAGS-rcs:
33600@if rcs
33601maybe-TAGS-rcs: TAGS-rcs
8ec98d6c 33602
d5eec917
PB
33603TAGS-rcs: \
33604 configure-rcs
15b527ca 33605 @: $(MAKE); $(unstage)
d5eec917 33606 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33607 r=`${PWD_COMMAND}`; export r; \
33608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33609 $(HOST_EXPORTS) \
d5eec917 33610 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33612 done; \
d5eec917 33613 echo "Doing TAGS in rcs" ; \
7fc2ca22 33614 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33617 "RANLIB=$${RANLIB}" \
bffcbe34 33618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33619 TAGS) \
8ec98d6c
NN
33620 || exit 1
33621
d5eec917 33622@endif rcs
8ec98d6c 33623
d5eec917
PB
33624.PHONY: maybe-install-info-rcs install-info-rcs
33625maybe-install-info-rcs:
33626@if rcs
33627maybe-install-info-rcs: install-info-rcs
8ec98d6c 33628
d5eec917
PB
33629install-info-rcs: \
33630 configure-rcs \
33631 info-rcs
15b527ca 33632 @: $(MAKE); $(unstage)
d5eec917 33633 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33634 r=`${PWD_COMMAND}`; export r; \
33635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33636 $(HOST_EXPORTS) \
d5eec917 33637 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33639 done; \
d5eec917 33640 echo "Doing install-info in rcs" ; \
7fc2ca22 33641 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33644 "RANLIB=$${RANLIB}" \
bffcbe34 33645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33646 install-info) \
8ec98d6c
NN
33647 || exit 1
33648
d5eec917 33649@endif rcs
8ec98d6c 33650
d4954b6d
DD
33651.PHONY: maybe-install-pdf-rcs install-pdf-rcs
33652maybe-install-pdf-rcs:
33653@if rcs
33654maybe-install-pdf-rcs: install-pdf-rcs
33655
33656install-pdf-rcs: \
33657 configure-rcs \
33658 pdf-rcs
33659 @: $(MAKE); $(unstage)
33660 @[ -f ./rcs/Makefile ] || exit 0; \
33661 r=`${PWD_COMMAND}`; export r; \
33662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33663 $(HOST_EXPORTS) \
33664 for flag in $(EXTRA_HOST_FLAGS) ; do \
33665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33666 done; \
33667 echo "Doing install-pdf in rcs" ; \
33668 (cd $(HOST_SUBDIR)/rcs && \
33669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33671 "RANLIB=$${RANLIB}" \
bffcbe34 33672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
33673 install-pdf) \
33674 || exit 1
33675
33676@endif rcs
33677
83c9add4
CD
33678.PHONY: maybe-install-html-rcs install-html-rcs
33679maybe-install-html-rcs:
33680@if rcs
33681maybe-install-html-rcs: install-html-rcs
33682
33683install-html-rcs: \
33684 configure-rcs \
33685 html-rcs
33686 @: $(MAKE); $(unstage)
33687 @[ -f ./rcs/Makefile ] || exit 0; \
33688 r=`${PWD_COMMAND}`; export r; \
33689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33690 $(HOST_EXPORTS) \
33691 for flag in $(EXTRA_HOST_FLAGS) ; do \
33692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33693 done; \
33694 echo "Doing install-html in rcs" ; \
33695 (cd $(HOST_SUBDIR)/rcs && \
33696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33698 "RANLIB=$${RANLIB}" \
bffcbe34 33699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
33700 install-html) \
33701 || exit 1
33702
33703@endif rcs
33704
d5eec917
PB
33705.PHONY: maybe-installcheck-rcs installcheck-rcs
33706maybe-installcheck-rcs:
33707@if rcs
33708maybe-installcheck-rcs: installcheck-rcs
8ec98d6c 33709
d5eec917
PB
33710installcheck-rcs: \
33711 configure-rcs
15b527ca 33712 @: $(MAKE); $(unstage)
d5eec917 33713 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33714 r=`${PWD_COMMAND}`; export r; \
33715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33716 $(HOST_EXPORTS) \
d5eec917 33717 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33719 done; \
d5eec917 33720 echo "Doing installcheck in rcs" ; \
7fc2ca22 33721 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33724 "RANLIB=$${RANLIB}" \
bffcbe34 33725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33726 installcheck) \
8ec98d6c
NN
33727 || exit 1
33728
d5eec917 33729@endif rcs
8ec98d6c 33730
d5eec917
PB
33731.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
33732maybe-mostlyclean-rcs:
33733@if rcs
33734maybe-mostlyclean-rcs: mostlyclean-rcs
8ec98d6c 33735
d5eec917 33736mostlyclean-rcs:
15b527ca 33737 @: $(MAKE); $(unstage)
d5eec917 33738 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33739 r=`${PWD_COMMAND}`; export r; \
33740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33741 $(HOST_EXPORTS) \
d5eec917 33742 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33744 done; \
d5eec917 33745 echo "Doing mostlyclean in rcs" ; \
7fc2ca22 33746 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33749 "RANLIB=$${RANLIB}" \
bffcbe34 33750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33751 mostlyclean) \
8ec98d6c
NN
33752 || exit 1
33753
d5eec917 33754@endif rcs
8ec98d6c 33755
d5eec917
PB
33756.PHONY: maybe-clean-rcs clean-rcs
33757maybe-clean-rcs:
33758@if rcs
33759maybe-clean-rcs: clean-rcs
8ec98d6c 33760
d5eec917 33761clean-rcs:
15b527ca 33762 @: $(MAKE); $(unstage)
d5eec917 33763 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33764 r=`${PWD_COMMAND}`; export r; \
33765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33766 $(HOST_EXPORTS) \
d5eec917 33767 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33769 done; \
d5eec917 33770 echo "Doing clean in rcs" ; \
7fc2ca22 33771 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33774 "RANLIB=$${RANLIB}" \
bffcbe34 33775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33776 clean) \
8ec98d6c
NN
33777 || exit 1
33778
d5eec917 33779@endif rcs
8ec98d6c 33780
d5eec917
PB
33781.PHONY: maybe-distclean-rcs distclean-rcs
33782maybe-distclean-rcs:
33783@if rcs
33784maybe-distclean-rcs: distclean-rcs
8ec98d6c 33785
d5eec917 33786distclean-rcs:
15b527ca 33787 @: $(MAKE); $(unstage)
d5eec917 33788 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33789 r=`${PWD_COMMAND}`; export r; \
33790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33791 $(HOST_EXPORTS) \
d5eec917 33792 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33794 done; \
d5eec917 33795 echo "Doing distclean in rcs" ; \
7fc2ca22 33796 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33799 "RANLIB=$${RANLIB}" \
bffcbe34 33800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33801 distclean) \
8ec98d6c
NN
33802 || exit 1
33803
d5eec917 33804@endif rcs
8ec98d6c 33805
d5eec917
PB
33806.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
33807maybe-maintainer-clean-rcs:
33808@if rcs
33809maybe-maintainer-clean-rcs: maintainer-clean-rcs
8ec98d6c 33810
d5eec917 33811maintainer-clean-rcs:
15b527ca 33812 @: $(MAKE); $(unstage)
d5eec917 33813 @[ -f ./rcs/Makefile ] || exit 0; \
8ec98d6c
NN
33814 r=`${PWD_COMMAND}`; export r; \
33815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33816 $(HOST_EXPORTS) \
d5eec917 33817 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33819 done; \
d5eec917 33820 echo "Doing maintainer-clean in rcs" ; \
7fc2ca22 33821 (cd $(HOST_SUBDIR)/rcs && \
8ec98d6c
NN
33822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33824 "RANLIB=$${RANLIB}" \
bffcbe34 33825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33826 maintainer-clean) \
8ec98d6c
NN
33827 || exit 1
33828
d5eec917 33829@endif rcs
8ec98d6c
NN
33830
33831
f0fdfd34 33832
d5eec917
PB
33833.PHONY: configure-readline maybe-configure-readline
33834maybe-configure-readline:
e1e5148c
CD
33835@if gcc-bootstrap
33836configure-readline: stage_current
33837@endif gcc-bootstrap
d5eec917
PB
33838@if readline
33839maybe-configure-readline: configure-readline
ec92c4d6 33840configure-readline:
15b527ca 33841 @: $(MAKE); $(unstage)
ec92c4d6 33842 @r=`${PWD_COMMAND}`; export r; \
5230d454 33843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
33844 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
33845 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
5074489a 33846 $(HOST_EXPORTS) \
f0fdfd34
PB
33847 echo Configuring in $(HOST_SUBDIR)/readline; \
33848 cd "$(HOST_SUBDIR)/readline" || exit 1; \
94f860c0 33849 case $(srcdir) in \
7fc2ca22
PB
33850 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33851 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
33852 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 33853 esac; \
7fc2ca22
PB
33854 srcdiroption="--srcdir=$${topdir}/readline"; \
33855 libsrcdir="$$s/readline"; \
94f860c0 33856 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
33857 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33858 --target=${target_alias} $${srcdiroption} \
94f860c0 33859 || exit 1
d5eec917 33860@endif readline
94f860c0 33861
f0fdfd34
PB
33862
33863
a8a96878
PB
33864
33865
d5eec917
PB
33866.PHONY: all-readline maybe-all-readline
33867maybe-all-readline:
e1e5148c
CD
33868@if gcc-bootstrap
33869all-readline: stage_current
33870@endif gcc-bootstrap
d5eec917 33871@if readline
5e6b1f07 33872TARGET-readline=all
d5eec917
PB
33873maybe-all-readline: all-readline
33874all-readline: configure-readline
15b527ca 33875 @: $(MAKE); $(unstage)
5230d454
L
33876 @r=`${PWD_COMMAND}`; export r; \
33877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 33878 $(HOST_EXPORTS) \
7fc2ca22 33879 (cd $(HOST_SUBDIR)/readline && \
6532abb6
PB
33880 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
33881 $(TARGET-readline))
d5eec917 33882@endif readline
8ecc6504 33883
f0fdfd34 33884
a8a96878
PB
33885
33886
d5eec917
PB
33887.PHONY: check-readline maybe-check-readline
33888maybe-check-readline:
33889@if readline
33890maybe-check-readline: check-readline
8ecc6504 33891
d5eec917 33892check-readline:
15b527ca 33893 @: $(MAKE); $(unstage)
d5eec917
PB
33894 @r=`${PWD_COMMAND}`; export r; \
33895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 33896 $(HOST_EXPORTS) \
7fc2ca22
PB
33897 (cd $(HOST_SUBDIR)/readline && \
33898 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 33899
d5eec917 33900@endif readline
8ec98d6c 33901
d5eec917
PB
33902.PHONY: install-readline maybe-install-readline
33903maybe-install-readline:
33904@if readline
33905maybe-install-readline: install-readline
8ec98d6c 33906
d5eec917 33907install-readline: installdirs
15b527ca 33908 @: $(MAKE); $(unstage)
d5eec917
PB
33909 @r=`${PWD_COMMAND}`; export r; \
33910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 33911 $(HOST_EXPORTS) \
7fc2ca22 33912 (cd $(HOST_SUBDIR)/readline && \
93c60b6d 33913 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 33914
d5eec917 33915@endif readline
8ec98d6c 33916
39bbbb69 33917# Other targets (info, dvi, pdf, etc.)
8ec98d6c 33918
d5eec917
PB
33919.PHONY: maybe-info-readline info-readline
33920maybe-info-readline:
33921@if readline
33922maybe-info-readline: info-readline
8ec98d6c 33923
d5eec917
PB
33924info-readline: \
33925 configure-readline
15b527ca 33926 @: $(MAKE); $(unstage)
d5eec917 33927 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 33928 r=`${PWD_COMMAND}`; export r; \
5230d454 33929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33930 $(HOST_EXPORTS) \
d5eec917 33931 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33933 done; \
d5eec917 33934 echo "Doing info in readline" ; \
7fc2ca22 33935 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
33936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33938 "RANLIB=$${RANLIB}" \
bffcbe34 33939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33940 info) \
8ec98d6c 33941 || exit 1
8ecc6504 33942
d5eec917 33943@endif readline
8ecc6504 33944
d5eec917
PB
33945.PHONY: maybe-dvi-readline dvi-readline
33946maybe-dvi-readline:
33947@if readline
33948maybe-dvi-readline: dvi-readline
70ffc148 33949
d5eec917
PB
33950dvi-readline: \
33951 configure-readline
15b527ca 33952 @: $(MAKE); $(unstage)
d5eec917 33953 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 33954 r=`${PWD_COMMAND}`; export r; \
5230d454 33955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 33956 $(HOST_EXPORTS) \
d5eec917 33957 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
33958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33959 done; \
d5eec917 33960 echo "Doing dvi in readline" ; \
7fc2ca22 33961 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
33962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33964 "RANLIB=$${RANLIB}" \
bffcbe34 33965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 33966 dvi) \
8ec98d6c 33967 || exit 1
8ecc6504 33968
d5eec917 33969@endif readline
8ecc6504 33970
39bbbb69
DD
33971.PHONY: maybe-pdf-readline pdf-readline
33972maybe-pdf-readline:
33973@if readline
33974maybe-pdf-readline: pdf-readline
33975
33976pdf-readline: \
33977 configure-readline
33978 @: $(MAKE); $(unstage)
33979 @[ -f ./readline/Makefile ] || exit 0; \
33980 r=`${PWD_COMMAND}`; export r; \
33981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33982 $(HOST_EXPORTS) \
33983 for flag in $(EXTRA_HOST_FLAGS) ; do \
33984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33985 done; \
33986 echo "Doing pdf in readline" ; \
33987 (cd $(HOST_SUBDIR)/readline && \
33988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33990 "RANLIB=$${RANLIB}" \
bffcbe34 33991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
33992 pdf) \
33993 || exit 1
33994
33995@endif readline
33996
b6fb961f
MS
33997.PHONY: maybe-html-readline html-readline
33998maybe-html-readline:
33999@if readline
34000maybe-html-readline: html-readline
34001
34002html-readline: \
34003 configure-readline
15b527ca 34004 @: $(MAKE); $(unstage)
b6fb961f
MS
34005 @[ -f ./readline/Makefile ] || exit 0; \
34006 r=`${PWD_COMMAND}`; export r; \
34007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
34008 $(HOST_EXPORTS) \
34009 for flag in $(EXTRA_HOST_FLAGS) ; do \
34010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34011 done; \
34012 echo "Doing html in readline" ; \
7fc2ca22 34013 (cd $(HOST_SUBDIR)/readline && \
b6fb961f
MS
34014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34016 "RANLIB=$${RANLIB}" \
bffcbe34 34017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
34018 html) \
34019 || exit 1
34020
34021@endif readline
34022
d5eec917
PB
34023.PHONY: maybe-TAGS-readline TAGS-readline
34024maybe-TAGS-readline:
34025@if readline
34026maybe-TAGS-readline: TAGS-readline
8ec98d6c 34027
d5eec917
PB
34028TAGS-readline: \
34029 configure-readline
15b527ca 34030 @: $(MAKE); $(unstage)
d5eec917 34031 @[ -f ./readline/Makefile ] || exit 0; \
5230d454
L
34032 r=`${PWD_COMMAND}`; export r; \
34033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34034 $(HOST_EXPORTS) \
d5eec917 34035 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34037 done; \
d5eec917 34038 echo "Doing TAGS in readline" ; \
7fc2ca22 34039 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34042 "RANLIB=$${RANLIB}" \
bffcbe34 34043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34044 TAGS) \
94f860c0
NN
34045 || exit 1
34046
d5eec917 34047@endif readline
8ec98d6c 34048
d5eec917
PB
34049.PHONY: maybe-install-info-readline install-info-readline
34050maybe-install-info-readline:
34051@if readline
34052maybe-install-info-readline: install-info-readline
8ec98d6c 34053
d5eec917
PB
34054install-info-readline: \
34055 configure-readline \
34056 info-readline
15b527ca 34057 @: $(MAKE); $(unstage)
d5eec917 34058 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 34059 r=`${PWD_COMMAND}`; export r; \
5230d454 34060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34061 $(HOST_EXPORTS) \
d5eec917 34062 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34064 done; \
d5eec917 34065 echo "Doing install-info in readline" ; \
7fc2ca22 34066 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34069 "RANLIB=$${RANLIB}" \
bffcbe34 34070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34071 install-info) \
8ec98d6c 34072 || exit 1
8ecc6504 34073
d5eec917 34074@endif readline
8ecc6504 34075
d4954b6d
DD
34076.PHONY: maybe-install-pdf-readline install-pdf-readline
34077maybe-install-pdf-readline:
34078@if readline
34079maybe-install-pdf-readline: install-pdf-readline
34080
34081install-pdf-readline: \
34082 configure-readline \
34083 pdf-readline
34084 @: $(MAKE); $(unstage)
34085 @[ -f ./readline/Makefile ] || exit 0; \
34086 r=`${PWD_COMMAND}`; export r; \
34087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34088 $(HOST_EXPORTS) \
34089 for flag in $(EXTRA_HOST_FLAGS) ; do \
34090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34091 done; \
34092 echo "Doing install-pdf in readline" ; \
34093 (cd $(HOST_SUBDIR)/readline && \
34094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34096 "RANLIB=$${RANLIB}" \
bffcbe34 34097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
34098 install-pdf) \
34099 || exit 1
34100
34101@endif readline
34102
83c9add4
CD
34103.PHONY: maybe-install-html-readline install-html-readline
34104maybe-install-html-readline:
34105@if readline
34106maybe-install-html-readline: install-html-readline
34107
34108install-html-readline: \
34109 configure-readline \
34110 html-readline
34111 @: $(MAKE); $(unstage)
34112 @[ -f ./readline/Makefile ] || exit 0; \
34113 r=`${PWD_COMMAND}`; export r; \
34114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34115 $(HOST_EXPORTS) \
34116 for flag in $(EXTRA_HOST_FLAGS) ; do \
34117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34118 done; \
34119 echo "Doing install-html in readline" ; \
34120 (cd $(HOST_SUBDIR)/readline && \
34121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34123 "RANLIB=$${RANLIB}" \
bffcbe34 34124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34125 install-html) \
34126 || exit 1
34127
34128@endif readline
34129
d5eec917
PB
34130.PHONY: maybe-installcheck-readline installcheck-readline
34131maybe-installcheck-readline:
34132@if readline
34133maybe-installcheck-readline: installcheck-readline
8ec98d6c 34134
d5eec917
PB
34135installcheck-readline: \
34136 configure-readline
15b527ca 34137 @: $(MAKE); $(unstage)
d5eec917 34138 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
34139 r=`${PWD_COMMAND}`; export r; \
34140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34141 $(HOST_EXPORTS) \
d5eec917 34142 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34144 done; \
d5eec917 34145 echo "Doing installcheck in readline" ; \
7fc2ca22 34146 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34149 "RANLIB=$${RANLIB}" \
bffcbe34 34150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34151 installcheck) \
8ec98d6c 34152 || exit 1
8ecc6504 34153
d5eec917 34154@endif readline
8ecc6504 34155
d5eec917
PB
34156.PHONY: maybe-mostlyclean-readline mostlyclean-readline
34157maybe-mostlyclean-readline:
34158@if readline
34159maybe-mostlyclean-readline: mostlyclean-readline
8ec98d6c 34160
d5eec917 34161mostlyclean-readline:
15b527ca 34162 @: $(MAKE); $(unstage)
d5eec917 34163 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
34164 r=`${PWD_COMMAND}`; export r; \
34165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34166 $(HOST_EXPORTS) \
d5eec917 34167 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34169 done; \
d5eec917 34170 echo "Doing mostlyclean in readline" ; \
7fc2ca22 34171 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34174 "RANLIB=$${RANLIB}" \
bffcbe34 34175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34176 mostlyclean) \
8ec98d6c
NN
34177 || exit 1
34178
d5eec917 34179@endif readline
8ec98d6c 34180
d5eec917
PB
34181.PHONY: maybe-clean-readline clean-readline
34182maybe-clean-readline:
34183@if readline
34184maybe-clean-readline: clean-readline
8ec98d6c 34185
d5eec917 34186clean-readline:
15b527ca 34187 @: $(MAKE); $(unstage)
d5eec917 34188 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
34189 r=`${PWD_COMMAND}`; export r; \
34190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34191 $(HOST_EXPORTS) \
d5eec917 34192 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34194 done; \
d5eec917 34195 echo "Doing clean in readline" ; \
7fc2ca22 34196 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34199 "RANLIB=$${RANLIB}" \
bffcbe34 34200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34201 clean) \
8ec98d6c
NN
34202 || exit 1
34203
d5eec917 34204@endif readline
8ec98d6c 34205
d5eec917
PB
34206.PHONY: maybe-distclean-readline distclean-readline
34207maybe-distclean-readline:
34208@if readline
34209maybe-distclean-readline: distclean-readline
8ec98d6c 34210
d5eec917 34211distclean-readline:
15b527ca 34212 @: $(MAKE); $(unstage)
d5eec917 34213 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c
NN
34214 r=`${PWD_COMMAND}`; export r; \
34215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34216 $(HOST_EXPORTS) \
d5eec917 34217 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34219 done; \
d5eec917 34220 echo "Doing distclean in readline" ; \
7fc2ca22 34221 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34224 "RANLIB=$${RANLIB}" \
bffcbe34 34225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34226 distclean) \
8ec98d6c
NN
34227 || exit 1
34228
d5eec917 34229@endif readline
8ec98d6c 34230
d5eec917
PB
34231.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
34232maybe-maintainer-clean-readline:
34233@if readline
34234maybe-maintainer-clean-readline: maintainer-clean-readline
70ffc148 34235
d5eec917 34236maintainer-clean-readline:
15b527ca 34237 @: $(MAKE); $(unstage)
d5eec917 34238 @[ -f ./readline/Makefile ] || exit 0; \
8ec98d6c 34239 r=`${PWD_COMMAND}`; export r; \
5230d454 34240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34241 $(HOST_EXPORTS) \
d5eec917 34242 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34244 done; \
d5eec917 34245 echo "Doing maintainer-clean in readline" ; \
7fc2ca22 34246 (cd $(HOST_SUBDIR)/readline && \
8ec98d6c
NN
34247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34249 "RANLIB=$${RANLIB}" \
bffcbe34 34250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34251 maintainer-clean) \
8ec98d6c 34252 || exit 1
8ecc6504 34253
d5eec917 34254@endif readline
8ecc6504 34255
8ec98d6c 34256
f0fdfd34 34257
d5eec917
PB
34258.PHONY: configure-release maybe-configure-release
34259maybe-configure-release:
e1e5148c
CD
34260@if gcc-bootstrap
34261configure-release: stage_current
34262@endif gcc-bootstrap
d5eec917
PB
34263@if release
34264maybe-configure-release: configure-release
ec92c4d6 34265configure-release:
15b527ca 34266 @: $(MAKE); $(unstage)
ec92c4d6 34267 @r=`${PWD_COMMAND}`; export r; \
5230d454 34268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
34269 test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
34270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
5074489a 34271 $(HOST_EXPORTS) \
f0fdfd34
PB
34272 echo Configuring in $(HOST_SUBDIR)/release; \
34273 cd "$(HOST_SUBDIR)/release" || exit 1; \
94f860c0 34274 case $(srcdir) in \
7fc2ca22
PB
34275 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34276 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
34277 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 34278 esac; \
7fc2ca22
PB
34279 srcdiroption="--srcdir=$${topdir}/release"; \
34280 libsrcdir="$$s/release"; \
94f860c0 34281 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
34282 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34283 --target=${target_alias} $${srcdiroption} \
94f860c0 34284 || exit 1
d5eec917 34285@endif release
94f860c0 34286
f0fdfd34
PB
34287
34288
a8a96878
PB
34289
34290
d5eec917
PB
34291.PHONY: all-release maybe-all-release
34292maybe-all-release:
e1e5148c
CD
34293@if gcc-bootstrap
34294all-release: stage_current
34295@endif gcc-bootstrap
d5eec917 34296@if release
5e6b1f07 34297TARGET-release=all
d5eec917
PB
34298maybe-all-release: all-release
34299all-release: configure-release
15b527ca 34300 @: $(MAKE); $(unstage)
5230d454
L
34301 @r=`${PWD_COMMAND}`; export r; \
34302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 34303 $(HOST_EXPORTS) \
7fc2ca22 34304 (cd $(HOST_SUBDIR)/release && \
6532abb6
PB
34305 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
34306 $(TARGET-release))
d5eec917 34307@endif release
8ecc6504 34308
f0fdfd34 34309
a8a96878
PB
34310
34311
d5eec917
PB
34312.PHONY: check-release maybe-check-release
34313maybe-check-release:
34314@if release
34315maybe-check-release: check-release
8ecc6504 34316
d5eec917 34317check-release:
8ecc6504 34318
d5eec917 34319@endif release
8ecc6504 34320
d5eec917
PB
34321.PHONY: install-release maybe-install-release
34322maybe-install-release:
34323@if release
34324maybe-install-release: install-release
70ffc148 34325
d5eec917 34326install-release:
8ec98d6c 34327
d5eec917 34328@endif release
8ec98d6c 34329
39bbbb69 34330# Other targets (info, dvi, pdf, etc.)
8ec98d6c 34331
d5eec917
PB
34332.PHONY: maybe-info-release info-release
34333maybe-info-release:
34334@if release
34335maybe-info-release: info-release
8ec98d6c 34336
d5eec917
PB
34337info-release: \
34338 configure-release
15b527ca 34339 @: $(MAKE); $(unstage)
d5eec917 34340 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34341 r=`${PWD_COMMAND}`; export r; \
34342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34343 $(HOST_EXPORTS) \
d5eec917 34344 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34346 done; \
d5eec917 34347 echo "Doing info in release" ; \
7fc2ca22 34348 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34351 "RANLIB=$${RANLIB}" \
bffcbe34 34352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34353 info) \
8ec98d6c
NN
34354 || exit 1
34355
d5eec917 34356@endif release
8ec98d6c 34357
d5eec917
PB
34358.PHONY: maybe-dvi-release dvi-release
34359maybe-dvi-release:
34360@if release
34361maybe-dvi-release: dvi-release
8ec98d6c 34362
d5eec917
PB
34363dvi-release: \
34364 configure-release
15b527ca 34365 @: $(MAKE); $(unstage)
d5eec917 34366 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34367 r=`${PWD_COMMAND}`; export r; \
34368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34369 $(HOST_EXPORTS) \
d5eec917 34370 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34372 done; \
d5eec917 34373 echo "Doing dvi in release" ; \
7fc2ca22 34374 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34377 "RANLIB=$${RANLIB}" \
bffcbe34 34378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34379 dvi) \
8ec98d6c
NN
34380 || exit 1
34381
d5eec917 34382@endif release
8ec98d6c 34383
39bbbb69
DD
34384.PHONY: maybe-pdf-release pdf-release
34385maybe-pdf-release:
34386@if release
34387maybe-pdf-release: pdf-release
34388
34389pdf-release: \
34390 configure-release
34391 @: $(MAKE); $(unstage)
34392 @[ -f ./release/Makefile ] || exit 0; \
34393 r=`${PWD_COMMAND}`; export r; \
34394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34395 $(HOST_EXPORTS) \
34396 for flag in $(EXTRA_HOST_FLAGS) ; do \
34397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34398 done; \
34399 echo "Doing pdf in release" ; \
34400 (cd $(HOST_SUBDIR)/release && \
34401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34403 "RANLIB=$${RANLIB}" \
bffcbe34 34404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
34405 pdf) \
34406 || exit 1
34407
34408@endif release
34409
b6fb961f
MS
34410.PHONY: maybe-html-release html-release
34411maybe-html-release:
34412@if release
34413maybe-html-release: html-release
34414
34415html-release: \
34416 configure-release
15b527ca 34417 @: $(MAKE); $(unstage)
b6fb961f
MS
34418 @[ -f ./release/Makefile ] || exit 0; \
34419 r=`${PWD_COMMAND}`; export r; \
34420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
34421 $(HOST_EXPORTS) \
34422 for flag in $(EXTRA_HOST_FLAGS) ; do \
34423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34424 done; \
34425 echo "Doing html in release" ; \
7fc2ca22 34426 (cd $(HOST_SUBDIR)/release && \
b6fb961f
MS
34427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34429 "RANLIB=$${RANLIB}" \
bffcbe34 34430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
34431 html) \
34432 || exit 1
34433
34434@endif release
34435
d5eec917
PB
34436.PHONY: maybe-TAGS-release TAGS-release
34437maybe-TAGS-release:
34438@if release
34439maybe-TAGS-release: TAGS-release
8ec98d6c 34440
d5eec917
PB
34441TAGS-release: \
34442 configure-release
15b527ca 34443 @: $(MAKE); $(unstage)
d5eec917 34444 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34445 r=`${PWD_COMMAND}`; export r; \
34446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34447 $(HOST_EXPORTS) \
d5eec917 34448 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34450 done; \
d5eec917 34451 echo "Doing TAGS in release" ; \
7fc2ca22 34452 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34455 "RANLIB=$${RANLIB}" \
bffcbe34 34456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34457 TAGS) \
8ec98d6c
NN
34458 || exit 1
34459
d5eec917 34460@endif release
8ec98d6c 34461
d5eec917
PB
34462.PHONY: maybe-install-info-release install-info-release
34463maybe-install-info-release:
34464@if release
34465maybe-install-info-release: install-info-release
8ec98d6c 34466
d5eec917
PB
34467install-info-release: \
34468 configure-release \
34469 info-release
15b527ca 34470 @: $(MAKE); $(unstage)
d5eec917 34471 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34472 r=`${PWD_COMMAND}`; export r; \
34473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34474 $(HOST_EXPORTS) \
d5eec917 34475 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34477 done; \
d5eec917 34478 echo "Doing install-info in release" ; \
7fc2ca22 34479 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34482 "RANLIB=$${RANLIB}" \
bffcbe34 34483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34484 install-info) \
8ec98d6c
NN
34485 || exit 1
34486
d5eec917 34487@endif release
8ec98d6c 34488
d4954b6d
DD
34489.PHONY: maybe-install-pdf-release install-pdf-release
34490maybe-install-pdf-release:
34491@if release
34492maybe-install-pdf-release: install-pdf-release
34493
34494install-pdf-release: \
34495 configure-release \
34496 pdf-release
34497 @: $(MAKE); $(unstage)
34498 @[ -f ./release/Makefile ] || exit 0; \
34499 r=`${PWD_COMMAND}`; export r; \
34500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34501 $(HOST_EXPORTS) \
34502 for flag in $(EXTRA_HOST_FLAGS) ; do \
34503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34504 done; \
34505 echo "Doing install-pdf in release" ; \
34506 (cd $(HOST_SUBDIR)/release && \
34507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34509 "RANLIB=$${RANLIB}" \
bffcbe34 34510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
34511 install-pdf) \
34512 || exit 1
34513
34514@endif release
34515
83c9add4
CD
34516.PHONY: maybe-install-html-release install-html-release
34517maybe-install-html-release:
34518@if release
34519maybe-install-html-release: install-html-release
34520
34521install-html-release: \
34522 configure-release \
34523 html-release
34524 @: $(MAKE); $(unstage)
34525 @[ -f ./release/Makefile ] || exit 0; \
34526 r=`${PWD_COMMAND}`; export r; \
34527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34528 $(HOST_EXPORTS) \
34529 for flag in $(EXTRA_HOST_FLAGS) ; do \
34530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34531 done; \
34532 echo "Doing install-html in release" ; \
34533 (cd $(HOST_SUBDIR)/release && \
34534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34536 "RANLIB=$${RANLIB}" \
bffcbe34 34537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34538 install-html) \
34539 || exit 1
34540
34541@endif release
34542
d5eec917
PB
34543.PHONY: maybe-installcheck-release installcheck-release
34544maybe-installcheck-release:
34545@if release
34546maybe-installcheck-release: installcheck-release
8ec98d6c 34547
d5eec917
PB
34548installcheck-release: \
34549 configure-release
15b527ca 34550 @: $(MAKE); $(unstage)
d5eec917 34551 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34552 r=`${PWD_COMMAND}`; export r; \
34553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34554 $(HOST_EXPORTS) \
d5eec917 34555 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34557 done; \
d5eec917 34558 echo "Doing installcheck in release" ; \
7fc2ca22 34559 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34562 "RANLIB=$${RANLIB}" \
bffcbe34 34563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34564 installcheck) \
8ec98d6c
NN
34565 || exit 1
34566
d5eec917 34567@endif release
8ec98d6c 34568
d5eec917
PB
34569.PHONY: maybe-mostlyclean-release mostlyclean-release
34570maybe-mostlyclean-release:
34571@if release
34572maybe-mostlyclean-release: mostlyclean-release
8ec98d6c 34573
d5eec917 34574mostlyclean-release:
15b527ca 34575 @: $(MAKE); $(unstage)
d5eec917 34576 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34577 r=`${PWD_COMMAND}`; export r; \
34578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34579 $(HOST_EXPORTS) \
d5eec917 34580 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34582 done; \
d5eec917 34583 echo "Doing mostlyclean in release" ; \
7fc2ca22 34584 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34587 "RANLIB=$${RANLIB}" \
bffcbe34 34588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34589 mostlyclean) \
8ec98d6c
NN
34590 || exit 1
34591
d5eec917 34592@endif release
8ec98d6c 34593
d5eec917
PB
34594.PHONY: maybe-clean-release clean-release
34595maybe-clean-release:
34596@if release
34597maybe-clean-release: clean-release
8ec98d6c 34598
d5eec917 34599clean-release:
15b527ca 34600 @: $(MAKE); $(unstage)
d5eec917 34601 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34602 r=`${PWD_COMMAND}`; export r; \
34603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34604 $(HOST_EXPORTS) \
d5eec917 34605 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34607 done; \
d5eec917 34608 echo "Doing clean in release" ; \
7fc2ca22 34609 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34612 "RANLIB=$${RANLIB}" \
bffcbe34 34613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34614 clean) \
8ec98d6c
NN
34615 || exit 1
34616
d5eec917 34617@endif release
8ec98d6c 34618
d5eec917
PB
34619.PHONY: maybe-distclean-release distclean-release
34620maybe-distclean-release:
34621@if release
34622maybe-distclean-release: distclean-release
8ec98d6c 34623
d5eec917 34624distclean-release:
15b527ca 34625 @: $(MAKE); $(unstage)
d5eec917 34626 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34627 r=`${PWD_COMMAND}`; export r; \
34628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34629 $(HOST_EXPORTS) \
d5eec917 34630 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34632 done; \
d5eec917 34633 echo "Doing distclean in release" ; \
7fc2ca22 34634 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34637 "RANLIB=$${RANLIB}" \
bffcbe34 34638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34639 distclean) \
8ec98d6c
NN
34640 || exit 1
34641
d5eec917 34642@endif release
8ec98d6c 34643
d5eec917
PB
34644.PHONY: maybe-maintainer-clean-release maintainer-clean-release
34645maybe-maintainer-clean-release:
34646@if release
34647maybe-maintainer-clean-release: maintainer-clean-release
8ec98d6c 34648
d5eec917 34649maintainer-clean-release:
15b527ca 34650 @: $(MAKE); $(unstage)
d5eec917 34651 @[ -f ./release/Makefile ] || exit 0; \
8ec98d6c
NN
34652 r=`${PWD_COMMAND}`; export r; \
34653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34654 $(HOST_EXPORTS) \
d5eec917 34655 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34657 done; \
d5eec917 34658 echo "Doing maintainer-clean in release" ; \
7fc2ca22 34659 (cd $(HOST_SUBDIR)/release && \
8ec98d6c
NN
34660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34662 "RANLIB=$${RANLIB}" \
bffcbe34 34663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34664 maintainer-clean) \
8ec98d6c 34665 || exit 1
8ecc6504 34666
d5eec917 34667@endif release
8ecc6504 34668
8ec98d6c 34669
f0fdfd34 34670
d5eec917
PB
34671.PHONY: configure-recode maybe-configure-recode
34672maybe-configure-recode:
e1e5148c
CD
34673@if gcc-bootstrap
34674configure-recode: stage_current
34675@endif gcc-bootstrap
d5eec917
PB
34676@if recode
34677maybe-configure-recode: configure-recode
ec92c4d6 34678configure-recode:
15b527ca 34679 @: $(MAKE); $(unstage)
ec92c4d6 34680 @r=`${PWD_COMMAND}`; export r; \
5230d454 34681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
34682 test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
34683 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
5074489a 34684 $(HOST_EXPORTS) \
f0fdfd34
PB
34685 echo Configuring in $(HOST_SUBDIR)/recode; \
34686 cd "$(HOST_SUBDIR)/recode" || exit 1; \
94f860c0 34687 case $(srcdir) in \
7fc2ca22
PB
34688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34689 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
34690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 34691 esac; \
7fc2ca22
PB
34692 srcdiroption="--srcdir=$${topdir}/recode"; \
34693 libsrcdir="$$s/recode"; \
94f860c0 34694 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
34695 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34696 --target=${target_alias} $${srcdiroption} \
94f860c0 34697 || exit 1
d5eec917 34698@endif recode
94f860c0 34699
f0fdfd34
PB
34700
34701
a8a96878
PB
34702
34703
d5eec917
PB
34704.PHONY: all-recode maybe-all-recode
34705maybe-all-recode:
e1e5148c
CD
34706@if gcc-bootstrap
34707all-recode: stage_current
34708@endif gcc-bootstrap
d5eec917 34709@if recode
5e6b1f07 34710TARGET-recode=all
d5eec917
PB
34711maybe-all-recode: all-recode
34712all-recode: configure-recode
15b527ca 34713 @: $(MAKE); $(unstage)
5230d454
L
34714 @r=`${PWD_COMMAND}`; export r; \
34715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 34716 $(HOST_EXPORTS) \
7fc2ca22 34717 (cd $(HOST_SUBDIR)/recode && \
6532abb6
PB
34718 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
34719 $(TARGET-recode))
d5eec917 34720@endif recode
8ecc6504 34721
f0fdfd34 34722
a8a96878
PB
34723
34724
d5eec917
PB
34725.PHONY: check-recode maybe-check-recode
34726maybe-check-recode:
34727@if recode
34728maybe-check-recode: check-recode
8ecc6504 34729
d5eec917 34730check-recode:
15b527ca 34731 @: $(MAKE); $(unstage)
5230d454
L
34732 @r=`${PWD_COMMAND}`; export r; \
34733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34734 $(HOST_EXPORTS) \
7fc2ca22
PB
34735 (cd $(HOST_SUBDIR)/recode && \
34736 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 34737
d5eec917 34738@endif recode
8ecc6504 34739
d5eec917
PB
34740.PHONY: install-recode maybe-install-recode
34741maybe-install-recode:
34742@if recode
34743maybe-install-recode: install-recode
8ec98d6c 34744
d5eec917 34745install-recode: installdirs
15b527ca 34746 @: $(MAKE); $(unstage)
8ec98d6c
NN
34747 @r=`${PWD_COMMAND}`; export r; \
34748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34749 $(HOST_EXPORTS) \
7fc2ca22 34750 (cd $(HOST_SUBDIR)/recode && \
93c60b6d 34751 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 34752
d5eec917 34753@endif recode
8ec98d6c 34754
39bbbb69 34755# Other targets (info, dvi, pdf, etc.)
8ec98d6c 34756
d5eec917
PB
34757.PHONY: maybe-info-recode info-recode
34758maybe-info-recode:
34759@if recode
34760maybe-info-recode: info-recode
8ec98d6c 34761
d5eec917
PB
34762info-recode: \
34763 configure-recode
15b527ca 34764 @: $(MAKE); $(unstage)
d5eec917 34765 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
34766 r=`${PWD_COMMAND}`; export r; \
34767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34768 $(HOST_EXPORTS) \
d5eec917 34769 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34771 done; \
d5eec917 34772 echo "Doing info in recode" ; \
7fc2ca22 34773 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
34774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34776 "RANLIB=$${RANLIB}" \
bffcbe34 34777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34778 info) \
8ec98d6c
NN
34779 || exit 1
34780
d5eec917 34781@endif recode
8ec98d6c 34782
d5eec917
PB
34783.PHONY: maybe-dvi-recode dvi-recode
34784maybe-dvi-recode:
34785@if recode
34786maybe-dvi-recode: dvi-recode
8ec98d6c 34787
d5eec917
PB
34788dvi-recode: \
34789 configure-recode
15b527ca 34790 @: $(MAKE); $(unstage)
d5eec917 34791 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
34792 r=`${PWD_COMMAND}`; export r; \
34793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34794 $(HOST_EXPORTS) \
d5eec917 34795 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34797 done; \
d5eec917 34798 echo "Doing dvi in recode" ; \
7fc2ca22 34799 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
34800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34802 "RANLIB=$${RANLIB}" \
bffcbe34 34803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34804 dvi) \
8ec98d6c
NN
34805 || exit 1
34806
d5eec917 34807@endif recode
8ec98d6c 34808
39bbbb69
DD
34809.PHONY: maybe-pdf-recode pdf-recode
34810maybe-pdf-recode:
34811@if recode
34812maybe-pdf-recode: pdf-recode
34813
34814pdf-recode: \
34815 configure-recode
34816 @: $(MAKE); $(unstage)
34817 @[ -f ./recode/Makefile ] || exit 0; \
34818 r=`${PWD_COMMAND}`; export r; \
34819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34820 $(HOST_EXPORTS) \
34821 for flag in $(EXTRA_HOST_FLAGS) ; do \
34822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34823 done; \
34824 echo "Doing pdf in recode" ; \
34825 (cd $(HOST_SUBDIR)/recode && \
34826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34828 "RANLIB=$${RANLIB}" \
bffcbe34 34829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
34830 pdf) \
34831 || exit 1
34832
34833@endif recode
34834
b6fb961f
MS
34835.PHONY: maybe-html-recode html-recode
34836maybe-html-recode:
34837@if recode
34838maybe-html-recode: html-recode
34839
34840html-recode: \
34841 configure-recode
15b527ca 34842 @: $(MAKE); $(unstage)
b6fb961f
MS
34843 @[ -f ./recode/Makefile ] || exit 0; \
34844 r=`${PWD_COMMAND}`; export r; \
34845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
34846 $(HOST_EXPORTS) \
34847 for flag in $(EXTRA_HOST_FLAGS) ; do \
34848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34849 done; \
34850 echo "Doing html in recode" ; \
7fc2ca22 34851 (cd $(HOST_SUBDIR)/recode && \
b6fb961f
MS
34852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34854 "RANLIB=$${RANLIB}" \
bffcbe34 34855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
34856 html) \
34857 || exit 1
34858
34859@endif recode
34860
d5eec917
PB
34861.PHONY: maybe-TAGS-recode TAGS-recode
34862maybe-TAGS-recode:
34863@if recode
34864maybe-TAGS-recode: TAGS-recode
8ec98d6c 34865
d5eec917
PB
34866TAGS-recode: \
34867 configure-recode
15b527ca 34868 @: $(MAKE); $(unstage)
d5eec917 34869 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
34870 r=`${PWD_COMMAND}`; export r; \
34871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34872 $(HOST_EXPORTS) \
d5eec917 34873 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34875 done; \
d5eec917 34876 echo "Doing TAGS in recode" ; \
7fc2ca22 34877 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
34878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34880 "RANLIB=$${RANLIB}" \
bffcbe34 34881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34882 TAGS) \
8ec98d6c
NN
34883 || exit 1
34884
d5eec917 34885@endif recode
8ec98d6c 34886
d5eec917
PB
34887.PHONY: maybe-install-info-recode install-info-recode
34888maybe-install-info-recode:
34889@if recode
34890maybe-install-info-recode: install-info-recode
8ec98d6c 34891
d5eec917
PB
34892install-info-recode: \
34893 configure-recode \
34894 info-recode
15b527ca 34895 @: $(MAKE); $(unstage)
d5eec917 34896 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
34897 r=`${PWD_COMMAND}`; export r; \
34898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34899 $(HOST_EXPORTS) \
d5eec917 34900 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34902 done; \
d5eec917 34903 echo "Doing install-info in recode" ; \
7fc2ca22 34904 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
34905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34907 "RANLIB=$${RANLIB}" \
bffcbe34 34908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34909 install-info) \
8ec98d6c
NN
34910 || exit 1
34911
d5eec917 34912@endif recode
8ec98d6c 34913
d4954b6d
DD
34914.PHONY: maybe-install-pdf-recode install-pdf-recode
34915maybe-install-pdf-recode:
34916@if recode
34917maybe-install-pdf-recode: install-pdf-recode
34918
34919install-pdf-recode: \
34920 configure-recode \
34921 pdf-recode
34922 @: $(MAKE); $(unstage)
34923 @[ -f ./recode/Makefile ] || exit 0; \
34924 r=`${PWD_COMMAND}`; export r; \
34925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34926 $(HOST_EXPORTS) \
34927 for flag in $(EXTRA_HOST_FLAGS) ; do \
34928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34929 done; \
34930 echo "Doing install-pdf in recode" ; \
34931 (cd $(HOST_SUBDIR)/recode && \
34932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34934 "RANLIB=$${RANLIB}" \
bffcbe34 34935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
34936 install-pdf) \
34937 || exit 1
34938
34939@endif recode
34940
83c9add4
CD
34941.PHONY: maybe-install-html-recode install-html-recode
34942maybe-install-html-recode:
34943@if recode
34944maybe-install-html-recode: install-html-recode
34945
34946install-html-recode: \
34947 configure-recode \
34948 html-recode
34949 @: $(MAKE); $(unstage)
34950 @[ -f ./recode/Makefile ] || exit 0; \
34951 r=`${PWD_COMMAND}`; export r; \
34952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34953 $(HOST_EXPORTS) \
34954 for flag in $(EXTRA_HOST_FLAGS) ; do \
34955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34956 done; \
34957 echo "Doing install-html in recode" ; \
34958 (cd $(HOST_SUBDIR)/recode && \
34959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34961 "RANLIB=$${RANLIB}" \
bffcbe34 34962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
34963 install-html) \
34964 || exit 1
34965
34966@endif recode
34967
d5eec917
PB
34968.PHONY: maybe-installcheck-recode installcheck-recode
34969maybe-installcheck-recode:
34970@if recode
34971maybe-installcheck-recode: installcheck-recode
8ec98d6c 34972
d5eec917
PB
34973installcheck-recode: \
34974 configure-recode
15b527ca 34975 @: $(MAKE); $(unstage)
d5eec917 34976 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
34977 r=`${PWD_COMMAND}`; export r; \
34978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 34979 $(HOST_EXPORTS) \
d5eec917 34980 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
34981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34982 done; \
d5eec917 34983 echo "Doing installcheck in recode" ; \
7fc2ca22 34984 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
34985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34987 "RANLIB=$${RANLIB}" \
bffcbe34 34988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 34989 installcheck) \
8ec98d6c
NN
34990 || exit 1
34991
d5eec917 34992@endif recode
8ec98d6c 34993
d5eec917
PB
34994.PHONY: maybe-mostlyclean-recode mostlyclean-recode
34995maybe-mostlyclean-recode:
34996@if recode
34997maybe-mostlyclean-recode: mostlyclean-recode
8ec98d6c 34998
d5eec917 34999mostlyclean-recode:
15b527ca 35000 @: $(MAKE); $(unstage)
d5eec917 35001 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
35002 r=`${PWD_COMMAND}`; export r; \
35003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35004 $(HOST_EXPORTS) \
d5eec917 35005 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35007 done; \
d5eec917 35008 echo "Doing mostlyclean in recode" ; \
7fc2ca22 35009 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
35010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35012 "RANLIB=$${RANLIB}" \
bffcbe34 35013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35014 mostlyclean) \
8ec98d6c
NN
35015 || exit 1
35016
d5eec917 35017@endif recode
8ec98d6c 35018
d5eec917
PB
35019.PHONY: maybe-clean-recode clean-recode
35020maybe-clean-recode:
35021@if recode
35022maybe-clean-recode: clean-recode
8ec98d6c 35023
d5eec917 35024clean-recode:
15b527ca 35025 @: $(MAKE); $(unstage)
d5eec917 35026 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
35027 r=`${PWD_COMMAND}`; export r; \
35028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35029 $(HOST_EXPORTS) \
d5eec917 35030 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35032 done; \
d5eec917 35033 echo "Doing clean in recode" ; \
7fc2ca22 35034 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
35035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35037 "RANLIB=$${RANLIB}" \
bffcbe34 35038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35039 clean) \
8ec98d6c
NN
35040 || exit 1
35041
d5eec917 35042@endif recode
8ec98d6c 35043
d5eec917
PB
35044.PHONY: maybe-distclean-recode distclean-recode
35045maybe-distclean-recode:
35046@if recode
35047maybe-distclean-recode: distclean-recode
8ec98d6c 35048
d5eec917 35049distclean-recode:
15b527ca 35050 @: $(MAKE); $(unstage)
d5eec917 35051 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
35052 r=`${PWD_COMMAND}`; export r; \
35053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35054 $(HOST_EXPORTS) \
d5eec917 35055 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35057 done; \
d5eec917 35058 echo "Doing distclean in recode" ; \
7fc2ca22 35059 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
35060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35062 "RANLIB=$${RANLIB}" \
bffcbe34 35063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35064 distclean) \
8ec98d6c
NN
35065 || exit 1
35066
d5eec917 35067@endif recode
8ec98d6c 35068
d5eec917
PB
35069.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
35070maybe-maintainer-clean-recode:
35071@if recode
35072maybe-maintainer-clean-recode: maintainer-clean-recode
8ec98d6c 35073
d5eec917 35074maintainer-clean-recode:
15b527ca 35075 @: $(MAKE); $(unstage)
d5eec917 35076 @[ -f ./recode/Makefile ] || exit 0; \
8ec98d6c
NN
35077 r=`${PWD_COMMAND}`; export r; \
35078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35079 $(HOST_EXPORTS) \
d5eec917 35080 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35082 done; \
d5eec917 35083 echo "Doing maintainer-clean in recode" ; \
7fc2ca22 35084 (cd $(HOST_SUBDIR)/recode && \
8ec98d6c
NN
35085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35087 "RANLIB=$${RANLIB}" \
bffcbe34 35088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35089 maintainer-clean) \
8ec98d6c 35090 || exit 1
70ffc148 35091
d5eec917 35092@endif recode
8ecc6504
NN
35093
35094
f0fdfd34 35095
d5eec917
PB
35096.PHONY: configure-sed maybe-configure-sed
35097maybe-configure-sed:
e1e5148c
CD
35098@if gcc-bootstrap
35099configure-sed: stage_current
35100@endif gcc-bootstrap
d5eec917
PB
35101@if sed
35102maybe-configure-sed: configure-sed
ec92c4d6 35103configure-sed:
15b527ca 35104 @: $(MAKE); $(unstage)
ec92c4d6 35105 @r=`${PWD_COMMAND}`; export r; \
5230d454 35106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35107 test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
35108 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
5074489a 35109 $(HOST_EXPORTS) \
f0fdfd34
PB
35110 echo Configuring in $(HOST_SUBDIR)/sed; \
35111 cd "$(HOST_SUBDIR)/sed" || exit 1; \
94f860c0 35112 case $(srcdir) in \
7fc2ca22
PB
35113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35114 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
35115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35116 esac; \
7fc2ca22
PB
35117 srcdiroption="--srcdir=$${topdir}/sed"; \
35118 libsrcdir="$$s/sed"; \
94f860c0 35119 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35120 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35121 --target=${target_alias} $${srcdiroption} \
94f860c0 35122 || exit 1
d5eec917 35123@endif sed
94f860c0 35124
f0fdfd34
PB
35125
35126
a8a96878
PB
35127
35128
d5eec917
PB
35129.PHONY: all-sed maybe-all-sed
35130maybe-all-sed:
e1e5148c
CD
35131@if gcc-bootstrap
35132all-sed: stage_current
35133@endif gcc-bootstrap
d5eec917 35134@if sed
5e6b1f07 35135TARGET-sed=all
d5eec917
PB
35136maybe-all-sed: all-sed
35137all-sed: configure-sed
15b527ca 35138 @: $(MAKE); $(unstage)
5230d454
L
35139 @r=`${PWD_COMMAND}`; export r; \
35140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 35141 $(HOST_EXPORTS) \
7fc2ca22 35142 (cd $(HOST_SUBDIR)/sed && \
6532abb6
PB
35143 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35144 $(TARGET-sed))
d5eec917 35145@endif sed
8ecc6504 35146
f0fdfd34 35147
a8a96878
PB
35148
35149
d5eec917
PB
35150.PHONY: check-sed maybe-check-sed
35151maybe-check-sed:
35152@if sed
35153maybe-check-sed: check-sed
8ecc6504 35154
d5eec917 35155check-sed:
15b527ca 35156 @: $(MAKE); $(unstage)
5230d454
L
35157 @r=`${PWD_COMMAND}`; export r; \
35158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35159 $(HOST_EXPORTS) \
7fc2ca22
PB
35160 (cd $(HOST_SUBDIR)/sed && \
35161 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 35162
d5eec917 35163@endif sed
8ecc6504 35164
d5eec917
PB
35165.PHONY: install-sed maybe-install-sed
35166maybe-install-sed:
35167@if sed
35168maybe-install-sed: install-sed
70ffc148 35169
d5eec917 35170install-sed: installdirs
15b527ca 35171 @: $(MAKE); $(unstage)
5230d454
L
35172 @r=`${PWD_COMMAND}`; export r; \
35173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35174 $(HOST_EXPORTS) \
7fc2ca22 35175 (cd $(HOST_SUBDIR)/sed && \
93c60b6d 35176 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 35177
d5eec917 35178@endif sed
8ecc6504 35179
39bbbb69 35180# Other targets (info, dvi, pdf, etc.)
8ec98d6c 35181
d5eec917
PB
35182.PHONY: maybe-info-sed info-sed
35183maybe-info-sed:
35184@if sed
35185maybe-info-sed: info-sed
8ec98d6c 35186
d5eec917
PB
35187info-sed: \
35188 configure-sed
15b527ca 35189 @: $(MAKE); $(unstage)
d5eec917 35190 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35191 r=`${PWD_COMMAND}`; export r; \
35192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35193 $(HOST_EXPORTS) \
d5eec917 35194 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35196 done; \
b6fb961f 35197 echo "Doing info in sed" ; \
7fc2ca22 35198 (cd $(HOST_SUBDIR)/sed && \
b6fb961f
MS
35199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35201 "RANLIB=$${RANLIB}" \
bffcbe34 35202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
35203 info) \
35204 || exit 1
35205
35206@endif sed
35207
35208.PHONY: maybe-dvi-sed dvi-sed
35209maybe-dvi-sed:
35210@if sed
35211maybe-dvi-sed: dvi-sed
35212
35213dvi-sed: \
35214 configure-sed
15b527ca 35215 @: $(MAKE); $(unstage)
b6fb961f
MS
35216 @[ -f ./sed/Makefile ] || exit 0; \
35217 r=`${PWD_COMMAND}`; export r; \
35218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
35219 $(HOST_EXPORTS) \
35220 for flag in $(EXTRA_HOST_FLAGS) ; do \
35221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35222 done; \
35223 echo "Doing dvi in sed" ; \
7fc2ca22 35224 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35227 "RANLIB=$${RANLIB}" \
bffcbe34 35228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 35229 dvi) \
8ec98d6c
NN
35230 || exit 1
35231
d5eec917 35232@endif sed
8ec98d6c 35233
39bbbb69
DD
35234.PHONY: maybe-pdf-sed pdf-sed
35235maybe-pdf-sed:
35236@if sed
35237maybe-pdf-sed: pdf-sed
35238
35239pdf-sed: \
35240 configure-sed
35241 @: $(MAKE); $(unstage)
35242 @[ -f ./sed/Makefile ] || exit 0; \
35243 r=`${PWD_COMMAND}`; export r; \
35244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35245 $(HOST_EXPORTS) \
35246 for flag in $(EXTRA_HOST_FLAGS) ; do \
35247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35248 done; \
35249 echo "Doing pdf in sed" ; \
35250 (cd $(HOST_SUBDIR)/sed && \
35251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35253 "RANLIB=$${RANLIB}" \
bffcbe34 35254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
35255 pdf) \
35256 || exit 1
35257
35258@endif sed
35259
b6fb961f
MS
35260.PHONY: maybe-html-sed html-sed
35261maybe-html-sed:
d5eec917 35262@if sed
b6fb961f 35263maybe-html-sed: html-sed
8ec98d6c 35264
b6fb961f 35265html-sed: \
d5eec917 35266 configure-sed
15b527ca 35267 @: $(MAKE); $(unstage)
d5eec917 35268 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35269 r=`${PWD_COMMAND}`; export r; \
35270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35271 $(HOST_EXPORTS) \
d5eec917 35272 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35274 done; \
b6fb961f 35275 echo "Doing html in sed" ; \
7fc2ca22 35276 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35279 "RANLIB=$${RANLIB}" \
bffcbe34 35280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 35281 html) \
8ec98d6c
NN
35282 || exit 1
35283
d5eec917 35284@endif sed
8ec98d6c 35285
d5eec917
PB
35286.PHONY: maybe-TAGS-sed TAGS-sed
35287maybe-TAGS-sed:
35288@if sed
35289maybe-TAGS-sed: TAGS-sed
8ec98d6c 35290
d5eec917
PB
35291TAGS-sed: \
35292 configure-sed
15b527ca 35293 @: $(MAKE); $(unstage)
d5eec917 35294 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35295 r=`${PWD_COMMAND}`; export r; \
35296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35297 $(HOST_EXPORTS) \
d5eec917 35298 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35300 done; \
d5eec917 35301 echo "Doing TAGS in sed" ; \
7fc2ca22 35302 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35305 "RANLIB=$${RANLIB}" \
bffcbe34 35306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35307 TAGS) \
8ec98d6c
NN
35308 || exit 1
35309
d5eec917 35310@endif sed
8ec98d6c 35311
d5eec917
PB
35312.PHONY: maybe-install-info-sed install-info-sed
35313maybe-install-info-sed:
35314@if sed
35315maybe-install-info-sed: install-info-sed
8ec98d6c 35316
d5eec917
PB
35317install-info-sed: \
35318 configure-sed \
35319 info-sed
15b527ca 35320 @: $(MAKE); $(unstage)
d5eec917 35321 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35322 r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35324 $(HOST_EXPORTS) \
d5eec917 35325 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35327 done; \
d5eec917 35328 echo "Doing install-info in sed" ; \
7fc2ca22 35329 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35332 "RANLIB=$${RANLIB}" \
bffcbe34 35333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35334 install-info) \
8ec98d6c
NN
35335 || exit 1
35336
d5eec917 35337@endif sed
8ec98d6c 35338
d4954b6d
DD
35339.PHONY: maybe-install-pdf-sed install-pdf-sed
35340maybe-install-pdf-sed:
35341@if sed
35342maybe-install-pdf-sed: install-pdf-sed
35343
35344install-pdf-sed: \
35345 configure-sed \
35346 pdf-sed
35347 @: $(MAKE); $(unstage)
35348 @[ -f ./sed/Makefile ] || exit 0; \
35349 r=`${PWD_COMMAND}`; export r; \
35350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35351 $(HOST_EXPORTS) \
35352 for flag in $(EXTRA_HOST_FLAGS) ; do \
35353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35354 done; \
35355 echo "Doing install-pdf in sed" ; \
35356 (cd $(HOST_SUBDIR)/sed && \
35357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35359 "RANLIB=$${RANLIB}" \
bffcbe34 35360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
35361 install-pdf) \
35362 || exit 1
35363
35364@endif sed
35365
83c9add4
CD
35366.PHONY: maybe-install-html-sed install-html-sed
35367maybe-install-html-sed:
35368@if sed
35369maybe-install-html-sed: install-html-sed
35370
35371install-html-sed: \
35372 configure-sed \
35373 html-sed
35374 @: $(MAKE); $(unstage)
35375 @[ -f ./sed/Makefile ] || exit 0; \
35376 r=`${PWD_COMMAND}`; export r; \
35377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35378 $(HOST_EXPORTS) \
35379 for flag in $(EXTRA_HOST_FLAGS) ; do \
35380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35381 done; \
35382 echo "Doing install-html in sed" ; \
35383 (cd $(HOST_SUBDIR)/sed && \
35384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35386 "RANLIB=$${RANLIB}" \
bffcbe34 35387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
35388 install-html) \
35389 || exit 1
35390
35391@endif sed
35392
d5eec917
PB
35393.PHONY: maybe-installcheck-sed installcheck-sed
35394maybe-installcheck-sed:
35395@if sed
35396maybe-installcheck-sed: installcheck-sed
8ec98d6c 35397
d5eec917
PB
35398installcheck-sed: \
35399 configure-sed
15b527ca 35400 @: $(MAKE); $(unstage)
d5eec917 35401 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35402 r=`${PWD_COMMAND}`; export r; \
35403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35404 $(HOST_EXPORTS) \
d5eec917 35405 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35407 done; \
d5eec917 35408 echo "Doing installcheck in sed" ; \
7fc2ca22 35409 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35412 "RANLIB=$${RANLIB}" \
bffcbe34 35413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35414 installcheck) \
8ec98d6c
NN
35415 || exit 1
35416
d5eec917 35417@endif sed
8ec98d6c 35418
d5eec917
PB
35419.PHONY: maybe-mostlyclean-sed mostlyclean-sed
35420maybe-mostlyclean-sed:
35421@if sed
35422maybe-mostlyclean-sed: mostlyclean-sed
8ec98d6c 35423
d5eec917 35424mostlyclean-sed:
15b527ca 35425 @: $(MAKE); $(unstage)
d5eec917 35426 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35427 r=`${PWD_COMMAND}`; export r; \
35428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35429 $(HOST_EXPORTS) \
d5eec917 35430 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35432 done; \
d5eec917 35433 echo "Doing mostlyclean in sed" ; \
7fc2ca22 35434 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35437 "RANLIB=$${RANLIB}" \
bffcbe34 35438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35439 mostlyclean) \
8ec98d6c
NN
35440 || exit 1
35441
d5eec917 35442@endif sed
8ec98d6c 35443
d5eec917
PB
35444.PHONY: maybe-clean-sed clean-sed
35445maybe-clean-sed:
35446@if sed
35447maybe-clean-sed: clean-sed
8ec98d6c 35448
d5eec917 35449clean-sed:
15b527ca 35450 @: $(MAKE); $(unstage)
d5eec917 35451 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35452 r=`${PWD_COMMAND}`; export r; \
35453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35454 $(HOST_EXPORTS) \
d5eec917 35455 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35457 done; \
d5eec917 35458 echo "Doing clean in sed" ; \
7fc2ca22 35459 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35462 "RANLIB=$${RANLIB}" \
bffcbe34 35463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35464 clean) \
8ec98d6c
NN
35465 || exit 1
35466
d5eec917 35467@endif sed
8ec98d6c 35468
d5eec917
PB
35469.PHONY: maybe-distclean-sed distclean-sed
35470maybe-distclean-sed:
35471@if sed
35472maybe-distclean-sed: distclean-sed
8ec98d6c 35473
d5eec917 35474distclean-sed:
15b527ca 35475 @: $(MAKE); $(unstage)
d5eec917 35476 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35477 r=`${PWD_COMMAND}`; export r; \
35478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35479 $(HOST_EXPORTS) \
d5eec917 35480 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35482 done; \
d5eec917 35483 echo "Doing distclean in sed" ; \
7fc2ca22 35484 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35487 "RANLIB=$${RANLIB}" \
bffcbe34 35488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35489 distclean) \
8ec98d6c
NN
35490 || exit 1
35491
d5eec917 35492@endif sed
8ec98d6c 35493
d5eec917
PB
35494.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
35495maybe-maintainer-clean-sed:
35496@if sed
35497maybe-maintainer-clean-sed: maintainer-clean-sed
8ec98d6c 35498
d5eec917 35499maintainer-clean-sed:
15b527ca 35500 @: $(MAKE); $(unstage)
d5eec917 35501 @[ -f ./sed/Makefile ] || exit 0; \
8ec98d6c
NN
35502 r=`${PWD_COMMAND}`; export r; \
35503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35504 $(HOST_EXPORTS) \
d5eec917 35505 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35507 done; \
d5eec917 35508 echo "Doing maintainer-clean in sed" ; \
7fc2ca22 35509 (cd $(HOST_SUBDIR)/sed && \
8ec98d6c
NN
35510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35512 "RANLIB=$${RANLIB}" \
bffcbe34 35513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35514 maintainer-clean) \
8ec98d6c
NN
35515 || exit 1
35516
d5eec917 35517@endif sed
8ec98d6c
NN
35518
35519
f0fdfd34 35520
d5eec917
PB
35521.PHONY: configure-send-pr maybe-configure-send-pr
35522maybe-configure-send-pr:
e1e5148c
CD
35523@if gcc-bootstrap
35524configure-send-pr: stage_current
35525@endif gcc-bootstrap
d5eec917
PB
35526@if send-pr
35527maybe-configure-send-pr: configure-send-pr
ec92c4d6 35528configure-send-pr:
15b527ca 35529 @: $(MAKE); $(unstage)
ec92c4d6 35530 @r=`${PWD_COMMAND}`; export r; \
5230d454 35531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35532 test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
35533 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
5074489a 35534 $(HOST_EXPORTS) \
f0fdfd34
PB
35535 echo Configuring in $(HOST_SUBDIR)/send-pr; \
35536 cd "$(HOST_SUBDIR)/send-pr" || exit 1; \
94f860c0 35537 case $(srcdir) in \
7fc2ca22
PB
35538 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35539 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
35540 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35541 esac; \
7fc2ca22
PB
35542 srcdiroption="--srcdir=$${topdir}/send-pr"; \
35543 libsrcdir="$$s/send-pr"; \
94f860c0 35544 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35545 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35546 --target=${target_alias} $${srcdiroption} \
94f860c0 35547 || exit 1
d5eec917 35548@endif send-pr
94f860c0 35549
f0fdfd34
PB
35550
35551
a8a96878
PB
35552
35553
d5eec917
PB
35554.PHONY: all-send-pr maybe-all-send-pr
35555maybe-all-send-pr:
e1e5148c
CD
35556@if gcc-bootstrap
35557all-send-pr: stage_current
35558@endif gcc-bootstrap
d5eec917 35559@if send-pr
5e6b1f07 35560TARGET-send-pr=all
d5eec917
PB
35561maybe-all-send-pr: all-send-pr
35562all-send-pr: configure-send-pr
15b527ca 35563 @: $(MAKE); $(unstage)
5230d454
L
35564 @r=`${PWD_COMMAND}`; export r; \
35565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 35566 $(HOST_EXPORTS) \
7fc2ca22 35567 (cd $(HOST_SUBDIR)/send-pr && \
6532abb6
PB
35568 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35569 $(TARGET-send-pr))
d5eec917 35570@endif send-pr
8ecc6504 35571
f0fdfd34 35572
a8a96878
PB
35573
35574
d5eec917
PB
35575.PHONY: check-send-pr maybe-check-send-pr
35576maybe-check-send-pr:
35577@if send-pr
35578maybe-check-send-pr: check-send-pr
8ecc6504 35579
d5eec917 35580check-send-pr:
15b527ca 35581 @: $(MAKE); $(unstage)
5230d454
L
35582 @r=`${PWD_COMMAND}`; export r; \
35583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35584 $(HOST_EXPORTS) \
7fc2ca22
PB
35585 (cd $(HOST_SUBDIR)/send-pr && \
35586 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 35587
d5eec917 35588@endif send-pr
8ecc6504 35589
d5eec917
PB
35590.PHONY: install-send-pr maybe-install-send-pr
35591maybe-install-send-pr:
35592@if send-pr
35593maybe-install-send-pr: install-send-pr
70ffc148 35594
d5eec917 35595install-send-pr: installdirs
15b527ca 35596 @: $(MAKE); $(unstage)
5230d454
L
35597 @r=`${PWD_COMMAND}`; export r; \
35598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35599 $(HOST_EXPORTS) \
7fc2ca22 35600 (cd $(HOST_SUBDIR)/send-pr && \
93c60b6d 35601 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 35602
d5eec917 35603@endif send-pr
8ecc6504 35604
39bbbb69 35605# Other targets (info, dvi, pdf, etc.)
8ec98d6c 35606
d5eec917
PB
35607.PHONY: maybe-info-send-pr info-send-pr
35608maybe-info-send-pr:
35609@if send-pr
35610maybe-info-send-pr: info-send-pr
8ec98d6c 35611
d5eec917
PB
35612info-send-pr: \
35613 configure-send-pr
15b527ca 35614 @: $(MAKE); $(unstage)
d5eec917 35615 @[ -f ./send-pr/Makefile ] || exit 0; \
5230d454
L
35616 r=`${PWD_COMMAND}`; export r; \
35617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35618 $(HOST_EXPORTS) \
d5eec917 35619 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35621 done; \
d5eec917 35622 echo "Doing info in send-pr" ; \
7fc2ca22 35623 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35626 "RANLIB=$${RANLIB}" \
bffcbe34 35627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35628 info) \
94f860c0
NN
35629 || exit 1
35630
d5eec917 35631@endif send-pr
8ec98d6c 35632
d5eec917
PB
35633.PHONY: maybe-dvi-send-pr dvi-send-pr
35634maybe-dvi-send-pr:
35635@if send-pr
35636maybe-dvi-send-pr: dvi-send-pr
8ec98d6c 35637
d5eec917
PB
35638dvi-send-pr: \
35639 configure-send-pr
15b527ca 35640 @: $(MAKE); $(unstage)
d5eec917 35641 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 35642 r=`${PWD_COMMAND}`; export r; \
5230d454 35643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35644 $(HOST_EXPORTS) \
d5eec917 35645 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35647 done; \
d5eec917 35648 echo "Doing dvi in send-pr" ; \
7fc2ca22 35649 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35652 "RANLIB=$${RANLIB}" \
bffcbe34 35653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35654 dvi) \
8ec98d6c 35655 || exit 1
8ecc6504 35656
d5eec917 35657@endif send-pr
8ecc6504 35658
39bbbb69
DD
35659.PHONY: maybe-pdf-send-pr pdf-send-pr
35660maybe-pdf-send-pr:
35661@if send-pr
35662maybe-pdf-send-pr: pdf-send-pr
35663
35664pdf-send-pr: \
35665 configure-send-pr
35666 @: $(MAKE); $(unstage)
35667 @[ -f ./send-pr/Makefile ] || exit 0; \
35668 r=`${PWD_COMMAND}`; export r; \
35669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35670 $(HOST_EXPORTS) \
35671 for flag in $(EXTRA_HOST_FLAGS) ; do \
35672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35673 done; \
35674 echo "Doing pdf in send-pr" ; \
35675 (cd $(HOST_SUBDIR)/send-pr && \
35676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35678 "RANLIB=$${RANLIB}" \
bffcbe34 35679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
35680 pdf) \
35681 || exit 1
35682
35683@endif send-pr
35684
b6fb961f
MS
35685.PHONY: maybe-html-send-pr html-send-pr
35686maybe-html-send-pr:
35687@if send-pr
35688maybe-html-send-pr: html-send-pr
35689
35690html-send-pr: \
35691 configure-send-pr
15b527ca 35692 @: $(MAKE); $(unstage)
b6fb961f
MS
35693 @[ -f ./send-pr/Makefile ] || exit 0; \
35694 r=`${PWD_COMMAND}`; export r; \
35695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
35696 $(HOST_EXPORTS) \
35697 for flag in $(EXTRA_HOST_FLAGS) ; do \
35698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35699 done; \
35700 echo "Doing html in send-pr" ; \
7fc2ca22 35701 (cd $(HOST_SUBDIR)/send-pr && \
b6fb961f
MS
35702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35704 "RANLIB=$${RANLIB}" \
bffcbe34 35705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
35706 html) \
35707 || exit 1
35708
35709@endif send-pr
35710
d5eec917
PB
35711.PHONY: maybe-TAGS-send-pr TAGS-send-pr
35712maybe-TAGS-send-pr:
35713@if send-pr
35714maybe-TAGS-send-pr: TAGS-send-pr
8ec98d6c 35715
d5eec917
PB
35716TAGS-send-pr: \
35717 configure-send-pr
15b527ca 35718 @: $(MAKE); $(unstage)
d5eec917 35719 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35720 r=`${PWD_COMMAND}`; export r; \
35721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35722 $(HOST_EXPORTS) \
d5eec917 35723 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35725 done; \
d5eec917 35726 echo "Doing TAGS in send-pr" ; \
7fc2ca22 35727 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35730 "RANLIB=$${RANLIB}" \
bffcbe34 35731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35732 TAGS) \
8ec98d6c 35733 || exit 1
8ecc6504 35734
d5eec917 35735@endif send-pr
8ecc6504 35736
d5eec917
PB
35737.PHONY: maybe-install-info-send-pr install-info-send-pr
35738maybe-install-info-send-pr:
35739@if send-pr
35740maybe-install-info-send-pr: install-info-send-pr
70ffc148 35741
d5eec917
PB
35742install-info-send-pr: \
35743 configure-send-pr \
35744 info-send-pr
15b527ca 35745 @: $(MAKE); $(unstage)
d5eec917 35746 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35747 r=`${PWD_COMMAND}`; export r; \
35748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35749 $(HOST_EXPORTS) \
d5eec917 35750 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35752 done; \
d5eec917 35753 echo "Doing install-info in send-pr" ; \
7fc2ca22 35754 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35757 "RANLIB=$${RANLIB}" \
bffcbe34 35758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35759 install-info) \
8ec98d6c
NN
35760 || exit 1
35761
d5eec917 35762@endif send-pr
8ec98d6c 35763
d4954b6d
DD
35764.PHONY: maybe-install-pdf-send-pr install-pdf-send-pr
35765maybe-install-pdf-send-pr:
35766@if send-pr
35767maybe-install-pdf-send-pr: install-pdf-send-pr
35768
35769install-pdf-send-pr: \
35770 configure-send-pr \
35771 pdf-send-pr
35772 @: $(MAKE); $(unstage)
35773 @[ -f ./send-pr/Makefile ] || exit 0; \
35774 r=`${PWD_COMMAND}`; export r; \
35775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35776 $(HOST_EXPORTS) \
35777 for flag in $(EXTRA_HOST_FLAGS) ; do \
35778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35779 done; \
35780 echo "Doing install-pdf in send-pr" ; \
35781 (cd $(HOST_SUBDIR)/send-pr && \
35782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35784 "RANLIB=$${RANLIB}" \
bffcbe34 35785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
35786 install-pdf) \
35787 || exit 1
35788
35789@endif send-pr
35790
83c9add4
CD
35791.PHONY: maybe-install-html-send-pr install-html-send-pr
35792maybe-install-html-send-pr:
35793@if send-pr
35794maybe-install-html-send-pr: install-html-send-pr
35795
35796install-html-send-pr: \
35797 configure-send-pr \
35798 html-send-pr
35799 @: $(MAKE); $(unstage)
35800 @[ -f ./send-pr/Makefile ] || exit 0; \
35801 r=`${PWD_COMMAND}`; export r; \
35802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35803 $(HOST_EXPORTS) \
35804 for flag in $(EXTRA_HOST_FLAGS) ; do \
35805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35806 done; \
35807 echo "Doing install-html in send-pr" ; \
35808 (cd $(HOST_SUBDIR)/send-pr && \
35809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35811 "RANLIB=$${RANLIB}" \
bffcbe34 35812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
35813 install-html) \
35814 || exit 1
35815
35816@endif send-pr
35817
d5eec917
PB
35818.PHONY: maybe-installcheck-send-pr installcheck-send-pr
35819maybe-installcheck-send-pr:
35820@if send-pr
35821maybe-installcheck-send-pr: installcheck-send-pr
8ec98d6c 35822
d5eec917
PB
35823installcheck-send-pr: \
35824 configure-send-pr
15b527ca 35825 @: $(MAKE); $(unstage)
d5eec917 35826 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35827 r=`${PWD_COMMAND}`; export r; \
35828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35829 $(HOST_EXPORTS) \
d5eec917 35830 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35832 done; \
d5eec917 35833 echo "Doing installcheck in send-pr" ; \
7fc2ca22 35834 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35837 "RANLIB=$${RANLIB}" \
bffcbe34 35838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35839 installcheck) \
8ec98d6c
NN
35840 || exit 1
35841
d5eec917 35842@endif send-pr
8ec98d6c 35843
d5eec917
PB
35844.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
35845maybe-mostlyclean-send-pr:
35846@if send-pr
35847maybe-mostlyclean-send-pr: mostlyclean-send-pr
8ec98d6c 35848
d5eec917 35849mostlyclean-send-pr:
15b527ca 35850 @: $(MAKE); $(unstage)
d5eec917 35851 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35852 r=`${PWD_COMMAND}`; export r; \
35853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35854 $(HOST_EXPORTS) \
d5eec917 35855 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35857 done; \
d5eec917 35858 echo "Doing mostlyclean in send-pr" ; \
7fc2ca22 35859 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35862 "RANLIB=$${RANLIB}" \
bffcbe34 35863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35864 mostlyclean) \
8ec98d6c
NN
35865 || exit 1
35866
d5eec917 35867@endif send-pr
8ec98d6c 35868
d5eec917
PB
35869.PHONY: maybe-clean-send-pr clean-send-pr
35870maybe-clean-send-pr:
35871@if send-pr
35872maybe-clean-send-pr: clean-send-pr
8ec98d6c 35873
d5eec917 35874clean-send-pr:
15b527ca 35875 @: $(MAKE); $(unstage)
d5eec917 35876 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35877 r=`${PWD_COMMAND}`; export r; \
35878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35879 $(HOST_EXPORTS) \
d5eec917 35880 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35882 done; \
d5eec917 35883 echo "Doing clean in send-pr" ; \
7fc2ca22 35884 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35887 "RANLIB=$${RANLIB}" \
bffcbe34 35888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35889 clean) \
8ec98d6c
NN
35890 || exit 1
35891
d5eec917 35892@endif send-pr
8ec98d6c 35893
d5eec917
PB
35894.PHONY: maybe-distclean-send-pr distclean-send-pr
35895maybe-distclean-send-pr:
35896@if send-pr
35897maybe-distclean-send-pr: distclean-send-pr
8ec98d6c 35898
d5eec917 35899distclean-send-pr:
15b527ca 35900 @: $(MAKE); $(unstage)
d5eec917 35901 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c
NN
35902 r=`${PWD_COMMAND}`; export r; \
35903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35904 $(HOST_EXPORTS) \
d5eec917 35905 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35907 done; \
d5eec917 35908 echo "Doing distclean in send-pr" ; \
7fc2ca22 35909 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35912 "RANLIB=$${RANLIB}" \
bffcbe34 35913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35914 distclean) \
8ec98d6c
NN
35915 || exit 1
35916
d5eec917 35917@endif send-pr
8ec98d6c 35918
d5eec917
PB
35919.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
35920maybe-maintainer-clean-send-pr:
35921@if send-pr
35922maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
8ec98d6c 35923
d5eec917 35924maintainer-clean-send-pr:
15b527ca 35925 @: $(MAKE); $(unstage)
d5eec917 35926 @[ -f ./send-pr/Makefile ] || exit 0; \
8ec98d6c 35927 r=`${PWD_COMMAND}`; export r; \
5230d454 35928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 35929 $(HOST_EXPORTS) \
d5eec917 35930 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
35931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35932 done; \
d5eec917 35933 echo "Doing maintainer-clean in send-pr" ; \
7fc2ca22 35934 (cd $(HOST_SUBDIR)/send-pr && \
8ec98d6c
NN
35935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35937 "RANLIB=$${RANLIB}" \
bffcbe34 35938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 35939 maintainer-clean) \
8ec98d6c 35940 || exit 1
8ecc6504 35941
d5eec917 35942@endif send-pr
8ecc6504 35943
8ec98d6c 35944
f0fdfd34 35945
d5eec917
PB
35946.PHONY: configure-shellutils maybe-configure-shellutils
35947maybe-configure-shellutils:
e1e5148c
CD
35948@if gcc-bootstrap
35949configure-shellutils: stage_current
35950@endif gcc-bootstrap
d5eec917
PB
35951@if shellutils
35952maybe-configure-shellutils: configure-shellutils
ec92c4d6 35953configure-shellutils:
15b527ca 35954 @: $(MAKE); $(unstage)
ec92c4d6 35955 @r=`${PWD_COMMAND}`; export r; \
5230d454 35956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
35957 test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
35958 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
5074489a 35959 $(HOST_EXPORTS) \
f0fdfd34
PB
35960 echo Configuring in $(HOST_SUBDIR)/shellutils; \
35961 cd "$(HOST_SUBDIR)/shellutils" || exit 1; \
94f860c0 35962 case $(srcdir) in \
7fc2ca22
PB
35963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35964 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
35965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 35966 esac; \
7fc2ca22
PB
35967 srcdiroption="--srcdir=$${topdir}/shellutils"; \
35968 libsrcdir="$$s/shellutils"; \
94f860c0 35969 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
35970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
35971 --target=${target_alias} $${srcdiroption} \
94f860c0 35972 || exit 1
d5eec917 35973@endif shellutils
94f860c0 35974
f0fdfd34
PB
35975
35976
a8a96878
PB
35977
35978
d5eec917
PB
35979.PHONY: all-shellutils maybe-all-shellutils
35980maybe-all-shellutils:
e1e5148c
CD
35981@if gcc-bootstrap
35982all-shellutils: stage_current
35983@endif gcc-bootstrap
d5eec917 35984@if shellutils
5e6b1f07 35985TARGET-shellutils=all
d5eec917
PB
35986maybe-all-shellutils: all-shellutils
35987all-shellutils: configure-shellutils
15b527ca 35988 @: $(MAKE); $(unstage)
5230d454
L
35989 @r=`${PWD_COMMAND}`; export r; \
35990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 35991 $(HOST_EXPORTS) \
7fc2ca22 35992 (cd $(HOST_SUBDIR)/shellutils && \
6532abb6
PB
35993 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
35994 $(TARGET-shellutils))
d5eec917 35995@endif shellutils
8ecc6504 35996
f0fdfd34 35997
a8a96878
PB
35998
35999
d5eec917
PB
36000.PHONY: check-shellutils maybe-check-shellutils
36001maybe-check-shellutils:
36002@if shellutils
36003maybe-check-shellutils: check-shellutils
8ecc6504 36004
d5eec917 36005check-shellutils:
15b527ca 36006 @: $(MAKE); $(unstage)
5230d454
L
36007 @r=`${PWD_COMMAND}`; export r; \
36008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36009 $(HOST_EXPORTS) \
7fc2ca22
PB
36010 (cd $(HOST_SUBDIR)/shellutils && \
36011 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 36012
d5eec917 36013@endif shellutils
8ecc6504 36014
d5eec917
PB
36015.PHONY: install-shellutils maybe-install-shellutils
36016maybe-install-shellutils:
36017@if shellutils
36018maybe-install-shellutils: install-shellutils
70ffc148 36019
d5eec917 36020install-shellutils: installdirs
15b527ca 36021 @: $(MAKE); $(unstage)
5230d454
L
36022 @r=`${PWD_COMMAND}`; export r; \
36023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36024 $(HOST_EXPORTS) \
7fc2ca22 36025 (cd $(HOST_SUBDIR)/shellutils && \
93c60b6d 36026 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 36027
d5eec917 36028@endif shellutils
8ec98d6c 36029
39bbbb69 36030# Other targets (info, dvi, pdf, etc.)
8ec98d6c 36031
d5eec917
PB
36032.PHONY: maybe-info-shellutils info-shellutils
36033maybe-info-shellutils:
36034@if shellutils
36035maybe-info-shellutils: info-shellutils
8ec98d6c 36036
d5eec917
PB
36037info-shellutils: \
36038 configure-shellutils
15b527ca 36039 @: $(MAKE); $(unstage)
d5eec917 36040 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36041 r=`${PWD_COMMAND}`; export r; \
36042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36043 $(HOST_EXPORTS) \
d5eec917 36044 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36046 done; \
d5eec917 36047 echo "Doing info in shellutils" ; \
7fc2ca22 36048 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36051 "RANLIB=$${RANLIB}" \
bffcbe34 36052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36053 info) \
8ec98d6c
NN
36054 || exit 1
36055
d5eec917 36056@endif shellutils
8ec98d6c 36057
d5eec917
PB
36058.PHONY: maybe-dvi-shellutils dvi-shellutils
36059maybe-dvi-shellutils:
36060@if shellutils
36061maybe-dvi-shellutils: dvi-shellutils
8ec98d6c 36062
d5eec917
PB
36063dvi-shellutils: \
36064 configure-shellutils
15b527ca 36065 @: $(MAKE); $(unstage)
d5eec917 36066 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36067 r=`${PWD_COMMAND}`; export r; \
36068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36069 $(HOST_EXPORTS) \
d5eec917 36070 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36072 done; \
d5eec917 36073 echo "Doing dvi in shellutils" ; \
7fc2ca22 36074 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36077 "RANLIB=$${RANLIB}" \
bffcbe34 36078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36079 dvi) \
8ec98d6c
NN
36080 || exit 1
36081
d5eec917 36082@endif shellutils
8ec98d6c 36083
39bbbb69
DD
36084.PHONY: maybe-pdf-shellutils pdf-shellutils
36085maybe-pdf-shellutils:
36086@if shellutils
36087maybe-pdf-shellutils: pdf-shellutils
36088
36089pdf-shellutils: \
36090 configure-shellutils
36091 @: $(MAKE); $(unstage)
36092 @[ -f ./shellutils/Makefile ] || exit 0; \
36093 r=`${PWD_COMMAND}`; export r; \
36094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36095 $(HOST_EXPORTS) \
36096 for flag in $(EXTRA_HOST_FLAGS) ; do \
36097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36098 done; \
36099 echo "Doing pdf in shellutils" ; \
36100 (cd $(HOST_SUBDIR)/shellutils && \
36101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36103 "RANLIB=$${RANLIB}" \
bffcbe34 36104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36105 pdf) \
36106 || exit 1
36107
36108@endif shellutils
36109
b6fb961f
MS
36110.PHONY: maybe-html-shellutils html-shellutils
36111maybe-html-shellutils:
36112@if shellutils
36113maybe-html-shellutils: html-shellutils
36114
36115html-shellutils: \
36116 configure-shellutils
15b527ca 36117 @: $(MAKE); $(unstage)
b6fb961f
MS
36118 @[ -f ./shellutils/Makefile ] || exit 0; \
36119 r=`${PWD_COMMAND}`; export r; \
36120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36121 $(HOST_EXPORTS) \
36122 for flag in $(EXTRA_HOST_FLAGS) ; do \
36123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36124 done; \
36125 echo "Doing html in shellutils" ; \
7fc2ca22 36126 (cd $(HOST_SUBDIR)/shellutils && \
b6fb961f
MS
36127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36129 "RANLIB=$${RANLIB}" \
bffcbe34 36130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36131 html) \
36132 || exit 1
36133
36134@endif shellutils
36135
d5eec917
PB
36136.PHONY: maybe-TAGS-shellutils TAGS-shellutils
36137maybe-TAGS-shellutils:
36138@if shellutils
36139maybe-TAGS-shellutils: TAGS-shellutils
8ec98d6c 36140
d5eec917
PB
36141TAGS-shellutils: \
36142 configure-shellutils
15b527ca 36143 @: $(MAKE); $(unstage)
d5eec917 36144 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36145 r=`${PWD_COMMAND}`; export r; \
36146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36147 $(HOST_EXPORTS) \
d5eec917 36148 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36150 done; \
d5eec917 36151 echo "Doing TAGS in shellutils" ; \
7fc2ca22 36152 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36155 "RANLIB=$${RANLIB}" \
bffcbe34 36156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36157 TAGS) \
8ec98d6c
NN
36158 || exit 1
36159
d5eec917 36160@endif shellutils
8ec98d6c 36161
d5eec917
PB
36162.PHONY: maybe-install-info-shellutils install-info-shellutils
36163maybe-install-info-shellutils:
36164@if shellutils
36165maybe-install-info-shellutils: install-info-shellutils
8ec98d6c 36166
d5eec917
PB
36167install-info-shellutils: \
36168 configure-shellutils \
36169 info-shellutils
15b527ca 36170 @: $(MAKE); $(unstage)
d5eec917 36171 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36172 r=`${PWD_COMMAND}`; export r; \
36173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36174 $(HOST_EXPORTS) \
d5eec917 36175 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36177 done; \
d5eec917 36178 echo "Doing install-info in shellutils" ; \
7fc2ca22 36179 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36182 "RANLIB=$${RANLIB}" \
bffcbe34 36183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36184 install-info) \
8ec98d6c
NN
36185 || exit 1
36186
d5eec917 36187@endif shellutils
8ec98d6c 36188
d4954b6d
DD
36189.PHONY: maybe-install-pdf-shellutils install-pdf-shellutils
36190maybe-install-pdf-shellutils:
36191@if shellutils
36192maybe-install-pdf-shellutils: install-pdf-shellutils
36193
36194install-pdf-shellutils: \
36195 configure-shellutils \
36196 pdf-shellutils
36197 @: $(MAKE); $(unstage)
36198 @[ -f ./shellutils/Makefile ] || exit 0; \
36199 r=`${PWD_COMMAND}`; export r; \
36200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36201 $(HOST_EXPORTS) \
36202 for flag in $(EXTRA_HOST_FLAGS) ; do \
36203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36204 done; \
36205 echo "Doing install-pdf in shellutils" ; \
36206 (cd $(HOST_SUBDIR)/shellutils && \
36207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36209 "RANLIB=$${RANLIB}" \
bffcbe34 36210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
36211 install-pdf) \
36212 || exit 1
36213
36214@endif shellutils
36215
83c9add4
CD
36216.PHONY: maybe-install-html-shellutils install-html-shellutils
36217maybe-install-html-shellutils:
36218@if shellutils
36219maybe-install-html-shellutils: install-html-shellutils
36220
36221install-html-shellutils: \
36222 configure-shellutils \
36223 html-shellutils
36224 @: $(MAKE); $(unstage)
36225 @[ -f ./shellutils/Makefile ] || exit 0; \
36226 r=`${PWD_COMMAND}`; export r; \
36227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36228 $(HOST_EXPORTS) \
36229 for flag in $(EXTRA_HOST_FLAGS) ; do \
36230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36231 done; \
36232 echo "Doing install-html in shellutils" ; \
36233 (cd $(HOST_SUBDIR)/shellutils && \
36234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36236 "RANLIB=$${RANLIB}" \
bffcbe34 36237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
36238 install-html) \
36239 || exit 1
36240
36241@endif shellutils
36242
d5eec917
PB
36243.PHONY: maybe-installcheck-shellutils installcheck-shellutils
36244maybe-installcheck-shellutils:
36245@if shellutils
36246maybe-installcheck-shellutils: installcheck-shellutils
8ec98d6c 36247
d5eec917
PB
36248installcheck-shellutils: \
36249 configure-shellutils
15b527ca 36250 @: $(MAKE); $(unstage)
d5eec917 36251 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36252 r=`${PWD_COMMAND}`; export r; \
36253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36254 $(HOST_EXPORTS) \
d5eec917 36255 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36257 done; \
d5eec917 36258 echo "Doing installcheck in shellutils" ; \
7fc2ca22 36259 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36262 "RANLIB=$${RANLIB}" \
bffcbe34 36263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36264 installcheck) \
8ec98d6c
NN
36265 || exit 1
36266
d5eec917 36267@endif shellutils
8ec98d6c 36268
d5eec917
PB
36269.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
36270maybe-mostlyclean-shellutils:
36271@if shellutils
36272maybe-mostlyclean-shellutils: mostlyclean-shellutils
8ec98d6c 36273
d5eec917 36274mostlyclean-shellutils:
15b527ca 36275 @: $(MAKE); $(unstage)
d5eec917 36276 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36277 r=`${PWD_COMMAND}`; export r; \
36278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36279 $(HOST_EXPORTS) \
d5eec917 36280 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36282 done; \
d5eec917 36283 echo "Doing mostlyclean in shellutils" ; \
7fc2ca22 36284 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36287 "RANLIB=$${RANLIB}" \
bffcbe34 36288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36289 mostlyclean) \
8ec98d6c
NN
36290 || exit 1
36291
d5eec917 36292@endif shellutils
8ec98d6c 36293
d5eec917
PB
36294.PHONY: maybe-clean-shellutils clean-shellutils
36295maybe-clean-shellutils:
36296@if shellutils
36297maybe-clean-shellutils: clean-shellutils
8ec98d6c 36298
d5eec917 36299clean-shellutils:
15b527ca 36300 @: $(MAKE); $(unstage)
d5eec917 36301 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36302 r=`${PWD_COMMAND}`; export r; \
36303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36304 $(HOST_EXPORTS) \
d5eec917 36305 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36307 done; \
d5eec917 36308 echo "Doing clean in shellutils" ; \
7fc2ca22 36309 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36312 "RANLIB=$${RANLIB}" \
bffcbe34 36313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36314 clean) \
8ec98d6c
NN
36315 || exit 1
36316
d5eec917 36317@endif shellutils
8ec98d6c 36318
d5eec917
PB
36319.PHONY: maybe-distclean-shellutils distclean-shellutils
36320maybe-distclean-shellutils:
36321@if shellutils
36322maybe-distclean-shellutils: distclean-shellutils
8ec98d6c 36323
d5eec917 36324distclean-shellutils:
15b527ca 36325 @: $(MAKE); $(unstage)
d5eec917 36326 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36327 r=`${PWD_COMMAND}`; export r; \
36328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36329 $(HOST_EXPORTS) \
d5eec917 36330 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36332 done; \
d5eec917 36333 echo "Doing distclean in shellutils" ; \
7fc2ca22 36334 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36337 "RANLIB=$${RANLIB}" \
bffcbe34 36338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36339 distclean) \
8ec98d6c
NN
36340 || exit 1
36341
d5eec917 36342@endif shellutils
8ec98d6c 36343
d5eec917
PB
36344.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
36345maybe-maintainer-clean-shellutils:
36346@if shellutils
36347maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
8ec98d6c 36348
d5eec917 36349maintainer-clean-shellutils:
15b527ca 36350 @: $(MAKE); $(unstage)
d5eec917 36351 @[ -f ./shellutils/Makefile ] || exit 0; \
8ec98d6c
NN
36352 r=`${PWD_COMMAND}`; export r; \
36353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36354 $(HOST_EXPORTS) \
d5eec917 36355 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36357 done; \
d5eec917 36358 echo "Doing maintainer-clean in shellutils" ; \
7fc2ca22 36359 (cd $(HOST_SUBDIR)/shellutils && \
8ec98d6c
NN
36360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36362 "RANLIB=$${RANLIB}" \
bffcbe34 36363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36364 maintainer-clean) \
8ec98d6c 36365 || exit 1
8ecc6504 36366
d5eec917 36367@endif shellutils
8ecc6504 36368
8ec98d6c 36369
f0fdfd34 36370
d5eec917
PB
36371.PHONY: configure-sid maybe-configure-sid
36372maybe-configure-sid:
e1e5148c
CD
36373@if gcc-bootstrap
36374configure-sid: stage_current
36375@endif gcc-bootstrap
d5eec917
PB
36376@if sid
36377maybe-configure-sid: configure-sid
ec92c4d6 36378configure-sid:
15b527ca 36379 @: $(MAKE); $(unstage)
ec92c4d6 36380 @r=`${PWD_COMMAND}`; export r; \
5230d454 36381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
36382 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
36383 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
5074489a 36384 $(HOST_EXPORTS) \
f0fdfd34
PB
36385 echo Configuring in $(HOST_SUBDIR)/sid; \
36386 cd "$(HOST_SUBDIR)/sid" || exit 1; \
94f860c0 36387 case $(srcdir) in \
7fc2ca22
PB
36388 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36389 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
36390 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 36391 esac; \
7fc2ca22
PB
36392 srcdiroption="--srcdir=$${topdir}/sid"; \
36393 libsrcdir="$$s/sid"; \
94f860c0 36394 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
36395 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36396 --target=${target_alias} $${srcdiroption} \
94f860c0 36397 || exit 1
d5eec917 36398@endif sid
94f860c0 36399
f0fdfd34
PB
36400
36401
a8a96878
PB
36402
36403
d5eec917
PB
36404.PHONY: all-sid maybe-all-sid
36405maybe-all-sid:
e1e5148c
CD
36406@if gcc-bootstrap
36407all-sid: stage_current
36408@endif gcc-bootstrap
d5eec917 36409@if sid
5e6b1f07 36410TARGET-sid=all
d5eec917
PB
36411maybe-all-sid: all-sid
36412all-sid: configure-sid
15b527ca 36413 @: $(MAKE); $(unstage)
5230d454
L
36414 @r=`${PWD_COMMAND}`; export r; \
36415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 36416 $(HOST_EXPORTS) \
7fc2ca22 36417 (cd $(HOST_SUBDIR)/sid && \
6532abb6
PB
36418 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
36419 $(TARGET-sid))
d5eec917 36420@endif sid
8ecc6504 36421
f0fdfd34 36422
a8a96878
PB
36423
36424
d5eec917
PB
36425.PHONY: check-sid maybe-check-sid
36426maybe-check-sid:
36427@if sid
36428maybe-check-sid: check-sid
8ecc6504 36429
d5eec917 36430check-sid:
15b527ca 36431 @: $(MAKE); $(unstage)
8ec98d6c
NN
36432 @r=`${PWD_COMMAND}`; export r; \
36433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36434 $(HOST_EXPORTS) \
7fc2ca22
PB
36435 (cd $(HOST_SUBDIR)/sid && \
36436 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 36437
d5eec917 36438@endif sid
8ecc6504 36439
d5eec917
PB
36440.PHONY: install-sid maybe-install-sid
36441maybe-install-sid:
36442@if sid
36443maybe-install-sid: install-sid
70ffc148 36444
d5eec917 36445install-sid: installdirs
15b527ca 36446 @: $(MAKE); $(unstage)
5230d454
L
36447 @r=`${PWD_COMMAND}`; export r; \
36448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36449 $(HOST_EXPORTS) \
7fc2ca22 36450 (cd $(HOST_SUBDIR)/sid && \
93c60b6d 36451 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 36452
d5eec917 36453@endif sid
8ecc6504 36454
39bbbb69 36455# Other targets (info, dvi, pdf, etc.)
8ec98d6c 36456
d5eec917
PB
36457.PHONY: maybe-info-sid info-sid
36458maybe-info-sid:
36459@if sid
36460maybe-info-sid: info-sid
8ec98d6c 36461
d5eec917
PB
36462info-sid: \
36463 configure-sid
15b527ca 36464 @: $(MAKE); $(unstage)
d5eec917 36465 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36466 r=`${PWD_COMMAND}`; export r; \
36467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36468 $(HOST_EXPORTS) \
d5eec917 36469 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36471 done; \
d5eec917 36472 echo "Doing info in sid" ; \
7fc2ca22 36473 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36476 "RANLIB=$${RANLIB}" \
bffcbe34 36477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36478 info) \
8ec98d6c
NN
36479 || exit 1
36480
d5eec917 36481@endif sid
8ec98d6c 36482
d5eec917
PB
36483.PHONY: maybe-dvi-sid dvi-sid
36484maybe-dvi-sid:
36485@if sid
36486maybe-dvi-sid: dvi-sid
8ec98d6c 36487
d5eec917
PB
36488dvi-sid: \
36489 configure-sid
15b527ca 36490 @: $(MAKE); $(unstage)
d5eec917 36491 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36492 r=`${PWD_COMMAND}`; export r; \
36493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36494 $(HOST_EXPORTS) \
d5eec917 36495 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36497 done; \
d5eec917 36498 echo "Doing dvi in sid" ; \
7fc2ca22 36499 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36502 "RANLIB=$${RANLIB}" \
bffcbe34 36503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36504 dvi) \
8ec98d6c
NN
36505 || exit 1
36506
d5eec917 36507@endif sid
8ec98d6c 36508
39bbbb69
DD
36509.PHONY: maybe-pdf-sid pdf-sid
36510maybe-pdf-sid:
36511@if sid
36512maybe-pdf-sid: pdf-sid
36513
36514pdf-sid: \
36515 configure-sid
36516 @: $(MAKE); $(unstage)
36517 @[ -f ./sid/Makefile ] || exit 0; \
36518 r=`${PWD_COMMAND}`; export r; \
36519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36520 $(HOST_EXPORTS) \
36521 for flag in $(EXTRA_HOST_FLAGS) ; do \
36522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36523 done; \
36524 echo "Doing pdf in sid" ; \
36525 (cd $(HOST_SUBDIR)/sid && \
36526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36528 "RANLIB=$${RANLIB}" \
bffcbe34 36529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36530 pdf) \
36531 || exit 1
36532
36533@endif sid
36534
b6fb961f
MS
36535.PHONY: maybe-html-sid html-sid
36536maybe-html-sid:
36537@if sid
36538maybe-html-sid: html-sid
36539
36540html-sid: \
36541 configure-sid
15b527ca 36542 @: $(MAKE); $(unstage)
b6fb961f
MS
36543 @[ -f ./sid/Makefile ] || exit 0; \
36544 r=`${PWD_COMMAND}`; export r; \
36545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36546 $(HOST_EXPORTS) \
36547 for flag in $(EXTRA_HOST_FLAGS) ; do \
36548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36549 done; \
36550 echo "Doing html in sid" ; \
7fc2ca22 36551 (cd $(HOST_SUBDIR)/sid && \
b6fb961f
MS
36552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36554 "RANLIB=$${RANLIB}" \
bffcbe34 36555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36556 html) \
36557 || exit 1
36558
36559@endif sid
36560
d5eec917
PB
36561.PHONY: maybe-TAGS-sid TAGS-sid
36562maybe-TAGS-sid:
36563@if sid
36564maybe-TAGS-sid: TAGS-sid
8ec98d6c 36565
d5eec917
PB
36566TAGS-sid: \
36567 configure-sid
15b527ca 36568 @: $(MAKE); $(unstage)
d5eec917 36569 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36570 r=`${PWD_COMMAND}`; export r; \
36571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36572 $(HOST_EXPORTS) \
d5eec917 36573 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36575 done; \
d5eec917 36576 echo "Doing TAGS in sid" ; \
7fc2ca22 36577 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36580 "RANLIB=$${RANLIB}" \
bffcbe34 36581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36582 TAGS) \
8ec98d6c
NN
36583 || exit 1
36584
d5eec917 36585@endif sid
8ec98d6c 36586
d5eec917
PB
36587.PHONY: maybe-install-info-sid install-info-sid
36588maybe-install-info-sid:
36589@if sid
36590maybe-install-info-sid: install-info-sid
8ec98d6c 36591
d5eec917
PB
36592install-info-sid: \
36593 configure-sid \
36594 info-sid
15b527ca 36595 @: $(MAKE); $(unstage)
d5eec917 36596 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36597 r=`${PWD_COMMAND}`; export r; \
36598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36599 $(HOST_EXPORTS) \
d5eec917 36600 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36602 done; \
d5eec917 36603 echo "Doing install-info in sid" ; \
7fc2ca22 36604 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36607 "RANLIB=$${RANLIB}" \
bffcbe34 36608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36609 install-info) \
8ec98d6c
NN
36610 || exit 1
36611
d5eec917 36612@endif sid
8ec98d6c 36613
d4954b6d
DD
36614.PHONY: maybe-install-pdf-sid install-pdf-sid
36615maybe-install-pdf-sid:
36616@if sid
36617maybe-install-pdf-sid: install-pdf-sid
36618
36619install-pdf-sid: \
36620 configure-sid \
36621 pdf-sid
36622 @: $(MAKE); $(unstage)
36623 @[ -f ./sid/Makefile ] || exit 0; \
36624 r=`${PWD_COMMAND}`; export r; \
36625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36626 $(HOST_EXPORTS) \
36627 for flag in $(EXTRA_HOST_FLAGS) ; do \
36628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36629 done; \
36630 echo "Doing install-pdf in sid" ; \
36631 (cd $(HOST_SUBDIR)/sid && \
36632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36634 "RANLIB=$${RANLIB}" \
bffcbe34 36635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
36636 install-pdf) \
36637 || exit 1
36638
36639@endif sid
36640
83c9add4
CD
36641.PHONY: maybe-install-html-sid install-html-sid
36642maybe-install-html-sid:
36643@if sid
36644maybe-install-html-sid: install-html-sid
36645
36646install-html-sid: \
36647 configure-sid \
36648 html-sid
36649 @: $(MAKE); $(unstage)
36650 @[ -f ./sid/Makefile ] || exit 0; \
36651 r=`${PWD_COMMAND}`; export r; \
36652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36653 $(HOST_EXPORTS) \
36654 for flag in $(EXTRA_HOST_FLAGS) ; do \
36655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36656 done; \
36657 echo "Doing install-html in sid" ; \
36658 (cd $(HOST_SUBDIR)/sid && \
36659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36661 "RANLIB=$${RANLIB}" \
bffcbe34 36662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
36663 install-html) \
36664 || exit 1
36665
36666@endif sid
36667
d5eec917
PB
36668.PHONY: maybe-installcheck-sid installcheck-sid
36669maybe-installcheck-sid:
36670@if sid
36671maybe-installcheck-sid: installcheck-sid
8ec98d6c 36672
d5eec917
PB
36673installcheck-sid: \
36674 configure-sid
15b527ca 36675 @: $(MAKE); $(unstage)
d5eec917
PB
36676 @[ -f ./sid/Makefile ] || exit 0; \
36677 r=`${PWD_COMMAND}`; export r; \
8ec98d6c 36678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36679 $(HOST_EXPORTS) \
d5eec917 36680 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36682 done; \
d5eec917 36683 echo "Doing installcheck in sid" ; \
7fc2ca22 36684 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36687 "RANLIB=$${RANLIB}" \
bffcbe34 36688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36689 installcheck) \
8ec98d6c
NN
36690 || exit 1
36691
d5eec917 36692@endif sid
8ec98d6c 36693
d5eec917
PB
36694.PHONY: maybe-mostlyclean-sid mostlyclean-sid
36695maybe-mostlyclean-sid:
36696@if sid
36697maybe-mostlyclean-sid: mostlyclean-sid
8ec98d6c 36698
d5eec917 36699mostlyclean-sid:
15b527ca 36700 @: $(MAKE); $(unstage)
d5eec917 36701 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36702 r=`${PWD_COMMAND}`; export r; \
36703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36704 $(HOST_EXPORTS) \
d5eec917 36705 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36707 done; \
d5eec917 36708 echo "Doing mostlyclean in sid" ; \
7fc2ca22 36709 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36712 "RANLIB=$${RANLIB}" \
bffcbe34 36713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36714 mostlyclean) \
8ec98d6c
NN
36715 || exit 1
36716
d5eec917 36717@endif sid
8ec98d6c 36718
d5eec917
PB
36719.PHONY: maybe-clean-sid clean-sid
36720maybe-clean-sid:
36721@if sid
36722maybe-clean-sid: clean-sid
8ec98d6c 36723
d5eec917 36724clean-sid:
15b527ca 36725 @: $(MAKE); $(unstage)
d5eec917 36726 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36727 r=`${PWD_COMMAND}`; export r; \
36728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36729 $(HOST_EXPORTS) \
d5eec917 36730 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36732 done; \
d5eec917 36733 echo "Doing clean in sid" ; \
7fc2ca22 36734 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36737 "RANLIB=$${RANLIB}" \
bffcbe34 36738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36739 clean) \
8ec98d6c
NN
36740 || exit 1
36741
d5eec917 36742@endif sid
8ec98d6c 36743
d5eec917
PB
36744.PHONY: maybe-distclean-sid distclean-sid
36745maybe-distclean-sid:
36746@if sid
36747maybe-distclean-sid: distclean-sid
8ec98d6c 36748
d5eec917 36749distclean-sid:
15b527ca 36750 @: $(MAKE); $(unstage)
d5eec917 36751 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36752 r=`${PWD_COMMAND}`; export r; \
36753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36754 $(HOST_EXPORTS) \
d5eec917 36755 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36757 done; \
d5eec917 36758 echo "Doing distclean in sid" ; \
7fc2ca22 36759 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36762 "RANLIB=$${RANLIB}" \
bffcbe34 36763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36764 distclean) \
8ec98d6c
NN
36765 || exit 1
36766
d5eec917 36767@endif sid
8ec98d6c 36768
d5eec917
PB
36769.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
36770maybe-maintainer-clean-sid:
36771@if sid
36772maybe-maintainer-clean-sid: maintainer-clean-sid
8ec98d6c 36773
d5eec917 36774maintainer-clean-sid:
15b527ca 36775 @: $(MAKE); $(unstage)
d5eec917 36776 @[ -f ./sid/Makefile ] || exit 0; \
8ec98d6c
NN
36777 r=`${PWD_COMMAND}`; export r; \
36778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36779 $(HOST_EXPORTS) \
d5eec917 36780 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36782 done; \
d5eec917 36783 echo "Doing maintainer-clean in sid" ; \
7fc2ca22 36784 (cd $(HOST_SUBDIR)/sid && \
8ec98d6c
NN
36785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36787 "RANLIB=$${RANLIB}" \
bffcbe34 36788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36789 maintainer-clean) \
8ec98d6c
NN
36790 || exit 1
36791
d5eec917 36792@endif sid
8ec98d6c
NN
36793
36794
f0fdfd34 36795
d5eec917
PB
36796.PHONY: configure-sim maybe-configure-sim
36797maybe-configure-sim:
e1e5148c
CD
36798@if gcc-bootstrap
36799configure-sim: stage_current
36800@endif gcc-bootstrap
d5eec917
PB
36801@if sim
36802maybe-configure-sim: configure-sim
ec92c4d6 36803configure-sim:
15b527ca 36804 @: $(MAKE); $(unstage)
ec92c4d6 36805 @r=`${PWD_COMMAND}`; export r; \
5230d454 36806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
36807 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
36808 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
5074489a 36809 $(HOST_EXPORTS) \
f0fdfd34
PB
36810 echo Configuring in $(HOST_SUBDIR)/sim; \
36811 cd "$(HOST_SUBDIR)/sim" || exit 1; \
94f860c0 36812 case $(srcdir) in \
7fc2ca22
PB
36813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36814 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
36815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 36816 esac; \
7fc2ca22
PB
36817 srcdiroption="--srcdir=$${topdir}/sim"; \
36818 libsrcdir="$$s/sim"; \
94f860c0 36819 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
36820 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36821 --target=${target_alias} $${srcdiroption} \
94f860c0 36822 || exit 1
d5eec917 36823@endif sim
94f860c0 36824
f0fdfd34
PB
36825
36826
a8a96878
PB
36827
36828
d5eec917
PB
36829.PHONY: all-sim maybe-all-sim
36830maybe-all-sim:
e1e5148c
CD
36831@if gcc-bootstrap
36832all-sim: stage_current
36833@endif gcc-bootstrap
d5eec917 36834@if sim
5e6b1f07 36835TARGET-sim=all
d5eec917
PB
36836maybe-all-sim: all-sim
36837all-sim: configure-sim
15b527ca 36838 @: $(MAKE); $(unstage)
5230d454
L
36839 @r=`${PWD_COMMAND}`; export r; \
36840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 36841 $(HOST_EXPORTS) \
7fc2ca22 36842 (cd $(HOST_SUBDIR)/sim && \
6532abb6
PB
36843 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
36844 $(TARGET-sim))
d5eec917 36845@endif sim
8ecc6504 36846
f0fdfd34 36847
a8a96878
PB
36848
36849
d5eec917
PB
36850.PHONY: check-sim maybe-check-sim
36851maybe-check-sim:
36852@if sim
36853maybe-check-sim: check-sim
8ecc6504 36854
d5eec917 36855check-sim:
15b527ca 36856 @: $(MAKE); $(unstage)
5230d454
L
36857 @r=`${PWD_COMMAND}`; export r; \
36858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36859 $(HOST_EXPORTS) \
7fc2ca22
PB
36860 (cd $(HOST_SUBDIR)/sim && \
36861 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 36862
d5eec917 36863@endif sim
8ecc6504 36864
d5eec917
PB
36865.PHONY: install-sim maybe-install-sim
36866maybe-install-sim:
36867@if sim
36868maybe-install-sim: install-sim
70ffc148 36869
d5eec917 36870install-sim: installdirs
15b527ca 36871 @: $(MAKE); $(unstage)
5230d454
L
36872 @r=`${PWD_COMMAND}`; export r; \
36873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36874 $(HOST_EXPORTS) \
7fc2ca22 36875 (cd $(HOST_SUBDIR)/sim && \
93c60b6d 36876 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 36877
d5eec917 36878@endif sim
8ecc6504 36879
39bbbb69 36880# Other targets (info, dvi, pdf, etc.)
8ec98d6c 36881
d5eec917
PB
36882.PHONY: maybe-info-sim info-sim
36883maybe-info-sim:
36884@if sim
36885maybe-info-sim: info-sim
8ec98d6c 36886
d5eec917
PB
36887info-sim: \
36888 configure-sim
15b527ca 36889 @: $(MAKE); $(unstage)
d5eec917 36890 @[ -f ./sim/Makefile ] || exit 0; \
5230d454
L
36891 r=`${PWD_COMMAND}`; export r; \
36892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36893 $(HOST_EXPORTS) \
d5eec917 36894 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36896 done; \
d5eec917 36897 echo "Doing info in sim" ; \
7fc2ca22 36898 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
36899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36901 "RANLIB=$${RANLIB}" \
bffcbe34 36902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36903 info) \
94f860c0
NN
36904 || exit 1
36905
d5eec917 36906@endif sim
8ec98d6c 36907
d5eec917
PB
36908.PHONY: maybe-dvi-sim dvi-sim
36909maybe-dvi-sim:
36910@if sim
36911maybe-dvi-sim: dvi-sim
8ec98d6c 36912
d5eec917
PB
36913dvi-sim: \
36914 configure-sim
15b527ca 36915 @: $(MAKE); $(unstage)
d5eec917 36916 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 36917 r=`${PWD_COMMAND}`; export r; \
5230d454 36918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36919 $(HOST_EXPORTS) \
d5eec917 36920 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36922 done; \
d5eec917 36923 echo "Doing dvi in sim" ; \
7fc2ca22 36924 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
36925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36927 "RANLIB=$${RANLIB}" \
bffcbe34 36928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 36929 dvi) \
8ec98d6c 36930 || exit 1
8ecc6504 36931
d5eec917 36932@endif sim
8ecc6504 36933
39bbbb69
DD
36934.PHONY: maybe-pdf-sim pdf-sim
36935maybe-pdf-sim:
36936@if sim
36937maybe-pdf-sim: pdf-sim
36938
36939pdf-sim: \
36940 configure-sim
36941 @: $(MAKE); $(unstage)
36942 @[ -f ./sim/Makefile ] || exit 0; \
36943 r=`${PWD_COMMAND}`; export r; \
36944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36945 $(HOST_EXPORTS) \
36946 for flag in $(EXTRA_HOST_FLAGS) ; do \
36947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36948 done; \
36949 echo "Doing pdf in sim" ; \
36950 (cd $(HOST_SUBDIR)/sim && \
36951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36953 "RANLIB=$${RANLIB}" \
bffcbe34 36954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
36955 pdf) \
36956 || exit 1
36957
36958@endif sim
36959
b6fb961f
MS
36960.PHONY: maybe-html-sim html-sim
36961maybe-html-sim:
36962@if sim
36963maybe-html-sim: html-sim
36964
36965html-sim: \
36966 configure-sim
15b527ca 36967 @: $(MAKE); $(unstage)
b6fb961f
MS
36968 @[ -f ./sim/Makefile ] || exit 0; \
36969 r=`${PWD_COMMAND}`; export r; \
36970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
36971 $(HOST_EXPORTS) \
36972 for flag in $(EXTRA_HOST_FLAGS) ; do \
36973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36974 done; \
36975 echo "Doing html in sim" ; \
7fc2ca22 36976 (cd $(HOST_SUBDIR)/sim && \
b6fb961f
MS
36977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36979 "RANLIB=$${RANLIB}" \
bffcbe34 36980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
36981 html) \
36982 || exit 1
36983
36984@endif sim
36985
d5eec917
PB
36986.PHONY: maybe-TAGS-sim TAGS-sim
36987maybe-TAGS-sim:
36988@if sim
36989maybe-TAGS-sim: TAGS-sim
8ec98d6c 36990
d5eec917
PB
36991TAGS-sim: \
36992 configure-sim
15b527ca 36993 @: $(MAKE); $(unstage)
d5eec917 36994 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 36995 r=`${PWD_COMMAND}`; export r; \
5230d454 36996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 36997 $(HOST_EXPORTS) \
d5eec917 36998 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
36999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37000 done; \
d5eec917 37001 echo "Doing TAGS in sim" ; \
7fc2ca22 37002 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37005 "RANLIB=$${RANLIB}" \
bffcbe34 37006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37007 TAGS) \
8ec98d6c 37008 || exit 1
8ecc6504 37009
d5eec917 37010@endif sim
8ecc6504 37011
d5eec917
PB
37012.PHONY: maybe-install-info-sim install-info-sim
37013maybe-install-info-sim:
37014@if sim
37015maybe-install-info-sim: install-info-sim
8ec98d6c 37016
d5eec917
PB
37017install-info-sim: \
37018 configure-sim \
37019 info-sim
15b527ca 37020 @: $(MAKE); $(unstage)
d5eec917 37021 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
37022 r=`${PWD_COMMAND}`; export r; \
37023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37024 $(HOST_EXPORTS) \
d5eec917 37025 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37027 done; \
d5eec917 37028 echo "Doing install-info in sim" ; \
7fc2ca22 37029 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37032 "RANLIB=$${RANLIB}" \
bffcbe34 37033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37034 install-info) \
8ec98d6c
NN
37035 || exit 1
37036
d5eec917 37037@endif sim
8ec98d6c 37038
d4954b6d
DD
37039.PHONY: maybe-install-pdf-sim install-pdf-sim
37040maybe-install-pdf-sim:
37041@if sim
37042maybe-install-pdf-sim: install-pdf-sim
37043
37044install-pdf-sim: \
37045 configure-sim \
37046 pdf-sim
37047 @: $(MAKE); $(unstage)
37048 @[ -f ./sim/Makefile ] || exit 0; \
37049 r=`${PWD_COMMAND}`; export r; \
37050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37051 $(HOST_EXPORTS) \
37052 for flag in $(EXTRA_HOST_FLAGS) ; do \
37053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37054 done; \
37055 echo "Doing install-pdf in sim" ; \
37056 (cd $(HOST_SUBDIR)/sim && \
37057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37059 "RANLIB=$${RANLIB}" \
bffcbe34 37060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
37061 install-pdf) \
37062 || exit 1
37063
37064@endif sim
37065
83c9add4
CD
37066.PHONY: maybe-install-html-sim install-html-sim
37067maybe-install-html-sim:
37068@if sim
37069maybe-install-html-sim: install-html-sim
37070
37071install-html-sim: \
37072 configure-sim \
37073 html-sim
37074 @: $(MAKE); $(unstage)
37075 @[ -f ./sim/Makefile ] || exit 0; \
37076 r=`${PWD_COMMAND}`; export r; \
37077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37078 $(HOST_EXPORTS) \
37079 for flag in $(EXTRA_HOST_FLAGS) ; do \
37080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37081 done; \
37082 echo "Doing install-html in sim" ; \
37083 (cd $(HOST_SUBDIR)/sim && \
37084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37086 "RANLIB=$${RANLIB}" \
bffcbe34 37087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
37088 install-html) \
37089 || exit 1
37090
37091@endif sim
37092
d5eec917
PB
37093.PHONY: maybe-installcheck-sim installcheck-sim
37094maybe-installcheck-sim:
37095@if sim
37096maybe-installcheck-sim: installcheck-sim
8ec98d6c 37097
d5eec917
PB
37098installcheck-sim: \
37099 configure-sim
15b527ca 37100 @: $(MAKE); $(unstage)
d5eec917 37101 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
37102 r=`${PWD_COMMAND}`; export r; \
37103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37104 $(HOST_EXPORTS) \
d5eec917 37105 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37107 done; \
d5eec917 37108 echo "Doing installcheck in sim" ; \
7fc2ca22 37109 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37112 "RANLIB=$${RANLIB}" \
bffcbe34 37113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37114 installcheck) \
8ec98d6c
NN
37115 || exit 1
37116
d5eec917 37117@endif sim
8ec98d6c 37118
d5eec917
PB
37119.PHONY: maybe-mostlyclean-sim mostlyclean-sim
37120maybe-mostlyclean-sim:
37121@if sim
37122maybe-mostlyclean-sim: mostlyclean-sim
8ec98d6c 37123
d5eec917 37124mostlyclean-sim:
15b527ca 37125 @: $(MAKE); $(unstage)
d5eec917 37126 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
37127 r=`${PWD_COMMAND}`; export r; \
37128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37129 $(HOST_EXPORTS) \
d5eec917 37130 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37132 done; \
d5eec917 37133 echo "Doing mostlyclean in sim" ; \
7fc2ca22 37134 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37137 "RANLIB=$${RANLIB}" \
bffcbe34 37138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37139 mostlyclean) \
8ec98d6c
NN
37140 || exit 1
37141
d5eec917 37142@endif sim
8ec98d6c 37143
d5eec917
PB
37144.PHONY: maybe-clean-sim clean-sim
37145maybe-clean-sim:
37146@if sim
37147maybe-clean-sim: clean-sim
8ec98d6c 37148
d5eec917 37149clean-sim:
15b527ca 37150 @: $(MAKE); $(unstage)
d5eec917 37151 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
37152 r=`${PWD_COMMAND}`; export r; \
37153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37154 $(HOST_EXPORTS) \
d5eec917 37155 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37157 done; \
d5eec917 37158 echo "Doing clean in sim" ; \
7fc2ca22 37159 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37162 "RANLIB=$${RANLIB}" \
bffcbe34 37163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37164 clean) \
8ec98d6c
NN
37165 || exit 1
37166
d5eec917 37167@endif sim
8ec98d6c 37168
d5eec917
PB
37169.PHONY: maybe-distclean-sim distclean-sim
37170maybe-distclean-sim:
37171@if sim
37172maybe-distclean-sim: distclean-sim
8ec98d6c 37173
d5eec917 37174distclean-sim:
15b527ca 37175 @: $(MAKE); $(unstage)
d5eec917 37176 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c
NN
37177 r=`${PWD_COMMAND}`; export r; \
37178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37179 $(HOST_EXPORTS) \
d5eec917 37180 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37182 done; \
d5eec917 37183 echo "Doing distclean in sim" ; \
7fc2ca22 37184 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37187 "RANLIB=$${RANLIB}" \
bffcbe34 37188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37189 distclean) \
8ec98d6c
NN
37190 || exit 1
37191
d5eec917 37192@endif sim
8ec98d6c 37193
d5eec917
PB
37194.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
37195maybe-maintainer-clean-sim:
37196@if sim
37197maybe-maintainer-clean-sim: maintainer-clean-sim
70ffc148 37198
d5eec917 37199maintainer-clean-sim:
15b527ca 37200 @: $(MAKE); $(unstage)
d5eec917 37201 @[ -f ./sim/Makefile ] || exit 0; \
8ec98d6c 37202 r=`${PWD_COMMAND}`; export r; \
5230d454 37203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37204 $(HOST_EXPORTS) \
d5eec917 37205 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37207 done; \
d5eec917 37208 echo "Doing maintainer-clean in sim" ; \
7fc2ca22 37209 (cd $(HOST_SUBDIR)/sim && \
8ec98d6c
NN
37210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37212 "RANLIB=$${RANLIB}" \
bffcbe34 37213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37214 maintainer-clean) \
8ec98d6c 37215 || exit 1
8ecc6504 37216
d5eec917 37217@endif sim
8ecc6504 37218
8ec98d6c 37219
f0fdfd34 37220
d5eec917
PB
37221.PHONY: configure-tar maybe-configure-tar
37222maybe-configure-tar:
e1e5148c
CD
37223@if gcc-bootstrap
37224configure-tar: stage_current
37225@endif gcc-bootstrap
d5eec917
PB
37226@if tar
37227maybe-configure-tar: configure-tar
ec92c4d6 37228configure-tar:
15b527ca 37229 @: $(MAKE); $(unstage)
ec92c4d6 37230 @r=`${PWD_COMMAND}`; export r; \
5230d454 37231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
37232 test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
37233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
5074489a 37234 $(HOST_EXPORTS) \
f0fdfd34
PB
37235 echo Configuring in $(HOST_SUBDIR)/tar; \
37236 cd "$(HOST_SUBDIR)/tar" || exit 1; \
94f860c0 37237 case $(srcdir) in \
7fc2ca22
PB
37238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37239 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
37240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 37241 esac; \
7fc2ca22
PB
37242 srcdiroption="--srcdir=$${topdir}/tar"; \
37243 libsrcdir="$$s/tar"; \
94f860c0 37244 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
37245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37246 --target=${target_alias} $${srcdiroption} \
94f860c0 37247 || exit 1
d5eec917 37248@endif tar
94f860c0 37249
f0fdfd34
PB
37250
37251
a8a96878
PB
37252
37253
d5eec917
PB
37254.PHONY: all-tar maybe-all-tar
37255maybe-all-tar:
e1e5148c
CD
37256@if gcc-bootstrap
37257all-tar: stage_current
37258@endif gcc-bootstrap
d5eec917 37259@if tar
5e6b1f07 37260TARGET-tar=all
d5eec917
PB
37261maybe-all-tar: all-tar
37262all-tar: configure-tar
15b527ca 37263 @: $(MAKE); $(unstage)
5230d454
L
37264 @r=`${PWD_COMMAND}`; export r; \
37265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 37266 $(HOST_EXPORTS) \
7fc2ca22 37267 (cd $(HOST_SUBDIR)/tar && \
6532abb6
PB
37268 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
37269 $(TARGET-tar))
d5eec917 37270@endif tar
8ecc6504 37271
f0fdfd34 37272
a8a96878
PB
37273
37274
d5eec917
PB
37275.PHONY: check-tar maybe-check-tar
37276maybe-check-tar:
37277@if tar
37278maybe-check-tar: check-tar
8ecc6504 37279
d5eec917 37280check-tar:
15b527ca 37281 @: $(MAKE); $(unstage)
5230d454
L
37282 @r=`${PWD_COMMAND}`; export r; \
37283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37284 $(HOST_EXPORTS) \
7fc2ca22
PB
37285 (cd $(HOST_SUBDIR)/tar && \
37286 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 37287
d5eec917 37288@endif tar
8ecc6504 37289
d5eec917
PB
37290.PHONY: install-tar maybe-install-tar
37291maybe-install-tar:
37292@if tar
37293maybe-install-tar: install-tar
70ffc148 37294
d5eec917 37295install-tar: installdirs
15b527ca 37296 @: $(MAKE); $(unstage)
d5eec917
PB
37297 @r=`${PWD_COMMAND}`; export r; \
37298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 37299 $(HOST_EXPORTS) \
7fc2ca22 37300 (cd $(HOST_SUBDIR)/tar && \
93c60b6d 37301 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 37302
d5eec917 37303@endif tar
8ec98d6c 37304
39bbbb69 37305# Other targets (info, dvi, pdf, etc.)
8ec98d6c 37306
d5eec917
PB
37307.PHONY: maybe-info-tar info-tar
37308maybe-info-tar:
37309@if tar
37310maybe-info-tar: info-tar
8ec98d6c 37311
d5eec917
PB
37312info-tar: \
37313 configure-tar
15b527ca 37314 @: $(MAKE); $(unstage)
d5eec917 37315 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c 37316 r=`${PWD_COMMAND}`; export r; \
5230d454 37317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37318 $(HOST_EXPORTS) \
d5eec917 37319 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37321 done; \
d5eec917 37322 echo "Doing info in tar" ; \
7fc2ca22 37323 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37326 "RANLIB=$${RANLIB}" \
bffcbe34 37327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37328 info) \
8ec98d6c
NN
37329 || exit 1
37330
d5eec917 37331@endif tar
8ec98d6c 37332
d5eec917
PB
37333.PHONY: maybe-dvi-tar dvi-tar
37334maybe-dvi-tar:
37335@if tar
37336maybe-dvi-tar: dvi-tar
8ec98d6c 37337
d5eec917
PB
37338dvi-tar: \
37339 configure-tar
15b527ca 37340 @: $(MAKE); $(unstage)
d5eec917 37341 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37342 r=`${PWD_COMMAND}`; export r; \
37343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37344 $(HOST_EXPORTS) \
d5eec917 37345 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37347 done; \
d5eec917 37348 echo "Doing dvi in tar" ; \
7fc2ca22 37349 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37352 "RANLIB=$${RANLIB}" \
bffcbe34 37353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37354 dvi) \
8ec98d6c
NN
37355 || exit 1
37356
d5eec917 37357@endif tar
8ec98d6c 37358
39bbbb69
DD
37359.PHONY: maybe-pdf-tar pdf-tar
37360maybe-pdf-tar:
37361@if tar
37362maybe-pdf-tar: pdf-tar
37363
37364pdf-tar: \
37365 configure-tar
37366 @: $(MAKE); $(unstage)
37367 @[ -f ./tar/Makefile ] || exit 0; \
37368 r=`${PWD_COMMAND}`; export r; \
37369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37370 $(HOST_EXPORTS) \
37371 for flag in $(EXTRA_HOST_FLAGS) ; do \
37372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37373 done; \
37374 echo "Doing pdf in tar" ; \
37375 (cd $(HOST_SUBDIR)/tar && \
37376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37378 "RANLIB=$${RANLIB}" \
bffcbe34 37379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
37380 pdf) \
37381 || exit 1
37382
37383@endif tar
37384
b6fb961f
MS
37385.PHONY: maybe-html-tar html-tar
37386maybe-html-tar:
37387@if tar
37388maybe-html-tar: html-tar
37389
37390html-tar: \
37391 configure-tar
15b527ca 37392 @: $(MAKE); $(unstage)
b6fb961f
MS
37393 @[ -f ./tar/Makefile ] || exit 0; \
37394 r=`${PWD_COMMAND}`; export r; \
37395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
37396 $(HOST_EXPORTS) \
37397 for flag in $(EXTRA_HOST_FLAGS) ; do \
37398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37399 done; \
37400 echo "Doing html in tar" ; \
7fc2ca22 37401 (cd $(HOST_SUBDIR)/tar && \
b6fb961f
MS
37402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37404 "RANLIB=$${RANLIB}" \
bffcbe34 37405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
37406 html) \
37407 || exit 1
37408
37409@endif tar
37410
d5eec917
PB
37411.PHONY: maybe-TAGS-tar TAGS-tar
37412maybe-TAGS-tar:
37413@if tar
37414maybe-TAGS-tar: TAGS-tar
8ec98d6c 37415
d5eec917
PB
37416TAGS-tar: \
37417 configure-tar
15b527ca 37418 @: $(MAKE); $(unstage)
d5eec917 37419 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37420 r=`${PWD_COMMAND}`; export r; \
37421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37422 $(HOST_EXPORTS) \
d5eec917 37423 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37425 done; \
d5eec917 37426 echo "Doing TAGS in tar" ; \
7fc2ca22 37427 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37430 "RANLIB=$${RANLIB}" \
bffcbe34 37431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37432 TAGS) \
8ec98d6c
NN
37433 || exit 1
37434
d5eec917 37435@endif tar
8ec98d6c 37436
d5eec917
PB
37437.PHONY: maybe-install-info-tar install-info-tar
37438maybe-install-info-tar:
37439@if tar
37440maybe-install-info-tar: install-info-tar
8ec98d6c 37441
d5eec917
PB
37442install-info-tar: \
37443 configure-tar \
37444 info-tar
15b527ca 37445 @: $(MAKE); $(unstage)
d5eec917 37446 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37447 r=`${PWD_COMMAND}`; export r; \
37448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37449 $(HOST_EXPORTS) \
d5eec917 37450 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37452 done; \
d5eec917 37453 echo "Doing install-info in tar" ; \
7fc2ca22 37454 (cd $(HOST_SUBDIR)/tar && \
d5eec917 37455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8ec98d6c
NN
37456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37457 "RANLIB=$${RANLIB}" \
bffcbe34 37458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37459 install-info) \
8ec98d6c
NN
37460 || exit 1
37461
d5eec917 37462@endif tar
8ec98d6c 37463
d4954b6d
DD
37464.PHONY: maybe-install-pdf-tar install-pdf-tar
37465maybe-install-pdf-tar:
37466@if tar
37467maybe-install-pdf-tar: install-pdf-tar
37468
37469install-pdf-tar: \
37470 configure-tar \
37471 pdf-tar
37472 @: $(MAKE); $(unstage)
37473 @[ -f ./tar/Makefile ] || exit 0; \
37474 r=`${PWD_COMMAND}`; export r; \
37475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37476 $(HOST_EXPORTS) \
37477 for flag in $(EXTRA_HOST_FLAGS) ; do \
37478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37479 done; \
37480 echo "Doing install-pdf in tar" ; \
37481 (cd $(HOST_SUBDIR)/tar && \
37482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37484 "RANLIB=$${RANLIB}" \
bffcbe34 37485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
37486 install-pdf) \
37487 || exit 1
37488
37489@endif tar
37490
83c9add4
CD
37491.PHONY: maybe-install-html-tar install-html-tar
37492maybe-install-html-tar:
37493@if tar
37494maybe-install-html-tar: install-html-tar
37495
37496install-html-tar: \
37497 configure-tar \
37498 html-tar
37499 @: $(MAKE); $(unstage)
37500 @[ -f ./tar/Makefile ] || exit 0; \
37501 r=`${PWD_COMMAND}`; export r; \
37502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37503 $(HOST_EXPORTS) \
37504 for flag in $(EXTRA_HOST_FLAGS) ; do \
37505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37506 done; \
37507 echo "Doing install-html in tar" ; \
37508 (cd $(HOST_SUBDIR)/tar && \
37509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37511 "RANLIB=$${RANLIB}" \
bffcbe34 37512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
37513 install-html) \
37514 || exit 1
37515
37516@endif tar
37517
d5eec917
PB
37518.PHONY: maybe-installcheck-tar installcheck-tar
37519maybe-installcheck-tar:
37520@if tar
37521maybe-installcheck-tar: installcheck-tar
8ec98d6c 37522
d5eec917
PB
37523installcheck-tar: \
37524 configure-tar
15b527ca 37525 @: $(MAKE); $(unstage)
d5eec917 37526 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37527 r=`${PWD_COMMAND}`; export r; \
37528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37529 $(HOST_EXPORTS) \
d5eec917 37530 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37532 done; \
d5eec917 37533 echo "Doing installcheck in tar" ; \
7fc2ca22 37534 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37537 "RANLIB=$${RANLIB}" \
bffcbe34 37538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37539 installcheck) \
8ec98d6c
NN
37540 || exit 1
37541
d5eec917 37542@endif tar
8ec98d6c 37543
d5eec917
PB
37544.PHONY: maybe-mostlyclean-tar mostlyclean-tar
37545maybe-mostlyclean-tar:
37546@if tar
37547maybe-mostlyclean-tar: mostlyclean-tar
8ec98d6c 37548
d5eec917 37549mostlyclean-tar:
15b527ca 37550 @: $(MAKE); $(unstage)
d5eec917 37551 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37552 r=`${PWD_COMMAND}`; export r; \
37553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37554 $(HOST_EXPORTS) \
d5eec917 37555 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37557 done; \
d5eec917 37558 echo "Doing mostlyclean in tar" ; \
7fc2ca22 37559 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37562 "RANLIB=$${RANLIB}" \
bffcbe34 37563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37564 mostlyclean) \
8ec98d6c
NN
37565 || exit 1
37566
d5eec917 37567@endif tar
8ec98d6c 37568
d5eec917
PB
37569.PHONY: maybe-clean-tar clean-tar
37570maybe-clean-tar:
37571@if tar
37572maybe-clean-tar: clean-tar
8ec98d6c 37573
d5eec917 37574clean-tar:
15b527ca 37575 @: $(MAKE); $(unstage)
d5eec917 37576 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37577 r=`${PWD_COMMAND}`; export r; \
37578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37579 $(HOST_EXPORTS) \
d5eec917 37580 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37582 done; \
d5eec917 37583 echo "Doing clean in tar" ; \
7fc2ca22 37584 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37587 "RANLIB=$${RANLIB}" \
bffcbe34 37588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37589 clean) \
8ec98d6c
NN
37590 || exit 1
37591
d5eec917 37592@endif tar
8ec98d6c 37593
d5eec917
PB
37594.PHONY: maybe-distclean-tar distclean-tar
37595maybe-distclean-tar:
37596@if tar
37597maybe-distclean-tar: distclean-tar
8ec98d6c 37598
d5eec917 37599distclean-tar:
15b527ca 37600 @: $(MAKE); $(unstage)
d5eec917 37601 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37602 r=`${PWD_COMMAND}`; export r; \
37603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37604 $(HOST_EXPORTS) \
d5eec917 37605 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37607 done; \
d5eec917 37608 echo "Doing distclean in tar" ; \
7fc2ca22 37609 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37612 "RANLIB=$${RANLIB}" \
bffcbe34 37613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37614 distclean) \
8ec98d6c
NN
37615 || exit 1
37616
d5eec917 37617@endif tar
8ec98d6c 37618
d5eec917
PB
37619.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
37620maybe-maintainer-clean-tar:
37621@if tar
37622maybe-maintainer-clean-tar: maintainer-clean-tar
8ec98d6c 37623
d5eec917 37624maintainer-clean-tar:
15b527ca 37625 @: $(MAKE); $(unstage)
d5eec917 37626 @[ -f ./tar/Makefile ] || exit 0; \
8ec98d6c
NN
37627 r=`${PWD_COMMAND}`; export r; \
37628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37629 $(HOST_EXPORTS) \
d5eec917 37630 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37632 done; \
d5eec917 37633 echo "Doing maintainer-clean in tar" ; \
7fc2ca22 37634 (cd $(HOST_SUBDIR)/tar && \
8ec98d6c
NN
37635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37637 "RANLIB=$${RANLIB}" \
bffcbe34 37638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37639 maintainer-clean) \
8ec98d6c 37640 || exit 1
8ecc6504 37641
d5eec917 37642@endif tar
8ecc6504 37643
8ec98d6c 37644
f0fdfd34 37645
d5eec917
PB
37646.PHONY: configure-texinfo maybe-configure-texinfo
37647maybe-configure-texinfo:
e1e5148c
CD
37648@if gcc-bootstrap
37649configure-texinfo: stage_current
37650@endif gcc-bootstrap
d5eec917
PB
37651@if texinfo
37652maybe-configure-texinfo: configure-texinfo
ec92c4d6 37653configure-texinfo:
15b527ca 37654 @: $(MAKE); $(unstage)
ec92c4d6 37655 @r=`${PWD_COMMAND}`; export r; \
a675b75a 37656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
37657 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
37658 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
5074489a 37659 $(HOST_EXPORTS) \
f0fdfd34
PB
37660 echo Configuring in $(HOST_SUBDIR)/texinfo; \
37661 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
94f860c0 37662 case $(srcdir) in \
7fc2ca22
PB
37663 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37664 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
37665 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 37666 esac; \
7fc2ca22
PB
37667 srcdiroption="--srcdir=$${topdir}/texinfo"; \
37668 libsrcdir="$$s/texinfo"; \
94f860c0 37669 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
37670 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37671 --target=${target_alias} $${srcdiroption} \
94f860c0 37672 || exit 1
d5eec917 37673@endif texinfo
94f860c0 37674
f0fdfd34
PB
37675
37676
a8a96878
PB
37677
37678
d5eec917
PB
37679.PHONY: all-texinfo maybe-all-texinfo
37680maybe-all-texinfo:
e1e5148c
CD
37681@if gcc-bootstrap
37682all-texinfo: stage_current
37683@endif gcc-bootstrap
d5eec917 37684@if texinfo
5e6b1f07 37685TARGET-texinfo=all
d5eec917
PB
37686maybe-all-texinfo: all-texinfo
37687all-texinfo: configure-texinfo
15b527ca 37688 @: $(MAKE); $(unstage)
5230d454
L
37689 @r=`${PWD_COMMAND}`; export r; \
37690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 37691 $(HOST_EXPORTS) \
7fc2ca22 37692 (cd $(HOST_SUBDIR)/texinfo && \
6532abb6
PB
37693 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
37694 $(TARGET-texinfo))
d5eec917 37695@endif texinfo
8ecc6504 37696
f0fdfd34 37697
a8a96878
PB
37698
37699
d5eec917
PB
37700.PHONY: check-texinfo maybe-check-texinfo
37701maybe-check-texinfo:
37702@if texinfo
37703maybe-check-texinfo: check-texinfo
8ecc6504 37704
d5eec917 37705check-texinfo:
15b527ca 37706 @: $(MAKE); $(unstage)
8ec98d6c
NN
37707 @r=`${PWD_COMMAND}`; export r; \
37708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37709 $(HOST_EXPORTS) \
7fc2ca22
PB
37710 (cd $(HOST_SUBDIR)/texinfo && \
37711 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 37712
d5eec917 37713@endif texinfo
8ecc6504 37714
d5eec917
PB
37715.PHONY: install-texinfo maybe-install-texinfo
37716maybe-install-texinfo:
37717@if texinfo
37718maybe-install-texinfo: install-texinfo
70ffc148 37719
d5eec917 37720install-texinfo:
8ecc6504 37721
d5eec917 37722@endif texinfo
8ecc6504 37723
39bbbb69 37724# Other targets (info, dvi, pdf, etc.)
8ec98d6c 37725
d5eec917
PB
37726.PHONY: maybe-info-texinfo info-texinfo
37727maybe-info-texinfo:
37728@if texinfo
37729maybe-info-texinfo: info-texinfo
8ec98d6c 37730
d5eec917
PB
37731info-texinfo: \
37732 configure-texinfo
15b527ca 37733 @: $(MAKE); $(unstage)
d5eec917 37734 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37735 r=`${PWD_COMMAND}`; export r; \
37736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37737 $(HOST_EXPORTS) \
d5eec917 37738 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37740 done; \
d5eec917 37741 echo "Doing info in texinfo" ; \
7fc2ca22 37742 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37745 "RANLIB=$${RANLIB}" \
bffcbe34 37746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37747 info) \
8ec98d6c
NN
37748 || exit 1
37749
d5eec917 37750@endif texinfo
8ec98d6c 37751
d5eec917
PB
37752.PHONY: maybe-dvi-texinfo dvi-texinfo
37753maybe-dvi-texinfo:
37754@if texinfo
37755maybe-dvi-texinfo: dvi-texinfo
8ec98d6c 37756
d5eec917
PB
37757dvi-texinfo: \
37758 configure-texinfo
15b527ca 37759 @: $(MAKE); $(unstage)
d5eec917 37760 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37761 r=`${PWD_COMMAND}`; export r; \
37762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37763 $(HOST_EXPORTS) \
d5eec917 37764 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37766 done; \
d5eec917 37767 echo "Doing dvi in texinfo" ; \
7fc2ca22 37768 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37771 "RANLIB=$${RANLIB}" \
bffcbe34 37772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37773 dvi) \
8ec98d6c
NN
37774 || exit 1
37775
d5eec917 37776@endif texinfo
8ec98d6c 37777
39bbbb69
DD
37778.PHONY: maybe-pdf-texinfo pdf-texinfo
37779maybe-pdf-texinfo:
37780@if texinfo
37781maybe-pdf-texinfo: pdf-texinfo
37782
37783pdf-texinfo: \
37784 configure-texinfo
37785 @: $(MAKE); $(unstage)
37786 @[ -f ./texinfo/Makefile ] || exit 0; \
37787 r=`${PWD_COMMAND}`; export r; \
37788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37789 $(HOST_EXPORTS) \
37790 for flag in $(EXTRA_HOST_FLAGS) ; do \
37791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37792 done; \
37793 echo "Doing pdf in texinfo" ; \
37794 (cd $(HOST_SUBDIR)/texinfo && \
37795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37797 "RANLIB=$${RANLIB}" \
bffcbe34 37798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
37799 pdf) \
37800 || exit 1
37801
37802@endif texinfo
37803
b6fb961f
MS
37804.PHONY: maybe-html-texinfo html-texinfo
37805maybe-html-texinfo:
37806@if texinfo
37807maybe-html-texinfo: html-texinfo
37808
37809html-texinfo: \
37810 configure-texinfo
15b527ca 37811 @: $(MAKE); $(unstage)
b6fb961f
MS
37812 @[ -f ./texinfo/Makefile ] || exit 0; \
37813 r=`${PWD_COMMAND}`; export r; \
37814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
37815 $(HOST_EXPORTS) \
37816 for flag in $(EXTRA_HOST_FLAGS) ; do \
37817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37818 done; \
37819 echo "Doing html in texinfo" ; \
7fc2ca22 37820 (cd $(HOST_SUBDIR)/texinfo && \
b6fb961f
MS
37821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37823 "RANLIB=$${RANLIB}" \
bffcbe34 37824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
37825 html) \
37826 || exit 1
37827
37828@endif texinfo
37829
d5eec917
PB
37830.PHONY: maybe-TAGS-texinfo TAGS-texinfo
37831maybe-TAGS-texinfo:
37832@if texinfo
37833maybe-TAGS-texinfo: TAGS-texinfo
8ec98d6c 37834
d5eec917
PB
37835TAGS-texinfo: \
37836 configure-texinfo
15b527ca 37837 @: $(MAKE); $(unstage)
d5eec917 37838 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37839 r=`${PWD_COMMAND}`; export r; \
37840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37841 $(HOST_EXPORTS) \
d5eec917 37842 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37844 done; \
d5eec917 37845 echo "Doing TAGS in texinfo" ; \
7fc2ca22 37846 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37849 "RANLIB=$${RANLIB}" \
bffcbe34 37850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37851 TAGS) \
8ec98d6c
NN
37852 || exit 1
37853
d5eec917 37854@endif texinfo
8ec98d6c 37855
d5eec917
PB
37856.PHONY: maybe-install-info-texinfo install-info-texinfo
37857maybe-install-info-texinfo:
37858@if texinfo
37859maybe-install-info-texinfo: install-info-texinfo
8ec98d6c 37860
d5eec917
PB
37861install-info-texinfo: \
37862 configure-texinfo \
37863 info-texinfo
15b527ca 37864 @: $(MAKE); $(unstage)
d5eec917 37865 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37866 r=`${PWD_COMMAND}`; export r; \
37867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37868 $(HOST_EXPORTS) \
d5eec917 37869 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37871 done; \
d5eec917 37872 echo "Doing install-info in texinfo" ; \
7fc2ca22 37873 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37876 "RANLIB=$${RANLIB}" \
bffcbe34 37877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37878 install-info) \
8ec98d6c
NN
37879 || exit 1
37880
d5eec917 37881@endif texinfo
8ec98d6c 37882
d4954b6d
DD
37883.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
37884maybe-install-pdf-texinfo:
37885@if texinfo
37886maybe-install-pdf-texinfo: install-pdf-texinfo
37887
37888install-pdf-texinfo: \
37889 configure-texinfo \
37890 pdf-texinfo
37891 @: $(MAKE); $(unstage)
37892 @[ -f ./texinfo/Makefile ] || exit 0; \
37893 r=`${PWD_COMMAND}`; export r; \
37894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37895 $(HOST_EXPORTS) \
37896 for flag in $(EXTRA_HOST_FLAGS) ; do \
37897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37898 done; \
37899 echo "Doing install-pdf in texinfo" ; \
37900 (cd $(HOST_SUBDIR)/texinfo && \
37901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37903 "RANLIB=$${RANLIB}" \
bffcbe34 37904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
37905 install-pdf) \
37906 || exit 1
37907
37908@endif texinfo
37909
83c9add4
CD
37910.PHONY: maybe-install-html-texinfo install-html-texinfo
37911maybe-install-html-texinfo:
37912@if texinfo
37913maybe-install-html-texinfo: install-html-texinfo
37914
37915install-html-texinfo: \
37916 configure-texinfo \
37917 html-texinfo
37918 @: $(MAKE); $(unstage)
37919 @[ -f ./texinfo/Makefile ] || exit 0; \
37920 r=`${PWD_COMMAND}`; export r; \
37921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37922 $(HOST_EXPORTS) \
37923 for flag in $(EXTRA_HOST_FLAGS) ; do \
37924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37925 done; \
37926 echo "Doing install-html in texinfo" ; \
37927 (cd $(HOST_SUBDIR)/texinfo && \
37928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37930 "RANLIB=$${RANLIB}" \
bffcbe34 37931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
37932 install-html) \
37933 || exit 1
37934
37935@endif texinfo
37936
d5eec917
PB
37937.PHONY: maybe-installcheck-texinfo installcheck-texinfo
37938maybe-installcheck-texinfo:
37939@if texinfo
37940maybe-installcheck-texinfo: installcheck-texinfo
8ec98d6c 37941
d5eec917
PB
37942installcheck-texinfo: \
37943 configure-texinfo
15b527ca 37944 @: $(MAKE); $(unstage)
d5eec917 37945 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37946 r=`${PWD_COMMAND}`; export r; \
37947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37948 $(HOST_EXPORTS) \
d5eec917 37949 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37951 done; \
d5eec917 37952 echo "Doing installcheck in texinfo" ; \
7fc2ca22 37953 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37956 "RANLIB=$${RANLIB}" \
bffcbe34 37957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37958 installcheck) \
8ec98d6c
NN
37959 || exit 1
37960
d5eec917 37961@endif texinfo
8ec98d6c 37962
d5eec917
PB
37963.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
37964maybe-mostlyclean-texinfo:
37965@if texinfo
37966maybe-mostlyclean-texinfo: mostlyclean-texinfo
8ec98d6c 37967
d5eec917 37968mostlyclean-texinfo:
15b527ca 37969 @: $(MAKE); $(unstage)
d5eec917 37970 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37971 r=`${PWD_COMMAND}`; export r; \
37972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37973 $(HOST_EXPORTS) \
d5eec917 37974 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
37975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37976 done; \
d5eec917 37977 echo "Doing mostlyclean in texinfo" ; \
7fc2ca22 37978 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
37979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37981 "RANLIB=$${RANLIB}" \
bffcbe34 37982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 37983 mostlyclean) \
8ec98d6c
NN
37984 || exit 1
37985
d5eec917 37986@endif texinfo
8ec98d6c 37987
d5eec917
PB
37988.PHONY: maybe-clean-texinfo clean-texinfo
37989maybe-clean-texinfo:
37990@if texinfo
37991maybe-clean-texinfo: clean-texinfo
8ec98d6c 37992
d5eec917 37993clean-texinfo:
15b527ca 37994 @: $(MAKE); $(unstage)
d5eec917 37995 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
37996 r=`${PWD_COMMAND}`; export r; \
37997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 37998 $(HOST_EXPORTS) \
d5eec917 37999 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38001 done; \
d5eec917 38002 echo "Doing clean in texinfo" ; \
7fc2ca22 38003 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
38004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38006 "RANLIB=$${RANLIB}" \
bffcbe34 38007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38008 clean) \
8ec98d6c
NN
38009 || exit 1
38010
d5eec917 38011@endif texinfo
8ec98d6c 38012
d5eec917
PB
38013.PHONY: maybe-distclean-texinfo distclean-texinfo
38014maybe-distclean-texinfo:
38015@if texinfo
38016maybe-distclean-texinfo: distclean-texinfo
8ec98d6c 38017
d5eec917 38018distclean-texinfo:
15b527ca 38019 @: $(MAKE); $(unstage)
d5eec917 38020 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
38021 r=`${PWD_COMMAND}`; export r; \
38022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38023 $(HOST_EXPORTS) \
d5eec917 38024 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38026 done; \
d5eec917 38027 echo "Doing distclean in texinfo" ; \
7fc2ca22 38028 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
38029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38031 "RANLIB=$${RANLIB}" \
bffcbe34 38032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38033 distclean) \
8ec98d6c
NN
38034 || exit 1
38035
d5eec917 38036@endif texinfo
8ec98d6c 38037
d5eec917
PB
38038.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
38039maybe-maintainer-clean-texinfo:
38040@if texinfo
38041maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
8ec98d6c 38042
d5eec917 38043maintainer-clean-texinfo:
15b527ca 38044 @: $(MAKE); $(unstage)
d5eec917 38045 @[ -f ./texinfo/Makefile ] || exit 0; \
8ec98d6c
NN
38046 r=`${PWD_COMMAND}`; export r; \
38047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38048 $(HOST_EXPORTS) \
d5eec917 38049 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38051 done; \
d5eec917 38052 echo "Doing maintainer-clean in texinfo" ; \
7fc2ca22 38053 (cd $(HOST_SUBDIR)/texinfo && \
8ec98d6c
NN
38054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38056 "RANLIB=$${RANLIB}" \
bffcbe34 38057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38058 maintainer-clean) \
8ec98d6c
NN
38059 || exit 1
38060
d5eec917 38061@endif texinfo
8ec98d6c
NN
38062
38063
f0fdfd34 38064
d5eec917
PB
38065.PHONY: configure-textutils maybe-configure-textutils
38066maybe-configure-textutils:
e1e5148c
CD
38067@if gcc-bootstrap
38068configure-textutils: stage_current
38069@endif gcc-bootstrap
d5eec917
PB
38070@if textutils
38071maybe-configure-textutils: configure-textutils
ec92c4d6 38072configure-textutils:
15b527ca 38073 @: $(MAKE); $(unstage)
ec92c4d6 38074 @r=`${PWD_COMMAND}`; export r; \
5230d454 38075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
38076 test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
38077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
5074489a 38078 $(HOST_EXPORTS) \
f0fdfd34
PB
38079 echo Configuring in $(HOST_SUBDIR)/textutils; \
38080 cd "$(HOST_SUBDIR)/textutils" || exit 1; \
94f860c0 38081 case $(srcdir) in \
7fc2ca22
PB
38082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38083 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
38084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 38085 esac; \
7fc2ca22
PB
38086 srcdiroption="--srcdir=$${topdir}/textutils"; \
38087 libsrcdir="$$s/textutils"; \
94f860c0 38088 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38090 --target=${target_alias} $${srcdiroption} \
94f860c0 38091 || exit 1
d5eec917 38092@endif textutils
94f860c0 38093
f0fdfd34
PB
38094
38095
a8a96878
PB
38096
38097
d5eec917
PB
38098.PHONY: all-textutils maybe-all-textutils
38099maybe-all-textutils:
e1e5148c
CD
38100@if gcc-bootstrap
38101all-textutils: stage_current
38102@endif gcc-bootstrap
d5eec917 38103@if textutils
5e6b1f07 38104TARGET-textutils=all
d5eec917
PB
38105maybe-all-textutils: all-textutils
38106all-textutils: configure-textutils
15b527ca 38107 @: $(MAKE); $(unstage)
5230d454
L
38108 @r=`${PWD_COMMAND}`; export r; \
38109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 38110 $(HOST_EXPORTS) \
7fc2ca22 38111 (cd $(HOST_SUBDIR)/textutils && \
6532abb6
PB
38112 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
38113 $(TARGET-textutils))
d5eec917 38114@endif textutils
8ecc6504 38115
f0fdfd34 38116
a8a96878
PB
38117
38118
d5eec917
PB
38119.PHONY: check-textutils maybe-check-textutils
38120maybe-check-textutils:
38121@if textutils
38122maybe-check-textutils: check-textutils
8ecc6504 38123
d5eec917 38124check-textutils:
15b527ca 38125 @: $(MAKE); $(unstage)
5230d454
L
38126 @r=`${PWD_COMMAND}`; export r; \
38127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38128 $(HOST_EXPORTS) \
7fc2ca22
PB
38129 (cd $(HOST_SUBDIR)/textutils && \
38130 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 38131
d5eec917 38132@endif textutils
8ecc6504 38133
d5eec917
PB
38134.PHONY: install-textutils maybe-install-textutils
38135maybe-install-textutils:
38136@if textutils
38137maybe-install-textutils: install-textutils
70ffc148 38138
d5eec917 38139install-textutils: installdirs
15b527ca 38140 @: $(MAKE); $(unstage)
5230d454
L
38141 @r=`${PWD_COMMAND}`; export r; \
38142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38143 $(HOST_EXPORTS) \
7fc2ca22 38144 (cd $(HOST_SUBDIR)/textutils && \
93c60b6d 38145 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 38146
d5eec917 38147@endif textutils
8ecc6504 38148
39bbbb69 38149# Other targets (info, dvi, pdf, etc.)
8ec98d6c 38150
d5eec917
PB
38151.PHONY: maybe-info-textutils info-textutils
38152maybe-info-textutils:
38153@if textutils
38154maybe-info-textutils: info-textutils
8ec98d6c 38155
d5eec917
PB
38156info-textutils: \
38157 configure-textutils
15b527ca 38158 @: $(MAKE); $(unstage)
d5eec917 38159 @[ -f ./textutils/Makefile ] || exit 0; \
5230d454
L
38160 r=`${PWD_COMMAND}`; export r; \
38161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38162 $(HOST_EXPORTS) \
d5eec917 38163 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38165 done; \
d5eec917 38166 echo "Doing info in textutils" ; \
7fc2ca22 38167 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38170 "RANLIB=$${RANLIB}" \
bffcbe34 38171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38172 info) \
94f860c0
NN
38173 || exit 1
38174
d5eec917 38175@endif textutils
8ec98d6c 38176
d5eec917
PB
38177.PHONY: maybe-dvi-textutils dvi-textutils
38178maybe-dvi-textutils:
38179@if textutils
38180maybe-dvi-textutils: dvi-textutils
8ec98d6c 38181
d5eec917
PB
38182dvi-textutils: \
38183 configure-textutils
15b527ca 38184 @: $(MAKE); $(unstage)
d5eec917 38185 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 38186 r=`${PWD_COMMAND}`; export r; \
5230d454 38187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38188 $(HOST_EXPORTS) \
d5eec917 38189 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38191 done; \
d5eec917 38192 echo "Doing dvi in textutils" ; \
7fc2ca22 38193 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38196 "RANLIB=$${RANLIB}" \
bffcbe34 38197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38198 dvi) \
8ec98d6c 38199 || exit 1
8ecc6504 38200
d5eec917 38201@endif textutils
8ecc6504 38202
39bbbb69
DD
38203.PHONY: maybe-pdf-textutils pdf-textutils
38204maybe-pdf-textutils:
38205@if textutils
38206maybe-pdf-textutils: pdf-textutils
38207
38208pdf-textutils: \
38209 configure-textutils
38210 @: $(MAKE); $(unstage)
38211 @[ -f ./textutils/Makefile ] || exit 0; \
38212 r=`${PWD_COMMAND}`; export r; \
38213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38214 $(HOST_EXPORTS) \
38215 for flag in $(EXTRA_HOST_FLAGS) ; do \
38216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38217 done; \
38218 echo "Doing pdf in textutils" ; \
38219 (cd $(HOST_SUBDIR)/textutils && \
38220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38222 "RANLIB=$${RANLIB}" \
bffcbe34 38223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
38224 pdf) \
38225 || exit 1
38226
38227@endif textutils
38228
b6fb961f
MS
38229.PHONY: maybe-html-textutils html-textutils
38230maybe-html-textutils:
38231@if textutils
38232maybe-html-textutils: html-textutils
38233
38234html-textutils: \
38235 configure-textutils
15b527ca 38236 @: $(MAKE); $(unstage)
b6fb961f
MS
38237 @[ -f ./textutils/Makefile ] || exit 0; \
38238 r=`${PWD_COMMAND}`; export r; \
38239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
38240 $(HOST_EXPORTS) \
38241 for flag in $(EXTRA_HOST_FLAGS) ; do \
38242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38243 done; \
38244 echo "Doing html in textutils" ; \
7fc2ca22 38245 (cd $(HOST_SUBDIR)/textutils && \
b6fb961f
MS
38246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38248 "RANLIB=$${RANLIB}" \
bffcbe34 38249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
38250 html) \
38251 || exit 1
38252
38253@endif textutils
38254
d5eec917
PB
38255.PHONY: maybe-TAGS-textutils TAGS-textutils
38256maybe-TAGS-textutils:
38257@if textutils
38258maybe-TAGS-textutils: TAGS-textutils
8ec98d6c 38259
d5eec917
PB
38260TAGS-textutils: \
38261 configure-textutils
15b527ca 38262 @: $(MAKE); $(unstage)
d5eec917 38263 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 38264 r=`${PWD_COMMAND}`; export r; \
5230d454 38265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38266 $(HOST_EXPORTS) \
d5eec917 38267 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38269 done; \
d5eec917 38270 echo "Doing TAGS in textutils" ; \
7fc2ca22 38271 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38274 "RANLIB=$${RANLIB}" \
bffcbe34 38275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38276 TAGS) \
8ec98d6c 38277 || exit 1
8ecc6504 38278
d5eec917 38279@endif textutils
8ecc6504 38280
d5eec917
PB
38281.PHONY: maybe-install-info-textutils install-info-textutils
38282maybe-install-info-textutils:
38283@if textutils
38284maybe-install-info-textutils: install-info-textutils
8ec98d6c 38285
d5eec917
PB
38286install-info-textutils: \
38287 configure-textutils \
38288 info-textutils
15b527ca 38289 @: $(MAKE); $(unstage)
d5eec917 38290 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
38291 r=`${PWD_COMMAND}`; export r; \
38292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38293 $(HOST_EXPORTS) \
d5eec917 38294 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38296 done; \
d5eec917 38297 echo "Doing install-info in textutils" ; \
7fc2ca22 38298 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38301 "RANLIB=$${RANLIB}" \
bffcbe34 38302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38303 install-info) \
8ec98d6c
NN
38304 || exit 1
38305
d5eec917 38306@endif textutils
8ec98d6c 38307
d4954b6d
DD
38308.PHONY: maybe-install-pdf-textutils install-pdf-textutils
38309maybe-install-pdf-textutils:
38310@if textutils
38311maybe-install-pdf-textutils: install-pdf-textutils
38312
38313install-pdf-textutils: \
38314 configure-textutils \
38315 pdf-textutils
38316 @: $(MAKE); $(unstage)
38317 @[ -f ./textutils/Makefile ] || exit 0; \
38318 r=`${PWD_COMMAND}`; export r; \
38319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38320 $(HOST_EXPORTS) \
38321 for flag in $(EXTRA_HOST_FLAGS) ; do \
38322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38323 done; \
38324 echo "Doing install-pdf in textutils" ; \
38325 (cd $(HOST_SUBDIR)/textutils && \
38326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38328 "RANLIB=$${RANLIB}" \
bffcbe34 38329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
38330 install-pdf) \
38331 || exit 1
38332
38333@endif textutils
38334
83c9add4
CD
38335.PHONY: maybe-install-html-textutils install-html-textutils
38336maybe-install-html-textutils:
38337@if textutils
38338maybe-install-html-textutils: install-html-textutils
38339
38340install-html-textutils: \
38341 configure-textutils \
38342 html-textutils
38343 @: $(MAKE); $(unstage)
38344 @[ -f ./textutils/Makefile ] || exit 0; \
38345 r=`${PWD_COMMAND}`; export r; \
38346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38347 $(HOST_EXPORTS) \
38348 for flag in $(EXTRA_HOST_FLAGS) ; do \
38349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38350 done; \
38351 echo "Doing install-html in textutils" ; \
38352 (cd $(HOST_SUBDIR)/textutils && \
38353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38355 "RANLIB=$${RANLIB}" \
bffcbe34 38356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
38357 install-html) \
38358 || exit 1
38359
38360@endif textutils
38361
d5eec917
PB
38362.PHONY: maybe-installcheck-textutils installcheck-textutils
38363maybe-installcheck-textutils:
38364@if textutils
38365maybe-installcheck-textutils: installcheck-textutils
8ec98d6c 38366
d5eec917
PB
38367installcheck-textutils: \
38368 configure-textutils
15b527ca 38369 @: $(MAKE); $(unstage)
d5eec917 38370 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
38371 r=`${PWD_COMMAND}`; export r; \
38372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38373 $(HOST_EXPORTS) \
d5eec917 38374 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38376 done; \
d5eec917 38377 echo "Doing installcheck in textutils" ; \
7fc2ca22 38378 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38381 "RANLIB=$${RANLIB}" \
bffcbe34 38382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38383 installcheck) \
8ec98d6c
NN
38384 || exit 1
38385
d5eec917 38386@endif textutils
8ec98d6c 38387
d5eec917
PB
38388.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
38389maybe-mostlyclean-textutils:
38390@if textutils
38391maybe-mostlyclean-textutils: mostlyclean-textutils
8ec98d6c 38392
d5eec917 38393mostlyclean-textutils:
15b527ca 38394 @: $(MAKE); $(unstage)
d5eec917 38395 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
38396 r=`${PWD_COMMAND}`; export r; \
38397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38398 $(HOST_EXPORTS) \
d5eec917 38399 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38401 done; \
d5eec917 38402 echo "Doing mostlyclean in textutils" ; \
7fc2ca22 38403 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38406 "RANLIB=$${RANLIB}" \
bffcbe34 38407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38408 mostlyclean) \
8ec98d6c
NN
38409 || exit 1
38410
d5eec917 38411@endif textutils
8ec98d6c 38412
d5eec917
PB
38413.PHONY: maybe-clean-textutils clean-textutils
38414maybe-clean-textutils:
38415@if textutils
38416maybe-clean-textutils: clean-textutils
8ec98d6c 38417
d5eec917 38418clean-textutils:
15b527ca 38419 @: $(MAKE); $(unstage)
d5eec917 38420 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
38421 r=`${PWD_COMMAND}`; export r; \
38422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38423 $(HOST_EXPORTS) \
d5eec917 38424 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38426 done; \
d5eec917 38427 echo "Doing clean in textutils" ; \
7fc2ca22 38428 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38431 "RANLIB=$${RANLIB}" \
bffcbe34 38432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38433 clean) \
8ec98d6c
NN
38434 || exit 1
38435
d5eec917 38436@endif textutils
8ec98d6c 38437
d5eec917
PB
38438.PHONY: maybe-distclean-textutils distclean-textutils
38439maybe-distclean-textutils:
38440@if textutils
38441maybe-distclean-textutils: distclean-textutils
8ec98d6c 38442
d5eec917 38443distclean-textutils:
15b527ca 38444 @: $(MAKE); $(unstage)
d5eec917 38445 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c
NN
38446 r=`${PWD_COMMAND}`; export r; \
38447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38448 $(HOST_EXPORTS) \
d5eec917 38449 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38451 done; \
d5eec917 38452 echo "Doing distclean in textutils" ; \
7fc2ca22 38453 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38456 "RANLIB=$${RANLIB}" \
bffcbe34 38457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38458 distclean) \
8ec98d6c
NN
38459 || exit 1
38460
d5eec917 38461@endif textutils
8ec98d6c 38462
d5eec917
PB
38463.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
38464maybe-maintainer-clean-textutils:
38465@if textutils
38466maybe-maintainer-clean-textutils: maintainer-clean-textutils
70ffc148 38467
d5eec917 38468maintainer-clean-textutils:
15b527ca 38469 @: $(MAKE); $(unstage)
d5eec917 38470 @[ -f ./textutils/Makefile ] || exit 0; \
8ec98d6c 38471 r=`${PWD_COMMAND}`; export r; \
5230d454 38472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38473 $(HOST_EXPORTS) \
d5eec917 38474 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38476 done; \
d5eec917 38477 echo "Doing maintainer-clean in textutils" ; \
7fc2ca22 38478 (cd $(HOST_SUBDIR)/textutils && \
8ec98d6c
NN
38479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38481 "RANLIB=$${RANLIB}" \
bffcbe34 38482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38483 maintainer-clean) \
8ec98d6c 38484 || exit 1
8ecc6504 38485
d5eec917 38486@endif textutils
8ecc6504 38487
8ec98d6c 38488
f0fdfd34 38489
d5eec917
PB
38490.PHONY: configure-time maybe-configure-time
38491maybe-configure-time:
e1e5148c
CD
38492@if gcc-bootstrap
38493configure-time: stage_current
38494@endif gcc-bootstrap
d5eec917
PB
38495@if time
38496maybe-configure-time: configure-time
ec92c4d6 38497configure-time:
15b527ca 38498 @: $(MAKE); $(unstage)
ec92c4d6 38499 @r=`${PWD_COMMAND}`; export r; \
5230d454 38500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
38501 test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
38502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
5074489a 38503 $(HOST_EXPORTS) \
f0fdfd34
PB
38504 echo Configuring in $(HOST_SUBDIR)/time; \
38505 cd "$(HOST_SUBDIR)/time" || exit 1; \
94f860c0 38506 case $(srcdir) in \
7fc2ca22
PB
38507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38508 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
38509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 38510 esac; \
7fc2ca22
PB
38511 srcdiroption="--srcdir=$${topdir}/time"; \
38512 libsrcdir="$$s/time"; \
94f860c0 38513 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38514 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38515 --target=${target_alias} $${srcdiroption} \
94f860c0 38516 || exit 1
d5eec917 38517@endif time
94f860c0 38518
f0fdfd34
PB
38519
38520
a8a96878
PB
38521
38522
d5eec917
PB
38523.PHONY: all-time maybe-all-time
38524maybe-all-time:
e1e5148c
CD
38525@if gcc-bootstrap
38526all-time: stage_current
38527@endif gcc-bootstrap
d5eec917 38528@if time
5e6b1f07 38529TARGET-time=all
d5eec917
PB
38530maybe-all-time: all-time
38531all-time: configure-time
15b527ca 38532 @: $(MAKE); $(unstage)
5230d454
L
38533 @r=`${PWD_COMMAND}`; export r; \
38534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 38535 $(HOST_EXPORTS) \
7fc2ca22 38536 (cd $(HOST_SUBDIR)/time && \
6532abb6
PB
38537 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
38538 $(TARGET-time))
d5eec917 38539@endif time
8ecc6504 38540
f0fdfd34 38541
a8a96878
PB
38542
38543
d5eec917
PB
38544.PHONY: check-time maybe-check-time
38545maybe-check-time:
38546@if time
38547maybe-check-time: check-time
8ecc6504 38548
d5eec917 38549check-time:
15b527ca 38550 @: $(MAKE); $(unstage)
5230d454
L
38551 @r=`${PWD_COMMAND}`; export r; \
38552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38553 $(HOST_EXPORTS) \
7fc2ca22
PB
38554 (cd $(HOST_SUBDIR)/time && \
38555 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 38556
d5eec917 38557@endif time
8ecc6504 38558
d5eec917
PB
38559.PHONY: install-time maybe-install-time
38560maybe-install-time:
38561@if time
38562maybe-install-time: install-time
8ec98d6c 38563
d5eec917 38564install-time: installdirs
15b527ca 38565 @: $(MAKE); $(unstage)
8ec98d6c
NN
38566 @r=`${PWD_COMMAND}`; export r; \
38567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38568 $(HOST_EXPORTS) \
7fc2ca22 38569 (cd $(HOST_SUBDIR)/time && \
93c60b6d 38570 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 38571
d5eec917 38572@endif time
8ec98d6c 38573
39bbbb69 38574# Other targets (info, dvi, pdf, etc.)
8ec98d6c 38575
d5eec917
PB
38576.PHONY: maybe-info-time info-time
38577maybe-info-time:
38578@if time
38579maybe-info-time: info-time
8ec98d6c 38580
d5eec917
PB
38581info-time: \
38582 configure-time
15b527ca 38583 @: $(MAKE); $(unstage)
d5eec917 38584 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38585 r=`${PWD_COMMAND}`; export r; \
38586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38587 $(HOST_EXPORTS) \
d5eec917 38588 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38590 done; \
d5eec917 38591 echo "Doing info in time" ; \
7fc2ca22 38592 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38595 "RANLIB=$${RANLIB}" \
bffcbe34 38596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38597 info) \
8ec98d6c
NN
38598 || exit 1
38599
d5eec917 38600@endif time
8ec98d6c 38601
d5eec917
PB
38602.PHONY: maybe-dvi-time dvi-time
38603maybe-dvi-time:
38604@if time
38605maybe-dvi-time: dvi-time
8ec98d6c 38606
d5eec917
PB
38607dvi-time: \
38608 configure-time
15b527ca 38609 @: $(MAKE); $(unstage)
d5eec917 38610 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38611 r=`${PWD_COMMAND}`; export r; \
38612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38613 $(HOST_EXPORTS) \
d5eec917 38614 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38616 done; \
d5eec917 38617 echo "Doing dvi in time" ; \
7fc2ca22 38618 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38621 "RANLIB=$${RANLIB}" \
bffcbe34 38622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38623 dvi) \
8ec98d6c
NN
38624 || exit 1
38625
d5eec917 38626@endif time
8ec98d6c 38627
39bbbb69
DD
38628.PHONY: maybe-pdf-time pdf-time
38629maybe-pdf-time:
38630@if time
38631maybe-pdf-time: pdf-time
38632
38633pdf-time: \
38634 configure-time
38635 @: $(MAKE); $(unstage)
38636 @[ -f ./time/Makefile ] || exit 0; \
38637 r=`${PWD_COMMAND}`; export r; \
38638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38639 $(HOST_EXPORTS) \
38640 for flag in $(EXTRA_HOST_FLAGS) ; do \
38641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38642 done; \
38643 echo "Doing pdf in time" ; \
38644 (cd $(HOST_SUBDIR)/time && \
38645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38647 "RANLIB=$${RANLIB}" \
bffcbe34 38648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
38649 pdf) \
38650 || exit 1
38651
38652@endif time
38653
b6fb961f
MS
38654.PHONY: maybe-html-time html-time
38655maybe-html-time:
38656@if time
38657maybe-html-time: html-time
38658
38659html-time: \
38660 configure-time
15b527ca 38661 @: $(MAKE); $(unstage)
b6fb961f
MS
38662 @[ -f ./time/Makefile ] || exit 0; \
38663 r=`${PWD_COMMAND}`; export r; \
38664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
38665 $(HOST_EXPORTS) \
38666 for flag in $(EXTRA_HOST_FLAGS) ; do \
38667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38668 done; \
38669 echo "Doing html in time" ; \
7fc2ca22 38670 (cd $(HOST_SUBDIR)/time && \
b6fb961f
MS
38671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38673 "RANLIB=$${RANLIB}" \
bffcbe34 38674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
38675 html) \
38676 || exit 1
38677
38678@endif time
38679
d5eec917
PB
38680.PHONY: maybe-TAGS-time TAGS-time
38681maybe-TAGS-time:
38682@if time
38683maybe-TAGS-time: TAGS-time
8ec98d6c 38684
d5eec917
PB
38685TAGS-time: \
38686 configure-time
15b527ca 38687 @: $(MAKE); $(unstage)
d5eec917 38688 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38689 r=`${PWD_COMMAND}`; export r; \
38690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38691 $(HOST_EXPORTS) \
d5eec917 38692 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38694 done; \
d5eec917 38695 echo "Doing TAGS in time" ; \
7fc2ca22 38696 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38699 "RANLIB=$${RANLIB}" \
bffcbe34 38700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38701 TAGS) \
8ec98d6c
NN
38702 || exit 1
38703
d5eec917 38704@endif time
8ec98d6c 38705
d5eec917
PB
38706.PHONY: maybe-install-info-time install-info-time
38707maybe-install-info-time:
38708@if time
38709maybe-install-info-time: install-info-time
8ec98d6c 38710
d5eec917
PB
38711install-info-time: \
38712 configure-time \
38713 info-time
15b527ca 38714 @: $(MAKE); $(unstage)
d5eec917 38715 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38716 r=`${PWD_COMMAND}`; export r; \
38717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38718 $(HOST_EXPORTS) \
d5eec917 38719 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38721 done; \
d5eec917 38722 echo "Doing install-info in time" ; \
7fc2ca22 38723 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38726 "RANLIB=$${RANLIB}" \
bffcbe34 38727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38728 install-info) \
8ec98d6c
NN
38729 || exit 1
38730
d5eec917 38731@endif time
8ec98d6c 38732
d4954b6d
DD
38733.PHONY: maybe-install-pdf-time install-pdf-time
38734maybe-install-pdf-time:
38735@if time
38736maybe-install-pdf-time: install-pdf-time
38737
38738install-pdf-time: \
38739 configure-time \
38740 pdf-time
38741 @: $(MAKE); $(unstage)
38742 @[ -f ./time/Makefile ] || exit 0; \
38743 r=`${PWD_COMMAND}`; export r; \
38744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38745 $(HOST_EXPORTS) \
38746 for flag in $(EXTRA_HOST_FLAGS) ; do \
38747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38748 done; \
38749 echo "Doing install-pdf in time" ; \
38750 (cd $(HOST_SUBDIR)/time && \
38751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38753 "RANLIB=$${RANLIB}" \
bffcbe34 38754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
38755 install-pdf) \
38756 || exit 1
38757
38758@endif time
38759
83c9add4
CD
38760.PHONY: maybe-install-html-time install-html-time
38761maybe-install-html-time:
38762@if time
38763maybe-install-html-time: install-html-time
38764
38765install-html-time: \
38766 configure-time \
38767 html-time
38768 @: $(MAKE); $(unstage)
38769 @[ -f ./time/Makefile ] || exit 0; \
38770 r=`${PWD_COMMAND}`; export r; \
38771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38772 $(HOST_EXPORTS) \
38773 for flag in $(EXTRA_HOST_FLAGS) ; do \
38774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38775 done; \
38776 echo "Doing install-html in time" ; \
38777 (cd $(HOST_SUBDIR)/time && \
38778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38780 "RANLIB=$${RANLIB}" \
bffcbe34 38781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
38782 install-html) \
38783 || exit 1
38784
38785@endif time
38786
d5eec917
PB
38787.PHONY: maybe-installcheck-time installcheck-time
38788maybe-installcheck-time:
38789@if time
38790maybe-installcheck-time: installcheck-time
8ec98d6c 38791
d5eec917
PB
38792installcheck-time: \
38793 configure-time
15b527ca 38794 @: $(MAKE); $(unstage)
d5eec917 38795 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38796 r=`${PWD_COMMAND}`; export r; \
38797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38798 $(HOST_EXPORTS) \
d5eec917 38799 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38801 done; \
d5eec917 38802 echo "Doing installcheck in time" ; \
7fc2ca22 38803 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38806 "RANLIB=$${RANLIB}" \
bffcbe34 38807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38808 installcheck) \
8ec98d6c
NN
38809 || exit 1
38810
d5eec917 38811@endif time
8ec98d6c 38812
d5eec917
PB
38813.PHONY: maybe-mostlyclean-time mostlyclean-time
38814maybe-mostlyclean-time:
38815@if time
38816maybe-mostlyclean-time: mostlyclean-time
8ec98d6c 38817
d5eec917 38818mostlyclean-time:
15b527ca 38819 @: $(MAKE); $(unstage)
d5eec917 38820 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38821 r=`${PWD_COMMAND}`; export r; \
38822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38823 $(HOST_EXPORTS) \
d5eec917 38824 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38826 done; \
d5eec917 38827 echo "Doing mostlyclean in time" ; \
7fc2ca22 38828 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38831 "RANLIB=$${RANLIB}" \
bffcbe34 38832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38833 mostlyclean) \
8ec98d6c
NN
38834 || exit 1
38835
d5eec917 38836@endif time
8ec98d6c 38837
d5eec917
PB
38838.PHONY: maybe-clean-time clean-time
38839maybe-clean-time:
38840@if time
38841maybe-clean-time: clean-time
8ec98d6c 38842
d5eec917 38843clean-time:
15b527ca 38844 @: $(MAKE); $(unstage)
d5eec917 38845 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38846 r=`${PWD_COMMAND}`; export r; \
38847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38848 $(HOST_EXPORTS) \
d5eec917 38849 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38851 done; \
d5eec917 38852 echo "Doing clean in time" ; \
7fc2ca22 38853 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38856 "RANLIB=$${RANLIB}" \
bffcbe34 38857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38858 clean) \
8ec98d6c
NN
38859 || exit 1
38860
d5eec917 38861@endif time
8ec98d6c 38862
d5eec917
PB
38863.PHONY: maybe-distclean-time distclean-time
38864maybe-distclean-time:
38865@if time
38866maybe-distclean-time: distclean-time
8ec98d6c 38867
d5eec917 38868distclean-time:
15b527ca 38869 @: $(MAKE); $(unstage)
d5eec917 38870 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38871 r=`${PWD_COMMAND}`; export r; \
38872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38873 $(HOST_EXPORTS) \
d5eec917 38874 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38876 done; \
d5eec917 38877 echo "Doing distclean in time" ; \
7fc2ca22 38878 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38881 "RANLIB=$${RANLIB}" \
bffcbe34 38882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38883 distclean) \
8ec98d6c
NN
38884 || exit 1
38885
d5eec917 38886@endif time
8ec98d6c 38887
d5eec917
PB
38888.PHONY: maybe-maintainer-clean-time maintainer-clean-time
38889maybe-maintainer-clean-time:
38890@if time
38891maybe-maintainer-clean-time: maintainer-clean-time
8ec98d6c 38892
d5eec917 38893maintainer-clean-time:
15b527ca 38894 @: $(MAKE); $(unstage)
d5eec917 38895 @[ -f ./time/Makefile ] || exit 0; \
8ec98d6c
NN
38896 r=`${PWD_COMMAND}`; export r; \
38897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38898 $(HOST_EXPORTS) \
d5eec917 38899 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
38900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38901 done; \
d5eec917 38902 echo "Doing maintainer-clean in time" ; \
7fc2ca22 38903 (cd $(HOST_SUBDIR)/time && \
8ec98d6c
NN
38904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38906 "RANLIB=$${RANLIB}" \
bffcbe34 38907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 38908 maintainer-clean) \
8ec98d6c 38909 || exit 1
70ffc148 38910
d5eec917 38911@endif time
8ecc6504
NN
38912
38913
f0fdfd34 38914
d5eec917
PB
38915.PHONY: configure-uudecode maybe-configure-uudecode
38916maybe-configure-uudecode:
e1e5148c
CD
38917@if gcc-bootstrap
38918configure-uudecode: stage_current
38919@endif gcc-bootstrap
d5eec917
PB
38920@if uudecode
38921maybe-configure-uudecode: configure-uudecode
ec92c4d6 38922configure-uudecode:
15b527ca 38923 @: $(MAKE); $(unstage)
ec92c4d6 38924 @r=`${PWD_COMMAND}`; export r; \
5230d454 38925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
38926 test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
38927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
5074489a 38928 $(HOST_EXPORTS) \
f0fdfd34
PB
38929 echo Configuring in $(HOST_SUBDIR)/uudecode; \
38930 cd "$(HOST_SUBDIR)/uudecode" || exit 1; \
94f860c0 38931 case $(srcdir) in \
7fc2ca22
PB
38932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38933 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
38934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 38935 esac; \
7fc2ca22
PB
38936 srcdiroption="--srcdir=$${topdir}/uudecode"; \
38937 libsrcdir="$$s/uudecode"; \
94f860c0 38938 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
38939 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38940 --target=${target_alias} $${srcdiroption} \
94f860c0 38941 || exit 1
d5eec917 38942@endif uudecode
94f860c0 38943
f0fdfd34
PB
38944
38945
a8a96878
PB
38946
38947
d5eec917
PB
38948.PHONY: all-uudecode maybe-all-uudecode
38949maybe-all-uudecode:
e1e5148c
CD
38950@if gcc-bootstrap
38951all-uudecode: stage_current
38952@endif gcc-bootstrap
d5eec917 38953@if uudecode
5e6b1f07 38954TARGET-uudecode=all
d5eec917
PB
38955maybe-all-uudecode: all-uudecode
38956all-uudecode: configure-uudecode
15b527ca 38957 @: $(MAKE); $(unstage)
5230d454
L
38958 @r=`${PWD_COMMAND}`; export r; \
38959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 38960 $(HOST_EXPORTS) \
7fc2ca22 38961 (cd $(HOST_SUBDIR)/uudecode && \
6532abb6
PB
38962 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
38963 $(TARGET-uudecode))
d5eec917 38964@endif uudecode
8ecc6504 38965
f0fdfd34 38966
a8a96878
PB
38967
38968
d5eec917
PB
38969.PHONY: check-uudecode maybe-check-uudecode
38970maybe-check-uudecode:
38971@if uudecode
38972maybe-check-uudecode: check-uudecode
8ecc6504 38973
d5eec917 38974check-uudecode:
15b527ca 38975 @: $(MAKE); $(unstage)
5230d454
L
38976 @r=`${PWD_COMMAND}`; export r; \
38977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38978 $(HOST_EXPORTS) \
7fc2ca22
PB
38979 (cd $(HOST_SUBDIR)/uudecode && \
38980 $(MAKE) $(FLAGS_TO_PASS) check)
8ecc6504 38981
d5eec917 38982@endif uudecode
8ecc6504 38983
d5eec917
PB
38984.PHONY: install-uudecode maybe-install-uudecode
38985maybe-install-uudecode:
38986@if uudecode
38987maybe-install-uudecode: install-uudecode
8ec98d6c 38988
d5eec917 38989install-uudecode: installdirs
15b527ca 38990 @: $(MAKE); $(unstage)
8ec98d6c
NN
38991 @r=`${PWD_COMMAND}`; export r; \
38992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 38993 $(HOST_EXPORTS) \
7fc2ca22 38994 (cd $(HOST_SUBDIR)/uudecode && \
93c60b6d 38995 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 38996
d5eec917 38997@endif uudecode
8ec98d6c 38998
39bbbb69 38999# Other targets (info, dvi, pdf, etc.)
8ec98d6c 39000
d5eec917
PB
39001.PHONY: maybe-info-uudecode info-uudecode
39002maybe-info-uudecode:
39003@if uudecode
39004maybe-info-uudecode: info-uudecode
8ec98d6c 39005
d5eec917
PB
39006info-uudecode: \
39007 configure-uudecode
15b527ca 39008 @: $(MAKE); $(unstage)
d5eec917 39009 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39010 r=`${PWD_COMMAND}`; export r; \
39011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39012 $(HOST_EXPORTS) \
d5eec917 39013 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39015 done; \
d5eec917 39016 echo "Doing info in uudecode" ; \
7fc2ca22 39017 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39020 "RANLIB=$${RANLIB}" \
bffcbe34 39021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39022 info) \
8ec98d6c
NN
39023 || exit 1
39024
d5eec917 39025@endif uudecode
8ec98d6c 39026
d5eec917
PB
39027.PHONY: maybe-dvi-uudecode dvi-uudecode
39028maybe-dvi-uudecode:
39029@if uudecode
39030maybe-dvi-uudecode: dvi-uudecode
8ec98d6c 39031
d5eec917
PB
39032dvi-uudecode: \
39033 configure-uudecode
15b527ca 39034 @: $(MAKE); $(unstage)
d5eec917 39035 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39036 r=`${PWD_COMMAND}`; export r; \
39037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39038 $(HOST_EXPORTS) \
d5eec917 39039 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39041 done; \
d5eec917 39042 echo "Doing dvi in uudecode" ; \
7fc2ca22 39043 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39046 "RANLIB=$${RANLIB}" \
bffcbe34 39047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39048 dvi) \
8ec98d6c
NN
39049 || exit 1
39050
d5eec917 39051@endif uudecode
8ec98d6c 39052
39bbbb69
DD
39053.PHONY: maybe-pdf-uudecode pdf-uudecode
39054maybe-pdf-uudecode:
39055@if uudecode
39056maybe-pdf-uudecode: pdf-uudecode
39057
39058pdf-uudecode: \
39059 configure-uudecode
39060 @: $(MAKE); $(unstage)
39061 @[ -f ./uudecode/Makefile ] || exit 0; \
39062 r=`${PWD_COMMAND}`; export r; \
39063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39064 $(HOST_EXPORTS) \
39065 for flag in $(EXTRA_HOST_FLAGS) ; do \
39066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39067 done; \
39068 echo "Doing pdf in uudecode" ; \
39069 (cd $(HOST_SUBDIR)/uudecode && \
39070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39072 "RANLIB=$${RANLIB}" \
bffcbe34 39073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
39074 pdf) \
39075 || exit 1
39076
39077@endif uudecode
39078
b6fb961f
MS
39079.PHONY: maybe-html-uudecode html-uudecode
39080maybe-html-uudecode:
39081@if uudecode
39082maybe-html-uudecode: html-uudecode
39083
39084html-uudecode: \
39085 configure-uudecode
15b527ca 39086 @: $(MAKE); $(unstage)
b6fb961f
MS
39087 @[ -f ./uudecode/Makefile ] || exit 0; \
39088 r=`${PWD_COMMAND}`; export r; \
39089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
39090 $(HOST_EXPORTS) \
39091 for flag in $(EXTRA_HOST_FLAGS) ; do \
39092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39093 done; \
39094 echo "Doing html in uudecode" ; \
7fc2ca22 39095 (cd $(HOST_SUBDIR)/uudecode && \
b6fb961f
MS
39096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39098 "RANLIB=$${RANLIB}" \
bffcbe34 39099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
39100 html) \
39101 || exit 1
39102
39103@endif uudecode
39104
d5eec917
PB
39105.PHONY: maybe-TAGS-uudecode TAGS-uudecode
39106maybe-TAGS-uudecode:
39107@if uudecode
39108maybe-TAGS-uudecode: TAGS-uudecode
8ec98d6c 39109
d5eec917
PB
39110TAGS-uudecode: \
39111 configure-uudecode
15b527ca 39112 @: $(MAKE); $(unstage)
d5eec917
PB
39113 @[ -f ./uudecode/Makefile ] || exit 0; \
39114 r=`${PWD_COMMAND}`; export r; \
8ec98d6c 39115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39116 $(HOST_EXPORTS) \
d5eec917 39117 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39119 done; \
d5eec917 39120 echo "Doing TAGS in uudecode" ; \
7fc2ca22 39121 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39124 "RANLIB=$${RANLIB}" \
bffcbe34 39125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39126 TAGS) \
8ec98d6c
NN
39127 || exit 1
39128
d5eec917 39129@endif uudecode
8ec98d6c 39130
d5eec917
PB
39131.PHONY: maybe-install-info-uudecode install-info-uudecode
39132maybe-install-info-uudecode:
39133@if uudecode
39134maybe-install-info-uudecode: install-info-uudecode
8ec98d6c 39135
d5eec917
PB
39136install-info-uudecode: \
39137 configure-uudecode \
39138 info-uudecode
15b527ca 39139 @: $(MAKE); $(unstage)
d5eec917 39140 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39141 r=`${PWD_COMMAND}`; export r; \
39142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39143 $(HOST_EXPORTS) \
d5eec917 39144 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39146 done; \
d5eec917 39147 echo "Doing install-info in uudecode" ; \
7fc2ca22 39148 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39151 "RANLIB=$${RANLIB}" \
bffcbe34 39152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39153 install-info) \
8ec98d6c
NN
39154 || exit 1
39155
d5eec917 39156@endif uudecode
8ec98d6c 39157
d4954b6d
DD
39158.PHONY: maybe-install-pdf-uudecode install-pdf-uudecode
39159maybe-install-pdf-uudecode:
39160@if uudecode
39161maybe-install-pdf-uudecode: install-pdf-uudecode
39162
39163install-pdf-uudecode: \
39164 configure-uudecode \
39165 pdf-uudecode
39166 @: $(MAKE); $(unstage)
39167 @[ -f ./uudecode/Makefile ] || exit 0; \
39168 r=`${PWD_COMMAND}`; export r; \
39169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39170 $(HOST_EXPORTS) \
39171 for flag in $(EXTRA_HOST_FLAGS) ; do \
39172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39173 done; \
39174 echo "Doing install-pdf in uudecode" ; \
39175 (cd $(HOST_SUBDIR)/uudecode && \
39176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39178 "RANLIB=$${RANLIB}" \
bffcbe34 39179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
39180 install-pdf) \
39181 || exit 1
39182
39183@endif uudecode
39184
83c9add4
CD
39185.PHONY: maybe-install-html-uudecode install-html-uudecode
39186maybe-install-html-uudecode:
39187@if uudecode
39188maybe-install-html-uudecode: install-html-uudecode
39189
39190install-html-uudecode: \
39191 configure-uudecode \
39192 html-uudecode
39193 @: $(MAKE); $(unstage)
39194 @[ -f ./uudecode/Makefile ] || exit 0; \
39195 r=`${PWD_COMMAND}`; export r; \
39196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39197 $(HOST_EXPORTS) \
39198 for flag in $(EXTRA_HOST_FLAGS) ; do \
39199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39200 done; \
39201 echo "Doing install-html in uudecode" ; \
39202 (cd $(HOST_SUBDIR)/uudecode && \
39203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39205 "RANLIB=$${RANLIB}" \
bffcbe34 39206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
39207 install-html) \
39208 || exit 1
39209
39210@endif uudecode
39211
d5eec917
PB
39212.PHONY: maybe-installcheck-uudecode installcheck-uudecode
39213maybe-installcheck-uudecode:
39214@if uudecode
39215maybe-installcheck-uudecode: installcheck-uudecode
8ec98d6c 39216
d5eec917
PB
39217installcheck-uudecode: \
39218 configure-uudecode
15b527ca 39219 @: $(MAKE); $(unstage)
d5eec917 39220 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39221 r=`${PWD_COMMAND}`; export r; \
39222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39223 $(HOST_EXPORTS) \
d5eec917 39224 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39226 done; \
d5eec917 39227 echo "Doing installcheck in uudecode" ; \
7fc2ca22 39228 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39231 "RANLIB=$${RANLIB}" \
bffcbe34 39232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39233 installcheck) \
8ec98d6c
NN
39234 || exit 1
39235
d5eec917 39236@endif uudecode
8ec98d6c 39237
d5eec917
PB
39238.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
39239maybe-mostlyclean-uudecode:
39240@if uudecode
39241maybe-mostlyclean-uudecode: mostlyclean-uudecode
8ec98d6c 39242
d5eec917 39243mostlyclean-uudecode:
15b527ca 39244 @: $(MAKE); $(unstage)
d5eec917 39245 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39246 r=`${PWD_COMMAND}`; export r; \
39247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39248 $(HOST_EXPORTS) \
d5eec917 39249 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39251 done; \
d5eec917 39252 echo "Doing mostlyclean in uudecode" ; \
7fc2ca22 39253 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39256 "RANLIB=$${RANLIB}" \
bffcbe34 39257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39258 mostlyclean) \
8ec98d6c
NN
39259 || exit 1
39260
d5eec917 39261@endif uudecode
8ec98d6c 39262
d5eec917
PB
39263.PHONY: maybe-clean-uudecode clean-uudecode
39264maybe-clean-uudecode:
39265@if uudecode
39266maybe-clean-uudecode: clean-uudecode
8ec98d6c 39267
d5eec917 39268clean-uudecode:
15b527ca 39269 @: $(MAKE); $(unstage)
d5eec917 39270 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39271 r=`${PWD_COMMAND}`; export r; \
39272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39273 $(HOST_EXPORTS) \
d5eec917 39274 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39276 done; \
d5eec917 39277 echo "Doing clean in uudecode" ; \
7fc2ca22 39278 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39281 "RANLIB=$${RANLIB}" \
bffcbe34 39282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39283 clean) \
8ec98d6c
NN
39284 || exit 1
39285
d5eec917 39286@endif uudecode
8ec98d6c 39287
d5eec917
PB
39288.PHONY: maybe-distclean-uudecode distclean-uudecode
39289maybe-distclean-uudecode:
39290@if uudecode
39291maybe-distclean-uudecode: distclean-uudecode
8ec98d6c 39292
d5eec917 39293distclean-uudecode:
15b527ca 39294 @: $(MAKE); $(unstage)
d5eec917 39295 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39296 r=`${PWD_COMMAND}`; export r; \
39297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39298 $(HOST_EXPORTS) \
d5eec917 39299 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39301 done; \
d5eec917 39302 echo "Doing distclean in uudecode" ; \
7fc2ca22 39303 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39306 "RANLIB=$${RANLIB}" \
bffcbe34 39307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39308 distclean) \
8ec98d6c
NN
39309 || exit 1
39310
d5eec917 39311@endif uudecode
8ec98d6c 39312
d5eec917
PB
39313.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
39314maybe-maintainer-clean-uudecode:
39315@if uudecode
39316maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
8ec98d6c 39317
d5eec917 39318maintainer-clean-uudecode:
15b527ca 39319 @: $(MAKE); $(unstage)
d5eec917 39320 @[ -f ./uudecode/Makefile ] || exit 0; \
8ec98d6c
NN
39321 r=`${PWD_COMMAND}`; export r; \
39322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39323 $(HOST_EXPORTS) \
d5eec917 39324 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39326 done; \
d5eec917 39327 echo "Doing maintainer-clean in uudecode" ; \
7fc2ca22 39328 (cd $(HOST_SUBDIR)/uudecode && \
8ec98d6c
NN
39329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39331 "RANLIB=$${RANLIB}" \
bffcbe34 39332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39333 maintainer-clean) \
8ec98d6c 39334 || exit 1
70ffc148 39335
d5eec917 39336@endif uudecode
8ecc6504
NN
39337
39338
f0fdfd34 39339
d5eec917
PB
39340.PHONY: configure-wdiff maybe-configure-wdiff
39341maybe-configure-wdiff:
e1e5148c
CD
39342@if gcc-bootstrap
39343configure-wdiff: stage_current
39344@endif gcc-bootstrap
d5eec917
PB
39345@if wdiff
39346maybe-configure-wdiff: configure-wdiff
ec92c4d6 39347configure-wdiff:
15b527ca 39348 @: $(MAKE); $(unstage)
ec92c4d6 39349 @r=`${PWD_COMMAND}`; export r; \
5230d454 39350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
39351 test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
39352 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
5074489a 39353 $(HOST_EXPORTS) \
f0fdfd34
PB
39354 echo Configuring in $(HOST_SUBDIR)/wdiff; \
39355 cd "$(HOST_SUBDIR)/wdiff" || exit 1; \
94f860c0 39356 case $(srcdir) in \
7fc2ca22
PB
39357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39358 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
39359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 39360 esac; \
7fc2ca22
PB
39361 srcdiroption="--srcdir=$${topdir}/wdiff"; \
39362 libsrcdir="$$s/wdiff"; \
94f860c0 39363 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39364 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39365 --target=${target_alias} $${srcdiroption} \
94f860c0 39366 || exit 1
d5eec917 39367@endif wdiff
94f860c0 39368
f0fdfd34
PB
39369
39370
a8a96878
PB
39371
39372
d5eec917
PB
39373.PHONY: all-wdiff maybe-all-wdiff
39374maybe-all-wdiff:
e1e5148c
CD
39375@if gcc-bootstrap
39376all-wdiff: stage_current
39377@endif gcc-bootstrap
d5eec917 39378@if wdiff
5e6b1f07 39379TARGET-wdiff=all
d5eec917
PB
39380maybe-all-wdiff: all-wdiff
39381all-wdiff: configure-wdiff
15b527ca 39382 @: $(MAKE); $(unstage)
5230d454
L
39383 @r=`${PWD_COMMAND}`; export r; \
39384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 39385 $(HOST_EXPORTS) \
7fc2ca22 39386 (cd $(HOST_SUBDIR)/wdiff && \
6532abb6
PB
39387 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
39388 $(TARGET-wdiff))
d5eec917 39389@endif wdiff
8ecc6504 39390
f0fdfd34 39391
a8a96878
PB
39392
39393
d5eec917
PB
39394.PHONY: check-wdiff maybe-check-wdiff
39395maybe-check-wdiff:
39396@if wdiff
39397maybe-check-wdiff: check-wdiff
8ecc6504 39398
d5eec917 39399check-wdiff:
15b527ca 39400 @: $(MAKE); $(unstage)
d5eec917
PB
39401 @r=`${PWD_COMMAND}`; export r; \
39402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 39403 $(HOST_EXPORTS) \
7fc2ca22
PB
39404 (cd $(HOST_SUBDIR)/wdiff && \
39405 $(MAKE) $(FLAGS_TO_PASS) check)
8ec98d6c 39406
d5eec917 39407@endif wdiff
8ec98d6c 39408
d5eec917
PB
39409.PHONY: install-wdiff maybe-install-wdiff
39410maybe-install-wdiff:
39411@if wdiff
39412maybe-install-wdiff: install-wdiff
8ec98d6c 39413
d5eec917 39414install-wdiff: installdirs
15b527ca 39415 @: $(MAKE); $(unstage)
5230d454
L
39416 @r=`${PWD_COMMAND}`; export r; \
39417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39418 $(HOST_EXPORTS) \
7fc2ca22 39419 (cd $(HOST_SUBDIR)/wdiff && \
93c60b6d 39420 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 39421
d5eec917 39422@endif wdiff
8ecc6504 39423
39bbbb69 39424# Other targets (info, dvi, pdf, etc.)
70ffc148 39425
d5eec917
PB
39426.PHONY: maybe-info-wdiff info-wdiff
39427maybe-info-wdiff:
39428@if wdiff
39429maybe-info-wdiff: info-wdiff
8ec98d6c 39430
d5eec917
PB
39431info-wdiff: \
39432 configure-wdiff
15b527ca 39433 @: $(MAKE); $(unstage)
d5eec917 39434 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c 39435 r=`${PWD_COMMAND}`; export r; \
5230d454 39436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39437 $(HOST_EXPORTS) \
d5eec917 39438 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39440 done; \
d5eec917 39441 echo "Doing info in wdiff" ; \
7fc2ca22 39442 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39445 "RANLIB=$${RANLIB}" \
bffcbe34 39446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39447 info) \
8ec98d6c 39448 || exit 1
8ecc6504 39449
d5eec917 39450@endif wdiff
8ecc6504 39451
d5eec917
PB
39452.PHONY: maybe-dvi-wdiff dvi-wdiff
39453maybe-dvi-wdiff:
39454@if wdiff
39455maybe-dvi-wdiff: dvi-wdiff
8ec98d6c 39456
d5eec917
PB
39457dvi-wdiff: \
39458 configure-wdiff
15b527ca 39459 @: $(MAKE); $(unstage)
d5eec917 39460 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39461 r=`${PWD_COMMAND}`; export r; \
39462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39463 $(HOST_EXPORTS) \
d5eec917 39464 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39466 done; \
d5eec917 39467 echo "Doing dvi in wdiff" ; \
7fc2ca22 39468 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39471 "RANLIB=$${RANLIB}" \
bffcbe34 39472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39473 dvi) \
8ec98d6c
NN
39474 || exit 1
39475
d5eec917 39476@endif wdiff
8ec98d6c 39477
39bbbb69
DD
39478.PHONY: maybe-pdf-wdiff pdf-wdiff
39479maybe-pdf-wdiff:
39480@if wdiff
39481maybe-pdf-wdiff: pdf-wdiff
39482
39483pdf-wdiff: \
39484 configure-wdiff
39485 @: $(MAKE); $(unstage)
39486 @[ -f ./wdiff/Makefile ] || exit 0; \
39487 r=`${PWD_COMMAND}`; export r; \
39488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39489 $(HOST_EXPORTS) \
39490 for flag in $(EXTRA_HOST_FLAGS) ; do \
39491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39492 done; \
39493 echo "Doing pdf in wdiff" ; \
39494 (cd $(HOST_SUBDIR)/wdiff && \
39495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39497 "RANLIB=$${RANLIB}" \
bffcbe34 39498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
39499 pdf) \
39500 || exit 1
39501
39502@endif wdiff
39503
b6fb961f
MS
39504.PHONY: maybe-html-wdiff html-wdiff
39505maybe-html-wdiff:
39506@if wdiff
39507maybe-html-wdiff: html-wdiff
39508
39509html-wdiff: \
39510 configure-wdiff
15b527ca 39511 @: $(MAKE); $(unstage)
b6fb961f
MS
39512 @[ -f ./wdiff/Makefile ] || exit 0; \
39513 r=`${PWD_COMMAND}`; export r; \
39514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
39515 $(HOST_EXPORTS) \
39516 for flag in $(EXTRA_HOST_FLAGS) ; do \
39517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39518 done; \
39519 echo "Doing html in wdiff" ; \
7fc2ca22 39520 (cd $(HOST_SUBDIR)/wdiff && \
b6fb961f
MS
39521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39523 "RANLIB=$${RANLIB}" \
bffcbe34 39524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
39525 html) \
39526 || exit 1
39527
39528@endif wdiff
39529
d5eec917
PB
39530.PHONY: maybe-TAGS-wdiff TAGS-wdiff
39531maybe-TAGS-wdiff:
39532@if wdiff
39533maybe-TAGS-wdiff: TAGS-wdiff
8ec98d6c 39534
d5eec917
PB
39535TAGS-wdiff: \
39536 configure-wdiff
15b527ca 39537 @: $(MAKE); $(unstage)
d5eec917 39538 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39539 r=`${PWD_COMMAND}`; export r; \
39540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39541 $(HOST_EXPORTS) \
d5eec917 39542 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39544 done; \
d5eec917 39545 echo "Doing TAGS in wdiff" ; \
7fc2ca22 39546 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39549 "RANLIB=$${RANLIB}" \
bffcbe34 39550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39551 TAGS) \
8ec98d6c
NN
39552 || exit 1
39553
d5eec917 39554@endif wdiff
8ec98d6c 39555
d5eec917
PB
39556.PHONY: maybe-install-info-wdiff install-info-wdiff
39557maybe-install-info-wdiff:
39558@if wdiff
39559maybe-install-info-wdiff: install-info-wdiff
8ec98d6c 39560
d5eec917
PB
39561install-info-wdiff: \
39562 configure-wdiff \
39563 info-wdiff
15b527ca 39564 @: $(MAKE); $(unstage)
d5eec917 39565 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39566 r=`${PWD_COMMAND}`; export r; \
39567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39568 $(HOST_EXPORTS) \
d5eec917 39569 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39571 done; \
d5eec917 39572 echo "Doing install-info in wdiff" ; \
7fc2ca22 39573 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39576 "RANLIB=$${RANLIB}" \
bffcbe34 39577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39578 install-info) \
8ec98d6c
NN
39579 || exit 1
39580
d5eec917 39581@endif wdiff
8ec98d6c 39582
d4954b6d
DD
39583.PHONY: maybe-install-pdf-wdiff install-pdf-wdiff
39584maybe-install-pdf-wdiff:
39585@if wdiff
39586maybe-install-pdf-wdiff: install-pdf-wdiff
39587
39588install-pdf-wdiff: \
39589 configure-wdiff \
39590 pdf-wdiff
39591 @: $(MAKE); $(unstage)
39592 @[ -f ./wdiff/Makefile ] || exit 0; \
39593 r=`${PWD_COMMAND}`; export r; \
39594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39595 $(HOST_EXPORTS) \
39596 for flag in $(EXTRA_HOST_FLAGS) ; do \
39597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39598 done; \
39599 echo "Doing install-pdf in wdiff" ; \
39600 (cd $(HOST_SUBDIR)/wdiff && \
39601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39603 "RANLIB=$${RANLIB}" \
bffcbe34 39604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
39605 install-pdf) \
39606 || exit 1
39607
39608@endif wdiff
39609
83c9add4
CD
39610.PHONY: maybe-install-html-wdiff install-html-wdiff
39611maybe-install-html-wdiff:
39612@if wdiff
39613maybe-install-html-wdiff: install-html-wdiff
39614
39615install-html-wdiff: \
39616 configure-wdiff \
39617 html-wdiff
39618 @: $(MAKE); $(unstage)
39619 @[ -f ./wdiff/Makefile ] || exit 0; \
39620 r=`${PWD_COMMAND}`; export r; \
39621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39622 $(HOST_EXPORTS) \
39623 for flag in $(EXTRA_HOST_FLAGS) ; do \
39624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39625 done; \
39626 echo "Doing install-html in wdiff" ; \
39627 (cd $(HOST_SUBDIR)/wdiff && \
39628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39630 "RANLIB=$${RANLIB}" \
bffcbe34 39631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
39632 install-html) \
39633 || exit 1
39634
39635@endif wdiff
39636
d5eec917
PB
39637.PHONY: maybe-installcheck-wdiff installcheck-wdiff
39638maybe-installcheck-wdiff:
39639@if wdiff
39640maybe-installcheck-wdiff: installcheck-wdiff
8ec98d6c 39641
d5eec917
PB
39642installcheck-wdiff: \
39643 configure-wdiff
15b527ca 39644 @: $(MAKE); $(unstage)
d5eec917 39645 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39646 r=`${PWD_COMMAND}`; export r; \
39647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39648 $(HOST_EXPORTS) \
d5eec917 39649 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39651 done; \
d5eec917 39652 echo "Doing installcheck in wdiff" ; \
7fc2ca22 39653 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39656 "RANLIB=$${RANLIB}" \
bffcbe34 39657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39658 installcheck) \
8ec98d6c
NN
39659 || exit 1
39660
d5eec917 39661@endif wdiff
8ec98d6c 39662
d5eec917
PB
39663.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
39664maybe-mostlyclean-wdiff:
39665@if wdiff
39666maybe-mostlyclean-wdiff: mostlyclean-wdiff
8ec98d6c 39667
d5eec917 39668mostlyclean-wdiff:
15b527ca 39669 @: $(MAKE); $(unstage)
d5eec917 39670 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39671 r=`${PWD_COMMAND}`; export r; \
39672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39673 $(HOST_EXPORTS) \
d5eec917 39674 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39676 done; \
d5eec917 39677 echo "Doing mostlyclean in wdiff" ; \
7fc2ca22 39678 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39681 "RANLIB=$${RANLIB}" \
bffcbe34 39682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39683 mostlyclean) \
8ec98d6c
NN
39684 || exit 1
39685
d5eec917 39686@endif wdiff
8ec98d6c 39687
d5eec917
PB
39688.PHONY: maybe-clean-wdiff clean-wdiff
39689maybe-clean-wdiff:
39690@if wdiff
39691maybe-clean-wdiff: clean-wdiff
8ec98d6c 39692
d5eec917 39693clean-wdiff:
15b527ca 39694 @: $(MAKE); $(unstage)
d5eec917 39695 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39696 r=`${PWD_COMMAND}`; export r; \
39697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39698 $(HOST_EXPORTS) \
d5eec917 39699 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39701 done; \
d5eec917 39702 echo "Doing clean in wdiff" ; \
7fc2ca22 39703 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39706 "RANLIB=$${RANLIB}" \
bffcbe34 39707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39708 clean) \
8ec98d6c
NN
39709 || exit 1
39710
d5eec917 39711@endif wdiff
8ec98d6c 39712
d5eec917
PB
39713.PHONY: maybe-distclean-wdiff distclean-wdiff
39714maybe-distclean-wdiff:
39715@if wdiff
39716maybe-distclean-wdiff: distclean-wdiff
8ec98d6c 39717
d5eec917 39718distclean-wdiff:
15b527ca 39719 @: $(MAKE); $(unstage)
d5eec917 39720 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39721 r=`${PWD_COMMAND}`; export r; \
39722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39723 $(HOST_EXPORTS) \
d5eec917 39724 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39726 done; \
d5eec917 39727 echo "Doing distclean in wdiff" ; \
7fc2ca22 39728 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39731 "RANLIB=$${RANLIB}" \
bffcbe34 39732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39733 distclean) \
8ec98d6c
NN
39734 || exit 1
39735
d5eec917 39736@endif wdiff
8ec98d6c 39737
d5eec917
PB
39738.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
39739maybe-maintainer-clean-wdiff:
39740@if wdiff
39741maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
8ec98d6c 39742
d5eec917 39743maintainer-clean-wdiff:
15b527ca 39744 @: $(MAKE); $(unstage)
d5eec917 39745 @[ -f ./wdiff/Makefile ] || exit 0; \
8ec98d6c
NN
39746 r=`${PWD_COMMAND}`; export r; \
39747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39748 $(HOST_EXPORTS) \
d5eec917 39749 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39751 done; \
d5eec917 39752 echo "Doing maintainer-clean in wdiff" ; \
7fc2ca22 39753 (cd $(HOST_SUBDIR)/wdiff && \
8ec98d6c
NN
39754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39756 "RANLIB=$${RANLIB}" \
bffcbe34 39757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39758 maintainer-clean) \
8ec98d6c
NN
39759 || exit 1
39760
d5eec917 39761@endif wdiff
8ec98d6c
NN
39762
39763
f0fdfd34 39764
d5eec917
PB
39765.PHONY: configure-zip maybe-configure-zip
39766maybe-configure-zip:
e1e5148c
CD
39767@if gcc-bootstrap
39768configure-zip: stage_current
39769@endif gcc-bootstrap
d5eec917
PB
39770@if zip
39771maybe-configure-zip: configure-zip
ec92c4d6 39772configure-zip:
15b527ca 39773 @: $(MAKE); $(unstage)
ec92c4d6 39774 @r=`${PWD_COMMAND}`; export r; \
5230d454 39775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
39776 test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
39777 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
5074489a 39778 $(HOST_EXPORTS) \
f0fdfd34
PB
39779 echo Configuring in $(HOST_SUBDIR)/zip; \
39780 cd "$(HOST_SUBDIR)/zip" || exit 1; \
94f860c0 39781 case $(srcdir) in \
7fc2ca22
PB
39782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39783 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
39784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 39785 esac; \
7fc2ca22
PB
39786 srcdiroption="--srcdir=$${topdir}/zip"; \
39787 libsrcdir="$$s/zip"; \
94f860c0 39788 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
39789 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
39790 --target=${target_alias} $${srcdiroption} \
94f860c0 39791 || exit 1
d5eec917 39792@endif zip
94f860c0 39793
f0fdfd34
PB
39794
39795
a8a96878
PB
39796
39797
d5eec917
PB
39798.PHONY: all-zip maybe-all-zip
39799maybe-all-zip:
e1e5148c
CD
39800@if gcc-bootstrap
39801all-zip: stage_current
39802@endif gcc-bootstrap
d5eec917 39803@if zip
5e6b1f07 39804TARGET-zip=all
d5eec917
PB
39805maybe-all-zip: all-zip
39806all-zip: configure-zip
15b527ca 39807 @: $(MAKE); $(unstage)
5230d454
L
39808 @r=`${PWD_COMMAND}`; export r; \
39809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 39810 $(HOST_EXPORTS) \
7fc2ca22 39811 (cd $(HOST_SUBDIR)/zip && \
6532abb6
PB
39812 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
39813 $(TARGET-zip))
d5eec917 39814@endif zip
8ecc6504 39815
f0fdfd34 39816
a8a96878
PB
39817
39818
d5eec917
PB
39819.PHONY: check-zip maybe-check-zip
39820maybe-check-zip:
39821@if zip
39822maybe-check-zip: check-zip
8ecc6504 39823
d5eec917
PB
39824# This module is only tested in a native toolchain.
39825check-zip:
15b527ca 39826 @: $(MAKE); $(unstage)
d5eec917
PB
39827 @if [ '$(host)' = '$(target)' ] ; then \
39828 r=`${PWD_COMMAND}`; export r; \
39829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 39830 $(HOST_EXPORTS) \
7fc2ca22 39831 (cd $(HOST_SUBDIR)/zip && \
80e4c577 39832 $(MAKE) $(FLAGS_TO_PASS) check); \
d5eec917 39833 fi
8ec98d6c 39834
d5eec917 39835@endif zip
8ec98d6c 39836
d5eec917
PB
39837.PHONY: install-zip maybe-install-zip
39838maybe-install-zip:
39839@if zip
39840maybe-install-zip: install-zip
8ec98d6c 39841
d5eec917 39842install-zip: installdirs
15b527ca 39843 @: $(MAKE); $(unstage)
d5eec917
PB
39844 @r=`${PWD_COMMAND}`; export r; \
39845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d5eec917 39846 $(HOST_EXPORTS) \
7fc2ca22 39847 (cd $(HOST_SUBDIR)/zip && \
93c60b6d 39848 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 39849
d5eec917 39850@endif zip
8ec98d6c 39851
39bbbb69 39852# Other targets (info, dvi, pdf, etc.)
8ec98d6c 39853
d5eec917
PB
39854.PHONY: maybe-info-zip info-zip
39855maybe-info-zip:
39856@if zip
39857maybe-info-zip: info-zip
8ec98d6c 39858
d5eec917
PB
39859info-zip: \
39860 configure-zip
15b527ca 39861 @: $(MAKE); $(unstage)
d5eec917 39862 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 39863 r=`${PWD_COMMAND}`; export r; \
5230d454 39864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39865 $(HOST_EXPORTS) \
d5eec917 39866 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39868 done; \
d5eec917 39869 echo "Doing info in zip" ; \
7fc2ca22 39870 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
39871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39873 "RANLIB=$${RANLIB}" \
bffcbe34 39874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39875 info) \
8ec98d6c 39876 || exit 1
8ecc6504 39877
d5eec917 39878@endif zip
8ecc6504 39879
d5eec917
PB
39880.PHONY: maybe-dvi-zip dvi-zip
39881maybe-dvi-zip:
39882@if zip
39883maybe-dvi-zip: dvi-zip
70ffc148 39884
d5eec917
PB
39885dvi-zip: \
39886 configure-zip
15b527ca 39887 @: $(MAKE); $(unstage)
d5eec917 39888 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 39889 r=`${PWD_COMMAND}`; export r; \
5230d454 39890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39891 $(HOST_EXPORTS) \
d5eec917 39892 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39894 done; \
d5eec917 39895 echo "Doing dvi in zip" ; \
7fc2ca22 39896 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
39897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39899 "RANLIB=$${RANLIB}" \
bffcbe34 39900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39901 dvi) \
8ec98d6c 39902 || exit 1
8ecc6504 39903
d5eec917 39904@endif zip
8ecc6504 39905
39bbbb69
DD
39906.PHONY: maybe-pdf-zip pdf-zip
39907maybe-pdf-zip:
39908@if zip
39909maybe-pdf-zip: pdf-zip
39910
39911pdf-zip: \
39912 configure-zip
39913 @: $(MAKE); $(unstage)
39914 @[ -f ./zip/Makefile ] || exit 0; \
39915 r=`${PWD_COMMAND}`; export r; \
39916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39917 $(HOST_EXPORTS) \
39918 for flag in $(EXTRA_HOST_FLAGS) ; do \
39919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39920 done; \
39921 echo "Doing pdf in zip" ; \
39922 (cd $(HOST_SUBDIR)/zip && \
39923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39925 "RANLIB=$${RANLIB}" \
bffcbe34 39926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
39927 pdf) \
39928 || exit 1
39929
39930@endif zip
39931
b6fb961f
MS
39932.PHONY: maybe-html-zip html-zip
39933maybe-html-zip:
39934@if zip
39935maybe-html-zip: html-zip
39936
39937html-zip: \
39938 configure-zip
15b527ca 39939 @: $(MAKE); $(unstage)
b6fb961f
MS
39940 @[ -f ./zip/Makefile ] || exit 0; \
39941 r=`${PWD_COMMAND}`; export r; \
39942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
39943 $(HOST_EXPORTS) \
39944 for flag in $(EXTRA_HOST_FLAGS) ; do \
39945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39946 done; \
39947 echo "Doing html in zip" ; \
7fc2ca22 39948 (cd $(HOST_SUBDIR)/zip && \
b6fb961f
MS
39949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39951 "RANLIB=$${RANLIB}" \
bffcbe34 39952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
39953 html) \
39954 || exit 1
39955
39956@endif zip
39957
d5eec917
PB
39958.PHONY: maybe-TAGS-zip TAGS-zip
39959maybe-TAGS-zip:
39960@if zip
39961maybe-TAGS-zip: TAGS-zip
8ec98d6c 39962
d5eec917
PB
39963TAGS-zip: \
39964 configure-zip
15b527ca 39965 @: $(MAKE); $(unstage)
d5eec917 39966 @[ -f ./zip/Makefile ] || exit 0; \
5230d454
L
39967 r=`${PWD_COMMAND}`; export r; \
39968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39969 $(HOST_EXPORTS) \
d5eec917 39970 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39972 done; \
d5eec917 39973 echo "Doing TAGS in zip" ; \
7fc2ca22 39974 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
39975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39977 "RANLIB=$${RANLIB}" \
bffcbe34 39978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 39979 TAGS) \
94f860c0
NN
39980 || exit 1
39981
d5eec917 39982@endif zip
8ec98d6c 39983
d5eec917
PB
39984.PHONY: maybe-install-info-zip install-info-zip
39985maybe-install-info-zip:
39986@if zip
39987maybe-install-info-zip: install-info-zip
8ec98d6c 39988
d5eec917
PB
39989install-info-zip: \
39990 configure-zip \
39991 info-zip
15b527ca 39992 @: $(MAKE); $(unstage)
d5eec917 39993 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 39994 r=`${PWD_COMMAND}`; export r; \
5230d454 39995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 39996 $(HOST_EXPORTS) \
d5eec917 39997 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
39998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39999 done; \
d5eec917 40000 echo "Doing install-info in zip" ; \
7fc2ca22 40001 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40004 "RANLIB=$${RANLIB}" \
bffcbe34 40005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40006 install-info) \
8ec98d6c 40007 || exit 1
8ecc6504 40008
d5eec917 40009@endif zip
8ecc6504 40010
d4954b6d
DD
40011.PHONY: maybe-install-pdf-zip install-pdf-zip
40012maybe-install-pdf-zip:
40013@if zip
40014maybe-install-pdf-zip: install-pdf-zip
40015
40016install-pdf-zip: \
40017 configure-zip \
40018 pdf-zip
40019 @: $(MAKE); $(unstage)
40020 @[ -f ./zip/Makefile ] || exit 0; \
40021 r=`${PWD_COMMAND}`; export r; \
40022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40023 $(HOST_EXPORTS) \
40024 for flag in $(EXTRA_HOST_FLAGS) ; do \
40025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40026 done; \
40027 echo "Doing install-pdf in zip" ; \
40028 (cd $(HOST_SUBDIR)/zip && \
40029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40031 "RANLIB=$${RANLIB}" \
bffcbe34 40032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
40033 install-pdf) \
40034 || exit 1
40035
40036@endif zip
40037
83c9add4
CD
40038.PHONY: maybe-install-html-zip install-html-zip
40039maybe-install-html-zip:
40040@if zip
40041maybe-install-html-zip: install-html-zip
40042
40043install-html-zip: \
40044 configure-zip \
40045 html-zip
40046 @: $(MAKE); $(unstage)
40047 @[ -f ./zip/Makefile ] || exit 0; \
40048 r=`${PWD_COMMAND}`; export r; \
40049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40050 $(HOST_EXPORTS) \
40051 for flag in $(EXTRA_HOST_FLAGS) ; do \
40052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40053 done; \
40054 echo "Doing install-html in zip" ; \
40055 (cd $(HOST_SUBDIR)/zip && \
40056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40058 "RANLIB=$${RANLIB}" \
bffcbe34 40059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
40060 install-html) \
40061 || exit 1
40062
40063@endif zip
40064
d5eec917
PB
40065.PHONY: maybe-installcheck-zip installcheck-zip
40066maybe-installcheck-zip:
40067@if zip
40068maybe-installcheck-zip: installcheck-zip
8ec98d6c 40069
d5eec917
PB
40070installcheck-zip: \
40071 configure-zip
15b527ca 40072 @: $(MAKE); $(unstage)
d5eec917 40073 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 40074 r=`${PWD_COMMAND}`; export r; \
5230d454 40075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40076 $(HOST_EXPORTS) \
d5eec917 40077 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40079 done; \
d5eec917 40080 echo "Doing installcheck in zip" ; \
7fc2ca22 40081 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40084 "RANLIB=$${RANLIB}" \
bffcbe34 40085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40086 installcheck) \
8ec98d6c 40087 || exit 1
8ecc6504 40088
d5eec917 40089@endif zip
8ecc6504 40090
d5eec917
PB
40091.PHONY: maybe-mostlyclean-zip mostlyclean-zip
40092maybe-mostlyclean-zip:
40093@if zip
40094maybe-mostlyclean-zip: mostlyclean-zip
70ffc148 40095
d5eec917 40096mostlyclean-zip:
15b527ca 40097 @: $(MAKE); $(unstage)
d5eec917 40098 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
40099 r=`${PWD_COMMAND}`; export r; \
40100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40101 $(HOST_EXPORTS) \
d5eec917 40102 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40104 done; \
d5eec917 40105 echo "Doing mostlyclean in zip" ; \
7fc2ca22 40106 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40109 "RANLIB=$${RANLIB}" \
bffcbe34 40110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40111 mostlyclean) \
8ec98d6c
NN
40112 || exit 1
40113
d5eec917 40114@endif zip
8ec98d6c 40115
d5eec917
PB
40116.PHONY: maybe-clean-zip clean-zip
40117maybe-clean-zip:
40118@if zip
40119maybe-clean-zip: clean-zip
8ec98d6c 40120
d5eec917 40121clean-zip:
15b527ca 40122 @: $(MAKE); $(unstage)
d5eec917 40123 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
40124 r=`${PWD_COMMAND}`; export r; \
40125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40126 $(HOST_EXPORTS) \
d5eec917 40127 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40129 done; \
d5eec917 40130 echo "Doing clean in zip" ; \
7fc2ca22 40131 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40134 "RANLIB=$${RANLIB}" \
bffcbe34 40135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40136 clean) \
8ec98d6c
NN
40137 || exit 1
40138
d5eec917 40139@endif zip
8ec98d6c 40140
d5eec917
PB
40141.PHONY: maybe-distclean-zip distclean-zip
40142maybe-distclean-zip:
40143@if zip
40144maybe-distclean-zip: distclean-zip
8ec98d6c 40145
d5eec917 40146distclean-zip:
15b527ca 40147 @: $(MAKE); $(unstage)
d5eec917 40148 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c
NN
40149 r=`${PWD_COMMAND}`; export r; \
40150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40151 $(HOST_EXPORTS) \
d5eec917 40152 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40154 done; \
d5eec917 40155 echo "Doing distclean in zip" ; \
7fc2ca22 40156 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40159 "RANLIB=$${RANLIB}" \
bffcbe34 40160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40161 distclean) \
8ec98d6c
NN
40162 || exit 1
40163
d5eec917 40164@endif zip
8ec98d6c 40165
d5eec917
PB
40166.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
40167maybe-maintainer-clean-zip:
40168@if zip
40169maybe-maintainer-clean-zip: maintainer-clean-zip
8ec98d6c 40170
d5eec917 40171maintainer-clean-zip:
15b527ca 40172 @: $(MAKE); $(unstage)
d5eec917 40173 @[ -f ./zip/Makefile ] || exit 0; \
8ec98d6c 40174 r=`${PWD_COMMAND}`; export r; \
5230d454 40175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40176 $(HOST_EXPORTS) \
d5eec917 40177 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40179 done; \
d5eec917 40180 echo "Doing maintainer-clean in zip" ; \
7fc2ca22 40181 (cd $(HOST_SUBDIR)/zip && \
8ec98d6c
NN
40182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40184 "RANLIB=$${RANLIB}" \
bffcbe34 40185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40186 maintainer-clean) \
8ec98d6c 40187 || exit 1
8ecc6504 40188
d5eec917 40189@endif zip
8ecc6504 40190
8ec98d6c 40191
f0fdfd34 40192
d5eec917
PB
40193.PHONY: configure-zlib maybe-configure-zlib
40194maybe-configure-zlib:
e1e5148c
CD
40195@if gcc-bootstrap
40196configure-zlib: stage_current
40197@endif gcc-bootstrap
d5eec917
PB
40198@if zlib
40199maybe-configure-zlib: configure-zlib
ec92c4d6 40200configure-zlib:
ec92c4d6
PB
40201 @r=`${PWD_COMMAND}`; export r; \
40202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
40203 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
40204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
5074489a 40205 $(HOST_EXPORTS) \
f0fdfd34
PB
40206 echo Configuring in $(HOST_SUBDIR)/zlib; \
40207 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
94f860c0 40208 case $(srcdir) in \
7fc2ca22
PB
40209 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40210 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40211 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 40212 esac; \
7fc2ca22
PB
40213 srcdiroption="--srcdir=$${topdir}/zlib"; \
40214 libsrcdir="$$s/zlib"; \
94f860c0 40215 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40216 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40217 --target=${target_alias} $${srcdiroption} \
94f860c0 40218 || exit 1
d5eec917 40219@endif zlib
94f860c0 40220
f0fdfd34
PB
40221
40222
a8a96878
PB
40223.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
40224maybe-configure-stage1-zlib:
40225@if zlib-bootstrap
40226maybe-configure-stage1-zlib: configure-stage1-zlib
15b527ca 40227configure-stage1-zlib:
ec92c4d6 40228 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15b527ca 40229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40230 @r=`${PWD_COMMAND}`; export r; \
40231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40232 TFLAGS="$(STAGE1_TFLAGS)"; \
15b527ca 40233 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
c91ae28f 40234 $(HOST_EXPORTS) \
2ba09444 40235 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
40236 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
40237 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a8a96878 40238 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
15b527ca 40239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40240 cd $(HOST_SUBDIR)/zlib || exit 1; \
40241 case $(srcdir) in \
40242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40243 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40245 esac; \
40246 srcdiroption="--srcdir=$${topdir}/zlib"; \
40247 libsrcdir="$$s/zlib"; \
40248 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40249 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40250 --target=${target_alias} $${srcdiroption} \
c91ae28f 40251 $(STAGE1_CONFIGURE_FLAGS)
a8a96878
PB
40252@endif zlib-bootstrap
40253
40254.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
40255maybe-configure-stage2-zlib:
40256@if zlib-bootstrap
40257maybe-configure-stage2-zlib: configure-stage2-zlib
15b527ca 40258configure-stage2-zlib:
ec92c4d6 40259 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15b527ca 40260 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40261 @r=`${PWD_COMMAND}`; export r; \
40262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40263 TFLAGS="$(STAGE2_TFLAGS)"; \
15b527ca 40264 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 40265 $(HOST_EXPORTS) \
c91ae28f 40266 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 40267 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
40268 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
40269 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a8a96878 40270 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
15b527ca 40271 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40272 cd $(HOST_SUBDIR)/zlib || exit 1; \
40273 case $(srcdir) in \
40274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40275 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40277 esac; \
40278 srcdiroption="--srcdir=$${topdir}/zlib"; \
40279 libsrcdir="$$s/zlib"; \
40280 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40281 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40282 --target=${target_alias} $${srcdiroption} \
380e48e5 40283 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 40284 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
40285@endif zlib-bootstrap
40286
a8a96878
PB
40287.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
40288maybe-configure-stage3-zlib:
40289@if zlib-bootstrap
40290maybe-configure-stage3-zlib: configure-stage3-zlib
15b527ca 40291configure-stage3-zlib:
ec92c4d6 40292 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15b527ca 40293 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40294 @r=`${PWD_COMMAND}`; export r; \
40295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40296 TFLAGS="$(STAGE3_TFLAGS)"; \
15b527ca 40297 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 40298 $(HOST_EXPORTS) \
c91ae28f 40299 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 40300 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
40301 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
40302 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a8a96878 40303 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
15b527ca 40304 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40305 cd $(HOST_SUBDIR)/zlib || exit 1; \
40306 case $(srcdir) in \
40307 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40308 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40309 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40310 esac; \
40311 srcdiroption="--srcdir=$${topdir}/zlib"; \
40312 libsrcdir="$$s/zlib"; \
40313 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40314 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40315 --target=${target_alias} $${srcdiroption} \
380e48e5 40316 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 40317 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
40318@endif zlib-bootstrap
40319
a8a96878
PB
40320.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
40321maybe-configure-stage4-zlib:
40322@if zlib-bootstrap
40323maybe-configure-stage4-zlib: configure-stage4-zlib
15b527ca 40324configure-stage4-zlib:
ec92c4d6 40325 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15b527ca 40326 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40327 @r=`${PWD_COMMAND}`; export r; \
40328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40329 TFLAGS="$(STAGE4_TFLAGS)"; \
15b527ca 40330 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 40331 $(HOST_EXPORTS) \
c91ae28f 40332 $(POSTSTAGE1_HOST_EXPORTS) \
2b41ef78 40333 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
40334 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
40335 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a8a96878 40336 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
15b527ca 40337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40338 cd $(HOST_SUBDIR)/zlib || exit 1; \
40339 case $(srcdir) in \
40340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40341 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40343 esac; \
40344 srcdiroption="--srcdir=$${topdir}/zlib"; \
40345 libsrcdir="$$s/zlib"; \
40346 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40347 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40348 --target=${target_alias} $${srcdiroption} \
380e48e5 40349 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 40350 $(STAGE4_CONFIGURE_FLAGS)
a8a96878
PB
40351@endif zlib-bootstrap
40352
40353.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
40354maybe-configure-stageprofile-zlib:
40355@if zlib-bootstrap
40356maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
15b527ca 40357configure-stageprofile-zlib:
ec92c4d6 40358 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15b527ca 40359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40360 @r=`${PWD_COMMAND}`; export r; \
40361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40362 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15b527ca 40363 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 40364 $(HOST_EXPORTS) \
c91ae28f
AO
40365 $(POSTSTAGE1_HOST_EXPORTS) \
40366 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
40367 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
40368 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a8a96878 40369 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
15b527ca 40370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40371 cd $(HOST_SUBDIR)/zlib || exit 1; \
40372 case $(srcdir) in \
40373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40374 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40376 esac; \
40377 srcdiroption="--srcdir=$${topdir}/zlib"; \
40378 libsrcdir="$$s/zlib"; \
40379 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40381 --target=${target_alias} $${srcdiroption} \
380e48e5 40382 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 40383 $(STAGEprofile_CONFIGURE_FLAGS)
a8a96878
PB
40384@endif zlib-bootstrap
40385
40386.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
40387maybe-configure-stagefeedback-zlib:
40388@if zlib-bootstrap
40389maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
15b527ca 40390configure-stagefeedback-zlib:
ec92c4d6 40391 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15b527ca 40392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
ec92c4d6
PB
40393 @r=`${PWD_COMMAND}`; export r; \
40394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40395 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15b527ca 40396 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
a8a96878 40397 $(HOST_EXPORTS) \
c91ae28f
AO
40398 $(POSTSTAGE1_HOST_EXPORTS) \
40399 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
40400 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
40401 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a8a96878 40402 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
15b527ca 40403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
a8a96878
PB
40404 cd $(HOST_SUBDIR)/zlib || exit 1; \
40405 case $(srcdir) in \
40406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40407 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
40408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40409 esac; \
40410 srcdiroption="--srcdir=$${topdir}/zlib"; \
40411 libsrcdir="$$s/zlib"; \
40412 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
40413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
40414 --target=${target_alias} $${srcdiroption} \
380e48e5 40415 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 40416 $(STAGEfeedback_CONFIGURE_FLAGS)
a8a96878
PB
40417@endif zlib-bootstrap
40418
40419
40420
40421
40422
d5eec917
PB
40423.PHONY: all-zlib maybe-all-zlib
40424maybe-all-zlib:
e1e5148c
CD
40425@if gcc-bootstrap
40426all-zlib: stage_current
40427@endif gcc-bootstrap
d5eec917 40428@if zlib
5e6b1f07 40429TARGET-zlib=all
d5eec917
PB
40430maybe-all-zlib: all-zlib
40431all-zlib: configure-zlib
ec92c4d6 40432 @r=`${PWD_COMMAND}`; export r; \
5230d454 40433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 40434 $(HOST_EXPORTS) \
7fc2ca22 40435 (cd $(HOST_SUBDIR)/zlib && \
6532abb6
PB
40436 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
40437 $(TARGET-zlib))
d5eec917 40438@endif zlib
8ecc6504 40439
f0fdfd34 40440
a8a96878
PB
40441
40442.PHONY: all-stage1-zlib maybe-all-stage1-zlib
40443.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
40444maybe-all-stage1-zlib:
40445maybe-clean-stage1-zlib:
40446@if zlib-bootstrap
40447maybe-all-stage1-zlib: all-stage1-zlib
40448all-stage1: all-stage1-zlib
168b158c 40449TARGET-stage1-zlib = $(TARGET-zlib)
a8a96878 40450all-stage1-zlib: configure-stage1-zlib
ec92c4d6 40451 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a8a96878
PB
40452 @r=`${PWD_COMMAND}`; export r; \
40453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40454 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 40455 $(HOST_EXPORTS) \
a8a96878 40456 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40457 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40458 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 40459 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
c91ae28f
AO
40460 LIBCFLAGS="$(LIBCFLAGS)" \
40461 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40462 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40463 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40464 $(EXTRA_HOST_FLAGS) \
40465 TFLAGS="$(STAGE1_TFLAGS)" \
168b158c 40466 $(TARGET-stage1-zlib)
a8a96878
PB
40467
40468maybe-clean-stage1-zlib: clean-stage1-zlib
40469clean-stage1: clean-stage1-zlib
40470clean-stage1-zlib:
a6a4e782
DD
40471 @if [ $(current_stage) = stage1 ]; then \
40472 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40473 else \
40474 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
40475 $(MAKE) stage1-start; \
40476 fi; \
a8a96878 40477 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40478 $(MAKE) $(EXTRA_HOST_FLAGS) \
2ba09444 40479 clean
a8a96878
PB
40480@endif zlib-bootstrap
40481
40482
40483.PHONY: all-stage2-zlib maybe-all-stage2-zlib
40484.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
40485maybe-all-stage2-zlib:
40486maybe-clean-stage2-zlib:
40487@if zlib-bootstrap
40488maybe-all-stage2-zlib: all-stage2-zlib
40489all-stage2: all-stage2-zlib
168b158c 40490TARGET-stage2-zlib = $(TARGET-zlib)
a8a96878 40491all-stage2-zlib: configure-stage2-zlib
ec92c4d6 40492 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a8a96878
PB
40493 @r=`${PWD_COMMAND}`; export r; \
40494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40495 TFLAGS="$(STAGE2_TFLAGS)"; \
a8a96878 40496 $(HOST_EXPORTS) \
5074489a 40497 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 40498 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40499 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40500 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 40501 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
c91ae28f
AO
40502 LIBCFLAGS="$(STAGE2_CFLAGS)" \
40503 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40504 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40505 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40506 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
40507 TFLAGS="$(STAGE2_TFLAGS)" \
168b158c 40508 $(TARGET-stage2-zlib)
a8a96878
PB
40509
40510maybe-clean-stage2-zlib: clean-stage2-zlib
40511clean-stage2: clean-stage2-zlib
40512clean-stage2-zlib:
a6a4e782
DD
40513 @if [ $(current_stage) = stage2 ]; then \
40514 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40515 else \
40516 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
40517 $(MAKE) stage2-start; \
40518 fi; \
a8a96878 40519 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40520 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 40521 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 40522 clean
a8a96878
PB
40523@endif zlib-bootstrap
40524
40525
40526.PHONY: all-stage3-zlib maybe-all-stage3-zlib
40527.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
40528maybe-all-stage3-zlib:
40529maybe-clean-stage3-zlib:
40530@if zlib-bootstrap
40531maybe-all-stage3-zlib: all-stage3-zlib
40532all-stage3: all-stage3-zlib
168b158c 40533TARGET-stage3-zlib = $(TARGET-zlib)
a8a96878 40534all-stage3-zlib: configure-stage3-zlib
ec92c4d6 40535 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a8a96878
PB
40536 @r=`${PWD_COMMAND}`; export r; \
40537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40538 TFLAGS="$(STAGE3_TFLAGS)"; \
a8a96878 40539 $(HOST_EXPORTS) \
5074489a 40540 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 40541 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40542 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40543 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 40544 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
c91ae28f
AO
40545 LIBCFLAGS="$(STAGE3_CFLAGS)" \
40546 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40547 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40548 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40549 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
40550 TFLAGS="$(STAGE3_TFLAGS)" \
168b158c 40551 $(TARGET-stage3-zlib)
a8a96878
PB
40552
40553maybe-clean-stage3-zlib: clean-stage3-zlib
40554clean-stage3: clean-stage3-zlib
40555clean-stage3-zlib:
a6a4e782
DD
40556 @if [ $(current_stage) = stage3 ]; then \
40557 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40558 else \
40559 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
40560 $(MAKE) stage3-start; \
40561 fi; \
a8a96878 40562 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40563 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 40564 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 40565 clean
a8a96878
PB
40566@endif zlib-bootstrap
40567
40568
40569.PHONY: all-stage4-zlib maybe-all-stage4-zlib
40570.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
40571maybe-all-stage4-zlib:
40572maybe-clean-stage4-zlib:
40573@if zlib-bootstrap
40574maybe-all-stage4-zlib: all-stage4-zlib
40575all-stage4: all-stage4-zlib
168b158c 40576TARGET-stage4-zlib = $(TARGET-zlib)
a8a96878 40577all-stage4-zlib: configure-stage4-zlib
ec92c4d6 40578 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a8a96878
PB
40579 @r=`${PWD_COMMAND}`; export r; \
40580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40581 TFLAGS="$(STAGE4_TFLAGS)"; \
a8a96878 40582 $(HOST_EXPORTS) \
5074489a 40583 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 40584 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40585 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40586 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 40587 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
6532abb6 40588 LIBCFLAGS="$(STAGE4_CFLAGS)" \
c91ae28f
AO
40589 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40590 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40591 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40592 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
40593 TFLAGS="$(STAGE4_TFLAGS)" \
168b158c 40594 $(TARGET-stage4-zlib)
a8a96878
PB
40595
40596maybe-clean-stage4-zlib: clean-stage4-zlib
40597clean-stage4: clean-stage4-zlib
40598clean-stage4-zlib:
a6a4e782
DD
40599 @if [ $(current_stage) = stage4 ]; then \
40600 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40601 else \
40602 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
40603 $(MAKE) stage4-start; \
40604 fi; \
a8a96878 40605 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40606 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 40607 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 40608 clean
a8a96878
PB
40609@endif zlib-bootstrap
40610
40611
40612.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
40613.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
40614maybe-all-stageprofile-zlib:
40615maybe-clean-stageprofile-zlib:
40616@if zlib-bootstrap
40617maybe-all-stageprofile-zlib: all-stageprofile-zlib
40618all-stageprofile: all-stageprofile-zlib
168b158c 40619TARGET-stageprofile-zlib = $(TARGET-zlib)
a8a96878 40620all-stageprofile-zlib: configure-stageprofile-zlib
ec92c4d6 40621 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a8a96878
PB
40622 @r=`${PWD_COMMAND}`; export r; \
40623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40624 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a8a96878 40625 $(HOST_EXPORTS) \
5074489a 40626 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 40627 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40628 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40629 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 40630 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
c91ae28f
AO
40631 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
40632 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40633 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40634 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40635 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
40636 TFLAGS="$(STAGEprofile_TFLAGS)" \
168b158c 40637 $(TARGET-stageprofile-zlib)
a8a96878
PB
40638
40639maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
40640clean-stageprofile: clean-stageprofile-zlib
40641clean-stageprofile-zlib:
a6a4e782
DD
40642 @if [ $(current_stage) = stageprofile ]; then \
40643 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40644 else \
40645 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
40646 $(MAKE) stageprofile-start; \
40647 fi; \
a8a96878 40648 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40649 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 40650 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 40651 clean
a8a96878
PB
40652@endif zlib-bootstrap
40653
40654
40655.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
40656.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
40657maybe-all-stagefeedback-zlib:
40658maybe-clean-stagefeedback-zlib:
40659@if zlib-bootstrap
40660maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
40661all-stagefeedback: all-stagefeedback-zlib
168b158c 40662TARGET-stagefeedback-zlib = $(TARGET-zlib)
a8a96878 40663all-stagefeedback-zlib: configure-stagefeedback-zlib
ec92c4d6 40664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a8a96878
PB
40665 @r=`${PWD_COMMAND}`; export r; \
40666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 40667 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a8a96878 40668 $(HOST_EXPORTS) \
5074489a 40669 $(POSTSTAGE1_HOST_EXPORTS) \
a8a96878 40670 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40671 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f 40672 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 40673 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
c91ae28f
AO
40674 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
40675 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40676 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40677 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40678 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
40679 TFLAGS="$(STAGEfeedback_TFLAGS)" \
168b158c 40680 $(TARGET-stagefeedback-zlib)
a8a96878
PB
40681
40682maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
40683clean-stagefeedback: clean-stagefeedback-zlib
40684clean-stagefeedback-zlib:
a6a4e782
DD
40685 @if [ $(current_stage) = stagefeedback ]; then \
40686 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
40687 else \
40688 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
40689 $(MAKE) stagefeedback-start; \
40690 fi; \
a8a96878 40691 cd $(HOST_SUBDIR)/zlib && \
6532abb6 40692 $(MAKE) $(EXTRA_HOST_FLAGS) \
a8a96878 40693 $(POSTSTAGE1_FLAGS_TO_PASS) \
2ba09444 40694 clean
a8a96878
PB
40695@endif zlib-bootstrap
40696
40697
40698
40699
40700
d5eec917
PB
40701.PHONY: check-zlib maybe-check-zlib
40702maybe-check-zlib:
40703@if zlib
40704maybe-check-zlib: check-zlib
8ecc6504 40705
d5eec917 40706check-zlib:
8ecc6504 40707
d5eec917 40708@endif zlib
8ecc6504 40709
d5eec917
PB
40710.PHONY: install-zlib maybe-install-zlib
40711maybe-install-zlib:
40712@if zlib
40713maybe-install-zlib: install-zlib
8ec98d6c 40714
d5eec917 40715install-zlib:
8ec98d6c 40716
d5eec917 40717@endif zlib
8ec98d6c 40718
39bbbb69 40719# Other targets (info, dvi, pdf, etc.)
8ec98d6c 40720
d5eec917
PB
40721.PHONY: maybe-info-zlib info-zlib
40722maybe-info-zlib:
40723@if zlib
40724maybe-info-zlib: info-zlib
8ec98d6c 40725
b6fb961f
MS
40726info-zlib: \
40727 configure-zlib
40728 @[ -f ./zlib/Makefile ] || exit 0; \
40729 r=`${PWD_COMMAND}`; export r; \
40730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
40731 $(HOST_EXPORTS) \
40732 for flag in $(EXTRA_HOST_FLAGS) ; do \
40733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40734 done; \
40735 echo "Doing info in zlib" ; \
7fc2ca22 40736 (cd $(HOST_SUBDIR)/zlib && \
b6fb961f
MS
40737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40739 "RANLIB=$${RANLIB}" \
bffcbe34 40740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
40741 info) \
40742 || exit 1
40743
40744@endif zlib
40745
40746.PHONY: maybe-dvi-zlib dvi-zlib
40747maybe-dvi-zlib:
40748@if zlib
40749maybe-dvi-zlib: dvi-zlib
40750
40751dvi-zlib: \
d5eec917
PB
40752 configure-zlib
40753 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40754 r=`${PWD_COMMAND}`; export r; \
40755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40756 $(HOST_EXPORTS) \
d5eec917 40757 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40759 done; \
b6fb961f 40760 echo "Doing dvi in zlib" ; \
7fc2ca22 40761 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40764 "RANLIB=$${RANLIB}" \
bffcbe34 40765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 40766 dvi) \
8ec98d6c
NN
40767 || exit 1
40768
d5eec917 40769@endif zlib
8ec98d6c 40770
39bbbb69
DD
40771.PHONY: maybe-pdf-zlib pdf-zlib
40772maybe-pdf-zlib:
40773@if zlib
40774maybe-pdf-zlib: pdf-zlib
40775
40776pdf-zlib: \
40777 configure-zlib
40778 @[ -f ./zlib/Makefile ] || exit 0; \
40779 r=`${PWD_COMMAND}`; export r; \
40780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40781 $(HOST_EXPORTS) \
40782 for flag in $(EXTRA_HOST_FLAGS) ; do \
40783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40784 done; \
40785 echo "Doing pdf in zlib" ; \
40786 (cd $(HOST_SUBDIR)/zlib && \
40787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40789 "RANLIB=$${RANLIB}" \
bffcbe34 40790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
40791 pdf) \
40792 || exit 1
40793
40794@endif zlib
40795
b6fb961f
MS
40796.PHONY: maybe-html-zlib html-zlib
40797maybe-html-zlib:
d5eec917 40798@if zlib
b6fb961f 40799maybe-html-zlib: html-zlib
8ec98d6c 40800
b6fb961f 40801html-zlib: \
d5eec917
PB
40802 configure-zlib
40803 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40804 r=`${PWD_COMMAND}`; export r; \
40805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40806 $(HOST_EXPORTS) \
d5eec917 40807 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40809 done; \
b6fb961f 40810 echo "Doing html in zlib" ; \
7fc2ca22 40811 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40814 "RANLIB=$${RANLIB}" \
bffcbe34 40815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 40816 html) \
8ec98d6c
NN
40817 || exit 1
40818
d5eec917 40819@endif zlib
8ec98d6c 40820
d5eec917
PB
40821.PHONY: maybe-TAGS-zlib TAGS-zlib
40822maybe-TAGS-zlib:
40823@if zlib
40824maybe-TAGS-zlib: TAGS-zlib
8ec98d6c 40825
d5eec917
PB
40826TAGS-zlib: \
40827 configure-zlib
40828 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40829 r=`${PWD_COMMAND}`; export r; \
40830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40831 $(HOST_EXPORTS) \
d5eec917 40832 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40834 done; \
d5eec917 40835 echo "Doing TAGS in zlib" ; \
7fc2ca22 40836 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40839 "RANLIB=$${RANLIB}" \
bffcbe34 40840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40841 TAGS) \
8ec98d6c
NN
40842 || exit 1
40843
d5eec917 40844@endif zlib
8ec98d6c 40845
d5eec917
PB
40846.PHONY: maybe-install-info-zlib install-info-zlib
40847maybe-install-info-zlib:
40848@if zlib
40849maybe-install-info-zlib: install-info-zlib
8ec98d6c 40850
d5eec917
PB
40851install-info-zlib: \
40852 configure-zlib \
40853 info-zlib
40854 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40855 r=`${PWD_COMMAND}`; export r; \
40856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40857 $(HOST_EXPORTS) \
d5eec917 40858 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40860 done; \
d5eec917 40861 echo "Doing install-info in zlib" ; \
7fc2ca22 40862 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40865 "RANLIB=$${RANLIB}" \
bffcbe34 40866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40867 install-info) \
8ec98d6c
NN
40868 || exit 1
40869
d5eec917 40870@endif zlib
8ec98d6c 40871
d4954b6d
DD
40872.PHONY: maybe-install-pdf-zlib install-pdf-zlib
40873maybe-install-pdf-zlib:
40874@if zlib
40875maybe-install-pdf-zlib: install-pdf-zlib
40876
40877install-pdf-zlib: \
40878 configure-zlib \
40879 pdf-zlib
40880 @[ -f ./zlib/Makefile ] || exit 0; \
40881 r=`${PWD_COMMAND}`; export r; \
40882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40883 $(HOST_EXPORTS) \
40884 for flag in $(EXTRA_HOST_FLAGS) ; do \
40885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40886 done; \
40887 echo "Doing install-pdf in zlib" ; \
40888 (cd $(HOST_SUBDIR)/zlib && \
40889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40891 "RANLIB=$${RANLIB}" \
bffcbe34 40892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
40893 install-pdf) \
40894 || exit 1
40895
40896@endif zlib
40897
83c9add4
CD
40898.PHONY: maybe-install-html-zlib install-html-zlib
40899maybe-install-html-zlib:
40900@if zlib
40901maybe-install-html-zlib: install-html-zlib
40902
40903install-html-zlib: \
40904 configure-zlib \
40905 html-zlib
40906 @[ -f ./zlib/Makefile ] || exit 0; \
40907 r=`${PWD_COMMAND}`; export r; \
40908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40909 $(HOST_EXPORTS) \
40910 for flag in $(EXTRA_HOST_FLAGS) ; do \
40911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40912 done; \
40913 echo "Doing install-html in zlib" ; \
40914 (cd $(HOST_SUBDIR)/zlib && \
40915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40917 "RANLIB=$${RANLIB}" \
bffcbe34 40918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
40919 install-html) \
40920 || exit 1
40921
40922@endif zlib
40923
d5eec917
PB
40924.PHONY: maybe-installcheck-zlib installcheck-zlib
40925maybe-installcheck-zlib:
40926@if zlib
40927maybe-installcheck-zlib: installcheck-zlib
8ec98d6c 40928
d5eec917
PB
40929installcheck-zlib: \
40930 configure-zlib
40931 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40932 r=`${PWD_COMMAND}`; export r; \
40933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40934 $(HOST_EXPORTS) \
d5eec917 40935 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40937 done; \
d5eec917 40938 echo "Doing installcheck in zlib" ; \
7fc2ca22 40939 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40942 "RANLIB=$${RANLIB}" \
bffcbe34 40943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40944 installcheck) \
8ec98d6c
NN
40945 || exit 1
40946
d5eec917 40947@endif zlib
8ec98d6c 40948
d5eec917
PB
40949.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
40950maybe-mostlyclean-zlib:
40951@if zlib
40952maybe-mostlyclean-zlib: mostlyclean-zlib
8ec98d6c 40953
d5eec917
PB
40954mostlyclean-zlib:
40955 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40956 r=`${PWD_COMMAND}`; export r; \
40957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40958 $(HOST_EXPORTS) \
d5eec917 40959 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40961 done; \
d5eec917 40962 echo "Doing mostlyclean in zlib" ; \
7fc2ca22 40963 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40966 "RANLIB=$${RANLIB}" \
bffcbe34 40967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40968 mostlyclean) \
8ec98d6c
NN
40969 || exit 1
40970
d5eec917 40971@endif zlib
8ec98d6c 40972
d5eec917
PB
40973.PHONY: maybe-clean-zlib clean-zlib
40974maybe-clean-zlib:
40975@if zlib
40976maybe-clean-zlib: clean-zlib
8ec98d6c 40977
d5eec917
PB
40978clean-zlib:
40979 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
40980 r=`${PWD_COMMAND}`; export r; \
40981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 40982 $(HOST_EXPORTS) \
d5eec917 40983 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
40984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40985 done; \
d5eec917 40986 echo "Doing clean in zlib" ; \
7fc2ca22 40987 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
40988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40990 "RANLIB=$${RANLIB}" \
bffcbe34 40991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 40992 clean) \
8ec98d6c
NN
40993 || exit 1
40994
d5eec917 40995@endif zlib
8ec98d6c 40996
d5eec917
PB
40997.PHONY: maybe-distclean-zlib distclean-zlib
40998maybe-distclean-zlib:
40999@if zlib
41000maybe-distclean-zlib: distclean-zlib
8ec98d6c 41001
d5eec917
PB
41002distclean-zlib:
41003 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
41004 r=`${PWD_COMMAND}`; export r; \
41005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41006 $(HOST_EXPORTS) \
d5eec917 41007 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41009 done; \
d5eec917 41010 echo "Doing distclean in zlib" ; \
7fc2ca22 41011 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
41012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41014 "RANLIB=$${RANLIB}" \
bffcbe34 41015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41016 distclean) \
8ec98d6c
NN
41017 || exit 1
41018
d5eec917 41019@endif zlib
8ec98d6c 41020
d5eec917
PB
41021.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
41022maybe-maintainer-clean-zlib:
41023@if zlib
41024maybe-maintainer-clean-zlib: maintainer-clean-zlib
8ec98d6c 41025
d5eec917
PB
41026maintainer-clean-zlib:
41027 @[ -f ./zlib/Makefile ] || exit 0; \
8ec98d6c
NN
41028 r=`${PWD_COMMAND}`; export r; \
41029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41030 $(HOST_EXPORTS) \
d5eec917 41031 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
41032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41033 done; \
d5eec917 41034 echo "Doing maintainer-clean in zlib" ; \
7fc2ca22 41035 (cd $(HOST_SUBDIR)/zlib && \
8ec98d6c
NN
41036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41038 "RANLIB=$${RANLIB}" \
bffcbe34 41039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41040 maintainer-clean) \
8ec98d6c 41041 || exit 1
70ffc148 41042
d5eec917 41043@endif zlib
8ecc6504
NN
41044
41045
f0fdfd34 41046
d5eec917
PB
41047.PHONY: configure-gdb maybe-configure-gdb
41048maybe-configure-gdb:
e1e5148c
CD
41049@if gcc-bootstrap
41050configure-gdb: stage_current
41051@endif gcc-bootstrap
d5eec917
PB
41052@if gdb
41053maybe-configure-gdb: configure-gdb
ec92c4d6 41054configure-gdb:
15b527ca 41055 @: $(MAKE); $(unstage)
ec92c4d6 41056 @r=`${PWD_COMMAND}`; export r; \
5230d454 41057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41058 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
41059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
5074489a 41060 $(HOST_EXPORTS) \
f0fdfd34
PB
41061 echo Configuring in $(HOST_SUBDIR)/gdb; \
41062 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
94f860c0 41063 case $(srcdir) in \
7fc2ca22
PB
41064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41065 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
41066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 41067 esac; \
7fc2ca22
PB
41068 srcdiroption="--srcdir=$${topdir}/gdb"; \
41069 libsrcdir="$$s/gdb"; \
94f860c0 41070 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41072 --target=${target_alias} $${srcdiroption} \
94f860c0 41073 || exit 1
d5eec917 41074@endif gdb
94f860c0 41075
f0fdfd34
PB
41076
41077
a8a96878
PB
41078
41079
d5eec917
PB
41080.PHONY: all-gdb maybe-all-gdb
41081maybe-all-gdb:
e1e5148c
CD
41082@if gcc-bootstrap
41083all-gdb: stage_current
41084@endif gcc-bootstrap
d5eec917 41085@if gdb
5e6b1f07 41086TARGET-gdb=all
d5eec917
PB
41087maybe-all-gdb: all-gdb
41088all-gdb: configure-gdb
15b527ca 41089 @: $(MAKE); $(unstage)
5230d454
L
41090 @r=`${PWD_COMMAND}`; export r; \
41091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 41092 $(HOST_EXPORTS) \
7fc2ca22 41093 (cd $(HOST_SUBDIR)/gdb && \
6532abb6
PB
41094 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
41095 $(TARGET-gdb))
d5eec917 41096@endif gdb
8ecc6504 41097
f0fdfd34 41098
a8a96878
PB
41099
41100
d5eec917
PB
41101.PHONY: check-gdb maybe-check-gdb
41102maybe-check-gdb:
41103@if gdb
41104maybe-check-gdb: check-gdb
8ecc6504 41105
d5eec917 41106check-gdb:
15b527ca 41107 @: $(MAKE); $(unstage)
5230d454
L
41108 @r=`${PWD_COMMAND}`; export r; \
41109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41110 $(HOST_EXPORTS) \
7fc2ca22
PB
41111 (cd $(HOST_SUBDIR)/gdb && \
41112 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 41113
d5eec917 41114@endif gdb
8ecc6504 41115
d5eec917
PB
41116.PHONY: install-gdb maybe-install-gdb
41117maybe-install-gdb:
41118@if gdb
41119maybe-install-gdb: install-gdb
70ffc148 41120
d5eec917 41121install-gdb: installdirs
15b527ca 41122 @: $(MAKE); $(unstage)
5230d454
L
41123 @r=`${PWD_COMMAND}`; export r; \
41124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41125 $(HOST_EXPORTS) \
7fc2ca22 41126 (cd $(HOST_SUBDIR)/gdb && \
93c60b6d 41127 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 41128
d5eec917 41129@endif gdb
8ecc6504 41130
39bbbb69 41131# Other targets (info, dvi, pdf, etc.)
8ec98d6c 41132
d5eec917
PB
41133.PHONY: maybe-info-gdb info-gdb
41134maybe-info-gdb:
41135@if gdb
41136maybe-info-gdb: info-gdb
8ec98d6c 41137
d5eec917
PB
41138info-gdb: \
41139 configure-gdb
15b527ca 41140 @: $(MAKE); $(unstage)
d5eec917 41141 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41142 r=`${PWD_COMMAND}`; export r; \
41143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41144 $(HOST_EXPORTS) \
6a19fd82 41145 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41147 done; \
d5eec917 41148 echo "Doing info in gdb" ; \
7fc2ca22 41149 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41152 "RANLIB=$${RANLIB}" \
bffcbe34 41153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41154 info) \
8ec98d6c
NN
41155 || exit 1
41156
d5eec917 41157@endif gdb
8ec98d6c 41158
d5eec917
PB
41159.PHONY: maybe-dvi-gdb dvi-gdb
41160maybe-dvi-gdb:
41161@if gdb
41162maybe-dvi-gdb: dvi-gdb
8ec98d6c 41163
d5eec917
PB
41164dvi-gdb: \
41165 configure-gdb
15b527ca 41166 @: $(MAKE); $(unstage)
d5eec917 41167 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41168 r=`${PWD_COMMAND}`; export r; \
41169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41170 $(HOST_EXPORTS) \
6a19fd82 41171 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41173 done; \
d5eec917 41174 echo "Doing dvi in gdb" ; \
7fc2ca22 41175 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41178 "RANLIB=$${RANLIB}" \
bffcbe34 41179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41180 dvi) \
8ec98d6c
NN
41181 || exit 1
41182
d5eec917 41183@endif gdb
8ec98d6c 41184
39bbbb69
DD
41185.PHONY: maybe-pdf-gdb pdf-gdb
41186maybe-pdf-gdb:
41187@if gdb
41188maybe-pdf-gdb: pdf-gdb
41189
41190pdf-gdb: \
41191 configure-gdb
41192 @: $(MAKE); $(unstage)
41193 @[ -f ./gdb/Makefile ] || exit 0; \
41194 r=`${PWD_COMMAND}`; export r; \
41195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41196 $(HOST_EXPORTS) \
41197 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41199 done; \
41200 echo "Doing pdf in gdb" ; \
41201 (cd $(HOST_SUBDIR)/gdb && \
41202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41204 "RANLIB=$${RANLIB}" \
bffcbe34 41205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
41206 pdf) \
41207 || exit 1
41208
41209@endif gdb
41210
b6fb961f
MS
41211.PHONY: maybe-html-gdb html-gdb
41212maybe-html-gdb:
41213@if gdb
41214maybe-html-gdb: html-gdb
41215
41216html-gdb: \
41217 configure-gdb
15b527ca 41218 @: $(MAKE); $(unstage)
b6fb961f
MS
41219 @[ -f ./gdb/Makefile ] || exit 0; \
41220 r=`${PWD_COMMAND}`; export r; \
41221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
41222 $(HOST_EXPORTS) \
41223 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41225 done; \
41226 echo "Doing html in gdb" ; \
7fc2ca22 41227 (cd $(HOST_SUBDIR)/gdb && \
b6fb961f
MS
41228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41230 "RANLIB=$${RANLIB}" \
bffcbe34 41231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
41232 html) \
41233 || exit 1
41234
41235@endif gdb
41236
d5eec917
PB
41237.PHONY: maybe-TAGS-gdb TAGS-gdb
41238maybe-TAGS-gdb:
41239@if gdb
41240maybe-TAGS-gdb: TAGS-gdb
8ec98d6c 41241
d5eec917
PB
41242TAGS-gdb: \
41243 configure-gdb
15b527ca 41244 @: $(MAKE); $(unstage)
d5eec917 41245 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41246 r=`${PWD_COMMAND}`; export r; \
41247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41248 $(HOST_EXPORTS) \
6a19fd82 41249 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41251 done; \
d5eec917 41252 echo "Doing TAGS in gdb" ; \
7fc2ca22 41253 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41256 "RANLIB=$${RANLIB}" \
bffcbe34 41257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41258 TAGS) \
8ec98d6c
NN
41259 || exit 1
41260
d5eec917 41261@endif gdb
8ec98d6c 41262
d5eec917
PB
41263.PHONY: maybe-install-info-gdb install-info-gdb
41264maybe-install-info-gdb:
41265@if gdb
41266maybe-install-info-gdb: install-info-gdb
8ec98d6c 41267
d5eec917
PB
41268install-info-gdb: \
41269 configure-gdb \
41270 info-gdb
15b527ca 41271 @: $(MAKE); $(unstage)
d5eec917 41272 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41273 r=`${PWD_COMMAND}`; export r; \
41274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41275 $(HOST_EXPORTS) \
6a19fd82 41276 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41278 done; \
d5eec917 41279 echo "Doing install-info in gdb" ; \
7fc2ca22 41280 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41283 "RANLIB=$${RANLIB}" \
bffcbe34 41284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41285 install-info) \
8ec98d6c
NN
41286 || exit 1
41287
d5eec917 41288@endif gdb
8ec98d6c 41289
d4954b6d
DD
41290.PHONY: maybe-install-pdf-gdb install-pdf-gdb
41291maybe-install-pdf-gdb:
41292@if gdb
41293maybe-install-pdf-gdb: install-pdf-gdb
41294
41295install-pdf-gdb: \
41296 configure-gdb \
41297 pdf-gdb
41298 @: $(MAKE); $(unstage)
41299 @[ -f ./gdb/Makefile ] || exit 0; \
41300 r=`${PWD_COMMAND}`; export r; \
41301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41302 $(HOST_EXPORTS) \
41303 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41305 done; \
41306 echo "Doing install-pdf in gdb" ; \
41307 (cd $(HOST_SUBDIR)/gdb && \
41308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41310 "RANLIB=$${RANLIB}" \
bffcbe34 41311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
41312 install-pdf) \
41313 || exit 1
41314
41315@endif gdb
41316
83c9add4
CD
41317.PHONY: maybe-install-html-gdb install-html-gdb
41318maybe-install-html-gdb:
41319@if gdb
41320maybe-install-html-gdb: install-html-gdb
41321
41322install-html-gdb: \
41323 configure-gdb \
41324 html-gdb
41325 @: $(MAKE); $(unstage)
41326 @[ -f ./gdb/Makefile ] || exit 0; \
41327 r=`${PWD_COMMAND}`; export r; \
41328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41329 $(HOST_EXPORTS) \
41330 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41332 done; \
41333 echo "Doing install-html in gdb" ; \
41334 (cd $(HOST_SUBDIR)/gdb && \
41335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41337 "RANLIB=$${RANLIB}" \
bffcbe34 41338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
41339 install-html) \
41340 || exit 1
41341
41342@endif gdb
41343
d5eec917
PB
41344.PHONY: maybe-installcheck-gdb installcheck-gdb
41345maybe-installcheck-gdb:
41346@if gdb
41347maybe-installcheck-gdb: installcheck-gdb
8ec98d6c 41348
d5eec917
PB
41349installcheck-gdb: \
41350 configure-gdb
15b527ca 41351 @: $(MAKE); $(unstage)
d5eec917 41352 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41353 r=`${PWD_COMMAND}`; export r; \
41354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41355 $(HOST_EXPORTS) \
6a19fd82 41356 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41358 done; \
d5eec917 41359 echo "Doing installcheck in gdb" ; \
7fc2ca22 41360 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41363 "RANLIB=$${RANLIB}" \
bffcbe34 41364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41365 installcheck) \
8ec98d6c
NN
41366 || exit 1
41367
d5eec917 41368@endif gdb
8ec98d6c 41369
d5eec917
PB
41370.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
41371maybe-mostlyclean-gdb:
41372@if gdb
41373maybe-mostlyclean-gdb: mostlyclean-gdb
8ec98d6c 41374
d5eec917 41375mostlyclean-gdb:
15b527ca 41376 @: $(MAKE); $(unstage)
d5eec917 41377 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41378 r=`${PWD_COMMAND}`; export r; \
41379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41380 $(HOST_EXPORTS) \
6a19fd82 41381 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41383 done; \
d5eec917 41384 echo "Doing mostlyclean in gdb" ; \
7fc2ca22 41385 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41388 "RANLIB=$${RANLIB}" \
bffcbe34 41389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41390 mostlyclean) \
8ec98d6c
NN
41391 || exit 1
41392
d5eec917 41393@endif gdb
8ec98d6c 41394
d5eec917
PB
41395.PHONY: maybe-clean-gdb clean-gdb
41396maybe-clean-gdb:
41397@if gdb
41398maybe-clean-gdb: clean-gdb
8ec98d6c 41399
d5eec917 41400clean-gdb:
15b527ca 41401 @: $(MAKE); $(unstage)
d5eec917 41402 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41403 r=`${PWD_COMMAND}`; export r; \
41404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41405 $(HOST_EXPORTS) \
6a19fd82 41406 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41408 done; \
d5eec917 41409 echo "Doing clean in gdb" ; \
7fc2ca22 41410 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41413 "RANLIB=$${RANLIB}" \
bffcbe34 41414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41415 clean) \
8ec98d6c
NN
41416 || exit 1
41417
d5eec917 41418@endif gdb
8ec98d6c 41419
d5eec917
PB
41420.PHONY: maybe-distclean-gdb distclean-gdb
41421maybe-distclean-gdb:
41422@if gdb
41423maybe-distclean-gdb: distclean-gdb
8ec98d6c 41424
d5eec917 41425distclean-gdb:
15b527ca 41426 @: $(MAKE); $(unstage)
d5eec917 41427 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41428 r=`${PWD_COMMAND}`; export r; \
41429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41430 $(HOST_EXPORTS) \
6a19fd82 41431 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41433 done; \
d5eec917 41434 echo "Doing distclean in gdb" ; \
7fc2ca22 41435 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41438 "RANLIB=$${RANLIB}" \
bffcbe34 41439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41440 distclean) \
8ec98d6c
NN
41441 || exit 1
41442
d5eec917 41443@endif gdb
8ec98d6c 41444
d5eec917
PB
41445.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
41446maybe-maintainer-clean-gdb:
41447@if gdb
41448maybe-maintainer-clean-gdb: maintainer-clean-gdb
8ec98d6c 41449
d5eec917 41450maintainer-clean-gdb:
15b527ca 41451 @: $(MAKE); $(unstage)
d5eec917 41452 @[ -f ./gdb/Makefile ] || exit 0; \
8ec98d6c
NN
41453 r=`${PWD_COMMAND}`; export r; \
41454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41455 $(HOST_EXPORTS) \
6a19fd82 41456 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41458 done; \
d5eec917 41459 echo "Doing maintainer-clean in gdb" ; \
7fc2ca22 41460 (cd $(HOST_SUBDIR)/gdb && \
8ec98d6c
NN
41461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41463 "RANLIB=$${RANLIB}" \
bffcbe34 41464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41465 maintainer-clean) \
8ec98d6c
NN
41466 || exit 1
41467
d5eec917 41468@endif gdb
8ec98d6c
NN
41469
41470
f0fdfd34 41471
d5eec917
PB
41472.PHONY: configure-expect maybe-configure-expect
41473maybe-configure-expect:
e1e5148c
CD
41474@if gcc-bootstrap
41475configure-expect: stage_current
41476@endif gcc-bootstrap
d5eec917
PB
41477@if expect
41478maybe-configure-expect: configure-expect
ec92c4d6 41479configure-expect:
15b527ca 41480 @: $(MAKE); $(unstage)
ec92c4d6 41481 @r=`${PWD_COMMAND}`; export r; \
5230d454 41482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41483 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
41484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
5074489a 41485 $(HOST_EXPORTS) \
f0fdfd34
PB
41486 echo Configuring in $(HOST_SUBDIR)/expect; \
41487 cd "$(HOST_SUBDIR)/expect" || exit 1; \
94f860c0 41488 case $(srcdir) in \
7fc2ca22
PB
41489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41490 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
41491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 41492 esac; \
7fc2ca22
PB
41493 srcdiroption="--srcdir=$${topdir}/expect"; \
41494 libsrcdir="$$s/expect"; \
94f860c0 41495 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41496 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41497 --target=${target_alias} $${srcdiroption} \
94f860c0 41498 || exit 1
d5eec917 41499@endif expect
94f860c0 41500
f0fdfd34
PB
41501
41502
a8a96878
PB
41503
41504
d5eec917
PB
41505.PHONY: all-expect maybe-all-expect
41506maybe-all-expect:
e1e5148c
CD
41507@if gcc-bootstrap
41508all-expect: stage_current
41509@endif gcc-bootstrap
d5eec917 41510@if expect
5e6b1f07 41511TARGET-expect=all
d5eec917
PB
41512maybe-all-expect: all-expect
41513all-expect: configure-expect
15b527ca 41514 @: $(MAKE); $(unstage)
5230d454
L
41515 @r=`${PWD_COMMAND}`; export r; \
41516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 41517 $(HOST_EXPORTS) \
7fc2ca22 41518 (cd $(HOST_SUBDIR)/expect && \
6532abb6
PB
41519 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
41520 $(TARGET-expect))
d5eec917 41521@endif expect
8ecc6504 41522
f0fdfd34 41523
a8a96878
PB
41524
41525
d5eec917
PB
41526.PHONY: check-expect maybe-check-expect
41527maybe-check-expect:
41528@if expect
41529maybe-check-expect: check-expect
8ecc6504 41530
d5eec917 41531check-expect:
15b527ca 41532 @: $(MAKE); $(unstage)
5230d454
L
41533 @r=`${PWD_COMMAND}`; export r; \
41534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41535 $(HOST_EXPORTS) \
7fc2ca22
PB
41536 (cd $(HOST_SUBDIR)/expect && \
41537 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 41538
d5eec917 41539@endif expect
8ecc6504 41540
d5eec917
PB
41541.PHONY: install-expect maybe-install-expect
41542maybe-install-expect:
41543@if expect
41544maybe-install-expect: install-expect
70ffc148 41545
d5eec917 41546install-expect: installdirs
15b527ca 41547 @: $(MAKE); $(unstage)
5230d454
L
41548 @r=`${PWD_COMMAND}`; export r; \
41549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41550 $(HOST_EXPORTS) \
7fc2ca22 41551 (cd $(HOST_SUBDIR)/expect && \
93c60b6d 41552 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 41553
d5eec917 41554@endif expect
8ecc6504 41555
39bbbb69 41556# Other targets (info, dvi, pdf, etc.)
8ec98d6c 41557
d5eec917
PB
41558.PHONY: maybe-info-expect info-expect
41559maybe-info-expect:
41560@if expect
41561maybe-info-expect: info-expect
8ec98d6c 41562
d5eec917
PB
41563info-expect: \
41564 configure-expect
15b527ca 41565 @: $(MAKE); $(unstage)
d5eec917 41566 @[ -f ./expect/Makefile ] || exit 0; \
5230d454
L
41567 r=`${PWD_COMMAND}`; export r; \
41568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41569 $(HOST_EXPORTS) \
6a19fd82 41570 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41572 done; \
d5eec917 41573 echo "Doing info in expect" ; \
7fc2ca22 41574 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41577 "RANLIB=$${RANLIB}" \
bffcbe34 41578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41579 info) \
94f860c0
NN
41580 || exit 1
41581
d5eec917 41582@endif expect
8ec98d6c 41583
d5eec917
PB
41584.PHONY: maybe-dvi-expect dvi-expect
41585maybe-dvi-expect:
41586@if expect
41587maybe-dvi-expect: dvi-expect
8ec98d6c 41588
d5eec917
PB
41589dvi-expect: \
41590 configure-expect
15b527ca 41591 @: $(MAKE); $(unstage)
d5eec917 41592 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 41593 r=`${PWD_COMMAND}`; export r; \
5230d454 41594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41595 $(HOST_EXPORTS) \
6a19fd82 41596 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41598 done; \
d5eec917 41599 echo "Doing dvi in expect" ; \
7fc2ca22 41600 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41603 "RANLIB=$${RANLIB}" \
bffcbe34 41604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41605 dvi) \
8ec98d6c 41606 || exit 1
8ecc6504 41607
d5eec917 41608@endif expect
8ecc6504 41609
39bbbb69
DD
41610.PHONY: maybe-pdf-expect pdf-expect
41611maybe-pdf-expect:
41612@if expect
41613maybe-pdf-expect: pdf-expect
41614
41615pdf-expect: \
41616 configure-expect
41617 @: $(MAKE); $(unstage)
41618 @[ -f ./expect/Makefile ] || exit 0; \
41619 r=`${PWD_COMMAND}`; export r; \
41620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41621 $(HOST_EXPORTS) \
41622 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41624 done; \
41625 echo "Doing pdf in expect" ; \
41626 (cd $(HOST_SUBDIR)/expect && \
41627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41629 "RANLIB=$${RANLIB}" \
bffcbe34 41630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
41631 pdf) \
41632 || exit 1
41633
41634@endif expect
41635
b6fb961f
MS
41636.PHONY: maybe-html-expect html-expect
41637maybe-html-expect:
41638@if expect
41639maybe-html-expect: html-expect
41640
41641html-expect: \
41642 configure-expect
15b527ca 41643 @: $(MAKE); $(unstage)
b6fb961f
MS
41644 @[ -f ./expect/Makefile ] || exit 0; \
41645 r=`${PWD_COMMAND}`; export r; \
41646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
41647 $(HOST_EXPORTS) \
41648 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41650 done; \
41651 echo "Doing html in expect" ; \
7fc2ca22 41652 (cd $(HOST_SUBDIR)/expect && \
b6fb961f
MS
41653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41655 "RANLIB=$${RANLIB}" \
bffcbe34 41656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
41657 html) \
41658 || exit 1
41659
41660@endif expect
41661
d5eec917
PB
41662.PHONY: maybe-TAGS-expect TAGS-expect
41663maybe-TAGS-expect:
41664@if expect
41665maybe-TAGS-expect: TAGS-expect
8ec98d6c 41666
d5eec917
PB
41667TAGS-expect: \
41668 configure-expect
15b527ca 41669 @: $(MAKE); $(unstage)
d5eec917 41670 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 41671 r=`${PWD_COMMAND}`; export r; \
5230d454 41672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41673 $(HOST_EXPORTS) \
6a19fd82 41674 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41676 done; \
d5eec917 41677 echo "Doing TAGS in expect" ; \
7fc2ca22 41678 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41681 "RANLIB=$${RANLIB}" \
bffcbe34 41682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41683 TAGS) \
8ec98d6c 41684 || exit 1
8ecc6504 41685
d5eec917 41686@endif expect
8ecc6504 41687
d5eec917
PB
41688.PHONY: maybe-install-info-expect install-info-expect
41689maybe-install-info-expect:
41690@if expect
41691maybe-install-info-expect: install-info-expect
70ffc148 41692
d5eec917
PB
41693install-info-expect: \
41694 configure-expect \
41695 info-expect
15b527ca 41696 @: $(MAKE); $(unstage)
d5eec917 41697 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
41698 r=`${PWD_COMMAND}`; export r; \
41699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41700 $(HOST_EXPORTS) \
6a19fd82 41701 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41703 done; \
d5eec917 41704 echo "Doing install-info in expect" ; \
7fc2ca22 41705 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41708 "RANLIB=$${RANLIB}" \
bffcbe34 41709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41710 install-info) \
8ec98d6c
NN
41711 || exit 1
41712
d5eec917 41713@endif expect
8ec98d6c 41714
d4954b6d
DD
41715.PHONY: maybe-install-pdf-expect install-pdf-expect
41716maybe-install-pdf-expect:
41717@if expect
41718maybe-install-pdf-expect: install-pdf-expect
41719
41720install-pdf-expect: \
41721 configure-expect \
41722 pdf-expect
41723 @: $(MAKE); $(unstage)
41724 @[ -f ./expect/Makefile ] || exit 0; \
41725 r=`${PWD_COMMAND}`; export r; \
41726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41727 $(HOST_EXPORTS) \
41728 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41730 done; \
41731 echo "Doing install-pdf in expect" ; \
41732 (cd $(HOST_SUBDIR)/expect && \
41733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41735 "RANLIB=$${RANLIB}" \
bffcbe34 41736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
41737 install-pdf) \
41738 || exit 1
41739
41740@endif expect
41741
83c9add4
CD
41742.PHONY: maybe-install-html-expect install-html-expect
41743maybe-install-html-expect:
41744@if expect
41745maybe-install-html-expect: install-html-expect
41746
41747install-html-expect: \
41748 configure-expect \
41749 html-expect
41750 @: $(MAKE); $(unstage)
41751 @[ -f ./expect/Makefile ] || exit 0; \
41752 r=`${PWD_COMMAND}`; export r; \
41753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41754 $(HOST_EXPORTS) \
41755 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
41756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41757 done; \
41758 echo "Doing install-html in expect" ; \
41759 (cd $(HOST_SUBDIR)/expect && \
41760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41762 "RANLIB=$${RANLIB}" \
bffcbe34 41763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
41764 install-html) \
41765 || exit 1
41766
41767@endif expect
41768
d5eec917
PB
41769.PHONY: maybe-installcheck-expect installcheck-expect
41770maybe-installcheck-expect:
41771@if expect
41772maybe-installcheck-expect: installcheck-expect
8ec98d6c 41773
d5eec917
PB
41774installcheck-expect: \
41775 configure-expect
15b527ca 41776 @: $(MAKE); $(unstage)
d5eec917 41777 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
41778 r=`${PWD_COMMAND}`; export r; \
41779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41780 $(HOST_EXPORTS) \
6a19fd82 41781 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41783 done; \
d5eec917 41784 echo "Doing installcheck in expect" ; \
7fc2ca22 41785 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41788 "RANLIB=$${RANLIB}" \
bffcbe34 41789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41790 installcheck) \
8ec98d6c
NN
41791 || exit 1
41792
d5eec917 41793@endif expect
8ec98d6c 41794
d5eec917
PB
41795.PHONY: maybe-mostlyclean-expect mostlyclean-expect
41796maybe-mostlyclean-expect:
41797@if expect
41798maybe-mostlyclean-expect: mostlyclean-expect
8ec98d6c 41799
d5eec917 41800mostlyclean-expect:
15b527ca 41801 @: $(MAKE); $(unstage)
d5eec917 41802 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
41803 r=`${PWD_COMMAND}`; export r; \
41804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41805 $(HOST_EXPORTS) \
6a19fd82 41806 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41808 done; \
d5eec917 41809 echo "Doing mostlyclean in expect" ; \
7fc2ca22 41810 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41813 "RANLIB=$${RANLIB}" \
bffcbe34 41814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41815 mostlyclean) \
8ec98d6c
NN
41816 || exit 1
41817
d5eec917 41818@endif expect
8ec98d6c 41819
d5eec917
PB
41820.PHONY: maybe-clean-expect clean-expect
41821maybe-clean-expect:
41822@if expect
41823maybe-clean-expect: clean-expect
8ec98d6c 41824
d5eec917 41825clean-expect:
15b527ca 41826 @: $(MAKE); $(unstage)
d5eec917 41827 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
41828 r=`${PWD_COMMAND}`; export r; \
41829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41830 $(HOST_EXPORTS) \
6a19fd82 41831 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41833 done; \
d5eec917 41834 echo "Doing clean in expect" ; \
7fc2ca22 41835 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41838 "RANLIB=$${RANLIB}" \
bffcbe34 41839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41840 clean) \
8ec98d6c
NN
41841 || exit 1
41842
d5eec917 41843@endif expect
8ec98d6c 41844
d5eec917
PB
41845.PHONY: maybe-distclean-expect distclean-expect
41846maybe-distclean-expect:
41847@if expect
41848maybe-distclean-expect: distclean-expect
8ec98d6c 41849
d5eec917 41850distclean-expect:
15b527ca 41851 @: $(MAKE); $(unstage)
d5eec917 41852 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c
NN
41853 r=`${PWD_COMMAND}`; export r; \
41854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41855 $(HOST_EXPORTS) \
6a19fd82 41856 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41858 done; \
d5eec917 41859 echo "Doing distclean in expect" ; \
7fc2ca22 41860 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41863 "RANLIB=$${RANLIB}" \
bffcbe34 41864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41865 distclean) \
8ec98d6c
NN
41866 || exit 1
41867
d5eec917 41868@endif expect
8ec98d6c 41869
d5eec917
PB
41870.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
41871maybe-maintainer-clean-expect:
41872@if expect
41873maybe-maintainer-clean-expect: maintainer-clean-expect
8ec98d6c 41874
d5eec917 41875maintainer-clean-expect:
15b527ca 41876 @: $(MAKE); $(unstage)
d5eec917 41877 @[ -f ./expect/Makefile ] || exit 0; \
8ec98d6c 41878 r=`${PWD_COMMAND}`; export r; \
5230d454 41879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41880 $(HOST_EXPORTS) \
6a19fd82 41881 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41883 done; \
d5eec917 41884 echo "Doing maintainer-clean in expect" ; \
7fc2ca22 41885 (cd $(HOST_SUBDIR)/expect && \
8ec98d6c
NN
41886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41888 "RANLIB=$${RANLIB}" \
bffcbe34 41889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 41890 maintainer-clean) \
8ec98d6c 41891 || exit 1
8ecc6504 41892
d5eec917 41893@endif expect
8ecc6504 41894
8ec98d6c 41895
f0fdfd34 41896
d5eec917
PB
41897.PHONY: configure-guile maybe-configure-guile
41898maybe-configure-guile:
e1e5148c
CD
41899@if gcc-bootstrap
41900configure-guile: stage_current
41901@endif gcc-bootstrap
d5eec917
PB
41902@if guile
41903maybe-configure-guile: configure-guile
ec92c4d6 41904configure-guile:
15b527ca 41905 @: $(MAKE); $(unstage)
ec92c4d6 41906 @r=`${PWD_COMMAND}`; export r; \
5230d454 41907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
41908 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
41909 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
5074489a 41910 $(HOST_EXPORTS) \
f0fdfd34
PB
41911 echo Configuring in $(HOST_SUBDIR)/guile; \
41912 cd "$(HOST_SUBDIR)/guile" || exit 1; \
94f860c0 41913 case $(srcdir) in \
7fc2ca22
PB
41914 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41915 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
41916 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 41917 esac; \
7fc2ca22
PB
41918 srcdiroption="--srcdir=$${topdir}/guile"; \
41919 libsrcdir="$$s/guile"; \
94f860c0 41920 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
41921 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
41922 --target=${target_alias} $${srcdiroption} \
94f860c0 41923 || exit 1
d5eec917 41924@endif guile
94f860c0 41925
f0fdfd34
PB
41926
41927
a8a96878
PB
41928
41929
d5eec917
PB
41930.PHONY: all-guile maybe-all-guile
41931maybe-all-guile:
e1e5148c
CD
41932@if gcc-bootstrap
41933all-guile: stage_current
41934@endif gcc-bootstrap
d5eec917 41935@if guile
5e6b1f07 41936TARGET-guile=all
d5eec917
PB
41937maybe-all-guile: all-guile
41938all-guile: configure-guile
15b527ca 41939 @: $(MAKE); $(unstage)
5230d454
L
41940 @r=`${PWD_COMMAND}`; export r; \
41941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 41942 $(HOST_EXPORTS) \
7fc2ca22 41943 (cd $(HOST_SUBDIR)/guile && \
6532abb6
PB
41944 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
41945 $(TARGET-guile))
d5eec917 41946@endif guile
8ecc6504 41947
f0fdfd34 41948
a8a96878
PB
41949
41950
d5eec917
PB
41951.PHONY: check-guile maybe-check-guile
41952maybe-check-guile:
41953@if guile
41954maybe-check-guile: check-guile
8ecc6504 41955
d5eec917 41956check-guile:
15b527ca 41957 @: $(MAKE); $(unstage)
5230d454
L
41958 @r=`${PWD_COMMAND}`; export r; \
41959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41960 $(HOST_EXPORTS) \
7fc2ca22
PB
41961 (cd $(HOST_SUBDIR)/guile && \
41962 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 41963
d5eec917 41964@endif guile
70ffc148 41965
d5eec917
PB
41966.PHONY: install-guile maybe-install-guile
41967maybe-install-guile:
41968@if guile
41969maybe-install-guile: install-guile
41970
41971install-guile: installdirs
15b527ca 41972 @: $(MAKE); $(unstage)
5230d454
L
41973 @r=`${PWD_COMMAND}`; export r; \
41974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41975 $(HOST_EXPORTS) \
7fc2ca22 41976 (cd $(HOST_SUBDIR)/guile && \
93c60b6d 41977 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ec98d6c 41978
d5eec917 41979@endif guile
8ec98d6c 41980
39bbbb69 41981# Other targets (info, dvi, pdf, etc.)
8ec98d6c 41982
d5eec917
PB
41983.PHONY: maybe-info-guile info-guile
41984maybe-info-guile:
41985@if guile
41986maybe-info-guile: info-guile
8ec98d6c 41987
d5eec917
PB
41988info-guile: \
41989 configure-guile
15b527ca 41990 @: $(MAKE); $(unstage)
d5eec917 41991 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
41992 r=`${PWD_COMMAND}`; export r; \
41993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 41994 $(HOST_EXPORTS) \
6a19fd82 41995 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
41996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41997 done; \
d5eec917 41998 echo "Doing info in guile" ; \
7fc2ca22 41999 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42002 "RANLIB=$${RANLIB}" \
bffcbe34 42003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42004 info) \
8ec98d6c
NN
42005 || exit 1
42006
d5eec917 42007@endif guile
8ec98d6c 42008
d5eec917
PB
42009.PHONY: maybe-dvi-guile dvi-guile
42010maybe-dvi-guile:
42011@if guile
42012maybe-dvi-guile: dvi-guile
8ec98d6c 42013
d5eec917
PB
42014dvi-guile: \
42015 configure-guile
15b527ca 42016 @: $(MAKE); $(unstage)
d5eec917 42017 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42018 r=`${PWD_COMMAND}`; export r; \
42019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42020 $(HOST_EXPORTS) \
6a19fd82 42021 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42023 done; \
d5eec917 42024 echo "Doing dvi in guile" ; \
7fc2ca22 42025 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42028 "RANLIB=$${RANLIB}" \
bffcbe34 42029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42030 dvi) \
8ec98d6c
NN
42031 || exit 1
42032
d5eec917 42033@endif guile
8ec98d6c 42034
39bbbb69
DD
42035.PHONY: maybe-pdf-guile pdf-guile
42036maybe-pdf-guile:
42037@if guile
42038maybe-pdf-guile: pdf-guile
42039
42040pdf-guile: \
42041 configure-guile
42042 @: $(MAKE); $(unstage)
42043 @[ -f ./guile/Makefile ] || exit 0; \
42044 r=`${PWD_COMMAND}`; export r; \
42045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42046 $(HOST_EXPORTS) \
42047 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42049 done; \
42050 echo "Doing pdf in guile" ; \
42051 (cd $(HOST_SUBDIR)/guile && \
42052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42054 "RANLIB=$${RANLIB}" \
bffcbe34 42055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
42056 pdf) \
42057 || exit 1
42058
42059@endif guile
42060
b6fb961f
MS
42061.PHONY: maybe-html-guile html-guile
42062maybe-html-guile:
42063@if guile
42064maybe-html-guile: html-guile
42065
42066html-guile: \
42067 configure-guile
15b527ca 42068 @: $(MAKE); $(unstage)
b6fb961f
MS
42069 @[ -f ./guile/Makefile ] || exit 0; \
42070 r=`${PWD_COMMAND}`; export r; \
42071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
42072 $(HOST_EXPORTS) \
42073 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42075 done; \
42076 echo "Doing html in guile" ; \
7fc2ca22 42077 (cd $(HOST_SUBDIR)/guile && \
b6fb961f
MS
42078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42080 "RANLIB=$${RANLIB}" \
bffcbe34 42081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
42082 html) \
42083 || exit 1
42084
42085@endif guile
42086
d5eec917
PB
42087.PHONY: maybe-TAGS-guile TAGS-guile
42088maybe-TAGS-guile:
42089@if guile
42090maybe-TAGS-guile: TAGS-guile
8ec98d6c 42091
d5eec917
PB
42092TAGS-guile: \
42093 configure-guile
15b527ca 42094 @: $(MAKE); $(unstage)
d5eec917 42095 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42096 r=`${PWD_COMMAND}`; export r; \
42097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42098 $(HOST_EXPORTS) \
6a19fd82 42099 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42101 done; \
d5eec917 42102 echo "Doing TAGS in guile" ; \
7fc2ca22 42103 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42106 "RANLIB=$${RANLIB}" \
bffcbe34 42107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42108 TAGS) \
8ec98d6c
NN
42109 || exit 1
42110
d5eec917 42111@endif guile
8ec98d6c 42112
d5eec917
PB
42113.PHONY: maybe-install-info-guile install-info-guile
42114maybe-install-info-guile:
42115@if guile
42116maybe-install-info-guile: install-info-guile
8ec98d6c 42117
d5eec917
PB
42118install-info-guile: \
42119 configure-guile \
42120 info-guile
15b527ca 42121 @: $(MAKE); $(unstage)
d5eec917 42122 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42123 r=`${PWD_COMMAND}`; export r; \
42124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42125 $(HOST_EXPORTS) \
6a19fd82 42126 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42128 done; \
d5eec917 42129 echo "Doing install-info in guile" ; \
7fc2ca22 42130 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42133 "RANLIB=$${RANLIB}" \
bffcbe34 42134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42135 install-info) \
8ec98d6c
NN
42136 || exit 1
42137
d5eec917 42138@endif guile
8ec98d6c 42139
d4954b6d
DD
42140.PHONY: maybe-install-pdf-guile install-pdf-guile
42141maybe-install-pdf-guile:
42142@if guile
42143maybe-install-pdf-guile: install-pdf-guile
42144
42145install-pdf-guile: \
42146 configure-guile \
42147 pdf-guile
42148 @: $(MAKE); $(unstage)
42149 @[ -f ./guile/Makefile ] || exit 0; \
42150 r=`${PWD_COMMAND}`; export r; \
42151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42152 $(HOST_EXPORTS) \
42153 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42155 done; \
42156 echo "Doing install-pdf in guile" ; \
42157 (cd $(HOST_SUBDIR)/guile && \
42158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42160 "RANLIB=$${RANLIB}" \
bffcbe34 42161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
42162 install-pdf) \
42163 || exit 1
42164
42165@endif guile
42166
83c9add4
CD
42167.PHONY: maybe-install-html-guile install-html-guile
42168maybe-install-html-guile:
42169@if guile
42170maybe-install-html-guile: install-html-guile
42171
42172install-html-guile: \
42173 configure-guile \
42174 html-guile
42175 @: $(MAKE); $(unstage)
42176 @[ -f ./guile/Makefile ] || exit 0; \
42177 r=`${PWD_COMMAND}`; export r; \
42178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42179 $(HOST_EXPORTS) \
42180 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42182 done; \
42183 echo "Doing install-html in guile" ; \
42184 (cd $(HOST_SUBDIR)/guile && \
42185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42187 "RANLIB=$${RANLIB}" \
bffcbe34 42188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
42189 install-html) \
42190 || exit 1
42191
42192@endif guile
42193
d5eec917
PB
42194.PHONY: maybe-installcheck-guile installcheck-guile
42195maybe-installcheck-guile:
42196@if guile
42197maybe-installcheck-guile: installcheck-guile
8ec98d6c 42198
d5eec917
PB
42199installcheck-guile: \
42200 configure-guile
15b527ca 42201 @: $(MAKE); $(unstage)
d5eec917 42202 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42203 r=`${PWD_COMMAND}`; export r; \
42204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42205 $(HOST_EXPORTS) \
6a19fd82 42206 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42208 done; \
d5eec917 42209 echo "Doing installcheck in guile" ; \
7fc2ca22 42210 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42213 "RANLIB=$${RANLIB}" \
bffcbe34 42214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42215 installcheck) \
8ec98d6c
NN
42216 || exit 1
42217
d5eec917 42218@endif guile
8ec98d6c 42219
d5eec917
PB
42220.PHONY: maybe-mostlyclean-guile mostlyclean-guile
42221maybe-mostlyclean-guile:
42222@if guile
42223maybe-mostlyclean-guile: mostlyclean-guile
8ec98d6c 42224
d5eec917 42225mostlyclean-guile:
15b527ca 42226 @: $(MAKE); $(unstage)
d5eec917 42227 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42228 r=`${PWD_COMMAND}`; export r; \
42229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42230 $(HOST_EXPORTS) \
6a19fd82 42231 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42233 done; \
d5eec917 42234 echo "Doing mostlyclean in guile" ; \
7fc2ca22 42235 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42238 "RANLIB=$${RANLIB}" \
bffcbe34 42239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42240 mostlyclean) \
8ec98d6c
NN
42241 || exit 1
42242
d5eec917 42243@endif guile
8ec98d6c 42244
d5eec917
PB
42245.PHONY: maybe-clean-guile clean-guile
42246maybe-clean-guile:
42247@if guile
42248maybe-clean-guile: clean-guile
8ec98d6c 42249
d5eec917 42250clean-guile:
15b527ca 42251 @: $(MAKE); $(unstage)
d5eec917 42252 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42253 r=`${PWD_COMMAND}`; export r; \
42254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42255 $(HOST_EXPORTS) \
6a19fd82 42256 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42258 done; \
d5eec917 42259 echo "Doing clean in guile" ; \
7fc2ca22 42260 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42263 "RANLIB=$${RANLIB}" \
bffcbe34 42264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42265 clean) \
8ec98d6c
NN
42266 || exit 1
42267
d5eec917 42268@endif guile
8ec98d6c 42269
d5eec917
PB
42270.PHONY: maybe-distclean-guile distclean-guile
42271maybe-distclean-guile:
42272@if guile
42273maybe-distclean-guile: distclean-guile
8ec98d6c 42274
d5eec917 42275distclean-guile:
15b527ca 42276 @: $(MAKE); $(unstage)
d5eec917 42277 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42278 r=`${PWD_COMMAND}`; export r; \
42279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42280 $(HOST_EXPORTS) \
6a19fd82 42281 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42283 done; \
d5eec917 42284 echo "Doing distclean in guile" ; \
7fc2ca22 42285 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42288 "RANLIB=$${RANLIB}" \
bffcbe34 42289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42290 distclean) \
8ec98d6c
NN
42291 || exit 1
42292
d5eec917 42293@endif guile
8ec98d6c 42294
d5eec917
PB
42295.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
42296maybe-maintainer-clean-guile:
42297@if guile
42298maybe-maintainer-clean-guile: maintainer-clean-guile
8ec98d6c 42299
d5eec917 42300maintainer-clean-guile:
15b527ca 42301 @: $(MAKE); $(unstage)
d5eec917 42302 @[ -f ./guile/Makefile ] || exit 0; \
8ec98d6c
NN
42303 r=`${PWD_COMMAND}`; export r; \
42304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42305 $(HOST_EXPORTS) \
6a19fd82 42306 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42308 done; \
d5eec917 42309 echo "Doing maintainer-clean in guile" ; \
7fc2ca22 42310 (cd $(HOST_SUBDIR)/guile && \
8ec98d6c
NN
42311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42313 "RANLIB=$${RANLIB}" \
bffcbe34 42314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42315 maintainer-clean) \
8ec98d6c
NN
42316 || exit 1
42317
d5eec917 42318@endif guile
8ecc6504
NN
42319
42320
f0fdfd34 42321
d5eec917
PB
42322.PHONY: configure-tk maybe-configure-tk
42323maybe-configure-tk:
e1e5148c
CD
42324@if gcc-bootstrap
42325configure-tk: stage_current
42326@endif gcc-bootstrap
d5eec917
PB
42327@if tk
42328maybe-configure-tk: configure-tk
ec92c4d6 42329configure-tk:
15b527ca 42330 @: $(MAKE); $(unstage)
ec92c4d6 42331 @r=`${PWD_COMMAND}`; export r; \
5230d454 42332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
42333 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
42334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
5074489a 42335 $(HOST_EXPORTS) \
f0fdfd34
PB
42336 echo Configuring in $(HOST_SUBDIR)/tk; \
42337 cd "$(HOST_SUBDIR)/tk" || exit 1; \
94f860c0 42338 case $(srcdir) in \
7fc2ca22
PB
42339 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42340 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
42341 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 42342 esac; \
7fc2ca22
PB
42343 srcdiroption="--srcdir=$${topdir}/tk"; \
42344 libsrcdir="$$s/tk"; \
94f860c0 42345 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
42346 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
42347 --target=${target_alias} $${srcdiroption} \
94f860c0 42348 || exit 1
d5eec917 42349@endif tk
94f860c0 42350
f0fdfd34
PB
42351
42352
a8a96878
PB
42353
42354
d5eec917
PB
42355.PHONY: all-tk maybe-all-tk
42356maybe-all-tk:
e1e5148c
CD
42357@if gcc-bootstrap
42358all-tk: stage_current
42359@endif gcc-bootstrap
d5eec917 42360@if tk
5e6b1f07 42361TARGET-tk=all
d5eec917
PB
42362maybe-all-tk: all-tk
42363all-tk: configure-tk
15b527ca 42364 @: $(MAKE); $(unstage)
5230d454
L
42365 @r=`${PWD_COMMAND}`; export r; \
42366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 42367 $(HOST_EXPORTS) \
7fc2ca22 42368 (cd $(HOST_SUBDIR)/tk && \
6532abb6
PB
42369 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS) \
42370 $(TARGET-tk))
d5eec917 42371@endif tk
8ecc6504 42372
f0fdfd34 42373
a8a96878
PB
42374
42375
d5eec917
PB
42376.PHONY: check-tk maybe-check-tk
42377maybe-check-tk:
42378@if tk
42379maybe-check-tk: check-tk
8ecc6504 42380
d5eec917 42381check-tk:
15b527ca 42382 @: $(MAKE); $(unstage)
5230d454
L
42383 @r=`${PWD_COMMAND}`; export r; \
42384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42385 $(HOST_EXPORTS) \
7fc2ca22
PB
42386 (cd $(HOST_SUBDIR)/tk && \
42387 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
8ecc6504 42388
d5eec917 42389@endif tk
8ecc6504 42390
d5eec917
PB
42391.PHONY: install-tk maybe-install-tk
42392maybe-install-tk:
42393@if tk
42394maybe-install-tk: install-tk
70ffc148 42395
d5eec917 42396install-tk: installdirs
15b527ca 42397 @: $(MAKE); $(unstage)
5230d454
L
42398 @r=`${PWD_COMMAND}`; export r; \
42399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42400 $(HOST_EXPORTS) \
7fc2ca22 42401 (cd $(HOST_SUBDIR)/tk && \
93c60b6d 42402 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
8ecc6504 42403
d5eec917 42404@endif tk
8ecc6504 42405
39bbbb69 42406# Other targets (info, dvi, pdf, etc.)
8ec98d6c 42407
d5eec917
PB
42408.PHONY: maybe-info-tk info-tk
42409maybe-info-tk:
42410@if tk
42411maybe-info-tk: info-tk
8ec98d6c 42412
d5eec917
PB
42413info-tk: \
42414 configure-tk
15b527ca 42415 @: $(MAKE); $(unstage)
d5eec917 42416 @[ -f ./tk/Makefile ] || exit 0; \
5230d454
L
42417 r=`${PWD_COMMAND}`; export r; \
42418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42419 $(HOST_EXPORTS) \
6a19fd82 42420 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42422 done; \
d5eec917 42423 echo "Doing info in tk" ; \
7fc2ca22 42424 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42427 "RANLIB=$${RANLIB}" \
bffcbe34 42428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42429 info) \
94f860c0
NN
42430 || exit 1
42431
d5eec917 42432@endif tk
8ec98d6c 42433
d5eec917
PB
42434.PHONY: maybe-dvi-tk dvi-tk
42435maybe-dvi-tk:
42436@if tk
42437maybe-dvi-tk: dvi-tk
8ec98d6c 42438
d5eec917
PB
42439dvi-tk: \
42440 configure-tk
15b527ca 42441 @: $(MAKE); $(unstage)
d5eec917 42442 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 42443 r=`${PWD_COMMAND}`; export r; \
5230d454 42444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42445 $(HOST_EXPORTS) \
6a19fd82 42446 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42448 done; \
d5eec917 42449 echo "Doing dvi in tk" ; \
7fc2ca22 42450 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42453 "RANLIB=$${RANLIB}" \
bffcbe34 42454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42455 dvi) \
8ec98d6c 42456 || exit 1
8ecc6504 42457
d5eec917 42458@endif tk
8ecc6504 42459
39bbbb69
DD
42460.PHONY: maybe-pdf-tk pdf-tk
42461maybe-pdf-tk:
42462@if tk
42463maybe-pdf-tk: pdf-tk
42464
42465pdf-tk: \
42466 configure-tk
42467 @: $(MAKE); $(unstage)
42468 @[ -f ./tk/Makefile ] || exit 0; \
42469 r=`${PWD_COMMAND}`; export r; \
42470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42471 $(HOST_EXPORTS) \
42472 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42474 done; \
42475 echo "Doing pdf in tk" ; \
42476 (cd $(HOST_SUBDIR)/tk && \
42477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42479 "RANLIB=$${RANLIB}" \
bffcbe34 42480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
42481 pdf) \
42482 || exit 1
42483
42484@endif tk
42485
b6fb961f
MS
42486.PHONY: maybe-html-tk html-tk
42487maybe-html-tk:
42488@if tk
42489maybe-html-tk: html-tk
42490
42491html-tk: \
42492 configure-tk
15b527ca 42493 @: $(MAKE); $(unstage)
b6fb961f
MS
42494 @[ -f ./tk/Makefile ] || exit 0; \
42495 r=`${PWD_COMMAND}`; export r; \
42496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
42497 $(HOST_EXPORTS) \
42498 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42500 done; \
42501 echo "Doing html in tk" ; \
7fc2ca22 42502 (cd $(HOST_SUBDIR)/tk && \
b6fb961f
MS
42503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42505 "RANLIB=$${RANLIB}" \
bffcbe34 42506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
42507 html) \
42508 || exit 1
42509
42510@endif tk
42511
d5eec917
PB
42512.PHONY: maybe-TAGS-tk TAGS-tk
42513maybe-TAGS-tk:
42514@if tk
42515maybe-TAGS-tk: TAGS-tk
8ec98d6c 42516
d5eec917
PB
42517TAGS-tk: \
42518 configure-tk
15b527ca 42519 @: $(MAKE); $(unstage)
d5eec917 42520 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 42521 r=`${PWD_COMMAND}`; export r; \
5230d454 42522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42523 $(HOST_EXPORTS) \
6a19fd82 42524 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42526 done; \
d5eec917 42527 echo "Doing TAGS in tk" ; \
7fc2ca22 42528 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42531 "RANLIB=$${RANLIB}" \
bffcbe34 42532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42533 TAGS) \
8ec98d6c 42534 || exit 1
8ecc6504 42535
d5eec917 42536@endif tk
8ecc6504 42537
d5eec917
PB
42538.PHONY: maybe-install-info-tk install-info-tk
42539maybe-install-info-tk:
42540@if tk
42541maybe-install-info-tk: install-info-tk
8ec98d6c 42542
d5eec917
PB
42543install-info-tk: \
42544 configure-tk \
42545 info-tk
15b527ca 42546 @: $(MAKE); $(unstage)
d5eec917 42547 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
42548 r=`${PWD_COMMAND}`; export r; \
42549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42550 $(HOST_EXPORTS) \
6a19fd82 42551 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42553 done; \
d5eec917 42554 echo "Doing install-info in tk" ; \
7fc2ca22 42555 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42558 "RANLIB=$${RANLIB}" \
bffcbe34 42559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42560 install-info) \
8ec98d6c
NN
42561 || exit 1
42562
d5eec917 42563@endif tk
8ec98d6c 42564
d4954b6d
DD
42565.PHONY: maybe-install-pdf-tk install-pdf-tk
42566maybe-install-pdf-tk:
42567@if tk
42568maybe-install-pdf-tk: install-pdf-tk
42569
42570install-pdf-tk: \
42571 configure-tk \
42572 pdf-tk
42573 @: $(MAKE); $(unstage)
42574 @[ -f ./tk/Makefile ] || exit 0; \
42575 r=`${PWD_COMMAND}`; export r; \
42576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42577 $(HOST_EXPORTS) \
42578 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42580 done; \
42581 echo "Doing install-pdf in tk" ; \
42582 (cd $(HOST_SUBDIR)/tk && \
42583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42585 "RANLIB=$${RANLIB}" \
bffcbe34 42586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
42587 install-pdf) \
42588 || exit 1
42589
42590@endif tk
42591
83c9add4
CD
42592.PHONY: maybe-install-html-tk install-html-tk
42593maybe-install-html-tk:
42594@if tk
42595maybe-install-html-tk: install-html-tk
42596
42597install-html-tk: \
42598 configure-tk \
42599 html-tk
42600 @: $(MAKE); $(unstage)
42601 @[ -f ./tk/Makefile ] || exit 0; \
42602 r=`${PWD_COMMAND}`; export r; \
42603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42604 $(HOST_EXPORTS) \
42605 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
42606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42607 done; \
42608 echo "Doing install-html in tk" ; \
42609 (cd $(HOST_SUBDIR)/tk && \
42610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42612 "RANLIB=$${RANLIB}" \
bffcbe34 42613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
42614 install-html) \
42615 || exit 1
42616
42617@endif tk
42618
d5eec917
PB
42619.PHONY: maybe-installcheck-tk installcheck-tk
42620maybe-installcheck-tk:
42621@if tk
42622maybe-installcheck-tk: installcheck-tk
8ec98d6c 42623
d5eec917
PB
42624installcheck-tk: \
42625 configure-tk
15b527ca 42626 @: $(MAKE); $(unstage)
d5eec917 42627 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
42628 r=`${PWD_COMMAND}`; export r; \
42629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42630 $(HOST_EXPORTS) \
6a19fd82 42631 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42633 done; \
d5eec917 42634 echo "Doing installcheck in tk" ; \
7fc2ca22 42635 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42638 "RANLIB=$${RANLIB}" \
bffcbe34 42639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42640 installcheck) \
8ec98d6c
NN
42641 || exit 1
42642
d5eec917 42643@endif tk
8ec98d6c 42644
d5eec917
PB
42645.PHONY: maybe-mostlyclean-tk mostlyclean-tk
42646maybe-mostlyclean-tk:
42647@if tk
42648maybe-mostlyclean-tk: mostlyclean-tk
8ec98d6c 42649
d5eec917 42650mostlyclean-tk:
15b527ca 42651 @: $(MAKE); $(unstage)
d5eec917 42652 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
42653 r=`${PWD_COMMAND}`; export r; \
42654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42655 $(HOST_EXPORTS) \
6a19fd82 42656 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42658 done; \
d5eec917 42659 echo "Doing mostlyclean in tk" ; \
7fc2ca22 42660 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42663 "RANLIB=$${RANLIB}" \
bffcbe34 42664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42665 mostlyclean) \
8ec98d6c
NN
42666 || exit 1
42667
d5eec917 42668@endif tk
8ec98d6c 42669
d5eec917
PB
42670.PHONY: maybe-clean-tk clean-tk
42671maybe-clean-tk:
42672@if tk
42673maybe-clean-tk: clean-tk
8ec98d6c 42674
d5eec917 42675clean-tk:
15b527ca 42676 @: $(MAKE); $(unstage)
d5eec917 42677 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
42678 r=`${PWD_COMMAND}`; export r; \
42679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42680 $(HOST_EXPORTS) \
6a19fd82 42681 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42683 done; \
d5eec917 42684 echo "Doing clean in tk" ; \
7fc2ca22 42685 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42688 "RANLIB=$${RANLIB}" \
bffcbe34 42689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42690 clean) \
8ec98d6c
NN
42691 || exit 1
42692
d5eec917 42693@endif tk
8ec98d6c 42694
d5eec917
PB
42695.PHONY: maybe-distclean-tk distclean-tk
42696maybe-distclean-tk:
42697@if tk
42698maybe-distclean-tk: distclean-tk
8ec98d6c 42699
d5eec917 42700distclean-tk:
15b527ca 42701 @: $(MAKE); $(unstage)
d5eec917 42702 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c
NN
42703 r=`${PWD_COMMAND}`; export r; \
42704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42705 $(HOST_EXPORTS) \
6a19fd82 42706 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42708 done; \
d5eec917 42709 echo "Doing distclean in tk" ; \
7fc2ca22 42710 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42713 "RANLIB=$${RANLIB}" \
bffcbe34 42714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42715 distclean) \
8ec98d6c
NN
42716 || exit 1
42717
d5eec917 42718@endif tk
8ec98d6c 42719
d5eec917
PB
42720.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
42721maybe-maintainer-clean-tk:
42722@if tk
42723maybe-maintainer-clean-tk: maintainer-clean-tk
70ffc148 42724
d5eec917 42725maintainer-clean-tk:
15b527ca 42726 @: $(MAKE); $(unstage)
d5eec917 42727 @[ -f ./tk/Makefile ] || exit 0; \
8ec98d6c 42728 r=`${PWD_COMMAND}`; export r; \
5230d454 42729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42730 $(HOST_EXPORTS) \
6a19fd82 42731 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
8ec98d6c
NN
42732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42733 done; \
d5eec917 42734 echo "Doing maintainer-clean in tk" ; \
7fc2ca22 42735 (cd $(HOST_SUBDIR)/tk && \
8ec98d6c
NN
42736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42738 "RANLIB=$${RANLIB}" \
bffcbe34 42739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42740 maintainer-clean) \
8ec98d6c 42741 || exit 1
8ecc6504 42742
d5eec917 42743@endif tk
8ecc6504 42744
8ec98d6c 42745
f0fdfd34 42746
d5eec917
PB
42747.PHONY: configure-libtermcap maybe-configure-libtermcap
42748maybe-configure-libtermcap:
e1e5148c
CD
42749@if gcc-bootstrap
42750configure-libtermcap: stage_current
42751@endif gcc-bootstrap
d5eec917
PB
42752@if libtermcap
42753maybe-configure-libtermcap: configure-libtermcap
ec92c4d6 42754configure-libtermcap:
15b527ca 42755 @: $(MAKE); $(unstage)
ec92c4d6 42756 @r=`${PWD_COMMAND}`; export r; \
d5eec917 42757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
42758 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
42759 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
5074489a 42760 $(HOST_EXPORTS) \
f0fdfd34
PB
42761 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
42762 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
d5eec917 42763 case $(srcdir) in \
7fc2ca22
PB
42764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42765 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
42766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d5eec917 42767 esac; \
7fc2ca22
PB
42768 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
42769 libsrcdir="$$s/libtermcap"; \
d5eec917 42770 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
42771 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
42772 --target=${target_alias} $${srcdiroption} \
d5eec917
PB
42773 || exit 1
42774@endif libtermcap
42775
f0fdfd34
PB
42776
42777
a8a96878
PB
42778
42779
d5eec917
PB
42780.PHONY: all-libtermcap maybe-all-libtermcap
42781maybe-all-libtermcap:
e1e5148c
CD
42782@if gcc-bootstrap
42783all-libtermcap: stage_current
42784@endif gcc-bootstrap
d5eec917 42785@if libtermcap
5e6b1f07 42786TARGET-libtermcap=all
d5eec917
PB
42787maybe-all-libtermcap: all-libtermcap
42788all-libtermcap: configure-libtermcap
15b527ca 42789 @: $(MAKE); $(unstage)
d5eec917
PB
42790 @r=`${PWD_COMMAND}`; export r; \
42791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 42792 $(HOST_EXPORTS) \
7fc2ca22 42793 (cd $(HOST_SUBDIR)/libtermcap && \
6532abb6
PB
42794 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
42795 $(TARGET-libtermcap))
d5eec917
PB
42796@endif libtermcap
42797
f0fdfd34 42798
a8a96878
PB
42799
42800
d5eec917
PB
42801.PHONY: check-libtermcap maybe-check-libtermcap
42802maybe-check-libtermcap:
42803@if libtermcap
42804maybe-check-libtermcap: check-libtermcap
42805
42806check-libtermcap:
8ec98d6c 42807
a7e609d6 42808@endif libtermcap
8ec98d6c
NN
42809
42810.PHONY: install-libtermcap maybe-install-libtermcap
42811maybe-install-libtermcap:
a7e609d6
PB
42812@if libtermcap
42813maybe-install-libtermcap: install-libtermcap
8ec98d6c
NN
42814
42815install-libtermcap: installdirs
15b527ca 42816 @: $(MAKE); $(unstage)
5230d454
L
42817 @r=`${PWD_COMMAND}`; export r; \
42818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42819 $(HOST_EXPORTS) \
7fc2ca22 42820 (cd $(HOST_SUBDIR)/libtermcap && \
93c60b6d 42821 $(MAKE) $(FLAGS_TO_PASS) install)
8ecc6504 42822
a7e609d6 42823@endif libtermcap
8ecc6504 42824
39bbbb69 42825# Other targets (info, dvi, pdf, etc.)
70ffc148 42826
8ec98d6c
NN
42827.PHONY: maybe-info-libtermcap info-libtermcap
42828maybe-info-libtermcap:
a7e609d6
PB
42829@if libtermcap
42830maybe-info-libtermcap: info-libtermcap
8ec98d6c
NN
42831
42832info-libtermcap: \
42833 configure-libtermcap
15b527ca 42834 @: $(MAKE); $(unstage)
8ec98d6c
NN
42835 @[ -f ./libtermcap/Makefile ] || exit 0; \
42836 r=`${PWD_COMMAND}`; export r; \
5230d454 42837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42838 $(HOST_EXPORTS) \
d5eec917 42839 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42841 done; \
42842 echo "Doing info in libtermcap" ; \
7fc2ca22 42843 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
42844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42846 "RANLIB=$${RANLIB}" \
bffcbe34 42847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42848 info) \
8ec98d6c 42849 || exit 1
8ecc6504 42850
a7e609d6 42851@endif libtermcap
8ecc6504 42852
8ec98d6c
NN
42853.PHONY: maybe-dvi-libtermcap dvi-libtermcap
42854maybe-dvi-libtermcap:
a7e609d6
PB
42855@if libtermcap
42856maybe-dvi-libtermcap: dvi-libtermcap
8ec98d6c
NN
42857
42858dvi-libtermcap: \
42859 configure-libtermcap
15b527ca 42860 @: $(MAKE); $(unstage)
8ec98d6c
NN
42861 @[ -f ./libtermcap/Makefile ] || exit 0; \
42862 r=`${PWD_COMMAND}`; export r; \
42863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42864 $(HOST_EXPORTS) \
d5eec917 42865 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42867 done; \
42868 echo "Doing dvi in libtermcap" ; \
7fc2ca22 42869 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
42870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42872 "RANLIB=$${RANLIB}" \
bffcbe34 42873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42874 dvi) \
8ec98d6c
NN
42875 || exit 1
42876
a7e609d6 42877@endif libtermcap
8ec98d6c 42878
39bbbb69
DD
42879.PHONY: maybe-pdf-libtermcap pdf-libtermcap
42880maybe-pdf-libtermcap:
42881@if libtermcap
42882maybe-pdf-libtermcap: pdf-libtermcap
42883
42884pdf-libtermcap: \
42885 configure-libtermcap
42886 @: $(MAKE); $(unstage)
42887 @[ -f ./libtermcap/Makefile ] || exit 0; \
42888 r=`${PWD_COMMAND}`; export r; \
42889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42890 $(HOST_EXPORTS) \
42891 for flag in $(EXTRA_HOST_FLAGS) ; do \
42892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42893 done; \
42894 echo "Doing pdf in libtermcap" ; \
42895 (cd $(HOST_SUBDIR)/libtermcap && \
42896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42898 "RANLIB=$${RANLIB}" \
bffcbe34 42899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
42900 pdf) \
42901 || exit 1
42902
42903@endif libtermcap
42904
b6fb961f
MS
42905.PHONY: maybe-html-libtermcap html-libtermcap
42906maybe-html-libtermcap:
42907@if libtermcap
42908maybe-html-libtermcap: html-libtermcap
42909
42910html-libtermcap: \
42911 configure-libtermcap
15b527ca 42912 @: $(MAKE); $(unstage)
b6fb961f
MS
42913 @[ -f ./libtermcap/Makefile ] || exit 0; \
42914 r=`${PWD_COMMAND}`; export r; \
42915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
42916 $(HOST_EXPORTS) \
42917 for flag in $(EXTRA_HOST_FLAGS) ; do \
42918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42919 done; \
42920 echo "Doing html in libtermcap" ; \
7fc2ca22 42921 (cd $(HOST_SUBDIR)/libtermcap && \
b6fb961f
MS
42922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42924 "RANLIB=$${RANLIB}" \
bffcbe34 42925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
42926 html) \
42927 || exit 1
42928
42929@endif libtermcap
42930
8ec98d6c
NN
42931.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
42932maybe-TAGS-libtermcap:
a7e609d6
PB
42933@if libtermcap
42934maybe-TAGS-libtermcap: TAGS-libtermcap
8ec98d6c
NN
42935
42936TAGS-libtermcap: \
42937 configure-libtermcap
15b527ca 42938 @: $(MAKE); $(unstage)
8ec98d6c
NN
42939 @[ -f ./libtermcap/Makefile ] || exit 0; \
42940 r=`${PWD_COMMAND}`; export r; \
42941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42942 $(HOST_EXPORTS) \
d5eec917 42943 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42945 done; \
42946 echo "Doing TAGS in libtermcap" ; \
7fc2ca22 42947 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
42948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42950 "RANLIB=$${RANLIB}" \
bffcbe34 42951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42952 TAGS) \
8ec98d6c
NN
42953 || exit 1
42954
a7e609d6 42955@endif libtermcap
8ec98d6c
NN
42956
42957.PHONY: maybe-install-info-libtermcap install-info-libtermcap
42958maybe-install-info-libtermcap:
a7e609d6
PB
42959@if libtermcap
42960maybe-install-info-libtermcap: install-info-libtermcap
8ec98d6c
NN
42961
42962install-info-libtermcap: \
42963 configure-libtermcap \
42964 info-libtermcap
15b527ca 42965 @: $(MAKE); $(unstage)
8ec98d6c
NN
42966 @[ -f ./libtermcap/Makefile ] || exit 0; \
42967 r=`${PWD_COMMAND}`; export r; \
42968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 42969 $(HOST_EXPORTS) \
d5eec917 42970 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
42971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42972 done; \
42973 echo "Doing install-info in libtermcap" ; \
7fc2ca22 42974 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
42975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42977 "RANLIB=$${RANLIB}" \
bffcbe34 42978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 42979 install-info) \
8ec98d6c
NN
42980 || exit 1
42981
a7e609d6 42982@endif libtermcap
8ec98d6c 42983
d4954b6d
DD
42984.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
42985maybe-install-pdf-libtermcap:
42986@if libtermcap
42987maybe-install-pdf-libtermcap: install-pdf-libtermcap
42988
42989install-pdf-libtermcap: \
42990 configure-libtermcap \
42991 pdf-libtermcap
42992 @: $(MAKE); $(unstage)
42993 @[ -f ./libtermcap/Makefile ] || exit 0; \
42994 r=`${PWD_COMMAND}`; export r; \
42995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42996 $(HOST_EXPORTS) \
42997 for flag in $(EXTRA_HOST_FLAGS) ; do \
42998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42999 done; \
43000 echo "Doing install-pdf in libtermcap" ; \
43001 (cd $(HOST_SUBDIR)/libtermcap && \
43002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43004 "RANLIB=$${RANLIB}" \
bffcbe34 43005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
43006 install-pdf) \
43007 || exit 1
43008
43009@endif libtermcap
43010
83c9add4
CD
43011.PHONY: maybe-install-html-libtermcap install-html-libtermcap
43012maybe-install-html-libtermcap:
43013@if libtermcap
43014maybe-install-html-libtermcap: install-html-libtermcap
43015
43016install-html-libtermcap: \
43017 configure-libtermcap \
43018 html-libtermcap
43019 @: $(MAKE); $(unstage)
43020 @[ -f ./libtermcap/Makefile ] || exit 0; \
43021 r=`${PWD_COMMAND}`; export r; \
43022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43023 $(HOST_EXPORTS) \
43024 for flag in $(EXTRA_HOST_FLAGS) ; do \
43025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43026 done; \
43027 echo "Doing install-html in libtermcap" ; \
43028 (cd $(HOST_SUBDIR)/libtermcap && \
43029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43031 "RANLIB=$${RANLIB}" \
bffcbe34 43032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
43033 install-html) \
43034 || exit 1
43035
43036@endif libtermcap
43037
8ec98d6c
NN
43038.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
43039maybe-installcheck-libtermcap:
a7e609d6
PB
43040@if libtermcap
43041maybe-installcheck-libtermcap: installcheck-libtermcap
8ec98d6c
NN
43042
43043installcheck-libtermcap: \
43044 configure-libtermcap
15b527ca 43045 @: $(MAKE); $(unstage)
8ec98d6c
NN
43046 @[ -f ./libtermcap/Makefile ] || exit 0; \
43047 r=`${PWD_COMMAND}`; export r; \
43048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43049 $(HOST_EXPORTS) \
d5eec917 43050 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43052 done; \
43053 echo "Doing installcheck in libtermcap" ; \
7fc2ca22 43054 (cd $(HOST_SUBDIR)/libtermcap && \
8ec98d6c
NN
43055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43057 "RANLIB=$${RANLIB}" \
bffcbe34 43058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43059 installcheck) \
8ec98d6c
NN
43060 || exit 1
43061
a7e609d6 43062@endif libtermcap
8ec98d6c
NN
43063
43064.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
43065maybe-mostlyclean-libtermcap:
a7e609d6
PB
43066@if libtermcap
43067maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
8ec98d6c
NN
43068
43069# libtermcap doesn't support mostlyclean.
43070mostlyclean-libtermcap:
43071
a7e609d6 43072@endif libtermcap
8ec98d6c
NN
43073
43074.PHONY: maybe-clean-libtermcap clean-libtermcap
43075maybe-clean-libtermcap:
a7e609d6
PB
43076@if libtermcap
43077maybe-clean-libtermcap: clean-libtermcap
8ec98d6c
NN
43078
43079# libtermcap doesn't support clean.
43080clean-libtermcap:
43081
a7e609d6 43082@endif libtermcap
8ec98d6c
NN
43083
43084.PHONY: maybe-distclean-libtermcap distclean-libtermcap
43085maybe-distclean-libtermcap:
a7e609d6
PB
43086@if libtermcap
43087maybe-distclean-libtermcap: distclean-libtermcap
8ec98d6c
NN
43088
43089# libtermcap doesn't support distclean.
43090distclean-libtermcap:
43091
a7e609d6 43092@endif libtermcap
8ec98d6c
NN
43093
43094.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
43095maybe-maintainer-clean-libtermcap:
a7e609d6
PB
43096@if libtermcap
43097maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
8ec98d6c
NN
43098
43099# libtermcap doesn't support maintainer-clean.
43100maintainer-clean-libtermcap:
43101
a7e609d6 43102@endif libtermcap
8ec98d6c
NN
43103
43104
f0fdfd34 43105
8ec98d6c
NN
43106.PHONY: configure-utils maybe-configure-utils
43107maybe-configure-utils:
e1e5148c
CD
43108@if gcc-bootstrap
43109configure-utils: stage_current
43110@endif gcc-bootstrap
a7e609d6
PB
43111@if utils
43112maybe-configure-utils: configure-utils
ec92c4d6 43113configure-utils:
15b527ca 43114 @: $(MAKE); $(unstage)
ec92c4d6 43115 @r=`${PWD_COMMAND}`; export r; \
5230d454 43116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
43117 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
43118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
5074489a 43119 $(HOST_EXPORTS) \
f0fdfd34
PB
43120 echo Configuring in $(HOST_SUBDIR)/utils; \
43121 cd "$(HOST_SUBDIR)/utils" || exit 1; \
94f860c0 43122 case $(srcdir) in \
7fc2ca22
PB
43123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43124 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
43125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 43126 esac; \
7fc2ca22
PB
43127 srcdiroption="--srcdir=$${topdir}/utils"; \
43128 libsrcdir="$$s/utils"; \
94f860c0 43129 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
43130 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
43131 --target=${target_alias} $${srcdiroption} \
94f860c0 43132 || exit 1
a7e609d6 43133@endif utils
94f860c0 43134
f0fdfd34
PB
43135
43136
a8a96878
PB
43137
43138
8ec98d6c
NN
43139.PHONY: all-utils maybe-all-utils
43140maybe-all-utils:
e1e5148c
CD
43141@if gcc-bootstrap
43142all-utils: stage_current
43143@endif gcc-bootstrap
a7e609d6 43144@if utils
5e6b1f07 43145TARGET-utils=all
a7e609d6 43146maybe-all-utils: all-utils
8ec98d6c 43147all-utils: configure-utils
15b527ca 43148 @: $(MAKE); $(unstage)
8ec98d6c
NN
43149 @r=`${PWD_COMMAND}`; export r; \
43150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 43151 $(HOST_EXPORTS) \
7fc2ca22 43152 (cd $(HOST_SUBDIR)/utils && \
6532abb6
PB
43153 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
43154 $(TARGET-utils))
a7e609d6 43155@endif utils
8ec98d6c 43156
f0fdfd34 43157
a8a96878
PB
43158
43159
8ec98d6c
NN
43160.PHONY: check-utils maybe-check-utils
43161maybe-check-utils:
a7e609d6
PB
43162@if utils
43163maybe-check-utils: check-utils
8ec98d6c
NN
43164
43165check-utils:
43166
a7e609d6 43167@endif utils
8ec98d6c
NN
43168
43169.PHONY: install-utils maybe-install-utils
43170maybe-install-utils:
a7e609d6
PB
43171@if utils
43172maybe-install-utils: install-utils
8ec98d6c
NN
43173
43174install-utils: installdirs
15b527ca 43175 @: $(MAKE); $(unstage)
8ec98d6c
NN
43176 @r=`${PWD_COMMAND}`; export r; \
43177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43178 $(HOST_EXPORTS) \
7fc2ca22 43179 (cd $(HOST_SUBDIR)/utils && \
93c60b6d 43180 $(MAKE) $(FLAGS_TO_PASS) install)
8ec98d6c 43181
a7e609d6 43182@endif utils
8ec98d6c 43183
39bbbb69 43184# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
43185
43186.PHONY: maybe-info-utils info-utils
43187maybe-info-utils:
a7e609d6
PB
43188@if utils
43189maybe-info-utils: info-utils
8ec98d6c
NN
43190
43191info-utils: \
43192 configure-utils
15b527ca 43193 @: $(MAKE); $(unstage)
8ec98d6c
NN
43194 @[ -f ./utils/Makefile ] || exit 0; \
43195 r=`${PWD_COMMAND}`; export r; \
43196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43197 $(HOST_EXPORTS) \
d5eec917 43198 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43200 done; \
43201 echo "Doing info in utils" ; \
7fc2ca22 43202 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43205 "RANLIB=$${RANLIB}" \
bffcbe34 43206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43207 info) \
8ec98d6c
NN
43208 || exit 1
43209
a7e609d6 43210@endif utils
8ec98d6c
NN
43211
43212.PHONY: maybe-dvi-utils dvi-utils
43213maybe-dvi-utils:
a7e609d6
PB
43214@if utils
43215maybe-dvi-utils: dvi-utils
8ec98d6c
NN
43216
43217dvi-utils: \
43218 configure-utils
15b527ca 43219 @: $(MAKE); $(unstage)
8ec98d6c
NN
43220 @[ -f ./utils/Makefile ] || exit 0; \
43221 r=`${PWD_COMMAND}`; export r; \
5230d454 43222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43223 $(HOST_EXPORTS) \
d5eec917 43224 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43226 done; \
43227 echo "Doing dvi in utils" ; \
7fc2ca22 43228 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43231 "RANLIB=$${RANLIB}" \
bffcbe34 43232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43233 dvi) \
8ec98d6c 43234 || exit 1
8ecc6504 43235
a7e609d6 43236@endif utils
8ecc6504 43237
39bbbb69
DD
43238.PHONY: maybe-pdf-utils pdf-utils
43239maybe-pdf-utils:
43240@if utils
43241maybe-pdf-utils: pdf-utils
43242
43243pdf-utils: \
43244 configure-utils
43245 @: $(MAKE); $(unstage)
43246 @[ -f ./utils/Makefile ] || exit 0; \
43247 r=`${PWD_COMMAND}`; export r; \
43248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43249 $(HOST_EXPORTS) \
43250 for flag in $(EXTRA_HOST_FLAGS) ; do \
43251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43252 done; \
43253 echo "Doing pdf in utils" ; \
43254 (cd $(HOST_SUBDIR)/utils && \
43255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43257 "RANLIB=$${RANLIB}" \
bffcbe34 43258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
43259 pdf) \
43260 || exit 1
43261
43262@endif utils
43263
b6fb961f
MS
43264.PHONY: maybe-html-utils html-utils
43265maybe-html-utils:
43266@if utils
43267maybe-html-utils: html-utils
43268
43269html-utils: \
43270 configure-utils
15b527ca 43271 @: $(MAKE); $(unstage)
b6fb961f
MS
43272 @[ -f ./utils/Makefile ] || exit 0; \
43273 r=`${PWD_COMMAND}`; export r; \
43274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
43275 $(HOST_EXPORTS) \
43276 for flag in $(EXTRA_HOST_FLAGS) ; do \
43277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43278 done; \
43279 echo "Doing html in utils" ; \
7fc2ca22 43280 (cd $(HOST_SUBDIR)/utils && \
b6fb961f
MS
43281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43283 "RANLIB=$${RANLIB}" \
bffcbe34 43284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
43285 html) \
43286 || exit 1
43287
43288@endif utils
43289
8ec98d6c
NN
43290.PHONY: maybe-TAGS-utils TAGS-utils
43291maybe-TAGS-utils:
a7e609d6
PB
43292@if utils
43293maybe-TAGS-utils: TAGS-utils
8ec98d6c
NN
43294
43295TAGS-utils: \
43296 configure-utils
15b527ca 43297 @: $(MAKE); $(unstage)
8ec98d6c
NN
43298 @[ -f ./utils/Makefile ] || exit 0; \
43299 r=`${PWD_COMMAND}`; export r; \
5230d454 43300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43301 $(HOST_EXPORTS) \
d5eec917 43302 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43304 done; \
43305 echo "Doing TAGS in utils" ; \
7fc2ca22 43306 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43309 "RANLIB=$${RANLIB}" \
bffcbe34 43310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43311 TAGS) \
8ec98d6c 43312 || exit 1
8ecc6504 43313
a7e609d6 43314@endif utils
8ecc6504 43315
8ec98d6c
NN
43316.PHONY: maybe-install-info-utils install-info-utils
43317maybe-install-info-utils:
a7e609d6
PB
43318@if utils
43319maybe-install-info-utils: install-info-utils
70ffc148 43320
8ec98d6c
NN
43321install-info-utils: \
43322 configure-utils \
43323 info-utils
15b527ca 43324 @: $(MAKE); $(unstage)
8ec98d6c
NN
43325 @[ -f ./utils/Makefile ] || exit 0; \
43326 r=`${PWD_COMMAND}`; export r; \
5230d454 43327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43328 $(HOST_EXPORTS) \
d5eec917 43329 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43331 done; \
43332 echo "Doing install-info in utils" ; \
7fc2ca22 43333 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43336 "RANLIB=$${RANLIB}" \
bffcbe34 43337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43338 install-info) \
8ec98d6c 43339 || exit 1
8ecc6504 43340
a7e609d6 43341@endif utils
8ecc6504 43342
d4954b6d
DD
43343.PHONY: maybe-install-pdf-utils install-pdf-utils
43344maybe-install-pdf-utils:
43345@if utils
43346maybe-install-pdf-utils: install-pdf-utils
43347
43348install-pdf-utils: \
43349 configure-utils \
43350 pdf-utils
43351 @: $(MAKE); $(unstage)
43352 @[ -f ./utils/Makefile ] || exit 0; \
43353 r=`${PWD_COMMAND}`; export r; \
43354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43355 $(HOST_EXPORTS) \
43356 for flag in $(EXTRA_HOST_FLAGS) ; do \
43357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43358 done; \
43359 echo "Doing install-pdf in utils" ; \
43360 (cd $(HOST_SUBDIR)/utils && \
43361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43363 "RANLIB=$${RANLIB}" \
bffcbe34 43364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
43365 install-pdf) \
43366 || exit 1
43367
43368@endif utils
43369
83c9add4
CD
43370.PHONY: maybe-install-html-utils install-html-utils
43371maybe-install-html-utils:
43372@if utils
43373maybe-install-html-utils: install-html-utils
43374
43375install-html-utils: \
43376 configure-utils \
43377 html-utils
43378 @: $(MAKE); $(unstage)
43379 @[ -f ./utils/Makefile ] || exit 0; \
43380 r=`${PWD_COMMAND}`; export r; \
43381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43382 $(HOST_EXPORTS) \
43383 for flag in $(EXTRA_HOST_FLAGS) ; do \
43384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43385 done; \
43386 echo "Doing install-html in utils" ; \
43387 (cd $(HOST_SUBDIR)/utils && \
43388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43390 "RANLIB=$${RANLIB}" \
bffcbe34 43391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
43392 install-html) \
43393 || exit 1
43394
43395@endif utils
43396
8ec98d6c
NN
43397.PHONY: maybe-installcheck-utils installcheck-utils
43398maybe-installcheck-utils:
a7e609d6
PB
43399@if utils
43400maybe-installcheck-utils: installcheck-utils
8ec98d6c
NN
43401
43402installcheck-utils: \
43403 configure-utils
15b527ca 43404 @: $(MAKE); $(unstage)
8ec98d6c 43405 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
43406 r=`${PWD_COMMAND}`; export r; \
43407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43408 $(HOST_EXPORTS) \
d5eec917 43409 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43411 done; \
43412 echo "Doing installcheck in utils" ; \
7fc2ca22 43413 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43416 "RANLIB=$${RANLIB}" \
bffcbe34 43417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43418 installcheck) \
94f860c0
NN
43419 || exit 1
43420
a7e609d6 43421@endif utils
8ec98d6c
NN
43422
43423.PHONY: maybe-mostlyclean-utils mostlyclean-utils
43424maybe-mostlyclean-utils:
a7e609d6
PB
43425@if utils
43426maybe-mostlyclean-utils: mostlyclean-utils
8ec98d6c
NN
43427
43428mostlyclean-utils:
15b527ca 43429 @: $(MAKE); $(unstage)
8ec98d6c
NN
43430 @[ -f ./utils/Makefile ] || exit 0; \
43431 r=`${PWD_COMMAND}`; export r; \
5230d454 43432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43433 $(HOST_EXPORTS) \
d5eec917 43434 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43436 done; \
43437 echo "Doing mostlyclean in utils" ; \
7fc2ca22 43438 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43441 "RANLIB=$${RANLIB}" \
bffcbe34 43442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43443 mostlyclean) \
8ec98d6c 43444 || exit 1
8ecc6504 43445
a7e609d6 43446@endif utils
8ecc6504 43447
8ec98d6c
NN
43448.PHONY: maybe-clean-utils clean-utils
43449maybe-clean-utils:
a7e609d6
PB
43450@if utils
43451maybe-clean-utils: clean-utils
8ec98d6c
NN
43452
43453clean-utils:
15b527ca 43454 @: $(MAKE); $(unstage)
8ec98d6c
NN
43455 @[ -f ./utils/Makefile ] || exit 0; \
43456 r=`${PWD_COMMAND}`; export r; \
5230d454 43457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43458 $(HOST_EXPORTS) \
d5eec917 43459 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43461 done; \
43462 echo "Doing clean in utils" ; \
7fc2ca22 43463 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43466 "RANLIB=$${RANLIB}" \
bffcbe34 43467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43468 clean) \
8ec98d6c 43469 || exit 1
8ecc6504 43470
a7e609d6 43471@endif utils
8ecc6504 43472
8ec98d6c
NN
43473.PHONY: maybe-distclean-utils distclean-utils
43474maybe-distclean-utils:
a7e609d6
PB
43475@if utils
43476maybe-distclean-utils: distclean-utils
70ffc148 43477
8ec98d6c 43478distclean-utils:
15b527ca 43479 @: $(MAKE); $(unstage)
8ec98d6c
NN
43480 @[ -f ./utils/Makefile ] || exit 0; \
43481 r=`${PWD_COMMAND}`; export r; \
5230d454 43482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43483 $(HOST_EXPORTS) \
d5eec917 43484 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43486 done; \
43487 echo "Doing distclean in utils" ; \
7fc2ca22 43488 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43491 "RANLIB=$${RANLIB}" \
bffcbe34 43492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43493 distclean) \
8ec98d6c 43494 || exit 1
8ecc6504 43495
a7e609d6 43496@endif utils
8ecc6504 43497
8ec98d6c
NN
43498.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
43499maybe-maintainer-clean-utils:
a7e609d6
PB
43500@if utils
43501maybe-maintainer-clean-utils: maintainer-clean-utils
8ec98d6c
NN
43502
43503maintainer-clean-utils:
15b527ca 43504 @: $(MAKE); $(unstage)
8ec98d6c 43505 @[ -f ./utils/Makefile ] || exit 0; \
5230d454
L
43506 r=`${PWD_COMMAND}`; export r; \
43507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 43508 $(HOST_EXPORTS) \
d5eec917 43509 for flag in $(EXTRA_HOST_FLAGS) ; do \
8ec98d6c
NN
43510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43511 done; \
43512 echo "Doing maintainer-clean in utils" ; \
7fc2ca22 43513 (cd $(HOST_SUBDIR)/utils && \
8ec98d6c
NN
43514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43516 "RANLIB=$${RANLIB}" \
bffcbe34 43517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d5eec917 43518 maintainer-clean) \
94f860c0
NN
43519 || exit 1
43520
a7e609d6 43521@endif utils
8ecc6504 43522
8ecc6504 43523
f0fdfd34 43524
7fc2ca22
PB
43525.PHONY: configure-gnattools maybe-configure-gnattools
43526maybe-configure-gnattools:
e1e5148c
CD
43527@if gcc-bootstrap
43528configure-gnattools: stage_current
43529@endif gcc-bootstrap
7fc2ca22
PB
43530@if gnattools
43531maybe-configure-gnattools: configure-gnattools
ec92c4d6 43532configure-gnattools:
15b527ca 43533 @: $(MAKE); $(unstage)
ec92c4d6 43534 @r=`${PWD_COMMAND}`; export r; \
7fc2ca22 43535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6
PB
43536 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
43537 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
5074489a 43538 $(HOST_EXPORTS) \
f0fdfd34
PB
43539 echo Configuring in $(HOST_SUBDIR)/gnattools; \
43540 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
7fc2ca22
PB
43541 case $(srcdir) in \
43542 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43543 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
43544 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43545 esac; \
43546 srcdiroption="--srcdir=$${topdir}/gnattools"; \
43547 libsrcdir="$$s/gnattools"; \
43548 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
43549 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
43550 --target=${target_alias} $${srcdiroption} \
7fc2ca22
PB
43551 || exit 1
43552@endif gnattools
43553
f0fdfd34
PB
43554
43555
a8a96878
PB
43556
43557
7fc2ca22
PB
43558.PHONY: all-gnattools maybe-all-gnattools
43559maybe-all-gnattools:
e1e5148c
CD
43560@if gcc-bootstrap
43561all-gnattools: stage_current
43562@endif gcc-bootstrap
7fc2ca22
PB
43563@if gnattools
43564TARGET-gnattools=all
43565maybe-all-gnattools: all-gnattools
43566all-gnattools: configure-gnattools
15b527ca 43567 @: $(MAKE); $(unstage)
7fc2ca22
PB
43568 @r=`${PWD_COMMAND}`; export r; \
43569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 43570 $(HOST_EXPORTS) \
7fc2ca22 43571 (cd $(HOST_SUBDIR)/gnattools && \
6532abb6
PB
43572 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
43573 $(TARGET-gnattools))
7fc2ca22
PB
43574@endif gnattools
43575
f0fdfd34 43576
a8a96878
PB
43577
43578
7fc2ca22
PB
43579.PHONY: check-gnattools maybe-check-gnattools
43580maybe-check-gnattools:
43581@if gnattools
43582maybe-check-gnattools: check-gnattools
43583
43584check-gnattools:
15b527ca 43585 @: $(MAKE); $(unstage)
7fc2ca22
PB
43586 @r=`${PWD_COMMAND}`; export r; \
43587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43588 $(HOST_EXPORTS) \
43589 (cd $(HOST_SUBDIR)/gnattools && \
43590 $(MAKE) $(FLAGS_TO_PASS) check)
43591
43592@endif gnattools
43593
43594.PHONY: install-gnattools maybe-install-gnattools
43595maybe-install-gnattools:
43596@if gnattools
43597maybe-install-gnattools: install-gnattools
43598
43599install-gnattools: installdirs
15b527ca 43600 @: $(MAKE); $(unstage)
7fc2ca22
PB
43601 @r=`${PWD_COMMAND}`; export r; \
43602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43603 $(HOST_EXPORTS) \
43604 (cd $(HOST_SUBDIR)/gnattools && \
93c60b6d 43605 $(MAKE) $(FLAGS_TO_PASS) install)
7fc2ca22
PB
43606
43607@endif gnattools
43608
39bbbb69 43609# Other targets (info, dvi, pdf, etc.)
7fc2ca22
PB
43610
43611.PHONY: maybe-info-gnattools info-gnattools
43612maybe-info-gnattools:
43613@if gnattools
43614maybe-info-gnattools: info-gnattools
43615
43616info-gnattools: \
43617 configure-gnattools
15b527ca 43618 @: $(MAKE); $(unstage)
7fc2ca22
PB
43619 @[ -f ./gnattools/Makefile ] || exit 0; \
43620 r=`${PWD_COMMAND}`; export r; \
43621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43622 $(HOST_EXPORTS) \
43623 for flag in $(EXTRA_HOST_FLAGS) ; do \
43624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43625 done; \
43626 echo "Doing info in gnattools" ; \
43627 (cd $(HOST_SUBDIR)/gnattools && \
43628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43630 "RANLIB=$${RANLIB}" \
bffcbe34 43631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43632 info) \
43633 || exit 1
43634
43635@endif gnattools
43636
43637.PHONY: maybe-dvi-gnattools dvi-gnattools
43638maybe-dvi-gnattools:
43639@if gnattools
43640maybe-dvi-gnattools: dvi-gnattools
43641
43642dvi-gnattools: \
43643 configure-gnattools
15b527ca 43644 @: $(MAKE); $(unstage)
7fc2ca22
PB
43645 @[ -f ./gnattools/Makefile ] || exit 0; \
43646 r=`${PWD_COMMAND}`; export r; \
43647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43648 $(HOST_EXPORTS) \
43649 for flag in $(EXTRA_HOST_FLAGS) ; do \
43650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43651 done; \
43652 echo "Doing dvi in gnattools" ; \
43653 (cd $(HOST_SUBDIR)/gnattools && \
43654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43656 "RANLIB=$${RANLIB}" \
bffcbe34 43657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43658 dvi) \
43659 || exit 1
43660
43661@endif gnattools
43662
39bbbb69
DD
43663.PHONY: maybe-pdf-gnattools pdf-gnattools
43664maybe-pdf-gnattools:
43665@if gnattools
43666maybe-pdf-gnattools: pdf-gnattools
43667
43668pdf-gnattools: \
43669 configure-gnattools
43670 @: $(MAKE); $(unstage)
43671 @[ -f ./gnattools/Makefile ] || exit 0; \
43672 r=`${PWD_COMMAND}`; export r; \
43673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43674 $(HOST_EXPORTS) \
43675 for flag in $(EXTRA_HOST_FLAGS) ; do \
43676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43677 done; \
43678 echo "Doing pdf in gnattools" ; \
43679 (cd $(HOST_SUBDIR)/gnattools && \
43680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43682 "RANLIB=$${RANLIB}" \
bffcbe34 43683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
43684 pdf) \
43685 || exit 1
43686
43687@endif gnattools
43688
7fc2ca22
PB
43689.PHONY: maybe-html-gnattools html-gnattools
43690maybe-html-gnattools:
43691@if gnattools
43692maybe-html-gnattools: html-gnattools
43693
43694html-gnattools: \
43695 configure-gnattools
15b527ca 43696 @: $(MAKE); $(unstage)
7fc2ca22
PB
43697 @[ -f ./gnattools/Makefile ] || exit 0; \
43698 r=`${PWD_COMMAND}`; export r; \
43699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43700 $(HOST_EXPORTS) \
43701 for flag in $(EXTRA_HOST_FLAGS) ; do \
43702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43703 done; \
43704 echo "Doing html in gnattools" ; \
43705 (cd $(HOST_SUBDIR)/gnattools && \
43706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43708 "RANLIB=$${RANLIB}" \
bffcbe34 43709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43710 html) \
43711 || exit 1
43712
43713@endif gnattools
43714
43715.PHONY: maybe-TAGS-gnattools TAGS-gnattools
43716maybe-TAGS-gnattools:
43717@if gnattools
43718maybe-TAGS-gnattools: TAGS-gnattools
43719
43720TAGS-gnattools: \
43721 configure-gnattools
15b527ca 43722 @: $(MAKE); $(unstage)
7fc2ca22
PB
43723 @[ -f ./gnattools/Makefile ] || exit 0; \
43724 r=`${PWD_COMMAND}`; export r; \
43725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43726 $(HOST_EXPORTS) \
43727 for flag in $(EXTRA_HOST_FLAGS) ; do \
43728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43729 done; \
43730 echo "Doing TAGS in gnattools" ; \
43731 (cd $(HOST_SUBDIR)/gnattools && \
43732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43734 "RANLIB=$${RANLIB}" \
bffcbe34 43735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43736 TAGS) \
43737 || exit 1
43738
43739@endif gnattools
43740
43741.PHONY: maybe-install-info-gnattools install-info-gnattools
43742maybe-install-info-gnattools:
43743@if gnattools
43744maybe-install-info-gnattools: install-info-gnattools
43745
43746install-info-gnattools: \
43747 configure-gnattools \
43748 info-gnattools
15b527ca 43749 @: $(MAKE); $(unstage)
7fc2ca22
PB
43750 @[ -f ./gnattools/Makefile ] || exit 0; \
43751 r=`${PWD_COMMAND}`; export r; \
43752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43753 $(HOST_EXPORTS) \
43754 for flag in $(EXTRA_HOST_FLAGS) ; do \
43755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43756 done; \
43757 echo "Doing install-info in gnattools" ; \
43758 (cd $(HOST_SUBDIR)/gnattools && \
43759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43761 "RANLIB=$${RANLIB}" \
bffcbe34 43762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43763 install-info) \
43764 || exit 1
43765
43766@endif gnattools
43767
d4954b6d
DD
43768.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
43769maybe-install-pdf-gnattools:
43770@if gnattools
43771maybe-install-pdf-gnattools: install-pdf-gnattools
43772
43773install-pdf-gnattools: \
43774 configure-gnattools \
43775 pdf-gnattools
43776 @: $(MAKE); $(unstage)
43777 @[ -f ./gnattools/Makefile ] || exit 0; \
43778 r=`${PWD_COMMAND}`; export r; \
43779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43780 $(HOST_EXPORTS) \
43781 for flag in $(EXTRA_HOST_FLAGS) ; do \
43782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43783 done; \
43784 echo "Doing install-pdf in gnattools" ; \
43785 (cd $(HOST_SUBDIR)/gnattools && \
43786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43788 "RANLIB=$${RANLIB}" \
bffcbe34 43789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
43790 install-pdf) \
43791 || exit 1
43792
43793@endif gnattools
43794
83c9add4
CD
43795.PHONY: maybe-install-html-gnattools install-html-gnattools
43796maybe-install-html-gnattools:
43797@if gnattools
43798maybe-install-html-gnattools: install-html-gnattools
43799
43800install-html-gnattools: \
43801 configure-gnattools \
43802 html-gnattools
43803 @: $(MAKE); $(unstage)
43804 @[ -f ./gnattools/Makefile ] || exit 0; \
43805 r=`${PWD_COMMAND}`; export r; \
43806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43807 $(HOST_EXPORTS) \
43808 for flag in $(EXTRA_HOST_FLAGS) ; do \
43809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43810 done; \
43811 echo "Doing install-html in gnattools" ; \
43812 (cd $(HOST_SUBDIR)/gnattools && \
43813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43815 "RANLIB=$${RANLIB}" \
bffcbe34 43816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
43817 install-html) \
43818 || exit 1
43819
43820@endif gnattools
43821
7fc2ca22
PB
43822.PHONY: maybe-installcheck-gnattools installcheck-gnattools
43823maybe-installcheck-gnattools:
43824@if gnattools
43825maybe-installcheck-gnattools: installcheck-gnattools
43826
43827installcheck-gnattools: \
43828 configure-gnattools
15b527ca 43829 @: $(MAKE); $(unstage)
7fc2ca22
PB
43830 @[ -f ./gnattools/Makefile ] || exit 0; \
43831 r=`${PWD_COMMAND}`; export r; \
43832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43833 $(HOST_EXPORTS) \
43834 for flag in $(EXTRA_HOST_FLAGS) ; do \
43835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43836 done; \
43837 echo "Doing installcheck in gnattools" ; \
43838 (cd $(HOST_SUBDIR)/gnattools && \
43839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43841 "RANLIB=$${RANLIB}" \
bffcbe34 43842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43843 installcheck) \
43844 || exit 1
43845
43846@endif gnattools
43847
43848.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
43849maybe-mostlyclean-gnattools:
43850@if gnattools
43851maybe-mostlyclean-gnattools: mostlyclean-gnattools
43852
43853mostlyclean-gnattools:
15b527ca 43854 @: $(MAKE); $(unstage)
7fc2ca22
PB
43855 @[ -f ./gnattools/Makefile ] || exit 0; \
43856 r=`${PWD_COMMAND}`; export r; \
43857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43858 $(HOST_EXPORTS) \
43859 for flag in $(EXTRA_HOST_FLAGS) ; do \
43860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43861 done; \
43862 echo "Doing mostlyclean in gnattools" ; \
43863 (cd $(HOST_SUBDIR)/gnattools && \
43864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43866 "RANLIB=$${RANLIB}" \
bffcbe34 43867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43868 mostlyclean) \
43869 || exit 1
43870
43871@endif gnattools
43872
43873.PHONY: maybe-clean-gnattools clean-gnattools
43874maybe-clean-gnattools:
43875@if gnattools
43876maybe-clean-gnattools: clean-gnattools
43877
43878clean-gnattools:
15b527ca 43879 @: $(MAKE); $(unstage)
7fc2ca22
PB
43880 @[ -f ./gnattools/Makefile ] || exit 0; \
43881 r=`${PWD_COMMAND}`; export r; \
43882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43883 $(HOST_EXPORTS) \
43884 for flag in $(EXTRA_HOST_FLAGS) ; do \
43885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43886 done; \
43887 echo "Doing clean in gnattools" ; \
43888 (cd $(HOST_SUBDIR)/gnattools && \
43889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43891 "RANLIB=$${RANLIB}" \
bffcbe34 43892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43893 clean) \
43894 || exit 1
43895
43896@endif gnattools
43897
43898.PHONY: maybe-distclean-gnattools distclean-gnattools
43899maybe-distclean-gnattools:
43900@if gnattools
43901maybe-distclean-gnattools: distclean-gnattools
43902
43903distclean-gnattools:
15b527ca 43904 @: $(MAKE); $(unstage)
7fc2ca22
PB
43905 @[ -f ./gnattools/Makefile ] || exit 0; \
43906 r=`${PWD_COMMAND}`; export r; \
43907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43908 $(HOST_EXPORTS) \
43909 for flag in $(EXTRA_HOST_FLAGS) ; do \
43910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43911 done; \
43912 echo "Doing distclean in gnattools" ; \
43913 (cd $(HOST_SUBDIR)/gnattools && \
43914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43916 "RANLIB=$${RANLIB}" \
bffcbe34 43917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43918 distclean) \
43919 || exit 1
43920
43921@endif gnattools
43922
43923.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
43924maybe-maintainer-clean-gnattools:
43925@if gnattools
43926maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
43927
43928maintainer-clean-gnattools:
15b527ca 43929 @: $(MAKE); $(unstage)
7fc2ca22
PB
43930 @[ -f ./gnattools/Makefile ] || exit 0; \
43931 r=`${PWD_COMMAND}`; export r; \
43932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7fc2ca22
PB
43933 $(HOST_EXPORTS) \
43934 for flag in $(EXTRA_HOST_FLAGS) ; do \
43935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43936 done; \
43937 echo "Doing maintainer-clean in gnattools" ; \
43938 (cd $(HOST_SUBDIR)/gnattools && \
43939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43941 "RANLIB=$${RANLIB}" \
bffcbe34 43942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7fc2ca22
PB
43943 maintainer-clean) \
43944 || exit 1
43945
43946@endif gnattools
43947
43948
8ecc6504 43949
bd45d6fa
ILT
43950.PHONY: configure-lto-plugin maybe-configure-lto-plugin
43951maybe-configure-lto-plugin:
43952@if gcc-bootstrap
43953configure-lto-plugin: stage_current
43954@endif gcc-bootstrap
43955@if lto-plugin
43956maybe-configure-lto-plugin: configure-lto-plugin
43957configure-lto-plugin:
43958 @r=`${PWD_COMMAND}`; export r; \
43959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43960 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
43961 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
5074489a 43962 $(HOST_EXPORTS) \
bd45d6fa
ILT
43963 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
43964 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
43965 case $(srcdir) in \
43966 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43967 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
43968 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43969 esac; \
43970 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
43971 libsrcdir="$$s/lto-plugin"; \
43972 $(SHELL) $${libsrcdir}/configure \
43973 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
43974 --target=${target_alias} $${srcdiroption} \
43975 || exit 1
43976@endif lto-plugin
43977
43978
43979
43980.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
43981maybe-configure-stage1-lto-plugin:
43982@if lto-plugin-bootstrap
43983maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
43984configure-stage1-lto-plugin:
43985 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
43986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
43987 @r=`${PWD_COMMAND}`; export r; \
43988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43989 TFLAGS="$(STAGE1_TFLAGS)"; \
43990 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
43991 $(HOST_EXPORTS) \
43992 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
5074489a
AO
43993 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
43994 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
43995 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
43996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
43997 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
43998 case $(srcdir) in \
43999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44000 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44002 esac; \
44003 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44004 libsrcdir="$$s/lto-plugin"; \
44005 $(SHELL) $${libsrcdir}/configure \
44006 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44007 --target=${target_alias} $${srcdiroption} \
44008 $(STAGE1_CONFIGURE_FLAGS)
44009@endif lto-plugin-bootstrap
44010
44011.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
44012maybe-configure-stage2-lto-plugin:
44013@if lto-plugin-bootstrap
44014maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
44015configure-stage2-lto-plugin:
44016 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
44017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
44018 @r=`${PWD_COMMAND}`; export r; \
44019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44020 TFLAGS="$(STAGE2_TFLAGS)"; \
44021 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
44022 $(HOST_EXPORTS) \
44023 $(POSTSTAGE1_HOST_EXPORTS) \
44024 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
5074489a
AO
44025 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
44026 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
44027 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
44028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
44029 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
44030 case $(srcdir) in \
44031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44032 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44034 esac; \
44035 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44036 libsrcdir="$$s/lto-plugin"; \
44037 $(SHELL) $${libsrcdir}/configure \
44038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44039 --target=${target_alias} $${srcdiroption} \
44040 --with-build-libsubdir=$(HOST_SUBDIR) \
44041 $(STAGE2_CONFIGURE_FLAGS)
44042@endif lto-plugin-bootstrap
44043
44044.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
44045maybe-configure-stage3-lto-plugin:
44046@if lto-plugin-bootstrap
44047maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
44048configure-stage3-lto-plugin:
44049 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
44050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
44051 @r=`${PWD_COMMAND}`; export r; \
44052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44053 TFLAGS="$(STAGE3_TFLAGS)"; \
44054 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
44055 $(HOST_EXPORTS) \
44056 $(POSTSTAGE1_HOST_EXPORTS) \
44057 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
5074489a
AO
44058 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
44059 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
44060 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
44061 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
44062 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
44063 case $(srcdir) in \
44064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44065 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44067 esac; \
44068 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44069 libsrcdir="$$s/lto-plugin"; \
44070 $(SHELL) $${libsrcdir}/configure \
44071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44072 --target=${target_alias} $${srcdiroption} \
44073 --with-build-libsubdir=$(HOST_SUBDIR) \
44074 $(STAGE3_CONFIGURE_FLAGS)
44075@endif lto-plugin-bootstrap
44076
44077.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
44078maybe-configure-stage4-lto-plugin:
44079@if lto-plugin-bootstrap
44080maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
44081configure-stage4-lto-plugin:
44082 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
44083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
44084 @r=`${PWD_COMMAND}`; export r; \
44085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44086 TFLAGS="$(STAGE4_TFLAGS)"; \
44087 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
44088 $(HOST_EXPORTS) \
44089 $(POSTSTAGE1_HOST_EXPORTS) \
44090 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
5074489a
AO
44091 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
44092 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
44093 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
44094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
44095 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
44096 case $(srcdir) in \
44097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44098 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44100 esac; \
44101 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44102 libsrcdir="$$s/lto-plugin"; \
44103 $(SHELL) $${libsrcdir}/configure \
44104 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44105 --target=${target_alias} $${srcdiroption} \
44106 --with-build-libsubdir=$(HOST_SUBDIR) \
44107 $(STAGE4_CONFIGURE_FLAGS)
44108@endif lto-plugin-bootstrap
44109
44110.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
44111maybe-configure-stageprofile-lto-plugin:
44112@if lto-plugin-bootstrap
44113maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
44114configure-stageprofile-lto-plugin:
44115 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
44116 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
44117 @r=`${PWD_COMMAND}`; export r; \
44118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44119 TFLAGS="$(STAGEprofile_TFLAGS)"; \
44120 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
44121 $(HOST_EXPORTS) \
44122 $(POSTSTAGE1_HOST_EXPORTS) \
44123 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
5074489a
AO
44124 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
44125 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
44126 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
44127 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
44128 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
44129 case $(srcdir) in \
44130 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44131 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44132 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44133 esac; \
44134 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44135 libsrcdir="$$s/lto-plugin"; \
44136 $(SHELL) $${libsrcdir}/configure \
44137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44138 --target=${target_alias} $${srcdiroption} \
44139 --with-build-libsubdir=$(HOST_SUBDIR) \
44140 $(STAGEprofile_CONFIGURE_FLAGS)
44141@endif lto-plugin-bootstrap
44142
44143.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
44144maybe-configure-stagefeedback-lto-plugin:
44145@if lto-plugin-bootstrap
44146maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
44147configure-stagefeedback-lto-plugin:
44148 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
44149 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
44150 @r=`${PWD_COMMAND}`; export r; \
44151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44152 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
44153 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
44154 $(HOST_EXPORTS) \
44155 $(POSTSTAGE1_HOST_EXPORTS) \
44156 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
5074489a
AO
44157 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
44158 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
bd45d6fa
ILT
44159 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
44160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
44161 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
44162 case $(srcdir) in \
44163 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44164 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
44165 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44166 esac; \
44167 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
44168 libsrcdir="$$s/lto-plugin"; \
44169 $(SHELL) $${libsrcdir}/configure \
44170 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
44171 --target=${target_alias} $${srcdiroption} \
44172 --with-build-libsubdir=$(HOST_SUBDIR) \
44173 $(STAGEfeedback_CONFIGURE_FLAGS)
44174@endif lto-plugin-bootstrap
44175
44176
44177
44178
44179
44180.PHONY: all-lto-plugin maybe-all-lto-plugin
44181maybe-all-lto-plugin:
44182@if gcc-bootstrap
44183all-lto-plugin: stage_current
44184@endif gcc-bootstrap
44185@if lto-plugin
44186TARGET-lto-plugin=all
44187maybe-all-lto-plugin: all-lto-plugin
44188all-lto-plugin: configure-lto-plugin
44189 @r=`${PWD_COMMAND}`; export r; \
44190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 44191 $(HOST_EXPORTS) \
bd45d6fa
ILT
44192 (cd $(HOST_SUBDIR)/lto-plugin && \
44193 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) \
44194 $(TARGET-lto-plugin))
44195@endif lto-plugin
44196
44197
44198
44199.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
44200.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
44201maybe-all-stage1-lto-plugin:
44202maybe-clean-stage1-lto-plugin:
44203@if lto-plugin-bootstrap
44204maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
44205all-stage1: all-stage1-lto-plugin
44206TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
44207all-stage1-lto-plugin: configure-stage1-lto-plugin
44208 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
44209 @r=`${PWD_COMMAND}`; export r; \
44210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44211 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 44212 $(HOST_EXPORTS) \
bd45d6fa
ILT
44213 cd $(HOST_SUBDIR)/lto-plugin && \
44214 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44215 CFLAGS="$(STAGE1_CFLAGS)" \
5074489a 44216 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
bd45d6fa
ILT
44217 LIBCFLAGS="$(LIBCFLAGS)" \
44218 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44219 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44220 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44221 $(EXTRA_HOST_FLAGS) \
44222 TFLAGS="$(STAGE1_TFLAGS)" \
44223 $(TARGET-stage1-lto-plugin)
44224
44225maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
44226clean-stage1: clean-stage1-lto-plugin
44227clean-stage1-lto-plugin:
44228 @if [ $(current_stage) = stage1 ]; then \
44229 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44230 else \
44231 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
44232 $(MAKE) stage1-start; \
44233 fi; \
44234 cd $(HOST_SUBDIR)/lto-plugin && \
44235 $(MAKE) $(EXTRA_HOST_FLAGS) \
44236 clean
44237@endif lto-plugin-bootstrap
44238
44239
44240.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
44241.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
44242maybe-all-stage2-lto-plugin:
44243maybe-clean-stage2-lto-plugin:
44244@if lto-plugin-bootstrap
44245maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
44246all-stage2: all-stage2-lto-plugin
44247TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
44248all-stage2-lto-plugin: configure-stage2-lto-plugin
44249 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
44250 @r=`${PWD_COMMAND}`; export r; \
44251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44252 TFLAGS="$(STAGE2_TFLAGS)"; \
44253 $(HOST_EXPORTS) \
5074489a 44254 $(POSTSTAGE1_HOST_EXPORTS) \
bd45d6fa
ILT
44255 cd $(HOST_SUBDIR)/lto-plugin && \
44256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44257 CFLAGS="$(STAGE2_CFLAGS)" \
5074489a 44258 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
bd45d6fa
ILT
44259 LIBCFLAGS="$(STAGE2_CFLAGS)" \
44260 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44261 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44262 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44263 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
44264 TFLAGS="$(STAGE2_TFLAGS)" \
44265 $(TARGET-stage2-lto-plugin)
44266
44267maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
44268clean-stage2: clean-stage2-lto-plugin
44269clean-stage2-lto-plugin:
44270 @if [ $(current_stage) = stage2 ]; then \
44271 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44272 else \
44273 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
44274 $(MAKE) stage2-start; \
44275 fi; \
44276 cd $(HOST_SUBDIR)/lto-plugin && \
44277 $(MAKE) $(EXTRA_HOST_FLAGS) \
44278 $(POSTSTAGE1_FLAGS_TO_PASS) \
44279 clean
44280@endif lto-plugin-bootstrap
44281
44282
44283.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
44284.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
44285maybe-all-stage3-lto-plugin:
44286maybe-clean-stage3-lto-plugin:
44287@if lto-plugin-bootstrap
44288maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
44289all-stage3: all-stage3-lto-plugin
44290TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
44291all-stage3-lto-plugin: configure-stage3-lto-plugin
44292 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
44293 @r=`${PWD_COMMAND}`; export r; \
44294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44295 TFLAGS="$(STAGE3_TFLAGS)"; \
44296 $(HOST_EXPORTS) \
5074489a 44297 $(POSTSTAGE1_HOST_EXPORTS) \
bd45d6fa
ILT
44298 cd $(HOST_SUBDIR)/lto-plugin && \
44299 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44300 CFLAGS="$(STAGE3_CFLAGS)" \
5074489a 44301 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
bd45d6fa
ILT
44302 LIBCFLAGS="$(STAGE3_CFLAGS)" \
44303 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44304 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44305 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44306 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
44307 TFLAGS="$(STAGE3_TFLAGS)" \
44308 $(TARGET-stage3-lto-plugin)
44309
44310maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
44311clean-stage3: clean-stage3-lto-plugin
44312clean-stage3-lto-plugin:
44313 @if [ $(current_stage) = stage3 ]; then \
44314 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44315 else \
44316 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
44317 $(MAKE) stage3-start; \
44318 fi; \
44319 cd $(HOST_SUBDIR)/lto-plugin && \
44320 $(MAKE) $(EXTRA_HOST_FLAGS) \
44321 $(POSTSTAGE1_FLAGS_TO_PASS) \
44322 clean
44323@endif lto-plugin-bootstrap
44324
44325
44326.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
44327.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
44328maybe-all-stage4-lto-plugin:
44329maybe-clean-stage4-lto-plugin:
44330@if lto-plugin-bootstrap
44331maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
44332all-stage4: all-stage4-lto-plugin
44333TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
44334all-stage4-lto-plugin: configure-stage4-lto-plugin
44335 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
44336 @r=`${PWD_COMMAND}`; export r; \
44337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44338 TFLAGS="$(STAGE4_TFLAGS)"; \
44339 $(HOST_EXPORTS) \
5074489a 44340 $(POSTSTAGE1_HOST_EXPORTS) \
bd45d6fa
ILT
44341 cd $(HOST_SUBDIR)/lto-plugin && \
44342 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44343 CFLAGS="$(STAGE4_CFLAGS)" \
5074489a 44344 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
bd45d6fa
ILT
44345 LIBCFLAGS="$(STAGE4_CFLAGS)" \
44346 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44347 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44348 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44349 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
44350 TFLAGS="$(STAGE4_TFLAGS)" \
44351 $(TARGET-stage4-lto-plugin)
44352
44353maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
44354clean-stage4: clean-stage4-lto-plugin
44355clean-stage4-lto-plugin:
44356 @if [ $(current_stage) = stage4 ]; then \
44357 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44358 else \
44359 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
44360 $(MAKE) stage4-start; \
44361 fi; \
44362 cd $(HOST_SUBDIR)/lto-plugin && \
44363 $(MAKE) $(EXTRA_HOST_FLAGS) \
44364 $(POSTSTAGE1_FLAGS_TO_PASS) \
44365 clean
44366@endif lto-plugin-bootstrap
44367
44368
44369.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
44370.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
44371maybe-all-stageprofile-lto-plugin:
44372maybe-clean-stageprofile-lto-plugin:
44373@if lto-plugin-bootstrap
44374maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
44375all-stageprofile: all-stageprofile-lto-plugin
44376TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
44377all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
44378 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
44379 @r=`${PWD_COMMAND}`; export r; \
44380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44381 TFLAGS="$(STAGEprofile_TFLAGS)"; \
44382 $(HOST_EXPORTS) \
5074489a 44383 $(POSTSTAGE1_HOST_EXPORTS) \
bd45d6fa
ILT
44384 cd $(HOST_SUBDIR)/lto-plugin && \
44385 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44386 CFLAGS="$(STAGEprofile_CFLAGS)" \
5074489a 44387 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
bd45d6fa
ILT
44388 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
44389 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44390 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44391 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44392 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
44393 TFLAGS="$(STAGEprofile_TFLAGS)" \
44394 $(TARGET-stageprofile-lto-plugin)
44395
44396maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
44397clean-stageprofile: clean-stageprofile-lto-plugin
44398clean-stageprofile-lto-plugin:
44399 @if [ $(current_stage) = stageprofile ]; then \
44400 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44401 else \
44402 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
44403 $(MAKE) stageprofile-start; \
44404 fi; \
44405 cd $(HOST_SUBDIR)/lto-plugin && \
44406 $(MAKE) $(EXTRA_HOST_FLAGS) \
44407 $(POSTSTAGE1_FLAGS_TO_PASS) \
44408 clean
44409@endif lto-plugin-bootstrap
44410
44411
44412.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
44413.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
44414maybe-all-stagefeedback-lto-plugin:
44415maybe-clean-stagefeedback-lto-plugin:
44416@if lto-plugin-bootstrap
44417maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
44418all-stagefeedback: all-stagefeedback-lto-plugin
44419TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
44420all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
44421 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
44422 @r=`${PWD_COMMAND}`; export r; \
44423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44424 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
44425 $(HOST_EXPORTS) \
5074489a 44426 $(POSTSTAGE1_HOST_EXPORTS) \
bd45d6fa
ILT
44427 cd $(HOST_SUBDIR)/lto-plugin && \
44428 $(MAKE) $(BASE_FLAGS_TO_PASS) \
44429 CFLAGS="$(STAGEfeedback_CFLAGS)" \
5074489a 44430 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
bd45d6fa
ILT
44431 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
44432 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
44433 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
44434 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
44435 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
44436 TFLAGS="$(STAGEfeedback_TFLAGS)" \
44437 $(TARGET-stagefeedback-lto-plugin)
44438
44439maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
44440clean-stagefeedback: clean-stagefeedback-lto-plugin
44441clean-stagefeedback-lto-plugin:
44442 @if [ $(current_stage) = stagefeedback ]; then \
44443 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
44444 else \
44445 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
44446 $(MAKE) stagefeedback-start; \
44447 fi; \
44448 cd $(HOST_SUBDIR)/lto-plugin && \
44449 $(MAKE) $(EXTRA_HOST_FLAGS) \
44450 $(POSTSTAGE1_FLAGS_TO_PASS) \
44451 clean
44452@endif lto-plugin-bootstrap
44453
44454
44455
44456
44457
44458.PHONY: check-lto-plugin maybe-check-lto-plugin
44459maybe-check-lto-plugin:
44460@if lto-plugin
44461maybe-check-lto-plugin: check-lto-plugin
44462
44463check-lto-plugin:
44464 @: $(MAKE); $(unstage)
44465 @r=`${PWD_COMMAND}`; export r; \
44466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44467 $(HOST_EXPORTS) \
44468 (cd $(HOST_SUBDIR)/lto-plugin && \
44469 $(MAKE) $(FLAGS_TO_PASS) check)
44470
44471@endif lto-plugin
44472
44473.PHONY: install-lto-plugin maybe-install-lto-plugin
44474maybe-install-lto-plugin:
44475@if lto-plugin
44476maybe-install-lto-plugin: install-lto-plugin
44477
44478install-lto-plugin: installdirs
44479 @: $(MAKE); $(unstage)
44480 @r=`${PWD_COMMAND}`; export r; \
44481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44482 $(HOST_EXPORTS) \
44483 (cd $(HOST_SUBDIR)/lto-plugin && \
44484 $(MAKE) $(FLAGS_TO_PASS) install)
44485
44486@endif lto-plugin
44487
44488# Other targets (info, dvi, pdf, etc.)
44489
44490.PHONY: maybe-info-lto-plugin info-lto-plugin
44491maybe-info-lto-plugin:
44492@if lto-plugin
44493maybe-info-lto-plugin: info-lto-plugin
44494
44495info-lto-plugin: \
44496 configure-lto-plugin
44497 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44498 r=`${PWD_COMMAND}`; export r; \
44499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44500 $(HOST_EXPORTS) \
44501 for flag in $(EXTRA_HOST_FLAGS) ; do \
44502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44503 done; \
44504 echo "Doing info in lto-plugin" ; \
44505 (cd $(HOST_SUBDIR)/lto-plugin && \
44506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44508 "RANLIB=$${RANLIB}" \
44509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44510 info) \
44511 || exit 1
44512
44513@endif lto-plugin
44514
44515.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
44516maybe-dvi-lto-plugin:
44517@if lto-plugin
44518maybe-dvi-lto-plugin: dvi-lto-plugin
44519
44520dvi-lto-plugin: \
44521 configure-lto-plugin
44522 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44523 r=`${PWD_COMMAND}`; export r; \
44524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44525 $(HOST_EXPORTS) \
44526 for flag in $(EXTRA_HOST_FLAGS) ; do \
44527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44528 done; \
44529 echo "Doing dvi in lto-plugin" ; \
44530 (cd $(HOST_SUBDIR)/lto-plugin && \
44531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44533 "RANLIB=$${RANLIB}" \
44534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44535 dvi) \
44536 || exit 1
44537
44538@endif lto-plugin
44539
44540.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
44541maybe-pdf-lto-plugin:
44542@if lto-plugin
44543maybe-pdf-lto-plugin: pdf-lto-plugin
44544
44545pdf-lto-plugin: \
44546 configure-lto-plugin
44547 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44548 r=`${PWD_COMMAND}`; export r; \
44549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44550 $(HOST_EXPORTS) \
44551 for flag in $(EXTRA_HOST_FLAGS) ; do \
44552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44553 done; \
44554 echo "Doing pdf in lto-plugin" ; \
44555 (cd $(HOST_SUBDIR)/lto-plugin && \
44556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44558 "RANLIB=$${RANLIB}" \
44559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44560 pdf) \
44561 || exit 1
44562
44563@endif lto-plugin
44564
44565.PHONY: maybe-html-lto-plugin html-lto-plugin
44566maybe-html-lto-plugin:
44567@if lto-plugin
44568maybe-html-lto-plugin: html-lto-plugin
44569
44570html-lto-plugin: \
44571 configure-lto-plugin
44572 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44573 r=`${PWD_COMMAND}`; export r; \
44574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44575 $(HOST_EXPORTS) \
44576 for flag in $(EXTRA_HOST_FLAGS) ; do \
44577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44578 done; \
44579 echo "Doing html in lto-plugin" ; \
44580 (cd $(HOST_SUBDIR)/lto-plugin && \
44581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44583 "RANLIB=$${RANLIB}" \
44584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44585 html) \
44586 || exit 1
44587
44588@endif lto-plugin
44589
44590.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
44591maybe-TAGS-lto-plugin:
44592@if lto-plugin
44593maybe-TAGS-lto-plugin: TAGS-lto-plugin
44594
44595TAGS-lto-plugin: \
44596 configure-lto-plugin
44597 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44598 r=`${PWD_COMMAND}`; export r; \
44599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44600 $(HOST_EXPORTS) \
44601 for flag in $(EXTRA_HOST_FLAGS) ; do \
44602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44603 done; \
44604 echo "Doing TAGS in lto-plugin" ; \
44605 (cd $(HOST_SUBDIR)/lto-plugin && \
44606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44608 "RANLIB=$${RANLIB}" \
44609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44610 TAGS) \
44611 || exit 1
44612
44613@endif lto-plugin
44614
44615.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
44616maybe-install-info-lto-plugin:
44617@if lto-plugin
44618maybe-install-info-lto-plugin: install-info-lto-plugin
44619
44620install-info-lto-plugin: \
44621 configure-lto-plugin \
44622 info-lto-plugin
44623 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44624 r=`${PWD_COMMAND}`; export r; \
44625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44626 $(HOST_EXPORTS) \
44627 for flag in $(EXTRA_HOST_FLAGS) ; do \
44628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44629 done; \
44630 echo "Doing install-info in lto-plugin" ; \
44631 (cd $(HOST_SUBDIR)/lto-plugin && \
44632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44634 "RANLIB=$${RANLIB}" \
44635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44636 install-info) \
44637 || exit 1
44638
44639@endif lto-plugin
44640
44641.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
44642maybe-install-pdf-lto-plugin:
44643@if lto-plugin
44644maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
44645
44646install-pdf-lto-plugin: \
44647 configure-lto-plugin \
44648 pdf-lto-plugin
44649 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44650 r=`${PWD_COMMAND}`; export r; \
44651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44652 $(HOST_EXPORTS) \
44653 for flag in $(EXTRA_HOST_FLAGS) ; do \
44654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44655 done; \
44656 echo "Doing install-pdf in lto-plugin" ; \
44657 (cd $(HOST_SUBDIR)/lto-plugin && \
44658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44660 "RANLIB=$${RANLIB}" \
44661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44662 install-pdf) \
44663 || exit 1
44664
44665@endif lto-plugin
44666
44667.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
44668maybe-install-html-lto-plugin:
44669@if lto-plugin
44670maybe-install-html-lto-plugin: install-html-lto-plugin
44671
44672install-html-lto-plugin: \
44673 configure-lto-plugin \
44674 html-lto-plugin
44675 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44676 r=`${PWD_COMMAND}`; export r; \
44677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44678 $(HOST_EXPORTS) \
44679 for flag in $(EXTRA_HOST_FLAGS) ; do \
44680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44681 done; \
44682 echo "Doing install-html in lto-plugin" ; \
44683 (cd $(HOST_SUBDIR)/lto-plugin && \
44684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44686 "RANLIB=$${RANLIB}" \
44687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44688 install-html) \
44689 || exit 1
44690
44691@endif lto-plugin
44692
44693.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
44694maybe-installcheck-lto-plugin:
44695@if lto-plugin
44696maybe-installcheck-lto-plugin: installcheck-lto-plugin
44697
44698installcheck-lto-plugin: \
44699 configure-lto-plugin
44700 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44701 r=`${PWD_COMMAND}`; export r; \
44702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44703 $(HOST_EXPORTS) \
44704 for flag in $(EXTRA_HOST_FLAGS) ; do \
44705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44706 done; \
44707 echo "Doing installcheck in lto-plugin" ; \
44708 (cd $(HOST_SUBDIR)/lto-plugin && \
44709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44711 "RANLIB=$${RANLIB}" \
44712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44713 installcheck) \
44714 || exit 1
44715
44716@endif lto-plugin
44717
44718.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
44719maybe-mostlyclean-lto-plugin:
44720@if lto-plugin
44721maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
44722
44723mostlyclean-lto-plugin:
44724 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44725 r=`${PWD_COMMAND}`; export r; \
44726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44727 $(HOST_EXPORTS) \
44728 for flag in $(EXTRA_HOST_FLAGS) ; do \
44729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44730 done; \
44731 echo "Doing mostlyclean in lto-plugin" ; \
44732 (cd $(HOST_SUBDIR)/lto-plugin && \
44733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44735 "RANLIB=$${RANLIB}" \
44736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44737 mostlyclean) \
44738 || exit 1
44739
44740@endif lto-plugin
44741
44742.PHONY: maybe-clean-lto-plugin clean-lto-plugin
44743maybe-clean-lto-plugin:
44744@if lto-plugin
44745maybe-clean-lto-plugin: clean-lto-plugin
44746
44747clean-lto-plugin:
44748 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44749 r=`${PWD_COMMAND}`; export r; \
44750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44751 $(HOST_EXPORTS) \
44752 for flag in $(EXTRA_HOST_FLAGS) ; do \
44753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44754 done; \
44755 echo "Doing clean in lto-plugin" ; \
44756 (cd $(HOST_SUBDIR)/lto-plugin && \
44757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44759 "RANLIB=$${RANLIB}" \
44760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44761 clean) \
44762 || exit 1
44763
44764@endif lto-plugin
44765
44766.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
44767maybe-distclean-lto-plugin:
44768@if lto-plugin
44769maybe-distclean-lto-plugin: distclean-lto-plugin
44770
44771distclean-lto-plugin:
44772 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44773 r=`${PWD_COMMAND}`; export r; \
44774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44775 $(HOST_EXPORTS) \
44776 for flag in $(EXTRA_HOST_FLAGS) ; do \
44777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44778 done; \
44779 echo "Doing distclean in lto-plugin" ; \
44780 (cd $(HOST_SUBDIR)/lto-plugin && \
44781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44783 "RANLIB=$${RANLIB}" \
44784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44785 distclean) \
44786 || exit 1
44787
44788@endif lto-plugin
44789
44790.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
44791maybe-maintainer-clean-lto-plugin:
44792@if lto-plugin
44793maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
44794
44795maintainer-clean-lto-plugin:
44796 @[ -f ./lto-plugin/Makefile ] || exit 0; \
44797 r=`${PWD_COMMAND}`; export r; \
44798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44799 $(HOST_EXPORTS) \
44800 for flag in $(EXTRA_HOST_FLAGS) ; do \
44801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44802 done; \
44803 echo "Doing maintainer-clean in lto-plugin" ; \
44804 (cd $(HOST_SUBDIR)/lto-plugin && \
44805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44807 "RANLIB=$${RANLIB}" \
44808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44809 maintainer-clean) \
44810 || exit 1
44811
44812@endif lto-plugin
44813
44814
44815
8ec98d6c
NN
44816# ---------------------------------------
44817# Modules which run on the target machine
44818# ---------------------------------------
70ffc148 44819
8ecc6504 44820
f0fdfd34
PB
44821
44822
44823.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
44824maybe-configure-target-libstdc++-v3:
e1e5148c
CD
44825@if gcc-bootstrap
44826configure-target-libstdc++-v3: stage_current
44827@endif gcc-bootstrap
f0fdfd34
PB
44828@if target-libstdc++-v3
44829maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
ec92c4d6 44830configure-target-libstdc++-v3:
15b527ca
PB
44831 @r=`${PWD_COMMAND}`; export r; \
44832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44833 echo "Checking multilib configuration for libstdc++-v3..."; \
44834 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
44835 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
44836 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44837 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44838 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
44839 else \
44840 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
44841 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44842 fi; \
44843 else \
44844 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
ec92c4d6
PB
44845 fi; \
44846 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
8ec98d6c 44847 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
5074489a 44848 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
44849 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
44850 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
94f860c0 44851 case $(srcdir) in \
7fc2ca22
PB
44852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44853 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
44854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 44855 esac; \
7fc2ca22
PB
44856 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
44857 libsrcdir="$$s/libstdc++-v3"; \
8ec98d6c
NN
44858 rm -f no-such-file || : ; \
44859 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
44860 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44861 --target=${target_alias} $${srcdiroption} \
94f860c0 44862 || exit 1
a7e609d6 44863@endif target-libstdc++-v3
94f860c0 44864
f0fdfd34
PB
44865
44866
121f0eb2
RW
44867.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
44868maybe-configure-stage1-target-libstdc++-v3:
44869@if target-libstdc++-v3-bootstrap
44870maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
44871configure-stage1-target-libstdc++-v3:
44872 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
44873 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
44874 @r=`${PWD_COMMAND}`; export r; \
44875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44876 TFLAGS="$(STAGE1_TFLAGS)"; \
44877 echo "Checking multilib configuration for libstdc++-v3..."; \
44878 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
44879 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44880 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44881 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
44882 else \
44883 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
44884 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44885 fi; \
44886 else \
44887 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44888 fi; \
44889 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
44890 $(RAW_CXX_TARGET_EXPORTS) \
44891 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
44892 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 44893 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
44894 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
44895 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
44896 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
44897 case $(srcdir) in \
44898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44899 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
44900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44901 esac; \
44902 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
44903 libsrcdir="$$s/libstdc++-v3"; \
44904 $(SHELL) $${libsrcdir}/configure \
44905 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44906 --target=${target_alias} $${srcdiroption} \
44907 $(STAGE1_CONFIGURE_FLAGS)
44908@endif target-libstdc++-v3-bootstrap
44909
44910.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
44911maybe-configure-stage2-target-libstdc++-v3:
44912@if target-libstdc++-v3-bootstrap
44913maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
44914configure-stage2-target-libstdc++-v3:
44915 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
44916 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
44917 @r=`${PWD_COMMAND}`; export r; \
44918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44919 TFLAGS="$(STAGE2_TFLAGS)"; \
44920 echo "Checking multilib configuration for libstdc++-v3..."; \
44921 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
44922 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44923 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44924 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
44925 else \
44926 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
44927 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44928 fi; \
44929 else \
44930 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44931 fi; \
44932 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
44933 $(RAW_CXX_TARGET_EXPORTS) \
44934 \
44935 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
44936 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 44937 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
44938 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
44939 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
44940 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
44941 case $(srcdir) in \
44942 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44943 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
44944 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44945 esac; \
44946 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
44947 libsrcdir="$$s/libstdc++-v3"; \
44948 $(SHELL) $${libsrcdir}/configure \
44949 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44950 --target=${target_alias} $${srcdiroption} \
44951 --with-build-libsubdir=$(HOST_SUBDIR) \
44952 $(STAGE2_CONFIGURE_FLAGS)
44953@endif target-libstdc++-v3-bootstrap
44954
44955.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
44956maybe-configure-stage3-target-libstdc++-v3:
44957@if target-libstdc++-v3-bootstrap
44958maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
44959configure-stage3-target-libstdc++-v3:
44960 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
44961 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
44962 @r=`${PWD_COMMAND}`; export r; \
44963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44964 TFLAGS="$(STAGE3_TFLAGS)"; \
44965 echo "Checking multilib configuration for libstdc++-v3..."; \
44966 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
44967 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44968 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
44969 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
44970 else \
44971 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
44972 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44973 fi; \
44974 else \
44975 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
44976 fi; \
44977 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
44978 $(RAW_CXX_TARGET_EXPORTS) \
44979 \
44980 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
44981 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 44982 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
44983 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
44984 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
44985 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
44986 case $(srcdir) in \
44987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44988 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
44989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44990 esac; \
44991 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
44992 libsrcdir="$$s/libstdc++-v3"; \
44993 $(SHELL) $${libsrcdir}/configure \
44994 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44995 --target=${target_alias} $${srcdiroption} \
44996 --with-build-libsubdir=$(HOST_SUBDIR) \
44997 $(STAGE3_CONFIGURE_FLAGS)
44998@endif target-libstdc++-v3-bootstrap
44999
45000.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
45001maybe-configure-stage4-target-libstdc++-v3:
45002@if target-libstdc++-v3-bootstrap
45003maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
45004configure-stage4-target-libstdc++-v3:
45005 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45006 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
45007 @r=`${PWD_COMMAND}`; export r; \
45008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45009 TFLAGS="$(STAGE4_TFLAGS)"; \
45010 echo "Checking multilib configuration for libstdc++-v3..."; \
45011 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
45012 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45013 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45014 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
45015 else \
45016 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
45017 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45018 fi; \
45019 else \
45020 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45021 fi; \
45022 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
45023 $(RAW_CXX_TARGET_EXPORTS) \
45024 \
45025 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45026 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 45027 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
45028 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
45029 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
45030 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
45031 case $(srcdir) in \
45032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45033 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
45034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45035 esac; \
45036 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
45037 libsrcdir="$$s/libstdc++-v3"; \
45038 $(SHELL) $${libsrcdir}/configure \
45039 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45040 --target=${target_alias} $${srcdiroption} \
45041 --with-build-libsubdir=$(HOST_SUBDIR) \
45042 $(STAGE4_CONFIGURE_FLAGS)
45043@endif target-libstdc++-v3-bootstrap
45044
45045.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
45046maybe-configure-stageprofile-target-libstdc++-v3:
45047@if target-libstdc++-v3-bootstrap
45048maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
45049configure-stageprofile-target-libstdc++-v3:
45050 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45051 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
45052 @r=`${PWD_COMMAND}`; export r; \
45053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45054 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45055 echo "Checking multilib configuration for libstdc++-v3..."; \
45056 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
45057 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45058 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45059 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
45060 else \
45061 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
45062 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45063 fi; \
45064 else \
45065 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45066 fi; \
45067 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
45068 $(RAW_CXX_TARGET_EXPORTS) \
45069 \
45070 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45071 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 45072 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
45073 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
45074 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
45075 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
45076 case $(srcdir) in \
45077 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45078 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
45079 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45080 esac; \
45081 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
45082 libsrcdir="$$s/libstdc++-v3"; \
45083 $(SHELL) $${libsrcdir}/configure \
45084 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45085 --target=${target_alias} $${srcdiroption} \
45086 --with-build-libsubdir=$(HOST_SUBDIR) \
45087 $(STAGEprofile_CONFIGURE_FLAGS)
45088@endif target-libstdc++-v3-bootstrap
45089
45090.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
45091maybe-configure-stagefeedback-target-libstdc++-v3:
45092@if target-libstdc++-v3-bootstrap
45093maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
45094configure-stagefeedback-target-libstdc++-v3:
45095 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45096 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
45097 @r=`${PWD_COMMAND}`; export r; \
45098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45099 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45100 echo "Checking multilib configuration for libstdc++-v3..."; \
45101 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
45102 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45103 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
45104 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
45105 else \
45106 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
45107 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45108 fi; \
45109 else \
45110 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
45111 fi; \
45112 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
45113 $(RAW_CXX_TARGET_EXPORTS) \
45114 \
45115 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45116 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 45117 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
121f0eb2
RW
45118 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
45119 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
45120 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
45121 case $(srcdir) in \
45122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45123 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
45124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45125 esac; \
45126 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
45127 libsrcdir="$$s/libstdc++-v3"; \
45128 $(SHELL) $${libsrcdir}/configure \
45129 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45130 --target=${target_alias} $${srcdiroption} \
45131 --with-build-libsubdir=$(HOST_SUBDIR) \
45132 $(STAGEfeedback_CONFIGURE_FLAGS)
45133@endif target-libstdc++-v3-bootstrap
45134
45135
45136
a8a96878
PB
45137
45138
8ec98d6c
NN
45139.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
45140maybe-all-target-libstdc++-v3:
e1e5148c
CD
45141@if gcc-bootstrap
45142all-target-libstdc++-v3: stage_current
45143@endif gcc-bootstrap
a7e609d6 45144@if target-libstdc++-v3
6a19fd82 45145TARGET-target-libstdc++-v3=all
a7e609d6 45146maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
8ec98d6c 45147all-target-libstdc++-v3: configure-target-libstdc++-v3
5230d454
L
45148 @r=`${PWD_COMMAND}`; export r; \
45149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 45150 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 45151 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6532abb6
PB
45152 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45153 $(TARGET-target-libstdc++-v3))
a7e609d6 45154@endif target-libstdc++-v3
8ecc6504 45155
f0fdfd34
PB
45156
45157
121f0eb2
RW
45158.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
45159.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
45160maybe-all-stage1-target-libstdc++-v3:
45161maybe-clean-stage1-target-libstdc++-v3:
45162@if target-libstdc++-v3-bootstrap
45163maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
45164all-stage1: all-stage1-target-libstdc++-v3
45165TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45166all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
45167 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45168 @r=`${PWD_COMMAND}`; export r; \
45169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45170 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 45171 $(RAW_CXX_TARGET_EXPORTS) \
121f0eb2
RW
45172 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45173 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45174 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45175 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45176 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45177 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45178 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45179 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45180 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45181 TFLAGS="$(STAGE1_TFLAGS)" \
45182 $(TARGET-stage1-target-libstdc++-v3)
45183
45184maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
45185clean-stage1: clean-stage1-target-libstdc++-v3
45186clean-stage1-target-libstdc++-v3:
45187 @if [ $(current_stage) = stage1 ]; then \
45188 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45189 else \
45190 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
45191 $(MAKE) stage1-start; \
45192 fi; \
45193 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45194 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45195 clean
45196@endif target-libstdc++-v3-bootstrap
45197
45198
45199.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
45200.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
45201maybe-all-stage2-target-libstdc++-v3:
45202maybe-clean-stage2-target-libstdc++-v3:
45203@if target-libstdc++-v3-bootstrap
45204maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
45205all-stage2: all-stage2-target-libstdc++-v3
45206TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45207all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
45208 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45209 @r=`${PWD_COMMAND}`; export r; \
45210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45211 TFLAGS="$(STAGE2_TFLAGS)"; \
45212 $(RAW_CXX_TARGET_EXPORTS) \
5074489a 45213 \
121f0eb2
RW
45214 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45215 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45216 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45217 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45218 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45219 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45220 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45221 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45222 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45223 TFLAGS="$(STAGE2_TFLAGS)" \
45224 $(TARGET-stage2-target-libstdc++-v3)
45225
45226maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
45227clean-stage2: clean-stage2-target-libstdc++-v3
45228clean-stage2-target-libstdc++-v3:
45229 @if [ $(current_stage) = stage2 ]; then \
45230 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45231 else \
45232 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
45233 $(MAKE) stage2-start; \
45234 fi; \
45235 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45236 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45237 \
45238 clean
45239@endif target-libstdc++-v3-bootstrap
45240
45241
45242.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
45243.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
45244maybe-all-stage3-target-libstdc++-v3:
45245maybe-clean-stage3-target-libstdc++-v3:
45246@if target-libstdc++-v3-bootstrap
45247maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
45248all-stage3: all-stage3-target-libstdc++-v3
45249TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45250all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
45251 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45252 @r=`${PWD_COMMAND}`; export r; \
45253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45254 TFLAGS="$(STAGE3_TFLAGS)"; \
45255 $(RAW_CXX_TARGET_EXPORTS) \
5074489a 45256 \
121f0eb2
RW
45257 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45258 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45259 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45260 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45261 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45262 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45263 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45264 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45265 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45266 TFLAGS="$(STAGE3_TFLAGS)" \
45267 $(TARGET-stage3-target-libstdc++-v3)
45268
45269maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
45270clean-stage3: clean-stage3-target-libstdc++-v3
45271clean-stage3-target-libstdc++-v3:
45272 @if [ $(current_stage) = stage3 ]; then \
45273 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45274 else \
45275 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
45276 $(MAKE) stage3-start; \
45277 fi; \
45278 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45279 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45280 \
45281 clean
45282@endif target-libstdc++-v3-bootstrap
45283
45284
45285.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
45286.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
45287maybe-all-stage4-target-libstdc++-v3:
45288maybe-clean-stage4-target-libstdc++-v3:
45289@if target-libstdc++-v3-bootstrap
45290maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
45291all-stage4: all-stage4-target-libstdc++-v3
45292TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45293all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
45294 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45295 @r=`${PWD_COMMAND}`; export r; \
45296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45297 TFLAGS="$(STAGE4_TFLAGS)"; \
45298 $(RAW_CXX_TARGET_EXPORTS) \
5074489a 45299 \
121f0eb2
RW
45300 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45301 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45302 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45303 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45304 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45305 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45306 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45307 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45308 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45309 TFLAGS="$(STAGE4_TFLAGS)" \
45310 $(TARGET-stage4-target-libstdc++-v3)
45311
45312maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
45313clean-stage4: clean-stage4-target-libstdc++-v3
45314clean-stage4-target-libstdc++-v3:
45315 @if [ $(current_stage) = stage4 ]; then \
45316 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45317 else \
45318 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
45319 $(MAKE) stage4-start; \
45320 fi; \
45321 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45322 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45323 \
45324 clean
45325@endif target-libstdc++-v3-bootstrap
45326
45327
45328.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
45329.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
45330maybe-all-stageprofile-target-libstdc++-v3:
45331maybe-clean-stageprofile-target-libstdc++-v3:
45332@if target-libstdc++-v3-bootstrap
45333maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
45334all-stageprofile: all-stageprofile-target-libstdc++-v3
45335TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45336all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
45337 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45338 @r=`${PWD_COMMAND}`; export r; \
45339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45340 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45341 $(RAW_CXX_TARGET_EXPORTS) \
5074489a 45342 \
121f0eb2
RW
45343 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45344 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45345 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45346 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45347 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45348 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45349 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45350 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45351 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45352 TFLAGS="$(STAGEprofile_TFLAGS)" \
45353 $(TARGET-stageprofile-target-libstdc++-v3)
45354
45355maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
45356clean-stageprofile: clean-stageprofile-target-libstdc++-v3
45357clean-stageprofile-target-libstdc++-v3:
45358 @if [ $(current_stage) = stageprofile ]; then \
45359 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45360 else \
45361 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
45362 $(MAKE) stageprofile-start; \
45363 fi; \
45364 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45365 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45366 \
45367 clean
45368@endif target-libstdc++-v3-bootstrap
45369
45370
45371.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
45372.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
45373maybe-all-stagefeedback-target-libstdc++-v3:
45374maybe-clean-stagefeedback-target-libstdc++-v3:
45375@if target-libstdc++-v3-bootstrap
45376maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
45377all-stagefeedback: all-stagefeedback-target-libstdc++-v3
45378TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
45379all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
45380 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45381 @r=`${PWD_COMMAND}`; export r; \
45382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45383 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45384 $(RAW_CXX_TARGET_EXPORTS) \
5074489a 45385 \
121f0eb2
RW
45386 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45387 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45388 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45389 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45390 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45391 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45392 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45393 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45394 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45395 TFLAGS="$(STAGEfeedback_TFLAGS)" \
45396 $(TARGET-stagefeedback-target-libstdc++-v3)
45397
45398maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
45399clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
45400clean-stagefeedback-target-libstdc++-v3:
45401 @if [ $(current_stage) = stagefeedback ]; then \
45402 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
45403 else \
45404 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
45405 $(MAKE) stagefeedback-start; \
45406 fi; \
45407 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45408 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
45409 \
45410 clean
45411@endif target-libstdc++-v3-bootstrap
45412
45413
45414
45415
a8a96878
PB
45416
45417
8ec98d6c
NN
45418.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
45419maybe-check-target-libstdc++-v3:
a7e609d6
PB
45420@if target-libstdc++-v3
45421maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
8ecc6504 45422
8ec98d6c 45423check-target-libstdc++-v3:
15b527ca 45424 @: $(MAKE); $(unstage)
5230d454
L
45425 @r=`${PWD_COMMAND}`; export r; \
45426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45427 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 45428 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 45429 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 45430
a7e609d6 45431@endif target-libstdc++-v3
8ecc6504 45432
8ec98d6c
NN
45433.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
45434maybe-install-target-libstdc++-v3:
a7e609d6
PB
45435@if target-libstdc++-v3
45436maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
70ffc148 45437
8ec98d6c 45438install-target-libstdc++-v3: installdirs
15b527ca 45439 @: $(MAKE); $(unstage)
5230d454
L
45440 @r=`${PWD_COMMAND}`; export r; \
45441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45442 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 45443 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
63673a5b 45444 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 45445
a7e609d6 45446@endif target-libstdc++-v3
94f860c0 45447
39bbbb69 45448# Other targets (info, dvi, pdf, etc.)
8ecc6504 45449
8ec98d6c
NN
45450.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
45451maybe-info-target-libstdc++-v3:
a7e609d6
PB
45452@if target-libstdc++-v3
45453maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
8ecc6504 45454
8ec98d6c
NN
45455info-target-libstdc++-v3: \
45456 configure-target-libstdc++-v3
15b527ca 45457 @: $(MAKE); $(unstage)
8ec98d6c
NN
45458 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45459 r=`${PWD_COMMAND}`; export r; \
5230d454 45460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45461 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45462 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45463 for flag in $(EXTRA_TARGET_FLAGS); do \
45464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45465 done; \
45466 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45469 "RANLIB=$${RANLIB}" \
bffcbe34 45470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45471 info) \
8ec98d6c 45472 || exit 1
8ecc6504 45473
a7e609d6 45474@endif target-libstdc++-v3
8ecc6504 45475
8ec98d6c
NN
45476.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
45477maybe-dvi-target-libstdc++-v3:
a7e609d6
PB
45478@if target-libstdc++-v3
45479maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
70ffc148 45480
8ec98d6c
NN
45481dvi-target-libstdc++-v3: \
45482 configure-target-libstdc++-v3
15b527ca 45483 @: $(MAKE); $(unstage)
8ec98d6c
NN
45484 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45485 r=`${PWD_COMMAND}`; export r; \
5230d454 45486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45487 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45488 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45489 for flag in $(EXTRA_TARGET_FLAGS); do \
45490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45491 done; \
45492 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45495 "RANLIB=$${RANLIB}" \
bffcbe34 45496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45497 dvi) \
8ec98d6c 45498 || exit 1
8ecc6504 45499
a7e609d6 45500@endif target-libstdc++-v3
8ecc6504 45501
39bbbb69
DD
45502.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
45503maybe-pdf-target-libstdc++-v3:
45504@if target-libstdc++-v3
45505maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
45506
45507pdf-target-libstdc++-v3: \
45508 configure-target-libstdc++-v3
45509 @: $(MAKE); $(unstage)
45510 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45511 r=`${PWD_COMMAND}`; export r; \
45512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45513 $(RAW_CXX_TARGET_EXPORTS) \
45514 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45515 for flag in $(EXTRA_TARGET_FLAGS); do \
45516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45517 done; \
45518 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45521 "RANLIB=$${RANLIB}" \
bffcbe34 45522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
45523 pdf) \
45524 || exit 1
45525
45526@endif target-libstdc++-v3
45527
b6fb961f
MS
45528.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
45529maybe-html-target-libstdc++-v3:
45530@if target-libstdc++-v3
45531maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
45532
45533html-target-libstdc++-v3: \
45534 configure-target-libstdc++-v3
15b527ca 45535 @: $(MAKE); $(unstage)
b6fb961f
MS
45536 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45537 r=`${PWD_COMMAND}`; export r; \
45538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
45539 $(RAW_CXX_TARGET_EXPORTS) \
45540 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45541 for flag in $(EXTRA_TARGET_FLAGS); do \
45542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45543 done; \
45544 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45547 "RANLIB=$${RANLIB}" \
bffcbe34 45548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
45549 html) \
45550 || exit 1
45551
45552@endif target-libstdc++-v3
45553
8ec98d6c
NN
45554.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
45555maybe-TAGS-target-libstdc++-v3:
a7e609d6
PB
45556@if target-libstdc++-v3
45557maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
8ec98d6c
NN
45558
45559TAGS-target-libstdc++-v3: \
45560 configure-target-libstdc++-v3
15b527ca 45561 @: $(MAKE); $(unstage)
8ec98d6c 45562 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
45563 r=`${PWD_COMMAND}`; export r; \
45564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45565 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45566 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45567 for flag in $(EXTRA_TARGET_FLAGS); do \
45568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45569 done; \
45570 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45573 "RANLIB=$${RANLIB}" \
bffcbe34 45574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45575 TAGS) \
94f860c0
NN
45576 || exit 1
45577
a7e609d6 45578@endif target-libstdc++-v3
8ecc6504 45579
8ec98d6c
NN
45580.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
45581maybe-install-info-target-libstdc++-v3:
a7e609d6
PB
45582@if target-libstdc++-v3
45583maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
8ecc6504 45584
8ec98d6c
NN
45585install-info-target-libstdc++-v3: \
45586 configure-target-libstdc++-v3 \
45587 info-target-libstdc++-v3
15b527ca 45588 @: $(MAKE); $(unstage)
8ec98d6c
NN
45589 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45590 r=`${PWD_COMMAND}`; export r; \
5230d454 45591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45592 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45593 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45594 for flag in $(EXTRA_TARGET_FLAGS); do \
45595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45596 done; \
45597 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45600 "RANLIB=$${RANLIB}" \
bffcbe34 45601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45602 install-info) \
8ec98d6c 45603 || exit 1
8ecc6504 45604
a7e609d6 45605@endif target-libstdc++-v3
8ecc6504 45606
d4954b6d
DD
45607.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
45608maybe-install-pdf-target-libstdc++-v3:
45609@if target-libstdc++-v3
45610maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
45611
45612install-pdf-target-libstdc++-v3: \
45613 configure-target-libstdc++-v3 \
45614 pdf-target-libstdc++-v3
45615 @: $(MAKE); $(unstage)
45616 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45617 r=`${PWD_COMMAND}`; export r; \
45618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45619 $(RAW_CXX_TARGET_EXPORTS) \
45620 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45621 for flag in $(EXTRA_TARGET_FLAGS); do \
45622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45623 done; \
45624 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45627 "RANLIB=$${RANLIB}" \
bffcbe34 45628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
45629 install-pdf) \
45630 || exit 1
45631
45632@endif target-libstdc++-v3
45633
83c9add4
CD
45634.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
45635maybe-install-html-target-libstdc++-v3:
45636@if target-libstdc++-v3
45637maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
45638
45639install-html-target-libstdc++-v3: \
45640 configure-target-libstdc++-v3 \
45641 html-target-libstdc++-v3
45642 @: $(MAKE); $(unstage)
45643 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45644 r=`${PWD_COMMAND}`; export r; \
45645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45646 $(RAW_CXX_TARGET_EXPORTS) \
45647 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45648 for flag in $(EXTRA_TARGET_FLAGS); do \
45649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45650 done; \
45651 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45654 "RANLIB=$${RANLIB}" \
bffcbe34 45655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
45656 install-html) \
45657 || exit 1
45658
45659@endif target-libstdc++-v3
45660
8ec98d6c
NN
45661.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
45662maybe-installcheck-target-libstdc++-v3:
a7e609d6
PB
45663@if target-libstdc++-v3
45664maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
70ffc148 45665
8ec98d6c
NN
45666installcheck-target-libstdc++-v3: \
45667 configure-target-libstdc++-v3
15b527ca 45668 @: $(MAKE); $(unstage)
8ec98d6c
NN
45669 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45670 r=`${PWD_COMMAND}`; export r; \
5230d454 45671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45672 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45673 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45674 for flag in $(EXTRA_TARGET_FLAGS); do \
45675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45676 done; \
45677 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45680 "RANLIB=$${RANLIB}" \
bffcbe34 45681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45682 installcheck) \
8ec98d6c 45683 || exit 1
8ecc6504 45684
a7e609d6 45685@endif target-libstdc++-v3
8ecc6504 45686
8ec98d6c
NN
45687.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
45688maybe-mostlyclean-target-libstdc++-v3:
a7e609d6
PB
45689@if target-libstdc++-v3
45690maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
8ec98d6c
NN
45691
45692mostlyclean-target-libstdc++-v3:
15b527ca 45693 @: $(MAKE); $(unstage)
8ec98d6c 45694 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
5230d454
L
45695 r=`${PWD_COMMAND}`; export r; \
45696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45697 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45698 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45699 for flag in $(EXTRA_TARGET_FLAGS); do \
45700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45701 done; \
45702 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45705 "RANLIB=$${RANLIB}" \
bffcbe34 45706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45707 mostlyclean) \
94f860c0
NN
45708 || exit 1
45709
a7e609d6 45710@endif target-libstdc++-v3
8ec98d6c
NN
45711
45712.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
45713maybe-clean-target-libstdc++-v3:
a7e609d6
PB
45714@if target-libstdc++-v3
45715maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
8ec98d6c
NN
45716
45717clean-target-libstdc++-v3:
15b527ca 45718 @: $(MAKE); $(unstage)
8ec98d6c
NN
45719 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45720 r=`${PWD_COMMAND}`; export r; \
5230d454 45721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45722 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45723 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45724 for flag in $(EXTRA_TARGET_FLAGS); do \
45725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45726 done; \
45727 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45730 "RANLIB=$${RANLIB}" \
bffcbe34 45731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45732 clean) \
8ec98d6c 45733 || exit 1
8ecc6504 45734
a7e609d6 45735@endif target-libstdc++-v3
8ecc6504 45736
8ec98d6c
NN
45737.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
45738maybe-distclean-target-libstdc++-v3:
a7e609d6
PB
45739@if target-libstdc++-v3
45740maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
8ec98d6c
NN
45741
45742distclean-target-libstdc++-v3:
15b527ca 45743 @: $(MAKE); $(unstage)
8ec98d6c
NN
45744 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45745 r=`${PWD_COMMAND}`; export r; \
5230d454 45746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45747 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45748 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45749 for flag in $(EXTRA_TARGET_FLAGS); do \
45750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45751 done; \
45752 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45755 "RANLIB=$${RANLIB}" \
bffcbe34 45756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45757 distclean) \
8ec98d6c 45758 || exit 1
8ecc6504 45759
a7e609d6 45760@endif target-libstdc++-v3
8ecc6504 45761
8ec98d6c
NN
45762.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
45763maybe-maintainer-clean-target-libstdc++-v3:
a7e609d6
PB
45764@if target-libstdc++-v3
45765maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
70ffc148 45766
8ec98d6c 45767maintainer-clean-target-libstdc++-v3:
15b527ca 45768 @: $(MAKE); $(unstage)
8ec98d6c
NN
45769 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
45770 r=`${PWD_COMMAND}`; export r; \
5230d454 45771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45772 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
45773 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
45774 for flag in $(EXTRA_TARGET_FLAGS); do \
45775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45776 done; \
45777 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
45778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45780 "RANLIB=$${RANLIB}" \
bffcbe34 45781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45782 maintainer-clean) \
8ec98d6c 45783 || exit 1
8ecc6504 45784
a7e609d6 45785@endif target-libstdc++-v3
8ecc6504 45786
8ec98d6c 45787
8ec98d6c 45788
f0fdfd34
PB
45789
45790
45791.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
45792maybe-configure-target-libmudflap:
e1e5148c
CD
45793@if gcc-bootstrap
45794configure-target-libmudflap: stage_current
45795@endif gcc-bootstrap
f0fdfd34
PB
45796@if target-libmudflap
45797maybe-configure-target-libmudflap: configure-target-libmudflap
ec92c4d6 45798configure-target-libmudflap:
15b527ca
PB
45799 @: $(MAKE); $(unstage)
45800 @r=`${PWD_COMMAND}`; export r; \
45801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45802 echo "Checking multilib configuration for libmudflap..."; \
45803 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
45804 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
45805 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
45806 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
45807 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
45808 else \
45809 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
45810 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
45811 fi; \
45812 else \
45813 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
ec92c4d6
PB
45814 fi; \
45815 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
cb2333e8 45816 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
5074489a 45817 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45818 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
45819 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
94f860c0 45820 case $(srcdir) in \
7fc2ca22
PB
45821 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45822 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
45823 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 45824 esac; \
7fc2ca22
PB
45825 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
45826 libsrcdir="$$s/libmudflap"; \
8ec98d6c
NN
45827 rm -f no-such-file || : ; \
45828 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
45829 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45830 --target=${target_alias} $${srcdiroption} \
94f860c0 45831 || exit 1
a7e609d6 45832@endif target-libmudflap
94f860c0 45833
f0fdfd34
PB
45834
45835
a8a96878
PB
45836
45837
cb2333e8
DD
45838.PHONY: all-target-libmudflap maybe-all-target-libmudflap
45839maybe-all-target-libmudflap:
e1e5148c
CD
45840@if gcc-bootstrap
45841all-target-libmudflap: stage_current
45842@endif gcc-bootstrap
a7e609d6 45843@if target-libmudflap
6a19fd82 45844TARGET-target-libmudflap=all
a7e609d6 45845maybe-all-target-libmudflap: all-target-libmudflap
cb2333e8 45846all-target-libmudflap: configure-target-libmudflap
15b527ca 45847 @: $(MAKE); $(unstage)
5230d454
L
45848 @r=`${PWD_COMMAND}`; export r; \
45849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 45850 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45851 (cd $(TARGET_SUBDIR)/libmudflap && \
6532abb6
PB
45852 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
45853 $(TARGET-target-libmudflap))
a7e609d6 45854@endif target-libmudflap
8ecc6504 45855
f0fdfd34
PB
45856
45857
a8a96878
PB
45858
45859
cb2333e8
DD
45860.PHONY: check-target-libmudflap maybe-check-target-libmudflap
45861maybe-check-target-libmudflap:
a7e609d6
PB
45862@if target-libmudflap
45863maybe-check-target-libmudflap: check-target-libmudflap
70ffc148 45864
cb2333e8 45865check-target-libmudflap:
15b527ca 45866 @: $(MAKE); $(unstage)
cb2333e8
DD
45867 @r=`${PWD_COMMAND}`; export r; \
45868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45869 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45870 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 45871 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 45872
a7e609d6 45873@endif target-libmudflap
cb2333e8
DD
45874
45875.PHONY: install-target-libmudflap maybe-install-target-libmudflap
45876maybe-install-target-libmudflap:
a7e609d6
PB
45877@if target-libmudflap
45878maybe-install-target-libmudflap: install-target-libmudflap
cb2333e8
DD
45879
45880install-target-libmudflap: installdirs
15b527ca 45881 @: $(MAKE); $(unstage)
cb2333e8
DD
45882 @r=`${PWD_COMMAND}`; export r; \
45883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45884 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 45885 (cd $(TARGET_SUBDIR)/libmudflap && \
63673a5b 45886 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 45887
a7e609d6 45888@endif target-libmudflap
cb2333e8 45889
39bbbb69 45890# Other targets (info, dvi, pdf, etc.)
cb2333e8
DD
45891
45892.PHONY: maybe-info-target-libmudflap info-target-libmudflap
45893maybe-info-target-libmudflap:
a7e609d6
PB
45894@if target-libmudflap
45895maybe-info-target-libmudflap: info-target-libmudflap
cb2333e8
DD
45896
45897info-target-libmudflap: \
45898 configure-target-libmudflap
15b527ca 45899 @: $(MAKE); $(unstage)
cb2333e8
DD
45900 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
45901 r=`${PWD_COMMAND}`; export r; \
45902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45903 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45904 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
45905 for flag in $(EXTRA_TARGET_FLAGS); do \
45906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45907 done; \
45908 (cd $(TARGET_SUBDIR)/libmudflap && \
45909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45911 "RANLIB=$${RANLIB}" \
bffcbe34 45912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45913 info) \
cb2333e8
DD
45914 || exit 1
45915
a7e609d6 45916@endif target-libmudflap
cb2333e8
DD
45917
45918.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
45919maybe-dvi-target-libmudflap:
a7e609d6
PB
45920@if target-libmudflap
45921maybe-dvi-target-libmudflap: dvi-target-libmudflap
cb2333e8
DD
45922
45923dvi-target-libmudflap: \
45924 configure-target-libmudflap
15b527ca 45925 @: $(MAKE); $(unstage)
cb2333e8
DD
45926 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
45927 r=`${PWD_COMMAND}`; export r; \
45928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 45929 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
45930 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
45931 for flag in $(EXTRA_TARGET_FLAGS); do \
45932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45933 done; \
45934 (cd $(TARGET_SUBDIR)/libmudflap && \
45935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45937 "RANLIB=$${RANLIB}" \
bffcbe34 45938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 45939 dvi) \
cb2333e8
DD
45940 || exit 1
45941
a7e609d6 45942@endif target-libmudflap
cb2333e8 45943
39bbbb69
DD
45944.PHONY: maybe-pdf-target-libmudflap pdf-target-libmudflap
45945maybe-pdf-target-libmudflap:
45946@if target-libmudflap
45947maybe-pdf-target-libmudflap: pdf-target-libmudflap
45948
45949pdf-target-libmudflap: \
45950 configure-target-libmudflap
45951 @: $(MAKE); $(unstage)
45952 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
45953 r=`${PWD_COMMAND}`; export r; \
45954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45955 $(NORMAL_TARGET_EXPORTS) \
45956 echo "Doing pdf in $(TARGET_SUBDIR)/libmudflap" ; \
45957 for flag in $(EXTRA_TARGET_FLAGS); do \
45958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45959 done; \
45960 (cd $(TARGET_SUBDIR)/libmudflap && \
45961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45963 "RANLIB=$${RANLIB}" \
bffcbe34 45964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
45965 pdf) \
45966 || exit 1
45967
45968@endif target-libmudflap
45969
b6fb961f
MS
45970.PHONY: maybe-html-target-libmudflap html-target-libmudflap
45971maybe-html-target-libmudflap:
45972@if target-libmudflap
45973maybe-html-target-libmudflap: html-target-libmudflap
45974
45975html-target-libmudflap: \
45976 configure-target-libmudflap
15b527ca 45977 @: $(MAKE); $(unstage)
b6fb961f
MS
45978 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
45979 r=`${PWD_COMMAND}`; export r; \
45980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
45981 $(NORMAL_TARGET_EXPORTS) \
45982 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
45983 for flag in $(EXTRA_TARGET_FLAGS); do \
45984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45985 done; \
45986 (cd $(TARGET_SUBDIR)/libmudflap && \
45987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45989 "RANLIB=$${RANLIB}" \
bffcbe34 45990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
45991 html) \
45992 || exit 1
45993
45994@endif target-libmudflap
45995
cb2333e8
DD
45996.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
45997maybe-TAGS-target-libmudflap:
a7e609d6
PB
45998@if target-libmudflap
45999maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
cb2333e8
DD
46000
46001TAGS-target-libmudflap: \
46002 configure-target-libmudflap
15b527ca 46003 @: $(MAKE); $(unstage)
cb2333e8
DD
46004 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46005 r=`${PWD_COMMAND}`; export r; \
46006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46007 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46008 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
46009 for flag in $(EXTRA_TARGET_FLAGS); do \
46010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46011 done; \
46012 (cd $(TARGET_SUBDIR)/libmudflap && \
46013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46015 "RANLIB=$${RANLIB}" \
bffcbe34 46016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46017 TAGS) \
cb2333e8
DD
46018 || exit 1
46019
a7e609d6 46020@endif target-libmudflap
cb2333e8
DD
46021
46022.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
46023maybe-install-info-target-libmudflap:
a7e609d6
PB
46024@if target-libmudflap
46025maybe-install-info-target-libmudflap: install-info-target-libmudflap
cb2333e8
DD
46026
46027install-info-target-libmudflap: \
46028 configure-target-libmudflap \
46029 info-target-libmudflap
15b527ca 46030 @: $(MAKE); $(unstage)
cb2333e8
DD
46031 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46032 r=`${PWD_COMMAND}`; export r; \
46033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46034 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46035 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
46036 for flag in $(EXTRA_TARGET_FLAGS); do \
46037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46038 done; \
46039 (cd $(TARGET_SUBDIR)/libmudflap && \
46040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46042 "RANLIB=$${RANLIB}" \
bffcbe34 46043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46044 install-info) \
cb2333e8
DD
46045 || exit 1
46046
a7e609d6 46047@endif target-libmudflap
cb2333e8 46048
d4954b6d
DD
46049.PHONY: maybe-install-pdf-target-libmudflap install-pdf-target-libmudflap
46050maybe-install-pdf-target-libmudflap:
46051@if target-libmudflap
46052maybe-install-pdf-target-libmudflap: install-pdf-target-libmudflap
46053
46054install-pdf-target-libmudflap: \
46055 configure-target-libmudflap \
46056 pdf-target-libmudflap
46057 @: $(MAKE); $(unstage)
46058 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46059 r=`${PWD_COMMAND}`; export r; \
46060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46061 $(NORMAL_TARGET_EXPORTS) \
46062 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmudflap" ; \
46063 for flag in $(EXTRA_TARGET_FLAGS); do \
46064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46065 done; \
46066 (cd $(TARGET_SUBDIR)/libmudflap && \
46067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46069 "RANLIB=$${RANLIB}" \
bffcbe34 46070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
46071 install-pdf) \
46072 || exit 1
46073
46074@endif target-libmudflap
46075
83c9add4
CD
46076.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
46077maybe-install-html-target-libmudflap:
46078@if target-libmudflap
46079maybe-install-html-target-libmudflap: install-html-target-libmudflap
46080
46081install-html-target-libmudflap: \
46082 configure-target-libmudflap \
46083 html-target-libmudflap
46084 @: $(MAKE); $(unstage)
46085 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46086 r=`${PWD_COMMAND}`; export r; \
46087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46088 $(NORMAL_TARGET_EXPORTS) \
46089 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
46090 for flag in $(EXTRA_TARGET_FLAGS); do \
46091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46092 done; \
46093 (cd $(TARGET_SUBDIR)/libmudflap && \
46094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46096 "RANLIB=$${RANLIB}" \
bffcbe34 46097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
46098 install-html) \
46099 || exit 1
46100
46101@endif target-libmudflap
46102
cb2333e8
DD
46103.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
46104maybe-installcheck-target-libmudflap:
a7e609d6
PB
46105@if target-libmudflap
46106maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
cb2333e8
DD
46107
46108installcheck-target-libmudflap: \
46109 configure-target-libmudflap
15b527ca 46110 @: $(MAKE); $(unstage)
cb2333e8
DD
46111 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46112 r=`${PWD_COMMAND}`; export r; \
46113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46114 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46115 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
46116 for flag in $(EXTRA_TARGET_FLAGS); do \
46117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46118 done; \
46119 (cd $(TARGET_SUBDIR)/libmudflap && \
46120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46122 "RANLIB=$${RANLIB}" \
bffcbe34 46123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46124 installcheck) \
cb2333e8
DD
46125 || exit 1
46126
a7e609d6 46127@endif target-libmudflap
cb2333e8
DD
46128
46129.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
46130maybe-mostlyclean-target-libmudflap:
a7e609d6
PB
46131@if target-libmudflap
46132maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
cb2333e8
DD
46133
46134mostlyclean-target-libmudflap:
15b527ca 46135 @: $(MAKE); $(unstage)
cb2333e8
DD
46136 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46137 r=`${PWD_COMMAND}`; export r; \
46138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46139 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46140 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
46141 for flag in $(EXTRA_TARGET_FLAGS); do \
46142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46143 done; \
46144 (cd $(TARGET_SUBDIR)/libmudflap && \
46145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46147 "RANLIB=$${RANLIB}" \
bffcbe34 46148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46149 mostlyclean) \
cb2333e8
DD
46150 || exit 1
46151
a7e609d6 46152@endif target-libmudflap
cb2333e8
DD
46153
46154.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
46155maybe-clean-target-libmudflap:
a7e609d6
PB
46156@if target-libmudflap
46157maybe-clean-target-libmudflap: clean-target-libmudflap
cb2333e8
DD
46158
46159clean-target-libmudflap:
15b527ca 46160 @: $(MAKE); $(unstage)
cb2333e8
DD
46161 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46162 r=`${PWD_COMMAND}`; export r; \
46163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46164 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46165 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
46166 for flag in $(EXTRA_TARGET_FLAGS); do \
46167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46168 done; \
46169 (cd $(TARGET_SUBDIR)/libmudflap && \
46170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46172 "RANLIB=$${RANLIB}" \
bffcbe34 46173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46174 clean) \
cb2333e8
DD
46175 || exit 1
46176
a7e609d6 46177@endif target-libmudflap
cb2333e8
DD
46178
46179.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
46180maybe-distclean-target-libmudflap:
a7e609d6
PB
46181@if target-libmudflap
46182maybe-distclean-target-libmudflap: distclean-target-libmudflap
cb2333e8
DD
46183
46184distclean-target-libmudflap:
15b527ca 46185 @: $(MAKE); $(unstage)
cb2333e8
DD
46186 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46187 r=`${PWD_COMMAND}`; export r; \
46188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46189 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46190 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
46191 for flag in $(EXTRA_TARGET_FLAGS); do \
46192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46193 done; \
46194 (cd $(TARGET_SUBDIR)/libmudflap && \
46195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46197 "RANLIB=$${RANLIB}" \
bffcbe34 46198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46199 distclean) \
cb2333e8
DD
46200 || exit 1
46201
a7e609d6 46202@endif target-libmudflap
cb2333e8
DD
46203
46204.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
46205maybe-maintainer-clean-target-libmudflap:
a7e609d6
PB
46206@if target-libmudflap
46207maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
cb2333e8
DD
46208
46209maintainer-clean-target-libmudflap:
15b527ca 46210 @: $(MAKE); $(unstage)
cb2333e8
DD
46211 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
46212 r=`${PWD_COMMAND}`; export r; \
46213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46214 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46215 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
46216 for flag in $(EXTRA_TARGET_FLAGS); do \
46217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46218 done; \
46219 (cd $(TARGET_SUBDIR)/libmudflap && \
46220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46222 "RANLIB=$${RANLIB}" \
bffcbe34 46223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46224 maintainer-clean) \
cb2333e8
DD
46225 || exit 1
46226
a7e609d6 46227@endif target-libmudflap
cb2333e8
DD
46228
46229
cb2333e8 46230
4c3e061c
PB
46231
46232
46233.PHONY: configure-target-libssp maybe-configure-target-libssp
46234maybe-configure-target-libssp:
e1e5148c
CD
46235@if gcc-bootstrap
46236configure-target-libssp: stage_current
46237@endif gcc-bootstrap
4c3e061c
PB
46238@if target-libssp
46239maybe-configure-target-libssp: configure-target-libssp
ec92c4d6 46240configure-target-libssp:
15b527ca
PB
46241 @: $(MAKE); $(unstage)
46242 @r=`${PWD_COMMAND}`; export r; \
46243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46244 echo "Checking multilib configuration for libssp..."; \
46245 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
46246 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
46247 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
46248 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
46249 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
46250 else \
46251 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
46252 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
46253 fi; \
46254 else \
46255 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
ec92c4d6
PB
46256 fi; \
46257 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
4c3e061c 46258 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
5074489a 46259 $(NORMAL_TARGET_EXPORTS) \
4c3e061c
PB
46260 echo Configuring in $(TARGET_SUBDIR)/libssp; \
46261 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
46262 case $(srcdir) in \
46263 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46264 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
46265 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46266 esac; \
46267 srcdiroption="--srcdir=$${topdir}/libssp"; \
46268 libsrcdir="$$s/libssp"; \
46269 rm -f no-such-file || : ; \
46270 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
46271 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46272 --target=${target_alias} $${srcdiroption} \
4c3e061c
PB
46273 || exit 1
46274@endif target-libssp
46275
46276
46277
46278
46279
46280.PHONY: all-target-libssp maybe-all-target-libssp
46281maybe-all-target-libssp:
e1e5148c
CD
46282@if gcc-bootstrap
46283all-target-libssp: stage_current
46284@endif gcc-bootstrap
4c3e061c
PB
46285@if target-libssp
46286TARGET-target-libssp=all
46287maybe-all-target-libssp: all-target-libssp
46288all-target-libssp: configure-target-libssp
15b527ca 46289 @: $(MAKE); $(unstage)
4c3e061c
PB
46290 @r=`${PWD_COMMAND}`; export r; \
46291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 46292 $(NORMAL_TARGET_EXPORTS) \
4c3e061c 46293 (cd $(TARGET_SUBDIR)/libssp && \
6532abb6
PB
46294 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
46295 $(TARGET-target-libssp))
4c3e061c
PB
46296@endif target-libssp
46297
46298
46299
46300
46301
46302.PHONY: check-target-libssp maybe-check-target-libssp
46303maybe-check-target-libssp:
46304@if target-libssp
46305maybe-check-target-libssp: check-target-libssp
46306
46307check-target-libssp:
15b527ca 46308 @: $(MAKE); $(unstage)
4c3e061c
PB
46309 @r=`${PWD_COMMAND}`; export r; \
46310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46311 $(NORMAL_TARGET_EXPORTS) \
46312 (cd $(TARGET_SUBDIR)/libssp && \
46313 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46314
46315@endif target-libssp
46316
46317.PHONY: install-target-libssp maybe-install-target-libssp
46318maybe-install-target-libssp:
46319@if target-libssp
46320maybe-install-target-libssp: install-target-libssp
46321
46322install-target-libssp: installdirs
15b527ca 46323 @: $(MAKE); $(unstage)
4c3e061c
PB
46324 @r=`${PWD_COMMAND}`; export r; \
46325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46326 $(NORMAL_TARGET_EXPORTS) \
46327 (cd $(TARGET_SUBDIR)/libssp && \
46328 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46329
46330@endif target-libssp
46331
39bbbb69 46332# Other targets (info, dvi, pdf, etc.)
4c3e061c
PB
46333
46334.PHONY: maybe-info-target-libssp info-target-libssp
46335maybe-info-target-libssp:
46336@if target-libssp
46337maybe-info-target-libssp: info-target-libssp
46338
46339info-target-libssp: \
46340 configure-target-libssp
15b527ca 46341 @: $(MAKE); $(unstage)
4c3e061c
PB
46342 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46343 r=`${PWD_COMMAND}`; export r; \
46344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46345 $(NORMAL_TARGET_EXPORTS) \
46346 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
46347 for flag in $(EXTRA_TARGET_FLAGS); do \
46348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46349 done; \
46350 (cd $(TARGET_SUBDIR)/libssp && \
46351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46353 "RANLIB=$${RANLIB}" \
bffcbe34 46354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46355 info) \
46356 || exit 1
46357
46358@endif target-libssp
46359
46360.PHONY: maybe-dvi-target-libssp dvi-target-libssp
46361maybe-dvi-target-libssp:
46362@if target-libssp
46363maybe-dvi-target-libssp: dvi-target-libssp
46364
46365dvi-target-libssp: \
46366 configure-target-libssp
15b527ca 46367 @: $(MAKE); $(unstage)
4c3e061c
PB
46368 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46369 r=`${PWD_COMMAND}`; export r; \
46370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46371 $(NORMAL_TARGET_EXPORTS) \
46372 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
46373 for flag in $(EXTRA_TARGET_FLAGS); do \
46374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46375 done; \
46376 (cd $(TARGET_SUBDIR)/libssp && \
46377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46379 "RANLIB=$${RANLIB}" \
bffcbe34 46380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46381 dvi) \
46382 || exit 1
46383
46384@endif target-libssp
46385
39bbbb69
DD
46386.PHONY: maybe-pdf-target-libssp pdf-target-libssp
46387maybe-pdf-target-libssp:
46388@if target-libssp
46389maybe-pdf-target-libssp: pdf-target-libssp
46390
46391pdf-target-libssp: \
46392 configure-target-libssp
46393 @: $(MAKE); $(unstage)
46394 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46395 r=`${PWD_COMMAND}`; export r; \
46396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46397 $(NORMAL_TARGET_EXPORTS) \
46398 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
46399 for flag in $(EXTRA_TARGET_FLAGS); do \
46400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46401 done; \
46402 (cd $(TARGET_SUBDIR)/libssp && \
46403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46405 "RANLIB=$${RANLIB}" \
bffcbe34 46406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
46407 pdf) \
46408 || exit 1
46409
46410@endif target-libssp
46411
4c3e061c
PB
46412.PHONY: maybe-html-target-libssp html-target-libssp
46413maybe-html-target-libssp:
46414@if target-libssp
46415maybe-html-target-libssp: html-target-libssp
46416
46417html-target-libssp: \
46418 configure-target-libssp
15b527ca 46419 @: $(MAKE); $(unstage)
4c3e061c
PB
46420 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46421 r=`${PWD_COMMAND}`; export r; \
46422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46423 $(NORMAL_TARGET_EXPORTS) \
46424 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
46425 for flag in $(EXTRA_TARGET_FLAGS); do \
46426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46427 done; \
46428 (cd $(TARGET_SUBDIR)/libssp && \
46429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46431 "RANLIB=$${RANLIB}" \
bffcbe34 46432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46433 html) \
46434 || exit 1
46435
46436@endif target-libssp
46437
46438.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
46439maybe-TAGS-target-libssp:
46440@if target-libssp
46441maybe-TAGS-target-libssp: TAGS-target-libssp
46442
46443TAGS-target-libssp: \
46444 configure-target-libssp
15b527ca 46445 @: $(MAKE); $(unstage)
4c3e061c
PB
46446 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46447 r=`${PWD_COMMAND}`; export r; \
46448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46449 $(NORMAL_TARGET_EXPORTS) \
46450 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
46451 for flag in $(EXTRA_TARGET_FLAGS); do \
46452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46453 done; \
46454 (cd $(TARGET_SUBDIR)/libssp && \
46455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46457 "RANLIB=$${RANLIB}" \
bffcbe34 46458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46459 TAGS) \
46460 || exit 1
46461
46462@endif target-libssp
46463
46464.PHONY: maybe-install-info-target-libssp install-info-target-libssp
46465maybe-install-info-target-libssp:
46466@if target-libssp
46467maybe-install-info-target-libssp: install-info-target-libssp
46468
46469install-info-target-libssp: \
46470 configure-target-libssp \
46471 info-target-libssp
15b527ca 46472 @: $(MAKE); $(unstage)
4c3e061c
PB
46473 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46474 r=`${PWD_COMMAND}`; export r; \
46475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46476 $(NORMAL_TARGET_EXPORTS) \
46477 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
46478 for flag in $(EXTRA_TARGET_FLAGS); do \
46479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46480 done; \
46481 (cd $(TARGET_SUBDIR)/libssp && \
46482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46484 "RANLIB=$${RANLIB}" \
bffcbe34 46485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46486 install-info) \
46487 || exit 1
46488
46489@endif target-libssp
46490
d4954b6d
DD
46491.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
46492maybe-install-pdf-target-libssp:
46493@if target-libssp
46494maybe-install-pdf-target-libssp: install-pdf-target-libssp
46495
46496install-pdf-target-libssp: \
46497 configure-target-libssp \
46498 pdf-target-libssp
46499 @: $(MAKE); $(unstage)
46500 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46501 r=`${PWD_COMMAND}`; export r; \
46502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46503 $(NORMAL_TARGET_EXPORTS) \
46504 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
46505 for flag in $(EXTRA_TARGET_FLAGS); do \
46506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46507 done; \
46508 (cd $(TARGET_SUBDIR)/libssp && \
46509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46511 "RANLIB=$${RANLIB}" \
bffcbe34 46512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
46513 install-pdf) \
46514 || exit 1
46515
46516@endif target-libssp
46517
83c9add4
CD
46518.PHONY: maybe-install-html-target-libssp install-html-target-libssp
46519maybe-install-html-target-libssp:
46520@if target-libssp
46521maybe-install-html-target-libssp: install-html-target-libssp
46522
46523install-html-target-libssp: \
46524 configure-target-libssp \
46525 html-target-libssp
46526 @: $(MAKE); $(unstage)
46527 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46528 r=`${PWD_COMMAND}`; export r; \
46529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46530 $(NORMAL_TARGET_EXPORTS) \
46531 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
46532 for flag in $(EXTRA_TARGET_FLAGS); do \
46533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46534 done; \
46535 (cd $(TARGET_SUBDIR)/libssp && \
46536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46538 "RANLIB=$${RANLIB}" \
bffcbe34 46539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
46540 install-html) \
46541 || exit 1
46542
46543@endif target-libssp
46544
4c3e061c
PB
46545.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
46546maybe-installcheck-target-libssp:
46547@if target-libssp
46548maybe-installcheck-target-libssp: installcheck-target-libssp
46549
46550installcheck-target-libssp: \
46551 configure-target-libssp
15b527ca 46552 @: $(MAKE); $(unstage)
4c3e061c
PB
46553 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46554 r=`${PWD_COMMAND}`; export r; \
46555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46556 $(NORMAL_TARGET_EXPORTS) \
46557 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
46558 for flag in $(EXTRA_TARGET_FLAGS); do \
46559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46560 done; \
46561 (cd $(TARGET_SUBDIR)/libssp && \
46562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46564 "RANLIB=$${RANLIB}" \
bffcbe34 46565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46566 installcheck) \
46567 || exit 1
46568
46569@endif target-libssp
46570
46571.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
46572maybe-mostlyclean-target-libssp:
46573@if target-libssp
46574maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
46575
46576mostlyclean-target-libssp:
15b527ca 46577 @: $(MAKE); $(unstage)
4c3e061c
PB
46578 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46579 r=`${PWD_COMMAND}`; export r; \
46580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46581 $(NORMAL_TARGET_EXPORTS) \
46582 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
46583 for flag in $(EXTRA_TARGET_FLAGS); do \
46584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46585 done; \
46586 (cd $(TARGET_SUBDIR)/libssp && \
46587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46589 "RANLIB=$${RANLIB}" \
bffcbe34 46590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46591 mostlyclean) \
46592 || exit 1
46593
46594@endif target-libssp
46595
46596.PHONY: maybe-clean-target-libssp clean-target-libssp
46597maybe-clean-target-libssp:
46598@if target-libssp
46599maybe-clean-target-libssp: clean-target-libssp
46600
46601clean-target-libssp:
15b527ca 46602 @: $(MAKE); $(unstage)
4c3e061c
PB
46603 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46604 r=`${PWD_COMMAND}`; export r; \
46605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46606 $(NORMAL_TARGET_EXPORTS) \
46607 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
46608 for flag in $(EXTRA_TARGET_FLAGS); do \
46609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46610 done; \
46611 (cd $(TARGET_SUBDIR)/libssp && \
46612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46614 "RANLIB=$${RANLIB}" \
bffcbe34 46615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46616 clean) \
46617 || exit 1
46618
46619@endif target-libssp
46620
46621.PHONY: maybe-distclean-target-libssp distclean-target-libssp
46622maybe-distclean-target-libssp:
46623@if target-libssp
46624maybe-distclean-target-libssp: distclean-target-libssp
46625
46626distclean-target-libssp:
15b527ca 46627 @: $(MAKE); $(unstage)
4c3e061c
PB
46628 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46629 r=`${PWD_COMMAND}`; export r; \
46630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46631 $(NORMAL_TARGET_EXPORTS) \
46632 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
46633 for flag in $(EXTRA_TARGET_FLAGS); do \
46634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46635 done; \
46636 (cd $(TARGET_SUBDIR)/libssp && \
46637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46639 "RANLIB=$${RANLIB}" \
bffcbe34 46640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46641 distclean) \
46642 || exit 1
46643
46644@endif target-libssp
46645
46646.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
46647maybe-maintainer-clean-target-libssp:
46648@if target-libssp
46649maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
46650
46651maintainer-clean-target-libssp:
15b527ca 46652 @: $(MAKE); $(unstage)
4c3e061c
PB
46653 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
46654 r=`${PWD_COMMAND}`; export r; \
46655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46656 $(NORMAL_TARGET_EXPORTS) \
46657 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
46658 for flag in $(EXTRA_TARGET_FLAGS); do \
46659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46660 done; \
46661 (cd $(TARGET_SUBDIR)/libssp && \
46662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46664 "RANLIB=$${RANLIB}" \
bffcbe34 46665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4c3e061c
PB
46666 maintainer-clean) \
46667 || exit 1
46668
46669@endif target-libssp
46670
46671
46672
f0fdfd34 46673
f3fd76d4 46674
f0fdfd34
PB
46675.PHONY: configure-target-newlib maybe-configure-target-newlib
46676maybe-configure-target-newlib:
e1e5148c
CD
46677@if gcc-bootstrap
46678configure-target-newlib: stage_current
46679@endif gcc-bootstrap
f0fdfd34
PB
46680@if target-newlib
46681maybe-configure-target-newlib: configure-target-newlib
ec92c4d6 46682configure-target-newlib:
15b527ca
PB
46683 @: $(MAKE); $(unstage)
46684 @r=`${PWD_COMMAND}`; export r; \
46685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46686 echo "Checking multilib configuration for newlib..."; \
46687 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
46688 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
46689 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
46690 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
46691 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
46692 else \
46693 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
46694 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
46695 fi; \
46696 else \
46697 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
ec92c4d6
PB
46698 fi; \
46699 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
cb2333e8 46700 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
5074489a 46701 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
46702 echo Configuring in $(TARGET_SUBDIR)/newlib; \
46703 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
46704 case $(srcdir) in \
7fc2ca22
PB
46705 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46706 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
46707 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 46708 esac; \
7fc2ca22
PB
46709 srcdiroption="--srcdir=$${topdir}/newlib"; \
46710 libsrcdir="$$s/newlib"; \
cb2333e8
DD
46711 rm -f no-such-file || : ; \
46712 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
46713 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46714 --target=${target_alias} $${srcdiroption} \
cb2333e8 46715 || exit 1
a7e609d6 46716@endif target-newlib
cb2333e8 46717
f0fdfd34
PB
46718
46719
a8a96878
PB
46720
46721
cb2333e8
DD
46722.PHONY: all-target-newlib maybe-all-target-newlib
46723maybe-all-target-newlib:
e1e5148c
CD
46724@if gcc-bootstrap
46725all-target-newlib: stage_current
46726@endif gcc-bootstrap
a7e609d6 46727@if target-newlib
6a19fd82 46728TARGET-target-newlib=all
a7e609d6 46729maybe-all-target-newlib: all-target-newlib
cb2333e8 46730all-target-newlib: configure-target-newlib
15b527ca 46731 @: $(MAKE); $(unstage)
cb2333e8
DD
46732 @r=`${PWD_COMMAND}`; export r; \
46733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 46734 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 46735 (cd $(TARGET_SUBDIR)/newlib && \
6532abb6
PB
46736 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
46737 $(TARGET-target-newlib))
a7e609d6 46738@endif target-newlib
cb2333e8 46739
f0fdfd34
PB
46740
46741
a8a96878
PB
46742
46743
cb2333e8
DD
46744.PHONY: check-target-newlib maybe-check-target-newlib
46745maybe-check-target-newlib:
a7e609d6
PB
46746@if target-newlib
46747maybe-check-target-newlib: check-target-newlib
cb2333e8
DD
46748
46749check-target-newlib:
15b527ca 46750 @: $(MAKE); $(unstage)
5230d454
L
46751 @r=`${PWD_COMMAND}`; export r; \
46752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46753 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46754 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 46755 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 46756
a7e609d6 46757@endif target-newlib
8ecc6504 46758
8ec98d6c
NN
46759.PHONY: install-target-newlib maybe-install-target-newlib
46760maybe-install-target-newlib:
a7e609d6
PB
46761@if target-newlib
46762maybe-install-target-newlib: install-target-newlib
94f860c0 46763
8ec98d6c 46764install-target-newlib: installdirs
15b527ca 46765 @: $(MAKE); $(unstage)
5230d454
L
46766 @r=`${PWD_COMMAND}`; export r; \
46767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46768 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 46769 (cd $(TARGET_SUBDIR)/newlib && \
63673a5b 46770 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 46771
a7e609d6 46772@endif target-newlib
8ecc6504 46773
39bbbb69 46774# Other targets (info, dvi, pdf, etc.)
8ecc6504 46775
8ec98d6c
NN
46776.PHONY: maybe-info-target-newlib info-target-newlib
46777maybe-info-target-newlib:
a7e609d6
PB
46778@if target-newlib
46779maybe-info-target-newlib: info-target-newlib
8ecc6504 46780
8ec98d6c
NN
46781info-target-newlib: \
46782 configure-target-newlib
15b527ca 46783 @: $(MAKE); $(unstage)
8ec98d6c
NN
46784 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46785 r=`${PWD_COMMAND}`; export r; \
46786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46787 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46788 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
46789 for flag in $(EXTRA_TARGET_FLAGS); do \
46790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46791 done; \
46792 (cd $(TARGET_SUBDIR)/newlib && \
46793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46795 "RANLIB=$${RANLIB}" \
bffcbe34 46796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46797 info) \
8ec98d6c 46798 || exit 1
70ffc148 46799
a7e609d6 46800@endif target-newlib
8ecc6504 46801
8ec98d6c
NN
46802.PHONY: maybe-dvi-target-newlib dvi-target-newlib
46803maybe-dvi-target-newlib:
a7e609d6
PB
46804@if target-newlib
46805maybe-dvi-target-newlib: dvi-target-newlib
8ecc6504 46806
8ec98d6c
NN
46807dvi-target-newlib: \
46808 configure-target-newlib
15b527ca 46809 @: $(MAKE); $(unstage)
8ec98d6c 46810 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
46811 r=`${PWD_COMMAND}`; export r; \
46812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46813 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46814 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
46815 for flag in $(EXTRA_TARGET_FLAGS); do \
46816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46817 done; \
46818 (cd $(TARGET_SUBDIR)/newlib && \
46819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46821 "RANLIB=$${RANLIB}" \
bffcbe34 46822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46823 dvi) \
94f860c0
NN
46824 || exit 1
46825
a7e609d6 46826@endif target-newlib
8ecc6504 46827
39bbbb69
DD
46828.PHONY: maybe-pdf-target-newlib pdf-target-newlib
46829maybe-pdf-target-newlib:
46830@if target-newlib
46831maybe-pdf-target-newlib: pdf-target-newlib
46832
46833pdf-target-newlib: \
46834 configure-target-newlib
46835 @: $(MAKE); $(unstage)
46836 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46837 r=`${PWD_COMMAND}`; export r; \
46838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46839 $(NORMAL_TARGET_EXPORTS) \
46840 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
46841 for flag in $(EXTRA_TARGET_FLAGS); do \
46842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46843 done; \
46844 (cd $(TARGET_SUBDIR)/newlib && \
46845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46847 "RANLIB=$${RANLIB}" \
bffcbe34 46848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
46849 pdf) \
46850 || exit 1
46851
46852@endif target-newlib
46853
b6fb961f
MS
46854.PHONY: maybe-html-target-newlib html-target-newlib
46855maybe-html-target-newlib:
46856@if target-newlib
46857maybe-html-target-newlib: html-target-newlib
46858
46859html-target-newlib: \
46860 configure-target-newlib
15b527ca 46861 @: $(MAKE); $(unstage)
b6fb961f
MS
46862 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46863 r=`${PWD_COMMAND}`; export r; \
46864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
46865 $(NORMAL_TARGET_EXPORTS) \
46866 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
46867 for flag in $(EXTRA_TARGET_FLAGS); do \
46868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46869 done; \
46870 (cd $(TARGET_SUBDIR)/newlib && \
46871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46873 "RANLIB=$${RANLIB}" \
bffcbe34 46874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
46875 html) \
46876 || exit 1
46877
46878@endif target-newlib
46879
8ec98d6c
NN
46880.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
46881maybe-TAGS-target-newlib:
a7e609d6
PB
46882@if target-newlib
46883maybe-TAGS-target-newlib: TAGS-target-newlib
8ecc6504 46884
8ec98d6c
NN
46885TAGS-target-newlib: \
46886 configure-target-newlib
15b527ca 46887 @: $(MAKE); $(unstage)
8ec98d6c
NN
46888 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46889 r=`${PWD_COMMAND}`; export r; \
5230d454 46890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46891 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46892 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
46893 for flag in $(EXTRA_TARGET_FLAGS); do \
46894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46895 done; \
46896 (cd $(TARGET_SUBDIR)/newlib && \
46897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46899 "RANLIB=$${RANLIB}" \
bffcbe34 46900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46901 TAGS) \
8ec98d6c 46902 || exit 1
8ecc6504 46903
a7e609d6 46904@endif target-newlib
8ecc6504 46905
8ec98d6c
NN
46906.PHONY: maybe-install-info-target-newlib install-info-target-newlib
46907maybe-install-info-target-newlib:
a7e609d6
PB
46908@if target-newlib
46909maybe-install-info-target-newlib: install-info-target-newlib
70ffc148 46910
8ec98d6c
NN
46911install-info-target-newlib: \
46912 configure-target-newlib \
46913 info-target-newlib
15b527ca 46914 @: $(MAKE); $(unstage)
8ec98d6c
NN
46915 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46916 r=`${PWD_COMMAND}`; export r; \
5230d454 46917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46918 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46919 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
46920 for flag in $(EXTRA_TARGET_FLAGS); do \
46921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46922 done; \
46923 (cd $(TARGET_SUBDIR)/newlib && \
46924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46926 "RANLIB=$${RANLIB}" \
bffcbe34 46927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 46928 install-info) \
8ec98d6c 46929 || exit 1
8ecc6504 46930
a7e609d6 46931@endif target-newlib
8ecc6504 46932
d4954b6d
DD
46933.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
46934maybe-install-pdf-target-newlib:
46935@if target-newlib
46936maybe-install-pdf-target-newlib: install-pdf-target-newlib
46937
46938install-pdf-target-newlib: \
46939 configure-target-newlib \
46940 pdf-target-newlib
46941 @: $(MAKE); $(unstage)
46942 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46943 r=`${PWD_COMMAND}`; export r; \
46944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46945 $(NORMAL_TARGET_EXPORTS) \
46946 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
46947 for flag in $(EXTRA_TARGET_FLAGS); do \
46948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46949 done; \
46950 (cd $(TARGET_SUBDIR)/newlib && \
46951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46953 "RANLIB=$${RANLIB}" \
bffcbe34 46954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
46955 install-pdf) \
46956 || exit 1
46957
46958@endif target-newlib
46959
83c9add4
CD
46960.PHONY: maybe-install-html-target-newlib install-html-target-newlib
46961maybe-install-html-target-newlib:
46962@if target-newlib
46963maybe-install-html-target-newlib: install-html-target-newlib
46964
46965install-html-target-newlib: \
46966 configure-target-newlib \
46967 html-target-newlib
46968 @: $(MAKE); $(unstage)
46969 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
46970 r=`${PWD_COMMAND}`; export r; \
46971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46972 $(NORMAL_TARGET_EXPORTS) \
46973 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
46974 for flag in $(EXTRA_TARGET_FLAGS); do \
46975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46976 done; \
46977 (cd $(TARGET_SUBDIR)/newlib && \
46978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46980 "RANLIB=$${RANLIB}" \
bffcbe34 46981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
46982 install-html) \
46983 || exit 1
46984
46985@endif target-newlib
46986
8ec98d6c
NN
46987.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
46988maybe-installcheck-target-newlib:
a7e609d6
PB
46989@if target-newlib
46990maybe-installcheck-target-newlib: installcheck-target-newlib
8ec98d6c
NN
46991
46992installcheck-target-newlib: \
46993 configure-target-newlib
15b527ca 46994 @: $(MAKE); $(unstage)
8ec98d6c 46995 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
46996 r=`${PWD_COMMAND}`; export r; \
46997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 46998 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
46999 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
47000 for flag in $(EXTRA_TARGET_FLAGS); do \
47001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47002 done; \
47003 (cd $(TARGET_SUBDIR)/newlib && \
47004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47006 "RANLIB=$${RANLIB}" \
bffcbe34 47007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47008 installcheck) \
94f860c0
NN
47009 || exit 1
47010
a7e609d6 47011@endif target-newlib
8ecc6504 47012
8ec98d6c
NN
47013.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
47014maybe-mostlyclean-target-newlib:
a7e609d6
PB
47015@if target-newlib
47016maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
8ecc6504 47017
8ec98d6c 47018mostlyclean-target-newlib:
15b527ca 47019 @: $(MAKE); $(unstage)
8ec98d6c
NN
47020 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
47021 r=`${PWD_COMMAND}`; export r; \
5230d454 47022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47023 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47024 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
47025 for flag in $(EXTRA_TARGET_FLAGS); do \
47026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47027 done; \
47028 (cd $(TARGET_SUBDIR)/newlib && \
47029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47031 "RANLIB=$${RANLIB}" \
bffcbe34 47032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47033 mostlyclean) \
8ec98d6c 47034 || exit 1
8ecc6504 47035
a7e609d6 47036@endif target-newlib
8ecc6504 47037
8ec98d6c
NN
47038.PHONY: maybe-clean-target-newlib clean-target-newlib
47039maybe-clean-target-newlib:
a7e609d6
PB
47040@if target-newlib
47041maybe-clean-target-newlib: clean-target-newlib
70ffc148 47042
8ec98d6c 47043clean-target-newlib:
15b527ca 47044 @: $(MAKE); $(unstage)
8ec98d6c
NN
47045 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
47046 r=`${PWD_COMMAND}`; export r; \
5230d454 47047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47048 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47049 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
47050 for flag in $(EXTRA_TARGET_FLAGS); do \
47051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47052 done; \
47053 (cd $(TARGET_SUBDIR)/newlib && \
47054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47056 "RANLIB=$${RANLIB}" \
bffcbe34 47057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47058 clean) \
8ec98d6c 47059 || exit 1
8ecc6504 47060
a7e609d6 47061@endif target-newlib
8ecc6504 47062
8ec98d6c
NN
47063.PHONY: maybe-distclean-target-newlib distclean-target-newlib
47064maybe-distclean-target-newlib:
a7e609d6
PB
47065@if target-newlib
47066maybe-distclean-target-newlib: distclean-target-newlib
8ec98d6c
NN
47067
47068distclean-target-newlib:
15b527ca 47069 @: $(MAKE); $(unstage)
8ec98d6c 47070 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
5230d454
L
47071 r=`${PWD_COMMAND}`; export r; \
47072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47073 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47074 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
47075 for flag in $(EXTRA_TARGET_FLAGS); do \
47076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47077 done; \
47078 (cd $(TARGET_SUBDIR)/newlib && \
47079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47081 "RANLIB=$${RANLIB}" \
bffcbe34 47082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47083 distclean) \
94f860c0
NN
47084 || exit 1
47085
a7e609d6 47086@endif target-newlib
8ecc6504 47087
8ec98d6c
NN
47088.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
47089maybe-maintainer-clean-target-newlib:
a7e609d6
PB
47090@if target-newlib
47091maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
8ecc6504 47092
8ec98d6c 47093maintainer-clean-target-newlib:
15b527ca 47094 @: $(MAKE); $(unstage)
8ec98d6c
NN
47095 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
47096 r=`${PWD_COMMAND}`; export r; \
5230d454 47097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 47098 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
47099 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
47100 for flag in $(EXTRA_TARGET_FLAGS); do \
47101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47102 done; \
47103 (cd $(TARGET_SUBDIR)/newlib && \
47104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47106 "RANLIB=$${RANLIB}" \
bffcbe34 47107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 47108 maintainer-clean) \
8ec98d6c 47109 || exit 1
8ecc6504 47110
a7e609d6 47111@endif target-newlib
8ecc6504 47112
70ffc148 47113
cb2333e8 47114
f0fdfd34 47115
cb2333e8 47116
1f316156
DJ
47117.PHONY: configure-target-libgcc maybe-configure-target-libgcc
47118maybe-configure-target-libgcc:
47119@if gcc-bootstrap
47120configure-target-libgcc: stage_current
47121@endif gcc-bootstrap
47122@if target-libgcc
47123maybe-configure-target-libgcc: configure-target-libgcc
47124configure-target-libgcc:
47125 @r=`${PWD_COMMAND}`; export r; \
47126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47127 echo "Checking multilib configuration for libgcc..."; \
47128 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47129 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47130 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47131 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47132 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47133 else \
47134 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47135 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47136 fi; \
47137 else \
47138 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47139 fi; \
47140 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47141 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
5074489a 47142 $(NORMAL_TARGET_EXPORTS) \
1f316156
DJ
47143 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
47144 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
47145 case $(srcdir) in \
47146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47147 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47149 esac; \
47150 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47151 libsrcdir="$$s/libgcc"; \
47152 rm -f no-such-file || : ; \
47153 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47154 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47155 --target=${target_alias} $${srcdiroption} \
1f316156
DJ
47156 || exit 1
47157@endif target-libgcc
47158
47159
47160
47161.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
47162maybe-configure-stage1-target-libgcc:
47163@if target-libgcc-bootstrap
47164maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
47165configure-stage1-target-libgcc:
47166 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47167 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47168 @r=`${PWD_COMMAND}`; export r; \
47169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47170 TFLAGS="$(STAGE1_TFLAGS)"; \
1f316156
DJ
47171 echo "Checking multilib configuration for libgcc..."; \
47172 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47173 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47174 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47175 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47176 else \
47177 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47178 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47179 fi; \
47180 else \
47181 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47182 fi; \
47183 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
c91ae28f
AO
47184 $(NORMAL_TARGET_EXPORTS) \
47185 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47186 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47187 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47188 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
47189 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47190 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47191 case $(srcdir) in \
47192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47193 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47195 esac; \
47196 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47197 libsrcdir="$$s/libgcc"; \
47198 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47199 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47200 --target=${target_alias} $${srcdiroption} \
c91ae28f 47201 $(STAGE1_CONFIGURE_FLAGS)
1f316156
DJ
47202@endif target-libgcc-bootstrap
47203
47204.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
47205maybe-configure-stage2-target-libgcc:
47206@if target-libgcc-bootstrap
47207maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
47208configure-stage2-target-libgcc:
47209 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47210 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47211 @r=`${PWD_COMMAND}`; export r; \
47212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47213 TFLAGS="$(STAGE2_TFLAGS)"; \
1f316156
DJ
47214 echo "Checking multilib configuration for libgcc..."; \
47215 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47216 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47217 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47218 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47219 else \
47220 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47221 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47222 fi; \
47223 else \
47224 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47225 fi; \
47226 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47227 $(NORMAL_TARGET_EXPORTS) \
c91ae28f
AO
47228 \
47229 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47230 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47231 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47232 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
47233 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47234 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47235 case $(srcdir) in \
47236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47237 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47239 esac; \
47240 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47241 libsrcdir="$$s/libgcc"; \
47242 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47243 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47244 --target=${target_alias} $${srcdiroption} \
1f316156 47245 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 47246 $(STAGE2_CONFIGURE_FLAGS)
2b41ef78
AO
47247@endif target-libgcc-bootstrap
47248
1f316156
DJ
47249.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
47250maybe-configure-stage3-target-libgcc:
47251@if target-libgcc-bootstrap
47252maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
47253configure-stage3-target-libgcc:
47254 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47255 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47256 @r=`${PWD_COMMAND}`; export r; \
47257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47258 TFLAGS="$(STAGE3_TFLAGS)"; \
1f316156
DJ
47259 echo "Checking multilib configuration for libgcc..."; \
47260 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47261 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47262 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47263 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47264 else \
47265 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47266 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47267 fi; \
47268 else \
47269 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47270 fi; \
47271 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47272 $(NORMAL_TARGET_EXPORTS) \
c91ae28f
AO
47273 \
47274 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47275 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47276 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47277 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
47278 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47279 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47280 case $(srcdir) in \
47281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47282 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47284 esac; \
47285 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47286 libsrcdir="$$s/libgcc"; \
47287 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47288 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47289 --target=${target_alias} $${srcdiroption} \
1f316156 47290 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 47291 $(STAGE3_CONFIGURE_FLAGS)
2b41ef78
AO
47292@endif target-libgcc-bootstrap
47293
1f316156
DJ
47294.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
47295maybe-configure-stage4-target-libgcc:
47296@if target-libgcc-bootstrap
47297maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
47298configure-stage4-target-libgcc:
47299 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47300 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47301 @r=`${PWD_COMMAND}`; export r; \
47302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47303 TFLAGS="$(STAGE4_TFLAGS)"; \
1f316156
DJ
47304 echo "Checking multilib configuration for libgcc..."; \
47305 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47306 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47307 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47308 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47309 else \
47310 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47311 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47312 fi; \
47313 else \
47314 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47315 fi; \
47316 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47317 $(NORMAL_TARGET_EXPORTS) \
c91ae28f
AO
47318 \
47319 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47320 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47321 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47322 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
47323 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47324 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47325 case $(srcdir) in \
47326 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47327 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47328 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47329 esac; \
47330 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47331 libsrcdir="$$s/libgcc"; \
47332 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47333 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47334 --target=${target_alias} $${srcdiroption} \
1f316156 47335 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 47336 $(STAGE4_CONFIGURE_FLAGS)
1f316156
DJ
47337@endif target-libgcc-bootstrap
47338
47339.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
47340maybe-configure-stageprofile-target-libgcc:
47341@if target-libgcc-bootstrap
47342maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
47343configure-stageprofile-target-libgcc:
47344 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47345 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47346 @r=`${PWD_COMMAND}`; export r; \
47347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47348 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1f316156
DJ
47349 echo "Checking multilib configuration for libgcc..."; \
47350 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47351 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47352 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47353 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47354 else \
47355 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47356 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47357 fi; \
47358 else \
47359 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47360 fi; \
47361 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47362 $(NORMAL_TARGET_EXPORTS) \
c91ae28f
AO
47363 \
47364 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47365 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47366 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47367 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
47368 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47369 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47370 case $(srcdir) in \
47371 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47372 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47373 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47374 esac; \
47375 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47376 libsrcdir="$$s/libgcc"; \
47377 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47378 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47379 --target=${target_alias} $${srcdiroption} \
1f316156 47380 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 47381 $(STAGEprofile_CONFIGURE_FLAGS)
1f316156
DJ
47382@endif target-libgcc-bootstrap
47383
47384.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
47385maybe-configure-stagefeedback-target-libgcc:
47386@if target-libgcc-bootstrap
47387maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
47388configure-stagefeedback-target-libgcc:
47389 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47390 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
47391 @r=`${PWD_COMMAND}`; export r; \
47392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47393 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1f316156
DJ
47394 echo "Checking multilib configuration for libgcc..."; \
47395 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
47396 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47397 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
47398 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
47399 else \
47400 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
47401 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47402 fi; \
47403 else \
47404 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
47405 fi; \
47406 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
47407 $(NORMAL_TARGET_EXPORTS) \
c91ae28f
AO
47408 \
47409 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47410 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5074489a 47411 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1f316156
DJ
47412 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
47413 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
47414 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
47415 case $(srcdir) in \
47416 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47417 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
47418 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47419 esac; \
47420 srcdiroption="--srcdir=$${topdir}/libgcc"; \
47421 libsrcdir="$$s/libgcc"; \
47422 $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
47423 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
47424 --target=${target_alias} $${srcdiroption} \
1f316156 47425 --with-build-libsubdir=$(HOST_SUBDIR) \
c91ae28f 47426 $(STAGEfeedback_CONFIGURE_FLAGS)
1f316156
DJ
47427@endif target-libgcc-bootstrap
47428
47429
47430
47431
47432
47433.PHONY: all-target-libgcc maybe-all-target-libgcc
47434maybe-all-target-libgcc:
47435@if gcc-bootstrap
47436all-target-libgcc: stage_current
47437@endif gcc-bootstrap
47438@if target-libgcc
47439TARGET-target-libgcc=all
47440maybe-all-target-libgcc: all-target-libgcc
47441all-target-libgcc: configure-target-libgcc
47442 @r=`${PWD_COMMAND}`; export r; \
47443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 47444 $(NORMAL_TARGET_EXPORTS) \
1f316156 47445 (cd $(TARGET_SUBDIR)/libgcc && \
6532abb6
PB
47446 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
47447 $(TARGET-target-libgcc))
1f316156
DJ
47448@endif target-libgcc
47449
47450
47451
47452.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
47453.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
47454maybe-all-stage1-target-libgcc:
47455maybe-clean-stage1-target-libgcc:
47456@if target-libgcc-bootstrap
47457maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
47458all-stage1: all-stage1-target-libgcc
47459TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
47460all-stage1-target-libgcc: configure-stage1-target-libgcc
47461 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47462 @r=`${PWD_COMMAND}`; export r; \
47463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47464 TFLAGS="$(STAGE1_TFLAGS)"; \
5074489a 47465 $(NORMAL_TARGET_EXPORTS) \
1f316156 47466 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47467 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47468 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47469 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47470 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47471 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47472 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47473 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47474 $(EXTRA_TARGET_FLAGS) \
47475 TFLAGS="$(STAGE1_TFLAGS)" \
1f316156
DJ
47476 $(TARGET-stage1-target-libgcc)
47477
47478maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
47479clean-stage1: clean-stage1-target-libgcc
47480clean-stage1-target-libgcc:
47481 @if [ $(current_stage) = stage1 ]; then \
47482 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47483 else \
47484 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
47485 $(MAKE) stage1-start; \
47486 fi; \
47487 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47488 $(MAKE) $(EXTRA_TARGET_FLAGS) \
2ba09444 47489 clean
1f316156
DJ
47490@endif target-libgcc-bootstrap
47491
47492
47493.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
47494.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
47495maybe-all-stage2-target-libgcc:
47496maybe-clean-stage2-target-libgcc:
47497@if target-libgcc-bootstrap
47498maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
47499all-stage2: all-stage2-target-libgcc
47500TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
47501all-stage2-target-libgcc: configure-stage2-target-libgcc
47502 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47503 @r=`${PWD_COMMAND}`; export r; \
47504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47505 TFLAGS="$(STAGE2_TFLAGS)"; \
1f316156 47506 $(NORMAL_TARGET_EXPORTS) \
5074489a 47507 \
1f316156 47508 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47509 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47510 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47511 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47512 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47513 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47514 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47515 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47516 $(EXTRA_TARGET_FLAGS) \
47517 TFLAGS="$(STAGE2_TFLAGS)" \
1f316156
DJ
47518 $(TARGET-stage2-target-libgcc)
47519
47520maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
47521clean-stage2: clean-stage2-target-libgcc
47522clean-stage2-target-libgcc:
47523 @if [ $(current_stage) = stage2 ]; then \
47524 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47525 else \
47526 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
47527 $(MAKE) stage2-start; \
47528 fi; \
47529 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47530 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 47531 \
2ba09444 47532 clean
1f316156
DJ
47533@endif target-libgcc-bootstrap
47534
47535
47536.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
47537.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
47538maybe-all-stage3-target-libgcc:
47539maybe-clean-stage3-target-libgcc:
47540@if target-libgcc-bootstrap
47541maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
47542all-stage3: all-stage3-target-libgcc
47543TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
47544all-stage3-target-libgcc: configure-stage3-target-libgcc
47545 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47546 @r=`${PWD_COMMAND}`; export r; \
47547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47548 TFLAGS="$(STAGE3_TFLAGS)"; \
1f316156 47549 $(NORMAL_TARGET_EXPORTS) \
5074489a 47550 \
1f316156 47551 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47552 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47553 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47554 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47555 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47556 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47557 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47558 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47559 $(EXTRA_TARGET_FLAGS) \
47560 TFLAGS="$(STAGE3_TFLAGS)" \
1f316156
DJ
47561 $(TARGET-stage3-target-libgcc)
47562
47563maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
47564clean-stage3: clean-stage3-target-libgcc
47565clean-stage3-target-libgcc:
47566 @if [ $(current_stage) = stage3 ]; then \
47567 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47568 else \
47569 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
47570 $(MAKE) stage3-start; \
47571 fi; \
47572 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47573 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 47574 \
2ba09444 47575 clean
1f316156
DJ
47576@endif target-libgcc-bootstrap
47577
47578
47579.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
47580.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
47581maybe-all-stage4-target-libgcc:
47582maybe-clean-stage4-target-libgcc:
47583@if target-libgcc-bootstrap
47584maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
47585all-stage4: all-stage4-target-libgcc
47586TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
47587all-stage4-target-libgcc: configure-stage4-target-libgcc
47588 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47589 @r=`${PWD_COMMAND}`; export r; \
47590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47591 TFLAGS="$(STAGE4_TFLAGS)"; \
1f316156 47592 $(NORMAL_TARGET_EXPORTS) \
5074489a 47593 \
1f316156 47594 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47595 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47596 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47597 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47598 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47599 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47600 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47601 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47602 $(EXTRA_TARGET_FLAGS) \
47603 TFLAGS="$(STAGE4_TFLAGS)" \
1f316156
DJ
47604 $(TARGET-stage4-target-libgcc)
47605
47606maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
47607clean-stage4: clean-stage4-target-libgcc
47608clean-stage4-target-libgcc:
47609 @if [ $(current_stage) = stage4 ]; then \
47610 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47611 else \
47612 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
47613 $(MAKE) stage4-start; \
47614 fi; \
47615 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47616 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 47617 \
2ba09444 47618 clean
1f316156
DJ
47619@endif target-libgcc-bootstrap
47620
47621
47622.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
47623.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
47624maybe-all-stageprofile-target-libgcc:
47625maybe-clean-stageprofile-target-libgcc:
47626@if target-libgcc-bootstrap
47627maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
47628all-stageprofile: all-stageprofile-target-libgcc
47629TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
47630all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
47631 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47632 @r=`${PWD_COMMAND}`; export r; \
47633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47634 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1f316156 47635 $(NORMAL_TARGET_EXPORTS) \
5074489a 47636 \
1f316156 47637 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47639 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47640 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47641 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47642 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47643 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47644 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47645 $(EXTRA_TARGET_FLAGS) \
47646 TFLAGS="$(STAGEprofile_TFLAGS)" \
1f316156
DJ
47647 $(TARGET-stageprofile-target-libgcc)
47648
47649maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
47650clean-stageprofile: clean-stageprofile-target-libgcc
47651clean-stageprofile-target-libgcc:
47652 @if [ $(current_stage) = stageprofile ]; then \
47653 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47654 else \
47655 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
47656 $(MAKE) stageprofile-start; \
47657 fi; \
47658 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47659 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 47660 \
2ba09444 47661 clean
1f316156
DJ
47662@endif target-libgcc-bootstrap
47663
47664
47665.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
47666.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
47667maybe-all-stagefeedback-target-libgcc:
47668maybe-clean-stagefeedback-target-libgcc:
47669@if target-libgcc-bootstrap
47670maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
47671all-stagefeedback: all-stagefeedback-target-libgcc
47672TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
47673all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
47674 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47675 @r=`${PWD_COMMAND}`; export r; \
47676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 47677 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1f316156 47678 $(NORMAL_TARGET_EXPORTS) \
5074489a 47679 \
1f316156 47680 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47681 $(MAKE) $(BASE_FLAGS_TO_PASS) \
c91ae28f
AO
47682 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47683 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47684 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47685 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47686 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47687 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47688 $(EXTRA_TARGET_FLAGS) \
47689 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1f316156
DJ
47690 $(TARGET-stagefeedback-target-libgcc)
47691
47692maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
47693clean-stagefeedback: clean-stagefeedback-target-libgcc
47694clean-stagefeedback-target-libgcc:
47695 @if [ $(current_stage) = stagefeedback ]; then \
47696 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
47697 else \
47698 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
47699 $(MAKE) stagefeedback-start; \
47700 fi; \
47701 cd $(TARGET_SUBDIR)/libgcc && \
6532abb6 47702 $(MAKE) $(EXTRA_TARGET_FLAGS) \
1f316156 47703 \
2ba09444 47704 clean
1f316156
DJ
47705@endif target-libgcc-bootstrap
47706
47707
47708
47709
47710
47711
47712.PHONY: check-target-libgcc maybe-check-target-libgcc
47713maybe-check-target-libgcc:
47714@if target-libgcc
47715maybe-check-target-libgcc: check-target-libgcc
47716
47717# Dummy target for uncheckable module.
47718check-target-libgcc:
47719
47720@endif target-libgcc
47721
47722.PHONY: install-target-libgcc maybe-install-target-libgcc
47723maybe-install-target-libgcc:
47724@if target-libgcc
47725maybe-install-target-libgcc: install-target-libgcc
47726
47727install-target-libgcc: installdirs
47728 @: $(MAKE); $(unstage)
47729 @r=`${PWD_COMMAND}`; export r; \
47730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47731 $(NORMAL_TARGET_EXPORTS) \
47732 (cd $(TARGET_SUBDIR)/libgcc && \
47733 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47734
47735@endif target-libgcc
47736
47737# Other targets (info, dvi, pdf, etc.)
47738
47739.PHONY: maybe-info-target-libgcc info-target-libgcc
47740maybe-info-target-libgcc:
47741@if target-libgcc
47742maybe-info-target-libgcc: info-target-libgcc
47743
47744info-target-libgcc: \
47745 configure-target-libgcc
47746 @: $(MAKE); $(unstage)
47747 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47748 r=`${PWD_COMMAND}`; export r; \
47749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47750 $(NORMAL_TARGET_EXPORTS) \
47751 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
47752 for flag in $(EXTRA_TARGET_FLAGS); do \
47753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47754 done; \
47755 (cd $(TARGET_SUBDIR)/libgcc && \
47756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47758 "RANLIB=$${RANLIB}" \
bffcbe34 47759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47760 info) \
47761 || exit 1
47762
47763@endif target-libgcc
47764
47765.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
47766maybe-dvi-target-libgcc:
47767@if target-libgcc
47768maybe-dvi-target-libgcc: dvi-target-libgcc
47769
47770dvi-target-libgcc: \
47771 configure-target-libgcc
47772 @: $(MAKE); $(unstage)
47773 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47774 r=`${PWD_COMMAND}`; export r; \
47775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47776 $(NORMAL_TARGET_EXPORTS) \
47777 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
47778 for flag in $(EXTRA_TARGET_FLAGS); do \
47779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47780 done; \
47781 (cd $(TARGET_SUBDIR)/libgcc && \
47782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47784 "RANLIB=$${RANLIB}" \
bffcbe34 47785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47786 dvi) \
47787 || exit 1
47788
47789@endif target-libgcc
47790
47791.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
47792maybe-pdf-target-libgcc:
47793@if target-libgcc
47794maybe-pdf-target-libgcc: pdf-target-libgcc
47795
47796pdf-target-libgcc: \
47797 configure-target-libgcc
47798 @: $(MAKE); $(unstage)
47799 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47800 r=`${PWD_COMMAND}`; export r; \
47801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47802 $(NORMAL_TARGET_EXPORTS) \
47803 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
47804 for flag in $(EXTRA_TARGET_FLAGS); do \
47805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47806 done; \
47807 (cd $(TARGET_SUBDIR)/libgcc && \
47808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47810 "RANLIB=$${RANLIB}" \
bffcbe34 47811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47812 pdf) \
47813 || exit 1
47814
47815@endif target-libgcc
47816
47817.PHONY: maybe-html-target-libgcc html-target-libgcc
47818maybe-html-target-libgcc:
47819@if target-libgcc
47820maybe-html-target-libgcc: html-target-libgcc
47821
47822html-target-libgcc: \
47823 configure-target-libgcc
47824 @: $(MAKE); $(unstage)
47825 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47826 r=`${PWD_COMMAND}`; export r; \
47827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47828 $(NORMAL_TARGET_EXPORTS) \
47829 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
47830 for flag in $(EXTRA_TARGET_FLAGS); do \
47831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47832 done; \
47833 (cd $(TARGET_SUBDIR)/libgcc && \
47834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47836 "RANLIB=$${RANLIB}" \
bffcbe34 47837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47838 html) \
47839 || exit 1
47840
47841@endif target-libgcc
47842
47843.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
47844maybe-TAGS-target-libgcc:
47845@if target-libgcc
47846maybe-TAGS-target-libgcc: TAGS-target-libgcc
47847
47848TAGS-target-libgcc: \
47849 configure-target-libgcc
47850 @: $(MAKE); $(unstage)
47851 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47852 r=`${PWD_COMMAND}`; export r; \
47853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47854 $(NORMAL_TARGET_EXPORTS) \
47855 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
47856 for flag in $(EXTRA_TARGET_FLAGS); do \
47857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47858 done; \
47859 (cd $(TARGET_SUBDIR)/libgcc && \
47860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47862 "RANLIB=$${RANLIB}" \
bffcbe34 47863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47864 TAGS) \
47865 || exit 1
47866
47867@endif target-libgcc
47868
47869.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
47870maybe-install-info-target-libgcc:
47871@if target-libgcc
47872maybe-install-info-target-libgcc: install-info-target-libgcc
47873
47874install-info-target-libgcc: \
47875 configure-target-libgcc \
47876 info-target-libgcc
47877 @: $(MAKE); $(unstage)
47878 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47879 r=`${PWD_COMMAND}`; export r; \
47880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47881 $(NORMAL_TARGET_EXPORTS) \
47882 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
47883 for flag in $(EXTRA_TARGET_FLAGS); do \
47884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47885 done; \
47886 (cd $(TARGET_SUBDIR)/libgcc && \
47887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47889 "RANLIB=$${RANLIB}" \
bffcbe34 47890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47891 install-info) \
47892 || exit 1
47893
47894@endif target-libgcc
47895
d4954b6d
DD
47896.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
47897maybe-install-pdf-target-libgcc:
47898@if target-libgcc
47899maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
47900
47901install-pdf-target-libgcc: \
47902 configure-target-libgcc \
47903 pdf-target-libgcc
47904 @: $(MAKE); $(unstage)
47905 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47906 r=`${PWD_COMMAND}`; export r; \
47907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47908 $(NORMAL_TARGET_EXPORTS) \
47909 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
47910 for flag in $(EXTRA_TARGET_FLAGS); do \
47911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47912 done; \
47913 (cd $(TARGET_SUBDIR)/libgcc && \
47914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47916 "RANLIB=$${RANLIB}" \
bffcbe34 47917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
47918 install-pdf) \
47919 || exit 1
47920
47921@endif target-libgcc
47922
1f316156
DJ
47923.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
47924maybe-install-html-target-libgcc:
47925@if target-libgcc
47926maybe-install-html-target-libgcc: install-html-target-libgcc
47927
47928install-html-target-libgcc: \
47929 configure-target-libgcc \
47930 html-target-libgcc
47931 @: $(MAKE); $(unstage)
47932 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47933 r=`${PWD_COMMAND}`; export r; \
47934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47935 $(NORMAL_TARGET_EXPORTS) \
47936 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
47937 for flag in $(EXTRA_TARGET_FLAGS); do \
47938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47939 done; \
47940 (cd $(TARGET_SUBDIR)/libgcc && \
47941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47943 "RANLIB=$${RANLIB}" \
bffcbe34 47944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47945 install-html) \
47946 || exit 1
47947
47948@endif target-libgcc
47949
47950.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
47951maybe-installcheck-target-libgcc:
47952@if target-libgcc
47953maybe-installcheck-target-libgcc: installcheck-target-libgcc
47954
47955installcheck-target-libgcc: \
47956 configure-target-libgcc
47957 @: $(MAKE); $(unstage)
47958 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47959 r=`${PWD_COMMAND}`; export r; \
47960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47961 $(NORMAL_TARGET_EXPORTS) \
47962 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
47963 for flag in $(EXTRA_TARGET_FLAGS); do \
47964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47965 done; \
47966 (cd $(TARGET_SUBDIR)/libgcc && \
47967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47969 "RANLIB=$${RANLIB}" \
bffcbe34 47970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47971 installcheck) \
47972 || exit 1
47973
47974@endif target-libgcc
47975
47976.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
47977maybe-mostlyclean-target-libgcc:
47978@if target-libgcc
47979maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
47980
47981mostlyclean-target-libgcc:
47982 @: $(MAKE); $(unstage)
47983 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
47984 r=`${PWD_COMMAND}`; export r; \
47985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47986 $(NORMAL_TARGET_EXPORTS) \
47987 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
47988 for flag in $(EXTRA_TARGET_FLAGS); do \
47989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47990 done; \
47991 (cd $(TARGET_SUBDIR)/libgcc && \
47992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47994 "RANLIB=$${RANLIB}" \
bffcbe34 47995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
47996 mostlyclean) \
47997 || exit 1
47998
47999@endif target-libgcc
48000
48001.PHONY: maybe-clean-target-libgcc clean-target-libgcc
48002maybe-clean-target-libgcc:
48003@if target-libgcc
48004maybe-clean-target-libgcc: clean-target-libgcc
48005
48006clean-target-libgcc:
48007 @: $(MAKE); $(unstage)
48008 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
48009 r=`${PWD_COMMAND}`; export r; \
48010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48011 $(NORMAL_TARGET_EXPORTS) \
48012 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
48013 for flag in $(EXTRA_TARGET_FLAGS); do \
48014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48015 done; \
48016 (cd $(TARGET_SUBDIR)/libgcc && \
48017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48019 "RANLIB=$${RANLIB}" \
bffcbe34 48020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
48021 clean) \
48022 || exit 1
48023
48024@endif target-libgcc
48025
48026.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
48027maybe-distclean-target-libgcc:
48028@if target-libgcc
48029maybe-distclean-target-libgcc: distclean-target-libgcc
48030
48031distclean-target-libgcc:
48032 @: $(MAKE); $(unstage)
48033 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
48034 r=`${PWD_COMMAND}`; export r; \
48035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48036 $(NORMAL_TARGET_EXPORTS) \
48037 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
48038 for flag in $(EXTRA_TARGET_FLAGS); do \
48039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48040 done; \
48041 (cd $(TARGET_SUBDIR)/libgcc && \
48042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48044 "RANLIB=$${RANLIB}" \
bffcbe34 48045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
48046 distclean) \
48047 || exit 1
48048
48049@endif target-libgcc
48050
48051.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
48052maybe-maintainer-clean-target-libgcc:
48053@if target-libgcc
48054maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
48055
48056maintainer-clean-target-libgcc:
48057 @: $(MAKE); $(unstage)
48058 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
48059 r=`${PWD_COMMAND}`; export r; \
48060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48061 $(NORMAL_TARGET_EXPORTS) \
48062 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
48063 for flag in $(EXTRA_TARGET_FLAGS); do \
48064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48065 done; \
48066 (cd $(TARGET_SUBDIR)/libgcc && \
48067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48069 "RANLIB=$${RANLIB}" \
bffcbe34 48070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
1f316156
DJ
48071 maintainer-clean) \
48072 || exit 1
48073
48074@endif target-libgcc
48075
48076
48077
48078
48079
f0fdfd34
PB
48080.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
48081maybe-configure-target-libgfortran:
e1e5148c
CD
48082@if gcc-bootstrap
48083configure-target-libgfortran: stage_current
48084@endif gcc-bootstrap
f0fdfd34
PB
48085@if target-libgfortran
48086maybe-configure-target-libgfortran: configure-target-libgfortran
ec92c4d6 48087configure-target-libgfortran:
15b527ca
PB
48088 @: $(MAKE); $(unstage)
48089 @r=`${PWD_COMMAND}`; export r; \
48090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48091 echo "Checking multilib configuration for libgfortran..."; \
48092 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
48093 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
48094 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
48095 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
48096 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
48097 else \
48098 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
48099 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
48100 fi; \
48101 else \
48102 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
ec92c4d6
PB
48103 fi; \
48104 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
cb2333e8 48105 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
5074489a 48106 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48107 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
48108 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
48109 case $(srcdir) in \
7fc2ca22
PB
48110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48111 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
48112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
cb2333e8 48113 esac; \
7fc2ca22
PB
48114 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
48115 libsrcdir="$$s/libgfortran"; \
cb2333e8
DD
48116 rm -f no-such-file || : ; \
48117 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
48118 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
48119 --target=${target_alias} $${srcdiroption} \
cb2333e8 48120 || exit 1
a7e609d6 48121@endif target-libgfortran
cb2333e8 48122
f0fdfd34
PB
48123
48124
a8a96878
PB
48125
48126
cb2333e8
DD
48127.PHONY: all-target-libgfortran maybe-all-target-libgfortran
48128maybe-all-target-libgfortran:
e1e5148c
CD
48129@if gcc-bootstrap
48130all-target-libgfortran: stage_current
48131@endif gcc-bootstrap
a7e609d6 48132@if target-libgfortran
6a19fd82 48133TARGET-target-libgfortran=all
a7e609d6 48134maybe-all-target-libgfortran: all-target-libgfortran
cb2333e8 48135all-target-libgfortran: configure-target-libgfortran
15b527ca 48136 @: $(MAKE); $(unstage)
cb2333e8
DD
48137 @r=`${PWD_COMMAND}`; export r; \
48138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 48139 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 48140 (cd $(TARGET_SUBDIR)/libgfortran && \
6532abb6
PB
48141 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
48142 $(TARGET-target-libgfortran))
a7e609d6 48143@endif target-libgfortran
cb2333e8 48144
f0fdfd34
PB
48145
48146
a8a96878
PB
48147
48148
cb2333e8
DD
48149.PHONY: check-target-libgfortran maybe-check-target-libgfortran
48150maybe-check-target-libgfortran:
a7e609d6
PB
48151@if target-libgfortran
48152maybe-check-target-libgfortran: check-target-libgfortran
cb2333e8
DD
48153
48154check-target-libgfortran:
15b527ca 48155 @: $(MAKE); $(unstage)
cb2333e8
DD
48156 @r=`${PWD_COMMAND}`; export r; \
48157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48158 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 48159 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 48160 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
cb2333e8 48161
a7e609d6 48162@endif target-libgfortran
cb2333e8
DD
48163
48164.PHONY: install-target-libgfortran maybe-install-target-libgfortran
48165maybe-install-target-libgfortran:
a7e609d6
PB
48166@if target-libgfortran
48167maybe-install-target-libgfortran: install-target-libgfortran
cb2333e8
DD
48168
48169install-target-libgfortran: installdirs
15b527ca 48170 @: $(MAKE); $(unstage)
cb2333e8
DD
48171 @r=`${PWD_COMMAND}`; export r; \
48172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48173 $(NORMAL_TARGET_EXPORTS) \
cb2333e8 48174 (cd $(TARGET_SUBDIR)/libgfortran && \
63673a5b 48175 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
cb2333e8 48176
a7e609d6 48177@endif target-libgfortran
cb2333e8 48178
39bbbb69 48179# Other targets (info, dvi, pdf, etc.)
cb2333e8
DD
48180
48181.PHONY: maybe-info-target-libgfortran info-target-libgfortran
48182maybe-info-target-libgfortran:
a7e609d6
PB
48183@if target-libgfortran
48184maybe-info-target-libgfortran: info-target-libgfortran
cb2333e8
DD
48185
48186info-target-libgfortran: \
48187 configure-target-libgfortran
15b527ca 48188 @: $(MAKE); $(unstage)
cb2333e8
DD
48189 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48190 r=`${PWD_COMMAND}`; export r; \
48191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48192 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48193 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
48194 for flag in $(EXTRA_TARGET_FLAGS); do \
48195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48196 done; \
48197 (cd $(TARGET_SUBDIR)/libgfortran && \
48198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48200 "RANLIB=$${RANLIB}" \
bffcbe34 48201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48202 info) \
cb2333e8
DD
48203 || exit 1
48204
a7e609d6 48205@endif target-libgfortran
cb2333e8
DD
48206
48207.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
48208maybe-dvi-target-libgfortran:
a7e609d6
PB
48209@if target-libgfortran
48210maybe-dvi-target-libgfortran: dvi-target-libgfortran
cb2333e8
DD
48211
48212dvi-target-libgfortran: \
48213 configure-target-libgfortran
15b527ca 48214 @: $(MAKE); $(unstage)
cb2333e8
DD
48215 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48216 r=`${PWD_COMMAND}`; export r; \
48217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48218 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48219 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
48220 for flag in $(EXTRA_TARGET_FLAGS); do \
48221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48222 done; \
48223 (cd $(TARGET_SUBDIR)/libgfortran && \
48224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48226 "RANLIB=$${RANLIB}" \
bffcbe34 48227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48228 dvi) \
cb2333e8
DD
48229 || exit 1
48230
a7e609d6 48231@endif target-libgfortran
cb2333e8 48232
39bbbb69
DD
48233.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
48234maybe-pdf-target-libgfortran:
48235@if target-libgfortran
48236maybe-pdf-target-libgfortran: pdf-target-libgfortran
48237
48238pdf-target-libgfortran: \
48239 configure-target-libgfortran
48240 @: $(MAKE); $(unstage)
48241 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48242 r=`${PWD_COMMAND}`; export r; \
48243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48244 $(NORMAL_TARGET_EXPORTS) \
48245 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
48246 for flag in $(EXTRA_TARGET_FLAGS); do \
48247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48248 done; \
48249 (cd $(TARGET_SUBDIR)/libgfortran && \
48250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48252 "RANLIB=$${RANLIB}" \
bffcbe34 48253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
48254 pdf) \
48255 || exit 1
48256
48257@endif target-libgfortran
48258
b6fb961f
MS
48259.PHONY: maybe-html-target-libgfortran html-target-libgfortran
48260maybe-html-target-libgfortran:
48261@if target-libgfortran
48262maybe-html-target-libgfortran: html-target-libgfortran
48263
48264html-target-libgfortran: \
48265 configure-target-libgfortran
15b527ca 48266 @: $(MAKE); $(unstage)
b6fb961f
MS
48267 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48268 r=`${PWD_COMMAND}`; export r; \
48269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
48270 $(NORMAL_TARGET_EXPORTS) \
48271 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
48272 for flag in $(EXTRA_TARGET_FLAGS); do \
48273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48274 done; \
48275 (cd $(TARGET_SUBDIR)/libgfortran && \
48276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48278 "RANLIB=$${RANLIB}" \
bffcbe34 48279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
48280 html) \
48281 || exit 1
48282
48283@endif target-libgfortran
48284
cb2333e8
DD
48285.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
48286maybe-TAGS-target-libgfortran:
a7e609d6
PB
48287@if target-libgfortran
48288maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
cb2333e8
DD
48289
48290TAGS-target-libgfortran: \
48291 configure-target-libgfortran
15b527ca 48292 @: $(MAKE); $(unstage)
cb2333e8
DD
48293 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48294 r=`${PWD_COMMAND}`; export r; \
48295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48296 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48297 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
48298 for flag in $(EXTRA_TARGET_FLAGS); do \
48299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48300 done; \
48301 (cd $(TARGET_SUBDIR)/libgfortran && \
48302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48304 "RANLIB=$${RANLIB}" \
bffcbe34 48305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48306 TAGS) \
cb2333e8
DD
48307 || exit 1
48308
a7e609d6 48309@endif target-libgfortran
cb2333e8
DD
48310
48311.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
48312maybe-install-info-target-libgfortran:
a7e609d6
PB
48313@if target-libgfortran
48314maybe-install-info-target-libgfortran: install-info-target-libgfortran
cb2333e8
DD
48315
48316install-info-target-libgfortran: \
48317 configure-target-libgfortran \
48318 info-target-libgfortran
15b527ca 48319 @: $(MAKE); $(unstage)
cb2333e8
DD
48320 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48321 r=`${PWD_COMMAND}`; export r; \
48322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48323 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48324 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
48325 for flag in $(EXTRA_TARGET_FLAGS); do \
48326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48327 done; \
48328 (cd $(TARGET_SUBDIR)/libgfortran && \
48329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48331 "RANLIB=$${RANLIB}" \
bffcbe34 48332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48333 install-info) \
cb2333e8
DD
48334 || exit 1
48335
a7e609d6 48336@endif target-libgfortran
cb2333e8 48337
d4954b6d
DD
48338.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
48339maybe-install-pdf-target-libgfortran:
48340@if target-libgfortran
48341maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
48342
48343install-pdf-target-libgfortran: \
48344 configure-target-libgfortran \
48345 pdf-target-libgfortran
48346 @: $(MAKE); $(unstage)
48347 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48348 r=`${PWD_COMMAND}`; export r; \
48349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48350 $(NORMAL_TARGET_EXPORTS) \
48351 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
48352 for flag in $(EXTRA_TARGET_FLAGS); do \
48353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48354 done; \
48355 (cd $(TARGET_SUBDIR)/libgfortran && \
48356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48358 "RANLIB=$${RANLIB}" \
bffcbe34 48359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
48360 install-pdf) \
48361 || exit 1
48362
48363@endif target-libgfortran
48364
83c9add4
CD
48365.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
48366maybe-install-html-target-libgfortran:
48367@if target-libgfortran
48368maybe-install-html-target-libgfortran: install-html-target-libgfortran
48369
48370install-html-target-libgfortran: \
48371 configure-target-libgfortran \
48372 html-target-libgfortran
48373 @: $(MAKE); $(unstage)
48374 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48375 r=`${PWD_COMMAND}`; export r; \
48376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48377 $(NORMAL_TARGET_EXPORTS) \
48378 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
48379 for flag in $(EXTRA_TARGET_FLAGS); do \
48380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48381 done; \
48382 (cd $(TARGET_SUBDIR)/libgfortran && \
48383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48385 "RANLIB=$${RANLIB}" \
bffcbe34 48386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
48387 install-html) \
48388 || exit 1
48389
48390@endif target-libgfortran
48391
cb2333e8
DD
48392.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
48393maybe-installcheck-target-libgfortran:
a7e609d6
PB
48394@if target-libgfortran
48395maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
cb2333e8
DD
48396
48397installcheck-target-libgfortran: \
48398 configure-target-libgfortran
15b527ca 48399 @: $(MAKE); $(unstage)
cb2333e8
DD
48400 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48401 r=`${PWD_COMMAND}`; export r; \
48402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48403 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48404 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
48405 for flag in $(EXTRA_TARGET_FLAGS); do \
48406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48407 done; \
48408 (cd $(TARGET_SUBDIR)/libgfortran && \
48409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48411 "RANLIB=$${RANLIB}" \
bffcbe34 48412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48413 installcheck) \
cb2333e8
DD
48414 || exit 1
48415
a7e609d6 48416@endif target-libgfortran
cb2333e8
DD
48417
48418.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
48419maybe-mostlyclean-target-libgfortran:
a7e609d6
PB
48420@if target-libgfortran
48421maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
cb2333e8
DD
48422
48423mostlyclean-target-libgfortran:
15b527ca 48424 @: $(MAKE); $(unstage)
cb2333e8
DD
48425 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48426 r=`${PWD_COMMAND}`; export r; \
48427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48428 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48429 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
48430 for flag in $(EXTRA_TARGET_FLAGS); do \
48431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48432 done; \
48433 (cd $(TARGET_SUBDIR)/libgfortran && \
48434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48436 "RANLIB=$${RANLIB}" \
bffcbe34 48437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48438 mostlyclean) \
cb2333e8
DD
48439 || exit 1
48440
a7e609d6 48441@endif target-libgfortran
cb2333e8
DD
48442
48443.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
48444maybe-clean-target-libgfortran:
a7e609d6
PB
48445@if target-libgfortran
48446maybe-clean-target-libgfortran: clean-target-libgfortran
cb2333e8
DD
48447
48448clean-target-libgfortran:
15b527ca 48449 @: $(MAKE); $(unstage)
cb2333e8
DD
48450 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48451 r=`${PWD_COMMAND}`; export r; \
48452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48453 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48454 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
48455 for flag in $(EXTRA_TARGET_FLAGS); do \
48456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48457 done; \
48458 (cd $(TARGET_SUBDIR)/libgfortran && \
48459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48461 "RANLIB=$${RANLIB}" \
bffcbe34 48462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48463 clean) \
cb2333e8
DD
48464 || exit 1
48465
a7e609d6 48466@endif target-libgfortran
cb2333e8
DD
48467
48468.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
48469maybe-distclean-target-libgfortran:
a7e609d6
PB
48470@if target-libgfortran
48471maybe-distclean-target-libgfortran: distclean-target-libgfortran
cb2333e8
DD
48472
48473distclean-target-libgfortran:
15b527ca 48474 @: $(MAKE); $(unstage)
cb2333e8
DD
48475 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48476 r=`${PWD_COMMAND}`; export r; \
48477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48478 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48479 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
48480 for flag in $(EXTRA_TARGET_FLAGS); do \
48481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48482 done; \
48483 (cd $(TARGET_SUBDIR)/libgfortran && \
48484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48486 "RANLIB=$${RANLIB}" \
bffcbe34 48487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48488 distclean) \
cb2333e8
DD
48489 || exit 1
48490
a7e609d6 48491@endif target-libgfortran
cb2333e8
DD
48492
48493.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
48494maybe-maintainer-clean-target-libgfortran:
a7e609d6
PB
48495@if target-libgfortran
48496maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
cb2333e8
DD
48497
48498maintainer-clean-target-libgfortran:
15b527ca 48499 @: $(MAKE); $(unstage)
cb2333e8
DD
48500 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
48501 r=`${PWD_COMMAND}`; export r; \
48502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48503 $(NORMAL_TARGET_EXPORTS) \
cb2333e8
DD
48504 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
48505 for flag in $(EXTRA_TARGET_FLAGS); do \
48506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48507 done; \
48508 (cd $(TARGET_SUBDIR)/libgfortran && \
48509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48511 "RANLIB=$${RANLIB}" \
bffcbe34 48512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48513 maintainer-clean) \
cb2333e8
DD
48514 || exit 1
48515
a7e609d6 48516@endif target-libgfortran
cb2333e8
DD
48517
48518
8ecc6504 48519
f0fdfd34 48520
f3fd76d4 48521
f0fdfd34
PB
48522.PHONY: configure-target-libobjc maybe-configure-target-libobjc
48523maybe-configure-target-libobjc:
e1e5148c
CD
48524@if gcc-bootstrap
48525configure-target-libobjc: stage_current
48526@endif gcc-bootstrap
f0fdfd34
PB
48527@if target-libobjc
48528maybe-configure-target-libobjc: configure-target-libobjc
ec92c4d6 48529configure-target-libobjc:
15b527ca
PB
48530 @: $(MAKE); $(unstage)
48531 @r=`${PWD_COMMAND}`; export r; \
48532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48533 echo "Checking multilib configuration for libobjc..."; \
48534 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
48535 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
48536 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
48537 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
48538 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
48539 else \
48540 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
48541 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
48542 fi; \
48543 else \
48544 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
ec92c4d6
PB
48545 fi; \
48546 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
8ec98d6c 48547 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
5074489a 48548 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48549 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
48550 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
94f860c0 48551 case $(srcdir) in \
7fc2ca22
PB
48552 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48553 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
48554 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 48555 esac; \
7fc2ca22
PB
48556 srcdiroption="--srcdir=$${topdir}/libobjc"; \
48557 libsrcdir="$$s/libobjc"; \
8ec98d6c
NN
48558 rm -f no-such-file || : ; \
48559 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
48560 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
48561 --target=${target_alias} $${srcdiroption} \
94f860c0 48562 || exit 1
a7e609d6 48563@endif target-libobjc
94f860c0 48564
f0fdfd34
PB
48565
48566
a8a96878
PB
48567
48568
8ec98d6c
NN
48569.PHONY: all-target-libobjc maybe-all-target-libobjc
48570maybe-all-target-libobjc:
e1e5148c
CD
48571@if gcc-bootstrap
48572all-target-libobjc: stage_current
48573@endif gcc-bootstrap
a7e609d6 48574@if target-libobjc
6a19fd82 48575TARGET-target-libobjc=all
a7e609d6 48576maybe-all-target-libobjc: all-target-libobjc
8ec98d6c 48577all-target-libobjc: configure-target-libobjc
15b527ca 48578 @: $(MAKE); $(unstage)
5230d454
L
48579 @r=`${PWD_COMMAND}`; export r; \
48580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 48581 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48582 (cd $(TARGET_SUBDIR)/libobjc && \
6532abb6
PB
48583 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
48584 $(TARGET-target-libobjc))
a7e609d6 48585@endif target-libobjc
8ecc6504 48586
f0fdfd34
PB
48587
48588
a8a96878
PB
48589
48590
8ec98d6c
NN
48591.PHONY: check-target-libobjc maybe-check-target-libobjc
48592maybe-check-target-libobjc:
a7e609d6
PB
48593@if target-libobjc
48594maybe-check-target-libobjc: check-target-libobjc
8ecc6504 48595
8ec98d6c 48596check-target-libobjc:
15b527ca 48597 @: $(MAKE); $(unstage)
5230d454
L
48598 @r=`${PWD_COMMAND}`; export r; \
48599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48600 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48601 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 48602 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 48603
a7e609d6 48604@endif target-libobjc
8ecc6504 48605
8ec98d6c
NN
48606.PHONY: install-target-libobjc maybe-install-target-libobjc
48607maybe-install-target-libobjc:
a7e609d6
PB
48608@if target-libobjc
48609maybe-install-target-libobjc: install-target-libobjc
94f860c0 48610
8ec98d6c 48611install-target-libobjc: installdirs
15b527ca 48612 @: $(MAKE); $(unstage)
5230d454
L
48613 @r=`${PWD_COMMAND}`; export r; \
48614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48615 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 48616 (cd $(TARGET_SUBDIR)/libobjc && \
63673a5b 48617 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 48618
a7e609d6 48619@endif target-libobjc
8ecc6504 48620
39bbbb69 48621# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
48622
48623.PHONY: maybe-info-target-libobjc info-target-libobjc
48624maybe-info-target-libobjc:
a7e609d6
PB
48625@if target-libobjc
48626maybe-info-target-libobjc: info-target-libobjc
8ec98d6c
NN
48627
48628info-target-libobjc: \
48629 configure-target-libobjc
15b527ca 48630 @: $(MAKE); $(unstage)
8ec98d6c
NN
48631 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48632 r=`${PWD_COMMAND}`; export r; \
5230d454 48633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48634 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48635 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
48636 for flag in $(EXTRA_TARGET_FLAGS); do \
48637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48638 done; \
48639 (cd $(TARGET_SUBDIR)/libobjc && \
48640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48642 "RANLIB=$${RANLIB}" \
bffcbe34 48643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48644 info) \
8ec98d6c 48645 || exit 1
8ecc6504 48646
a7e609d6 48647@endif target-libobjc
8ecc6504 48648
8ec98d6c
NN
48649.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
48650maybe-dvi-target-libobjc:
a7e609d6
PB
48651@if target-libobjc
48652maybe-dvi-target-libobjc: dvi-target-libobjc
70ffc148 48653
8ec98d6c
NN
48654dvi-target-libobjc: \
48655 configure-target-libobjc
15b527ca 48656 @: $(MAKE); $(unstage)
8ec98d6c
NN
48657 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48658 r=`${PWD_COMMAND}`; export r; \
5230d454 48659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48660 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48661 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
48662 for flag in $(EXTRA_TARGET_FLAGS); do \
48663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48664 done; \
48665 (cd $(TARGET_SUBDIR)/libobjc && \
48666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48668 "RANLIB=$${RANLIB}" \
bffcbe34 48669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48670 dvi) \
8ec98d6c 48671 || exit 1
8ecc6504 48672
a7e609d6 48673@endif target-libobjc
8ecc6504 48674
39bbbb69
DD
48675.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
48676maybe-pdf-target-libobjc:
48677@if target-libobjc
48678maybe-pdf-target-libobjc: pdf-target-libobjc
48679
48680pdf-target-libobjc: \
48681 configure-target-libobjc
48682 @: $(MAKE); $(unstage)
48683 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48684 r=`${PWD_COMMAND}`; export r; \
48685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48686 $(NORMAL_TARGET_EXPORTS) \
48687 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
48688 for flag in $(EXTRA_TARGET_FLAGS); do \
48689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48690 done; \
48691 (cd $(TARGET_SUBDIR)/libobjc && \
48692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48694 "RANLIB=$${RANLIB}" \
bffcbe34 48695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
48696 pdf) \
48697 || exit 1
48698
48699@endif target-libobjc
48700
b6fb961f
MS
48701.PHONY: maybe-html-target-libobjc html-target-libobjc
48702maybe-html-target-libobjc:
48703@if target-libobjc
48704maybe-html-target-libobjc: html-target-libobjc
48705
48706html-target-libobjc: \
48707 configure-target-libobjc
15b527ca 48708 @: $(MAKE); $(unstage)
b6fb961f
MS
48709 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48710 r=`${PWD_COMMAND}`; export r; \
48711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
48712 $(NORMAL_TARGET_EXPORTS) \
48713 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
48714 for flag in $(EXTRA_TARGET_FLAGS); do \
48715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48716 done; \
48717 (cd $(TARGET_SUBDIR)/libobjc && \
48718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48720 "RANLIB=$${RANLIB}" \
bffcbe34 48721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
48722 html) \
48723 || exit 1
48724
48725@endif target-libobjc
48726
8ec98d6c
NN
48727.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
48728maybe-TAGS-target-libobjc:
a7e609d6
PB
48729@if target-libobjc
48730maybe-TAGS-target-libobjc: TAGS-target-libobjc
8ec98d6c
NN
48731
48732TAGS-target-libobjc: \
48733 configure-target-libobjc
15b527ca 48734 @: $(MAKE); $(unstage)
8ec98d6c 48735 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
48736 r=`${PWD_COMMAND}`; export r; \
48737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48738 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48739 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
48740 for flag in $(EXTRA_TARGET_FLAGS); do \
48741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48742 done; \
48743 (cd $(TARGET_SUBDIR)/libobjc && \
48744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48746 "RANLIB=$${RANLIB}" \
bffcbe34 48747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48748 TAGS) \
94f860c0
NN
48749 || exit 1
48750
a7e609d6 48751@endif target-libobjc
8ec98d6c
NN
48752
48753.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
48754maybe-install-info-target-libobjc:
a7e609d6
PB
48755@if target-libobjc
48756maybe-install-info-target-libobjc: install-info-target-libobjc
8ec98d6c
NN
48757
48758install-info-target-libobjc: \
48759 configure-target-libobjc \
48760 info-target-libobjc
15b527ca 48761 @: $(MAKE); $(unstage)
8ec98d6c
NN
48762 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48763 r=`${PWD_COMMAND}`; export r; \
5230d454 48764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48765 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48766 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
48767 for flag in $(EXTRA_TARGET_FLAGS); do \
48768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48769 done; \
48770 (cd $(TARGET_SUBDIR)/libobjc && \
48771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48773 "RANLIB=$${RANLIB}" \
bffcbe34 48774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48775 install-info) \
8ec98d6c 48776 || exit 1
8ecc6504 48777
a7e609d6 48778@endif target-libobjc
8ecc6504 48779
d4954b6d
DD
48780.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
48781maybe-install-pdf-target-libobjc:
48782@if target-libobjc
48783maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
48784
48785install-pdf-target-libobjc: \
48786 configure-target-libobjc \
48787 pdf-target-libobjc
48788 @: $(MAKE); $(unstage)
48789 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48790 r=`${PWD_COMMAND}`; export r; \
48791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48792 $(NORMAL_TARGET_EXPORTS) \
48793 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
48794 for flag in $(EXTRA_TARGET_FLAGS); do \
48795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48796 done; \
48797 (cd $(TARGET_SUBDIR)/libobjc && \
48798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48800 "RANLIB=$${RANLIB}" \
bffcbe34 48801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
48802 install-pdf) \
48803 || exit 1
48804
48805@endif target-libobjc
48806
83c9add4
CD
48807.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
48808maybe-install-html-target-libobjc:
48809@if target-libobjc
48810maybe-install-html-target-libobjc: install-html-target-libobjc
48811
48812install-html-target-libobjc: \
48813 configure-target-libobjc \
48814 html-target-libobjc
48815 @: $(MAKE); $(unstage)
48816 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48817 r=`${PWD_COMMAND}`; export r; \
48818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48819 $(NORMAL_TARGET_EXPORTS) \
48820 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
48821 for flag in $(EXTRA_TARGET_FLAGS); do \
48822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48823 done; \
48824 (cd $(TARGET_SUBDIR)/libobjc && \
48825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48827 "RANLIB=$${RANLIB}" \
bffcbe34 48828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
48829 install-html) \
48830 || exit 1
48831
48832@endif target-libobjc
48833
8ec98d6c
NN
48834.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
48835maybe-installcheck-target-libobjc:
a7e609d6
PB
48836@if target-libobjc
48837maybe-installcheck-target-libobjc: installcheck-target-libobjc
8ec98d6c
NN
48838
48839installcheck-target-libobjc: \
48840 configure-target-libobjc
15b527ca 48841 @: $(MAKE); $(unstage)
8ec98d6c
NN
48842 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48843 r=`${PWD_COMMAND}`; export r; \
5230d454 48844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48845 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48846 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
48847 for flag in $(EXTRA_TARGET_FLAGS); do \
48848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48849 done; \
48850 (cd $(TARGET_SUBDIR)/libobjc && \
48851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48853 "RANLIB=$${RANLIB}" \
bffcbe34 48854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48855 installcheck) \
8ec98d6c 48856 || exit 1
8ecc6504 48857
a7e609d6 48858@endif target-libobjc
8ecc6504 48859
8ec98d6c
NN
48860.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
48861maybe-mostlyclean-target-libobjc:
a7e609d6
PB
48862@if target-libobjc
48863maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
70ffc148 48864
8ec98d6c 48865mostlyclean-target-libobjc:
15b527ca 48866 @: $(MAKE); $(unstage)
8ec98d6c
NN
48867 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48868 r=`${PWD_COMMAND}`; export r; \
5230d454 48869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48870 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48871 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
48872 for flag in $(EXTRA_TARGET_FLAGS); do \
48873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48874 done; \
48875 (cd $(TARGET_SUBDIR)/libobjc && \
48876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48878 "RANLIB=$${RANLIB}" \
bffcbe34 48879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48880 mostlyclean) \
8ec98d6c 48881 || exit 1
8ecc6504 48882
a7e609d6 48883@endif target-libobjc
8ecc6504 48884
8ec98d6c
NN
48885.PHONY: maybe-clean-target-libobjc clean-target-libobjc
48886maybe-clean-target-libobjc:
a7e609d6
PB
48887@if target-libobjc
48888maybe-clean-target-libobjc: clean-target-libobjc
8ec98d6c
NN
48889
48890clean-target-libobjc:
15b527ca 48891 @: $(MAKE); $(unstage)
8ec98d6c 48892 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
5230d454
L
48893 r=`${PWD_COMMAND}`; export r; \
48894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48895 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48896 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
48897 for flag in $(EXTRA_TARGET_FLAGS); do \
48898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48899 done; \
48900 (cd $(TARGET_SUBDIR)/libobjc && \
48901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48903 "RANLIB=$${RANLIB}" \
bffcbe34 48904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48905 clean) \
94f860c0
NN
48906 || exit 1
48907
a7e609d6 48908@endif target-libobjc
8ecc6504 48909
8ec98d6c
NN
48910.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
48911maybe-distclean-target-libobjc:
a7e609d6
PB
48912@if target-libobjc
48913maybe-distclean-target-libobjc: distclean-target-libobjc
8ecc6504 48914
8ec98d6c 48915distclean-target-libobjc:
15b527ca 48916 @: $(MAKE); $(unstage)
8ec98d6c
NN
48917 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48918 r=`${PWD_COMMAND}`; export r; \
5230d454 48919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48920 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48921 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
48922 for flag in $(EXTRA_TARGET_FLAGS); do \
48923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48924 done; \
48925 (cd $(TARGET_SUBDIR)/libobjc && \
48926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48928 "RANLIB=$${RANLIB}" \
bffcbe34 48929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48930 distclean) \
8ec98d6c 48931 || exit 1
8ecc6504 48932
a7e609d6 48933@endif target-libobjc
8ecc6504 48934
8ec98d6c
NN
48935.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
48936maybe-maintainer-clean-target-libobjc:
a7e609d6
PB
48937@if target-libobjc
48938maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
70ffc148 48939
8ec98d6c 48940maintainer-clean-target-libobjc:
15b527ca 48941 @: $(MAKE); $(unstage)
8ec98d6c
NN
48942 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
48943 r=`${PWD_COMMAND}`; export r; \
5230d454 48944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 48945 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48946 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
48947 for flag in $(EXTRA_TARGET_FLAGS); do \
48948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48949 done; \
48950 (cd $(TARGET_SUBDIR)/libobjc && \
48951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48953 "RANLIB=$${RANLIB}" \
bffcbe34 48954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 48955 maintainer-clean) \
8ec98d6c 48956 || exit 1
8ecc6504 48957
a7e609d6 48958@endif target-libobjc
8ecc6504 48959
8ec98d6c 48960
8ec98d6c 48961
f0fdfd34 48962
f3fd76d4 48963
f0fdfd34
PB
48964.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
48965maybe-configure-target-libtermcap:
e1e5148c
CD
48966@if gcc-bootstrap
48967configure-target-libtermcap: stage_current
48968@endif gcc-bootstrap
f0fdfd34
PB
48969@if target-libtermcap
48970maybe-configure-target-libtermcap: configure-target-libtermcap
ec92c4d6 48971configure-target-libtermcap:
15b527ca
PB
48972 @: $(MAKE); $(unstage)
48973 @r=`${PWD_COMMAND}`; export r; \
48974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48975 echo "Checking multilib configuration for libtermcap..."; \
48976 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
48977 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
48978 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
48979 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
48980 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
48981 else \
48982 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
48983 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
48984 fi; \
48985 else \
48986 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
ec92c4d6
PB
48987 fi; \
48988 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
8ec98d6c 48989 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
5074489a 48990 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
48991 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
48992 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
94f860c0 48993 case $(srcdir) in \
7fc2ca22
PB
48994 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48995 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
48996 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 48997 esac; \
7fc2ca22
PB
48998 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
48999 libsrcdir="$$s/libtermcap"; \
8ec98d6c
NN
49000 rm -f no-such-file || : ; \
49001 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49002 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49003 --target=${target_alias} $${srcdiroption} \
94f860c0 49004 || exit 1
a7e609d6 49005@endif target-libtermcap
94f860c0 49006
f0fdfd34
PB
49007
49008
a8a96878
PB
49009
49010
8ec98d6c
NN
49011.PHONY: all-target-libtermcap maybe-all-target-libtermcap
49012maybe-all-target-libtermcap:
e1e5148c
CD
49013@if gcc-bootstrap
49014all-target-libtermcap: stage_current
49015@endif gcc-bootstrap
a7e609d6 49016@if target-libtermcap
6a19fd82 49017TARGET-target-libtermcap=all
a7e609d6 49018maybe-all-target-libtermcap: all-target-libtermcap
8ec98d6c 49019all-target-libtermcap: configure-target-libtermcap
15b527ca 49020 @: $(MAKE); $(unstage)
5230d454
L
49021 @r=`${PWD_COMMAND}`; export r; \
49022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 49023 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49024 (cd $(TARGET_SUBDIR)/libtermcap && \
6532abb6
PB
49025 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49026 $(TARGET-target-libtermcap))
a7e609d6 49027@endif target-libtermcap
8ecc6504 49028
f0fdfd34
PB
49029
49030
a8a96878
PB
49031
49032
8ec98d6c
NN
49033.PHONY: check-target-libtermcap maybe-check-target-libtermcap
49034maybe-check-target-libtermcap:
a7e609d6
PB
49035@if target-libtermcap
49036maybe-check-target-libtermcap: check-target-libtermcap
8ecc6504 49037
8ec98d6c
NN
49038# Dummy target for uncheckable module.
49039check-target-libtermcap:
49040
a7e609d6 49041@endif target-libtermcap
8ec98d6c
NN
49042
49043.PHONY: install-target-libtermcap maybe-install-target-libtermcap
49044maybe-install-target-libtermcap:
a7e609d6
PB
49045@if target-libtermcap
49046maybe-install-target-libtermcap: install-target-libtermcap
8ec98d6c
NN
49047
49048install-target-libtermcap: installdirs
15b527ca 49049 @: $(MAKE); $(unstage)
5230d454
L
49050 @r=`${PWD_COMMAND}`; export r; \
49051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49052 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49053 (cd $(TARGET_SUBDIR)/libtermcap && \
63673a5b 49054 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 49055
a7e609d6 49056@endif target-libtermcap
8ecc6504 49057
39bbbb69 49058# Other targets (info, dvi, pdf, etc.)
70ffc148 49059
8ec98d6c
NN
49060.PHONY: maybe-info-target-libtermcap info-target-libtermcap
49061maybe-info-target-libtermcap:
a7e609d6 49062@if target-libtermcap
b6fb961f
MS
49063maybe-info-target-libtermcap: info-target-libtermcap
49064
49065info-target-libtermcap: \
49066 configure-target-libtermcap
15b527ca 49067 @: $(MAKE); $(unstage)
b6fb961f
MS
49068 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49069 r=`${PWD_COMMAND}`; export r; \
49070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
49071 $(NORMAL_TARGET_EXPORTS) \
49072 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
49073 for flag in $(EXTRA_TARGET_FLAGS); do \
49074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49075 done; \
49076 (cd $(TARGET_SUBDIR)/libtermcap && \
49077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49079 "RANLIB=$${RANLIB}" \
bffcbe34 49080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
49081 info) \
49082 || exit 1
49083
49084@endif target-libtermcap
49085
49086.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
49087maybe-dvi-target-libtermcap:
49088@if target-libtermcap
49089maybe-dvi-target-libtermcap: dvi-target-libtermcap
8ec98d6c 49090
b6fb961f 49091dvi-target-libtermcap: \
8ec98d6c 49092 configure-target-libtermcap
15b527ca 49093 @: $(MAKE); $(unstage)
8ec98d6c
NN
49094 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49095 r=`${PWD_COMMAND}`; export r; \
5230d454 49096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49097 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 49098 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
49099 for flag in $(EXTRA_TARGET_FLAGS); do \
49100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49101 done; \
49102 (cd $(TARGET_SUBDIR)/libtermcap && \
49103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49105 "RANLIB=$${RANLIB}" \
bffcbe34 49106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 49107 dvi) \
8ec98d6c 49108 || exit 1
8ecc6504 49109
a7e609d6 49110@endif target-libtermcap
8ecc6504 49111
39bbbb69
DD
49112.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
49113maybe-pdf-target-libtermcap:
49114@if target-libtermcap
49115maybe-pdf-target-libtermcap: pdf-target-libtermcap
49116
49117pdf-target-libtermcap: \
49118 configure-target-libtermcap
49119 @: $(MAKE); $(unstage)
49120 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49121 r=`${PWD_COMMAND}`; export r; \
49122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49123 $(NORMAL_TARGET_EXPORTS) \
49124 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
49125 for flag in $(EXTRA_TARGET_FLAGS); do \
49126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49127 done; \
49128 (cd $(TARGET_SUBDIR)/libtermcap && \
49129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49131 "RANLIB=$${RANLIB}" \
bffcbe34 49132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
49133 pdf) \
49134 || exit 1
49135
49136@endif target-libtermcap
49137
b6fb961f
MS
49138.PHONY: maybe-html-target-libtermcap html-target-libtermcap
49139maybe-html-target-libtermcap:
a7e609d6 49140@if target-libtermcap
b6fb961f 49141maybe-html-target-libtermcap: html-target-libtermcap
8ec98d6c 49142
b6fb961f 49143html-target-libtermcap: \
8ec98d6c 49144 configure-target-libtermcap
15b527ca 49145 @: $(MAKE); $(unstage)
8ec98d6c 49146 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
5230d454
L
49147 r=`${PWD_COMMAND}`; export r; \
49148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49149 $(NORMAL_TARGET_EXPORTS) \
b6fb961f 49150 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
8ec98d6c
NN
49151 for flag in $(EXTRA_TARGET_FLAGS); do \
49152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49153 done; \
49154 (cd $(TARGET_SUBDIR)/libtermcap && \
49155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49157 "RANLIB=$${RANLIB}" \
bffcbe34 49158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f 49159 html) \
94f860c0
NN
49160 || exit 1
49161
a7e609d6 49162@endif target-libtermcap
8ec98d6c
NN
49163
49164.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
49165maybe-TAGS-target-libtermcap:
a7e609d6
PB
49166@if target-libtermcap
49167maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
8ec98d6c
NN
49168
49169TAGS-target-libtermcap: \
49170 configure-target-libtermcap
15b527ca 49171 @: $(MAKE); $(unstage)
8ec98d6c
NN
49172 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49173 r=`${PWD_COMMAND}`; export r; \
5230d454 49174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49175 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49176 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
49177 for flag in $(EXTRA_TARGET_FLAGS); do \
49178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49179 done; \
49180 (cd $(TARGET_SUBDIR)/libtermcap && \
49181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49183 "RANLIB=$${RANLIB}" \
bffcbe34 49184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49185 TAGS) \
8ec98d6c 49186 || exit 1
8ecc6504 49187
a7e609d6 49188@endif target-libtermcap
8ecc6504 49189
8ec98d6c
NN
49190.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
49191maybe-install-info-target-libtermcap:
a7e609d6
PB
49192@if target-libtermcap
49193maybe-install-info-target-libtermcap: install-info-target-libtermcap
8ecc6504 49194
8ec98d6c
NN
49195install-info-target-libtermcap: \
49196 configure-target-libtermcap \
49197 info-target-libtermcap
15b527ca 49198 @: $(MAKE); $(unstage)
8ec98d6c
NN
49199 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49200 r=`${PWD_COMMAND}`; export r; \
49201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49202 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49203 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
49204 for flag in $(EXTRA_TARGET_FLAGS); do \
49205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49206 done; \
49207 (cd $(TARGET_SUBDIR)/libtermcap && \
49208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49210 "RANLIB=$${RANLIB}" \
bffcbe34 49211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49212 install-info) \
8ec98d6c 49213 || exit 1
8ecc6504 49214
a7e609d6 49215@endif target-libtermcap
70ffc148 49216
d4954b6d
DD
49217.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
49218maybe-install-pdf-target-libtermcap:
49219@if target-libtermcap
49220maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
49221
49222install-pdf-target-libtermcap: \
49223 configure-target-libtermcap \
49224 pdf-target-libtermcap
49225 @: $(MAKE); $(unstage)
49226 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49227 r=`${PWD_COMMAND}`; export r; \
49228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49229 $(NORMAL_TARGET_EXPORTS) \
49230 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
49231 for flag in $(EXTRA_TARGET_FLAGS); do \
49232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49233 done; \
49234 (cd $(TARGET_SUBDIR)/libtermcap && \
49235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49237 "RANLIB=$${RANLIB}" \
bffcbe34 49238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
49239 install-pdf) \
49240 || exit 1
49241
49242@endif target-libtermcap
49243
83c9add4
CD
49244.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
49245maybe-install-html-target-libtermcap:
49246@if target-libtermcap
49247maybe-install-html-target-libtermcap: install-html-target-libtermcap
49248
49249install-html-target-libtermcap: \
49250 configure-target-libtermcap \
49251 html-target-libtermcap
49252 @: $(MAKE); $(unstage)
49253 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49254 r=`${PWD_COMMAND}`; export r; \
49255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49256 $(NORMAL_TARGET_EXPORTS) \
49257 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
49258 for flag in $(EXTRA_TARGET_FLAGS); do \
49259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49260 done; \
49261 (cd $(TARGET_SUBDIR)/libtermcap && \
49262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49264 "RANLIB=$${RANLIB}" \
bffcbe34 49265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
49266 install-html) \
49267 || exit 1
49268
49269@endif target-libtermcap
49270
8ec98d6c
NN
49271.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
49272maybe-installcheck-target-libtermcap:
a7e609d6
PB
49273@if target-libtermcap
49274maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
8ec98d6c
NN
49275
49276installcheck-target-libtermcap: \
49277 configure-target-libtermcap
15b527ca 49278 @: $(MAKE); $(unstage)
8ec98d6c
NN
49279 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
49280 r=`${PWD_COMMAND}`; export r; \
5230d454 49281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49282 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49283 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
49284 for flag in $(EXTRA_TARGET_FLAGS); do \
49285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49286 done; \
49287 (cd $(TARGET_SUBDIR)/libtermcap && \
49288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49290 "RANLIB=$${RANLIB}" \
bffcbe34 49291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49292 installcheck) \
8ec98d6c 49293 || exit 1
8ecc6504 49294
a7e609d6 49295@endif target-libtermcap
8ecc6504 49296
8ec98d6c
NN
49297.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
49298maybe-mostlyclean-target-libtermcap:
a7e609d6
PB
49299@if target-libtermcap
49300maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
8ec98d6c
NN
49301
49302# libtermcap doesn't support mostlyclean.
49303mostlyclean-target-libtermcap:
49304
a7e609d6 49305@endif target-libtermcap
8ec98d6c
NN
49306
49307.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
49308maybe-clean-target-libtermcap:
a7e609d6
PB
49309@if target-libtermcap
49310maybe-clean-target-libtermcap: clean-target-libtermcap
8ec98d6c
NN
49311
49312# libtermcap doesn't support clean.
49313clean-target-libtermcap:
49314
a7e609d6 49315@endif target-libtermcap
8ec98d6c
NN
49316
49317.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
49318maybe-distclean-target-libtermcap:
a7e609d6
PB
49319@if target-libtermcap
49320maybe-distclean-target-libtermcap: distclean-target-libtermcap
8ec98d6c
NN
49321
49322# libtermcap doesn't support distclean.
49323distclean-target-libtermcap:
49324
a7e609d6 49325@endif target-libtermcap
8ec98d6c
NN
49326
49327.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
49328maybe-maintainer-clean-target-libtermcap:
a7e609d6
PB
49329@if target-libtermcap
49330maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
8ec98d6c
NN
49331
49332# libtermcap doesn't support maintainer-clean.
49333maintainer-clean-target-libtermcap:
49334
a7e609d6 49335@endif target-libtermcap
8ec98d6c
NN
49336
49337
8ec98d6c 49338
8ec98d6c 49339
f0fdfd34
PB
49340
49341.PHONY: configure-target-winsup maybe-configure-target-winsup
49342maybe-configure-target-winsup:
e1e5148c
CD
49343@if gcc-bootstrap
49344configure-target-winsup: stage_current
49345@endif gcc-bootstrap
f0fdfd34
PB
49346@if target-winsup
49347maybe-configure-target-winsup: configure-target-winsup
ec92c4d6 49348configure-target-winsup:
15b527ca
PB
49349 @: $(MAKE); $(unstage)
49350 @r=`${PWD_COMMAND}`; export r; \
49351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49352 echo "Checking multilib configuration for winsup..."; \
49353 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
49354 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
49355 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
49356 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
49357 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
49358 else \
49359 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
49360 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
49361 fi; \
49362 else \
49363 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
ec92c4d6
PB
49364 fi; \
49365 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
8ec98d6c 49366 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
5074489a 49367 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49368 echo Configuring in $(TARGET_SUBDIR)/winsup; \
49369 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
94f860c0 49370 case $(srcdir) in \
7fc2ca22
PB
49371 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49372 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
49373 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 49374 esac; \
7fc2ca22
PB
49375 srcdiroption="--srcdir=$${topdir}/winsup"; \
49376 libsrcdir="$$s/winsup"; \
8ec98d6c
NN
49377 rm -f no-such-file || : ; \
49378 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49379 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49380 --target=${target_alias} $${srcdiroption} \
94f860c0 49381 || exit 1
a7e609d6 49382@endif target-winsup
94f860c0 49383
f0fdfd34
PB
49384
49385
a8a96878
PB
49386
49387
8ec98d6c
NN
49388.PHONY: all-target-winsup maybe-all-target-winsup
49389maybe-all-target-winsup:
e1e5148c
CD
49390@if gcc-bootstrap
49391all-target-winsup: stage_current
49392@endif gcc-bootstrap
a7e609d6 49393@if target-winsup
6a19fd82 49394TARGET-target-winsup=all
a7e609d6 49395maybe-all-target-winsup: all-target-winsup
8ec98d6c 49396all-target-winsup: configure-target-winsup
15b527ca 49397 @: $(MAKE); $(unstage)
5230d454
L
49398 @r=`${PWD_COMMAND}`; export r; \
49399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 49400 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49401 (cd $(TARGET_SUBDIR)/winsup && \
6532abb6
PB
49402 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49403 $(TARGET-target-winsup))
a7e609d6 49404@endif target-winsup
8ecc6504 49405
f0fdfd34
PB
49406
49407
a8a96878
PB
49408
49409
8ec98d6c
NN
49410.PHONY: check-target-winsup maybe-check-target-winsup
49411maybe-check-target-winsup:
a7e609d6
PB
49412@if target-winsup
49413maybe-check-target-winsup: check-target-winsup
8ecc6504 49414
8ec98d6c 49415check-target-winsup:
15b527ca 49416 @: $(MAKE); $(unstage)
8ec98d6c
NN
49417 @r=`${PWD_COMMAND}`; export r; \
49418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49419 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49420 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 49421 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ecc6504 49422
a7e609d6 49423@endif target-winsup
8ecc6504 49424
8ec98d6c
NN
49425.PHONY: install-target-winsup maybe-install-target-winsup
49426maybe-install-target-winsup:
a7e609d6
PB
49427@if target-winsup
49428maybe-install-target-winsup: install-target-winsup
70ffc148 49429
8ec98d6c 49430install-target-winsup: installdirs
15b527ca 49431 @: $(MAKE); $(unstage)
8ec98d6c
NN
49432 @r=`${PWD_COMMAND}`; export r; \
49433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49434 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49435 (cd $(TARGET_SUBDIR)/winsup && \
63673a5b 49436 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ecc6504 49437
a7e609d6 49438@endif target-winsup
8ecc6504 49439
39bbbb69 49440# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
49441
49442.PHONY: maybe-info-target-winsup info-target-winsup
49443maybe-info-target-winsup:
a7e609d6
PB
49444@if target-winsup
49445maybe-info-target-winsup: info-target-winsup
8ec98d6c
NN
49446
49447info-target-winsup: \
49448 configure-target-winsup
15b527ca 49449 @: $(MAKE); $(unstage)
8ec98d6c 49450 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
49451 r=`${PWD_COMMAND}`; export r; \
49452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49453 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49454 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
49455 for flag in $(EXTRA_TARGET_FLAGS); do \
49456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49457 done; \
49458 (cd $(TARGET_SUBDIR)/winsup && \
49459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49461 "RANLIB=$${RANLIB}" \
bffcbe34 49462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49463 info) \
94f860c0
NN
49464 || exit 1
49465
a7e609d6 49466@endif target-winsup
8ecc6504 49467
8ec98d6c
NN
49468.PHONY: maybe-dvi-target-winsup dvi-target-winsup
49469maybe-dvi-target-winsup:
a7e609d6
PB
49470@if target-winsup
49471maybe-dvi-target-winsup: dvi-target-winsup
8ecc6504 49472
8ec98d6c
NN
49473dvi-target-winsup: \
49474 configure-target-winsup
15b527ca 49475 @: $(MAKE); $(unstage)
8ec98d6c
NN
49476 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49477 r=`${PWD_COMMAND}`; export r; \
5230d454 49478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49479 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49480 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
49481 for flag in $(EXTRA_TARGET_FLAGS); do \
49482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49483 done; \
49484 (cd $(TARGET_SUBDIR)/winsup && \
49485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49487 "RANLIB=$${RANLIB}" \
bffcbe34 49488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49489 dvi) \
8ec98d6c 49490 || exit 1
8ecc6504 49491
a7e609d6 49492@endif target-winsup
8ecc6504 49493
39bbbb69
DD
49494.PHONY: maybe-pdf-target-winsup pdf-target-winsup
49495maybe-pdf-target-winsup:
49496@if target-winsup
49497maybe-pdf-target-winsup: pdf-target-winsup
49498
49499pdf-target-winsup: \
49500 configure-target-winsup
49501 @: $(MAKE); $(unstage)
49502 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49503 r=`${PWD_COMMAND}`; export r; \
49504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49505 $(NORMAL_TARGET_EXPORTS) \
49506 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
49507 for flag in $(EXTRA_TARGET_FLAGS); do \
49508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49509 done; \
49510 (cd $(TARGET_SUBDIR)/winsup && \
49511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49513 "RANLIB=$${RANLIB}" \
bffcbe34 49514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
49515 pdf) \
49516 || exit 1
49517
49518@endif target-winsup
49519
b6fb961f
MS
49520.PHONY: maybe-html-target-winsup html-target-winsup
49521maybe-html-target-winsup:
49522@if target-winsup
49523maybe-html-target-winsup: html-target-winsup
49524
49525html-target-winsup: \
49526 configure-target-winsup
15b527ca 49527 @: $(MAKE); $(unstage)
b6fb961f
MS
49528 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49529 r=`${PWD_COMMAND}`; export r; \
49530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
49531 $(NORMAL_TARGET_EXPORTS) \
49532 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
49533 for flag in $(EXTRA_TARGET_FLAGS); do \
49534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49535 done; \
49536 (cd $(TARGET_SUBDIR)/winsup && \
49537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49539 "RANLIB=$${RANLIB}" \
bffcbe34 49540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
49541 html) \
49542 || exit 1
49543
49544@endif target-winsup
49545
8ec98d6c
NN
49546.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
49547maybe-TAGS-target-winsup:
a7e609d6
PB
49548@if target-winsup
49549maybe-TAGS-target-winsup: TAGS-target-winsup
70ffc148 49550
8ec98d6c
NN
49551TAGS-target-winsup: \
49552 configure-target-winsup
15b527ca 49553 @: $(MAKE); $(unstage)
8ec98d6c
NN
49554 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49555 r=`${PWD_COMMAND}`; export r; \
5230d454 49556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49557 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49558 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
49559 for flag in $(EXTRA_TARGET_FLAGS); do \
49560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49561 done; \
49562 (cd $(TARGET_SUBDIR)/winsup && \
49563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49565 "RANLIB=$${RANLIB}" \
bffcbe34 49566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49567 TAGS) \
8ec98d6c 49568 || exit 1
8ecc6504 49569
a7e609d6 49570@endif target-winsup
8ecc6504 49571
8ec98d6c
NN
49572.PHONY: maybe-install-info-target-winsup install-info-target-winsup
49573maybe-install-info-target-winsup:
a7e609d6
PB
49574@if target-winsup
49575maybe-install-info-target-winsup: install-info-target-winsup
8ec98d6c
NN
49576
49577install-info-target-winsup: \
49578 configure-target-winsup \
49579 info-target-winsup
15b527ca 49580 @: $(MAKE); $(unstage)
8ec98d6c 49581 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
49582 r=`${PWD_COMMAND}`; export r; \
49583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49584 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49585 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
49586 for flag in $(EXTRA_TARGET_FLAGS); do \
49587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49588 done; \
49589 (cd $(TARGET_SUBDIR)/winsup && \
49590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49592 "RANLIB=$${RANLIB}" \
bffcbe34 49593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49594 install-info) \
94f860c0
NN
49595 || exit 1
49596
a7e609d6 49597@endif target-winsup
8ec98d6c 49598
d4954b6d
DD
49599.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
49600maybe-install-pdf-target-winsup:
49601@if target-winsup
49602maybe-install-pdf-target-winsup: install-pdf-target-winsup
49603
49604install-pdf-target-winsup: \
49605 configure-target-winsup \
49606 pdf-target-winsup
49607 @: $(MAKE); $(unstage)
49608 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49609 r=`${PWD_COMMAND}`; export r; \
49610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49611 $(NORMAL_TARGET_EXPORTS) \
49612 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
49613 for flag in $(EXTRA_TARGET_FLAGS); do \
49614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49615 done; \
49616 (cd $(TARGET_SUBDIR)/winsup && \
49617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49619 "RANLIB=$${RANLIB}" \
bffcbe34 49620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
49621 install-pdf) \
49622 || exit 1
49623
49624@endif target-winsup
49625
83c9add4
CD
49626.PHONY: maybe-install-html-target-winsup install-html-target-winsup
49627maybe-install-html-target-winsup:
49628@if target-winsup
49629maybe-install-html-target-winsup: install-html-target-winsup
49630
49631install-html-target-winsup: \
49632 configure-target-winsup \
49633 html-target-winsup
49634 @: $(MAKE); $(unstage)
49635 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49636 r=`${PWD_COMMAND}`; export r; \
49637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49638 $(NORMAL_TARGET_EXPORTS) \
49639 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
49640 for flag in $(EXTRA_TARGET_FLAGS); do \
49641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49642 done; \
49643 (cd $(TARGET_SUBDIR)/winsup && \
49644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49646 "RANLIB=$${RANLIB}" \
bffcbe34 49647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
49648 install-html) \
49649 || exit 1
49650
49651@endif target-winsup
49652
8ec98d6c
NN
49653.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
49654maybe-installcheck-target-winsup:
a7e609d6
PB
49655@if target-winsup
49656maybe-installcheck-target-winsup: installcheck-target-winsup
8ec98d6c
NN
49657
49658installcheck-target-winsup: \
49659 configure-target-winsup
15b527ca 49660 @: $(MAKE); $(unstage)
8ec98d6c
NN
49661 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49662 r=`${PWD_COMMAND}`; export r; \
5230d454 49663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49664 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49665 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
49666 for flag in $(EXTRA_TARGET_FLAGS); do \
49667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49668 done; \
49669 (cd $(TARGET_SUBDIR)/winsup && \
49670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49672 "RANLIB=$${RANLIB}" \
bffcbe34 49673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49674 installcheck) \
8ec98d6c 49675 || exit 1
8ecc6504 49676
a7e609d6 49677@endif target-winsup
8ecc6504 49678
8ec98d6c
NN
49679.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
49680maybe-mostlyclean-target-winsup:
a7e609d6
PB
49681@if target-winsup
49682maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
8ec98d6c
NN
49683
49684mostlyclean-target-winsup:
15b527ca 49685 @: $(MAKE); $(unstage)
8ec98d6c
NN
49686 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49687 r=`${PWD_COMMAND}`; export r; \
5230d454 49688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49689 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49690 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
49691 for flag in $(EXTRA_TARGET_FLAGS); do \
49692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49693 done; \
49694 (cd $(TARGET_SUBDIR)/winsup && \
49695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49697 "RANLIB=$${RANLIB}" \
bffcbe34 49698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49699 mostlyclean) \
8ec98d6c 49700 || exit 1
8ecc6504 49701
a7e609d6 49702@endif target-winsup
8ecc6504 49703
8ec98d6c
NN
49704.PHONY: maybe-clean-target-winsup clean-target-winsup
49705maybe-clean-target-winsup:
a7e609d6
PB
49706@if target-winsup
49707maybe-clean-target-winsup: clean-target-winsup
70ffc148 49708
8ec98d6c 49709clean-target-winsup:
15b527ca 49710 @: $(MAKE); $(unstage)
8ec98d6c
NN
49711 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49712 r=`${PWD_COMMAND}`; export r; \
5230d454 49713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49714 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49715 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
49716 for flag in $(EXTRA_TARGET_FLAGS); do \
49717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49718 done; \
49719 (cd $(TARGET_SUBDIR)/winsup && \
49720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49722 "RANLIB=$${RANLIB}" \
bffcbe34 49723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49724 clean) \
8ec98d6c 49725 || exit 1
8ecc6504 49726
a7e609d6 49727@endif target-winsup
8ecc6504 49728
8ec98d6c
NN
49729.PHONY: maybe-distclean-target-winsup distclean-target-winsup
49730maybe-distclean-target-winsup:
a7e609d6
PB
49731@if target-winsup
49732maybe-distclean-target-winsup: distclean-target-winsup
8ec98d6c
NN
49733
49734distclean-target-winsup:
15b527ca 49735 @: $(MAKE); $(unstage)
8ec98d6c 49736 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
5230d454
L
49737 r=`${PWD_COMMAND}`; export r; \
49738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49739 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49740 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
49741 for flag in $(EXTRA_TARGET_FLAGS); do \
49742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49743 done; \
49744 (cd $(TARGET_SUBDIR)/winsup && \
49745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49747 "RANLIB=$${RANLIB}" \
bffcbe34 49748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49749 distclean) \
94f860c0
NN
49750 || exit 1
49751
a7e609d6 49752@endif target-winsup
8ecc6504 49753
8ec98d6c
NN
49754.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
49755maybe-maintainer-clean-target-winsup:
a7e609d6
PB
49756@if target-winsup
49757maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
8ecc6504 49758
8ec98d6c 49759maintainer-clean-target-winsup:
15b527ca 49760 @: $(MAKE); $(unstage)
8ec98d6c
NN
49761 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
49762 r=`${PWD_COMMAND}`; export r; \
5230d454 49763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49764 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49765 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
49766 for flag in $(EXTRA_TARGET_FLAGS); do \
49767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49768 done; \
49769 (cd $(TARGET_SUBDIR)/winsup && \
49770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49772 "RANLIB=$${RANLIB}" \
bffcbe34 49773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49774 maintainer-clean) \
8ec98d6c 49775 || exit 1
8ecc6504 49776
a7e609d6 49777@endif target-winsup
8ecc6504 49778
70ffc148 49779
8ecc6504 49780
f3fd76d4 49781
f0fdfd34
PB
49782
49783.PHONY: configure-target-libgloss maybe-configure-target-libgloss
49784maybe-configure-target-libgloss:
e1e5148c
CD
49785@if gcc-bootstrap
49786configure-target-libgloss: stage_current
49787@endif gcc-bootstrap
f0fdfd34
PB
49788@if target-libgloss
49789maybe-configure-target-libgloss: configure-target-libgloss
ec92c4d6 49790configure-target-libgloss:
15b527ca
PB
49791 @: $(MAKE); $(unstage)
49792 @r=`${PWD_COMMAND}`; export r; \
49793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49794 echo "Checking multilib configuration for libgloss..."; \
49795 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
49796 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
49797 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
49798 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
49799 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
49800 else \
49801 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
49802 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
49803 fi; \
49804 else \
49805 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
ec92c4d6
PB
49806 fi; \
49807 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
8ec98d6c 49808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
5074489a 49809 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49810 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
49811 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
94f860c0 49812 case $(srcdir) in \
7fc2ca22
PB
49813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49814 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
49815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
94f860c0 49816 esac; \
7fc2ca22
PB
49817 srcdiroption="--srcdir=$${topdir}/libgloss"; \
49818 libsrcdir="$$s/libgloss"; \
8ec98d6c
NN
49819 rm -f no-such-file || : ; \
49820 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
49821 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49822 --target=${target_alias} $${srcdiroption} \
94f860c0 49823 || exit 1
a7e609d6 49824@endif target-libgloss
94f860c0 49825
f0fdfd34
PB
49826
49827
a8a96878
PB
49828
49829
8ec98d6c
NN
49830.PHONY: all-target-libgloss maybe-all-target-libgloss
49831maybe-all-target-libgloss:
e1e5148c
CD
49832@if gcc-bootstrap
49833all-target-libgloss: stage_current
49834@endif gcc-bootstrap
a7e609d6 49835@if target-libgloss
6a19fd82 49836TARGET-target-libgloss=all
a7e609d6 49837maybe-all-target-libgloss: all-target-libgloss
8ec98d6c 49838all-target-libgloss: configure-target-libgloss
15b527ca 49839 @: $(MAKE); $(unstage)
5230d454
L
49840 @r=`${PWD_COMMAND}`; export r; \
49841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 49842 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49843 (cd $(TARGET_SUBDIR)/libgloss && \
6532abb6
PB
49844 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49845 $(TARGET-target-libgloss))
a7e609d6 49846@endif target-libgloss
d6ebd419 49847
f0fdfd34
PB
49848
49849
a8a96878
PB
49850
49851
8ec98d6c
NN
49852.PHONY: check-target-libgloss maybe-check-target-libgloss
49853maybe-check-target-libgloss:
a7e609d6
PB
49854@if target-libgloss
49855maybe-check-target-libgloss: check-target-libgloss
d6ebd419 49856
8ec98d6c
NN
49857# Dummy target for uncheckable module.
49858check-target-libgloss:
d6ebd419 49859
a7e609d6 49860@endif target-libgloss
d6ebd419 49861
8ec98d6c
NN
49862.PHONY: install-target-libgloss maybe-install-target-libgloss
49863maybe-install-target-libgloss:
a7e609d6
PB
49864@if target-libgloss
49865maybe-install-target-libgloss: install-target-libgloss
70ffc148 49866
8ec98d6c 49867install-target-libgloss: installdirs
15b527ca 49868 @: $(MAKE); $(unstage)
5230d454
L
49869 @r=`${PWD_COMMAND}`; export r; \
49870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49871 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 49872 (cd $(TARGET_SUBDIR)/libgloss && \
63673a5b 49873 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 49874
a7e609d6 49875@endif target-libgloss
8ecc6504 49876
39bbbb69 49877# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
49878
49879.PHONY: maybe-info-target-libgloss info-target-libgloss
49880maybe-info-target-libgloss:
a7e609d6
PB
49881@if target-libgloss
49882maybe-info-target-libgloss: info-target-libgloss
8ec98d6c
NN
49883
49884info-target-libgloss: \
49885 configure-target-libgloss
15b527ca 49886 @: $(MAKE); $(unstage)
8ec98d6c 49887 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
49888 r=`${PWD_COMMAND}`; export r; \
49889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49890 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49891 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
49892 for flag in $(EXTRA_TARGET_FLAGS); do \
49893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49894 done; \
49895 (cd $(TARGET_SUBDIR)/libgloss && \
49896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49898 "RANLIB=$${RANLIB}" \
bffcbe34 49899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49900 info) \
b93e1111
MC
49901 || exit 1
49902
a7e609d6 49903@endif target-libgloss
b93e1111 49904
8ec98d6c
NN
49905.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
49906maybe-dvi-target-libgloss:
a7e609d6
PB
49907@if target-libgloss
49908maybe-dvi-target-libgloss: dvi-target-libgloss
b93e1111 49909
8ec98d6c
NN
49910dvi-target-libgloss: \
49911 configure-target-libgloss
15b527ca 49912 @: $(MAKE); $(unstage)
8ec98d6c
NN
49913 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
49914 r=`${PWD_COMMAND}`; export r; \
5230d454 49915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49916 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49917 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
49918 for flag in $(EXTRA_TARGET_FLAGS); do \
49919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49920 done; \
49921 (cd $(TARGET_SUBDIR)/libgloss && \
49922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49924 "RANLIB=$${RANLIB}" \
bffcbe34 49925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 49926 dvi) \
8ec98d6c 49927 || exit 1
b93e1111 49928
a7e609d6 49929@endif target-libgloss
b93e1111 49930
39bbbb69
DD
49931.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
49932maybe-pdf-target-libgloss:
49933@if target-libgloss
49934maybe-pdf-target-libgloss: pdf-target-libgloss
49935
49936pdf-target-libgloss: \
49937 configure-target-libgloss
49938 @: $(MAKE); $(unstage)
49939 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
49940 r=`${PWD_COMMAND}`; export r; \
49941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49942 $(NORMAL_TARGET_EXPORTS) \
49943 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
49944 for flag in $(EXTRA_TARGET_FLAGS); do \
49945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49946 done; \
49947 (cd $(TARGET_SUBDIR)/libgloss && \
49948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49950 "RANLIB=$${RANLIB}" \
bffcbe34 49951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
49952 pdf) \
49953 || exit 1
49954
49955@endif target-libgloss
49956
b6fb961f
MS
49957.PHONY: maybe-html-target-libgloss html-target-libgloss
49958maybe-html-target-libgloss:
49959@if target-libgloss
49960maybe-html-target-libgloss: html-target-libgloss
49961
49962html-target-libgloss: \
49963 configure-target-libgloss
15b527ca 49964 @: $(MAKE); $(unstage)
b6fb961f
MS
49965 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
49966 r=`${PWD_COMMAND}`; export r; \
49967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
49968 $(NORMAL_TARGET_EXPORTS) \
49969 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
49970 for flag in $(EXTRA_TARGET_FLAGS); do \
49971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49972 done; \
49973 (cd $(TARGET_SUBDIR)/libgloss && \
49974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49976 "RANLIB=$${RANLIB}" \
bffcbe34 49977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
49978 html) \
49979 || exit 1
49980
49981@endif target-libgloss
49982
8ec98d6c
NN
49983.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
49984maybe-TAGS-target-libgloss:
a7e609d6
PB
49985@if target-libgloss
49986maybe-TAGS-target-libgloss: TAGS-target-libgloss
70ffc148 49987
8ec98d6c
NN
49988TAGS-target-libgloss: \
49989 configure-target-libgloss
15b527ca 49990 @: $(MAKE); $(unstage)
8ec98d6c
NN
49991 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
49992 r=`${PWD_COMMAND}`; export r; \
5230d454 49993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 49994 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
49995 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
49996 for flag in $(EXTRA_TARGET_FLAGS); do \
49997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49998 done; \
49999 (cd $(TARGET_SUBDIR)/libgloss && \
50000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50002 "RANLIB=$${RANLIB}" \
bffcbe34 50003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50004 TAGS) \
8ec98d6c 50005 || exit 1
b93e1111 50006
a7e609d6 50007@endif target-libgloss
b93e1111 50008
8ec98d6c
NN
50009.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
50010maybe-install-info-target-libgloss:
a7e609d6
PB
50011@if target-libgloss
50012maybe-install-info-target-libgloss: install-info-target-libgloss
8ec98d6c
NN
50013
50014install-info-target-libgloss: \
50015 configure-target-libgloss \
50016 info-target-libgloss
15b527ca 50017 @: $(MAKE); $(unstage)
8ec98d6c 50018 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
50019 r=`${PWD_COMMAND}`; export r; \
50020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50021 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50022 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
50023 for flag in $(EXTRA_TARGET_FLAGS); do \
50024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50025 done; \
50026 (cd $(TARGET_SUBDIR)/libgloss && \
50027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50029 "RANLIB=$${RANLIB}" \
bffcbe34 50030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50031 install-info) \
94f860c0
NN
50032 || exit 1
50033
a7e609d6 50034@endif target-libgloss
d6ebd419 50035
d4954b6d
DD
50036.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
50037maybe-install-pdf-target-libgloss:
50038@if target-libgloss
50039maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
50040
50041install-pdf-target-libgloss: \
50042 configure-target-libgloss \
50043 pdf-target-libgloss
50044 @: $(MAKE); $(unstage)
50045 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50046 r=`${PWD_COMMAND}`; export r; \
50047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50048 $(NORMAL_TARGET_EXPORTS) \
50049 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
50050 for flag in $(EXTRA_TARGET_FLAGS); do \
50051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50052 done; \
50053 (cd $(TARGET_SUBDIR)/libgloss && \
50054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50056 "RANLIB=$${RANLIB}" \
bffcbe34 50057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
50058 install-pdf) \
50059 || exit 1
50060
50061@endif target-libgloss
50062
83c9add4
CD
50063.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
50064maybe-install-html-target-libgloss:
50065@if target-libgloss
50066maybe-install-html-target-libgloss: install-html-target-libgloss
50067
50068install-html-target-libgloss: \
50069 configure-target-libgloss \
50070 html-target-libgloss
50071 @: $(MAKE); $(unstage)
50072 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50073 r=`${PWD_COMMAND}`; export r; \
50074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50075 $(NORMAL_TARGET_EXPORTS) \
50076 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
50077 for flag in $(EXTRA_TARGET_FLAGS); do \
50078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50079 done; \
50080 (cd $(TARGET_SUBDIR)/libgloss && \
50081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50083 "RANLIB=$${RANLIB}" \
bffcbe34 50084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
50085 install-html) \
50086 || exit 1
50087
50088@endif target-libgloss
50089
8ec98d6c
NN
50090.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
50091maybe-installcheck-target-libgloss:
a7e609d6
PB
50092@if target-libgloss
50093maybe-installcheck-target-libgloss: installcheck-target-libgloss
d6ebd419 50094
8ec98d6c
NN
50095installcheck-target-libgloss: \
50096 configure-target-libgloss
15b527ca 50097 @: $(MAKE); $(unstage)
8ec98d6c
NN
50098 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50099 r=`${PWD_COMMAND}`; export r; \
50100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50101 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50102 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
50103 for flag in $(EXTRA_TARGET_FLAGS); do \
50104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50105 done; \
50106 (cd $(TARGET_SUBDIR)/libgloss && \
50107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50109 "RANLIB=$${RANLIB}" \
bffcbe34 50110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50111 installcheck) \
8ec98d6c 50112 || exit 1
8ecc6504 50113
a7e609d6 50114@endif target-libgloss
8ecc6504 50115
8ec98d6c
NN
50116.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
50117maybe-mostlyclean-target-libgloss:
a7e609d6
PB
50118@if target-libgloss
50119maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
70ffc148 50120
8ec98d6c 50121mostlyclean-target-libgloss:
15b527ca 50122 @: $(MAKE); $(unstage)
8ec98d6c
NN
50123 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50124 r=`${PWD_COMMAND}`; export r; \
5230d454 50125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50126 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50127 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
50128 for flag in $(EXTRA_TARGET_FLAGS); do \
50129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50130 done; \
50131 (cd $(TARGET_SUBDIR)/libgloss && \
50132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50134 "RANLIB=$${RANLIB}" \
bffcbe34 50135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50136 mostlyclean) \
8ec98d6c 50137 || exit 1
d6ebd419 50138
a7e609d6 50139@endif target-libgloss
8ecc6504 50140
8ec98d6c
NN
50141.PHONY: maybe-clean-target-libgloss clean-target-libgloss
50142maybe-clean-target-libgloss:
a7e609d6
PB
50143@if target-libgloss
50144maybe-clean-target-libgloss: clean-target-libgloss
8ec98d6c
NN
50145
50146clean-target-libgloss:
15b527ca 50147 @: $(MAKE); $(unstage)
8ec98d6c 50148 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
5230d454
L
50149 r=`${PWD_COMMAND}`; export r; \
50150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50151 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50152 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
50153 for flag in $(EXTRA_TARGET_FLAGS); do \
50154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50155 done; \
50156 (cd $(TARGET_SUBDIR)/libgloss && \
50157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50159 "RANLIB=$${RANLIB}" \
bffcbe34 50160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50161 clean) \
94f860c0
NN
50162 || exit 1
50163
a7e609d6 50164@endif target-libgloss
d6ebd419 50165
8ec98d6c
NN
50166.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
50167maybe-distclean-target-libgloss:
a7e609d6
PB
50168@if target-libgloss
50169maybe-distclean-target-libgloss: distclean-target-libgloss
8ecc6504 50170
8ec98d6c 50171distclean-target-libgloss:
15b527ca 50172 @: $(MAKE); $(unstage)
8ec98d6c
NN
50173 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50174 r=`${PWD_COMMAND}`; export r; \
50175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50176 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50177 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
50178 for flag in $(EXTRA_TARGET_FLAGS); do \
50179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50180 done; \
50181 (cd $(TARGET_SUBDIR)/libgloss && \
50182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50184 "RANLIB=$${RANLIB}" \
bffcbe34 50185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50186 distclean) \
8ec98d6c 50187 || exit 1
8ecc6504 50188
a7e609d6 50189@endif target-libgloss
8ecc6504 50190
8ec98d6c
NN
50191.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
50192maybe-maintainer-clean-target-libgloss:
a7e609d6
PB
50193@if target-libgloss
50194maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
70ffc148 50195
8ec98d6c 50196maintainer-clean-target-libgloss:
15b527ca 50197 @: $(MAKE); $(unstage)
8ec98d6c
NN
50198 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
50199 r=`${PWD_COMMAND}`; export r; \
5230d454 50200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50201 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50202 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
50203 for flag in $(EXTRA_TARGET_FLAGS); do \
50204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50205 done; \
50206 (cd $(TARGET_SUBDIR)/libgloss && \
50207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50209 "RANLIB=$${RANLIB}" \
bffcbe34 50210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50211 maintainer-clean) \
8ec98d6c 50212 || exit 1
8ecc6504 50213
a7e609d6 50214@endif target-libgloss
8ecc6504 50215
d6ebd419 50216
43bdb69a 50217
f3fd76d4 50218
f0fdfd34
PB
50219
50220.PHONY: configure-target-libiberty maybe-configure-target-libiberty
50221maybe-configure-target-libiberty:
e1e5148c
CD
50222@if gcc-bootstrap
50223configure-target-libiberty: stage_current
50224@endif gcc-bootstrap
f0fdfd34
PB
50225@if target-libiberty
50226maybe-configure-target-libiberty: configure-target-libiberty
ec92c4d6 50227configure-target-libiberty:
15b527ca
PB
50228 @: $(MAKE); $(unstage)
50229 @r=`${PWD_COMMAND}`; export r; \
50230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50231 echo "Checking multilib configuration for libiberty..."; \
50232 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
50233 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \
50234 if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \
50235 if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \
50236 rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \
50237 else \
50238 rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \
50239 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
50240 fi; \
50241 else \
50242 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
ec92c4d6
PB
50243 fi; \
50244 test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
8ec98d6c 50245 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
5074489a 50246 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50247 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
50248 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
2245eb63 50249 case $(srcdir) in \
7fc2ca22
PB
50250 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
50251 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
50252 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 50253 esac; \
7fc2ca22
PB
50254 srcdiroption="--srcdir=$${topdir}/libiberty"; \
50255 libsrcdir="$$s/libiberty"; \
2245eb63
NN
50256 rm -f no-such-file || : ; \
50257 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
50258 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
50259 --target=${target_alias} $${srcdiroption} \
2245eb63 50260 || exit 1
a7e609d6 50261@endif target-libiberty
d6ebd419 50262
f0fdfd34
PB
50263
50264
a8a96878
PB
50265
50266
8ec98d6c
NN
50267.PHONY: all-target-libiberty maybe-all-target-libiberty
50268maybe-all-target-libiberty:
e1e5148c
CD
50269@if gcc-bootstrap
50270all-target-libiberty: stage_current
50271@endif gcc-bootstrap
a7e609d6 50272@if target-libiberty
6a19fd82 50273TARGET-target-libiberty=all
a7e609d6 50274maybe-all-target-libiberty: all-target-libiberty
8ec98d6c 50275all-target-libiberty: configure-target-libiberty
15b527ca 50276 @: $(MAKE); $(unstage)
5230d454
L
50277 @r=`${PWD_COMMAND}`; export r; \
50278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 50279 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50280 (cd $(TARGET_SUBDIR)/libiberty && \
6532abb6
PB
50281 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
50282 $(TARGET-target-libiberty))
a7e609d6 50283@endif target-libiberty
d6ebd419 50284
f0fdfd34
PB
50285
50286
a8a96878
PB
50287
50288
8ec98d6c
NN
50289.PHONY: check-target-libiberty maybe-check-target-libiberty
50290maybe-check-target-libiberty:
a7e609d6
PB
50291@if target-libiberty
50292maybe-check-target-libiberty: check-target-libiberty
70ffc148 50293
8ec98d6c 50294check-target-libiberty:
15b527ca 50295 @: $(MAKE); $(unstage)
5230d454
L
50296 @r=`${PWD_COMMAND}`; export r; \
50297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50298 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50299 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 50300 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 50301
a7e609d6 50302@endif target-libiberty
d6ebd419 50303
8ec98d6c
NN
50304.PHONY: install-target-libiberty maybe-install-target-libiberty
50305maybe-install-target-libiberty:
a7e609d6
PB
50306@if target-libiberty
50307maybe-install-target-libiberty: install-target-libiberty
8ec98d6c
NN
50308
50309install-target-libiberty: installdirs
15b527ca 50310 @: $(MAKE); $(unstage)
8ec98d6c
NN
50311 @r=`${PWD_COMMAND}`; export r; \
50312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50313 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50314 (cd $(TARGET_SUBDIR)/libiberty && \
63673a5b 50315 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 50316
a7e609d6 50317@endif target-libiberty
8ec98d6c 50318
39bbbb69 50319# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
50320
50321.PHONY: maybe-info-target-libiberty info-target-libiberty
50322maybe-info-target-libiberty:
a7e609d6
PB
50323@if target-libiberty
50324maybe-info-target-libiberty: info-target-libiberty
8ec98d6c
NN
50325
50326info-target-libiberty: \
50327 configure-target-libiberty
15b527ca 50328 @: $(MAKE); $(unstage)
8ec98d6c
NN
50329 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50330 r=`${PWD_COMMAND}`; export r; \
50331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50332 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50333 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
50334 for flag in $(EXTRA_TARGET_FLAGS); do \
50335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50336 done; \
50337 (cd $(TARGET_SUBDIR)/libiberty && \
50338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50340 "RANLIB=$${RANLIB}" \
bffcbe34 50341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50342 info) \
8ec98d6c
NN
50343 || exit 1
50344
a7e609d6 50345@endif target-libiberty
8ec98d6c
NN
50346
50347.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
50348maybe-dvi-target-libiberty:
a7e609d6
PB
50349@if target-libiberty
50350maybe-dvi-target-libiberty: dvi-target-libiberty
8ec98d6c
NN
50351
50352dvi-target-libiberty: \
50353 configure-target-libiberty
15b527ca 50354 @: $(MAKE); $(unstage)
8ec98d6c
NN
50355 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50356 r=`${PWD_COMMAND}`; export r; \
50357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50358 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50359 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
50360 for flag in $(EXTRA_TARGET_FLAGS); do \
50361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50362 done; \
50363 (cd $(TARGET_SUBDIR)/libiberty && \
50364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50366 "RANLIB=$${RANLIB}" \
bffcbe34 50367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50368 dvi) \
8ec98d6c
NN
50369 || exit 1
50370
a7e609d6 50371@endif target-libiberty
8ec98d6c 50372
39bbbb69
DD
50373.PHONY: maybe-pdf-target-libiberty pdf-target-libiberty
50374maybe-pdf-target-libiberty:
50375@if target-libiberty
50376maybe-pdf-target-libiberty: pdf-target-libiberty
50377
50378pdf-target-libiberty: \
50379 configure-target-libiberty
50380 @: $(MAKE); $(unstage)
50381 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50382 r=`${PWD_COMMAND}`; export r; \
50383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50384 $(NORMAL_TARGET_EXPORTS) \
50385 echo "Doing pdf in $(TARGET_SUBDIR)/libiberty" ; \
50386 for flag in $(EXTRA_TARGET_FLAGS); do \
50387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50388 done; \
50389 (cd $(TARGET_SUBDIR)/libiberty && \
50390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50392 "RANLIB=$${RANLIB}" \
bffcbe34 50393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
50394 pdf) \
50395 || exit 1
50396
50397@endif target-libiberty
50398
b6fb961f
MS
50399.PHONY: maybe-html-target-libiberty html-target-libiberty
50400maybe-html-target-libiberty:
50401@if target-libiberty
50402maybe-html-target-libiberty: html-target-libiberty
50403
50404html-target-libiberty: \
50405 configure-target-libiberty
15b527ca 50406 @: $(MAKE); $(unstage)
b6fb961f
MS
50407 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50408 r=`${PWD_COMMAND}`; export r; \
50409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
50410 $(NORMAL_TARGET_EXPORTS) \
50411 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
50412 for flag in $(EXTRA_TARGET_FLAGS); do \
50413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50414 done; \
50415 (cd $(TARGET_SUBDIR)/libiberty && \
50416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50418 "RANLIB=$${RANLIB}" \
bffcbe34 50419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
50420 html) \
50421 || exit 1
50422
50423@endif target-libiberty
50424
8ec98d6c
NN
50425.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
50426maybe-TAGS-target-libiberty:
a7e609d6
PB
50427@if target-libiberty
50428maybe-TAGS-target-libiberty: TAGS-target-libiberty
8ec98d6c
NN
50429
50430TAGS-target-libiberty: \
50431 configure-target-libiberty
15b527ca 50432 @: $(MAKE); $(unstage)
8ec98d6c
NN
50433 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50434 r=`${PWD_COMMAND}`; export r; \
50435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50436 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50437 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
50438 for flag in $(EXTRA_TARGET_FLAGS); do \
50439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50440 done; \
50441 (cd $(TARGET_SUBDIR)/libiberty && \
50442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50444 "RANLIB=$${RANLIB}" \
bffcbe34 50445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50446 TAGS) \
8ec98d6c
NN
50447 || exit 1
50448
a7e609d6 50449@endif target-libiberty
8ec98d6c
NN
50450
50451.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
50452maybe-install-info-target-libiberty:
a7e609d6
PB
50453@if target-libiberty
50454maybe-install-info-target-libiberty: install-info-target-libiberty
8ec98d6c
NN
50455
50456install-info-target-libiberty: \
50457 configure-target-libiberty \
50458 info-target-libiberty
15b527ca 50459 @: $(MAKE); $(unstage)
8ec98d6c
NN
50460 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50461 r=`${PWD_COMMAND}`; export r; \
50462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50463 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50464 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
50465 for flag in $(EXTRA_TARGET_FLAGS); do \
50466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50467 done; \
50468 (cd $(TARGET_SUBDIR)/libiberty && \
50469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50471 "RANLIB=$${RANLIB}" \
bffcbe34 50472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50473 install-info) \
8ec98d6c
NN
50474 || exit 1
50475
a7e609d6 50476@endif target-libiberty
8ec98d6c 50477
d4954b6d
DD
50478.PHONY: maybe-install-pdf-target-libiberty install-pdf-target-libiberty
50479maybe-install-pdf-target-libiberty:
50480@if target-libiberty
50481maybe-install-pdf-target-libiberty: install-pdf-target-libiberty
50482
50483install-pdf-target-libiberty: \
50484 configure-target-libiberty \
50485 pdf-target-libiberty
50486 @: $(MAKE); $(unstage)
50487 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50488 r=`${PWD_COMMAND}`; export r; \
50489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50490 $(NORMAL_TARGET_EXPORTS) \
50491 echo "Doing install-pdf in $(TARGET_SUBDIR)/libiberty" ; \
50492 for flag in $(EXTRA_TARGET_FLAGS); do \
50493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50494 done; \
50495 (cd $(TARGET_SUBDIR)/libiberty && \
50496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50498 "RANLIB=$${RANLIB}" \
bffcbe34 50499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
50500 install-pdf) \
50501 || exit 1
50502
50503@endif target-libiberty
50504
83c9add4
CD
50505.PHONY: maybe-install-html-target-libiberty install-html-target-libiberty
50506maybe-install-html-target-libiberty:
50507@if target-libiberty
50508maybe-install-html-target-libiberty: install-html-target-libiberty
50509
50510install-html-target-libiberty: \
50511 configure-target-libiberty \
50512 html-target-libiberty
50513 @: $(MAKE); $(unstage)
50514 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50515 r=`${PWD_COMMAND}`; export r; \
50516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50517 $(NORMAL_TARGET_EXPORTS) \
50518 echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \
50519 for flag in $(EXTRA_TARGET_FLAGS); do \
50520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50521 done; \
50522 (cd $(TARGET_SUBDIR)/libiberty && \
50523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50525 "RANLIB=$${RANLIB}" \
bffcbe34 50526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
50527 install-html) \
50528 || exit 1
50529
50530@endif target-libiberty
50531
8ec98d6c
NN
50532.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
50533maybe-installcheck-target-libiberty:
a7e609d6
PB
50534@if target-libiberty
50535maybe-installcheck-target-libiberty: installcheck-target-libiberty
8ec98d6c
NN
50536
50537installcheck-target-libiberty: \
50538 configure-target-libiberty
15b527ca 50539 @: $(MAKE); $(unstage)
8ec98d6c
NN
50540 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50541 r=`${PWD_COMMAND}`; export r; \
50542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50543 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50544 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
50545 for flag in $(EXTRA_TARGET_FLAGS); do \
50546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50547 done; \
50548 (cd $(TARGET_SUBDIR)/libiberty && \
50549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50551 "RANLIB=$${RANLIB}" \
bffcbe34 50552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50553 installcheck) \
8ec98d6c
NN
50554 || exit 1
50555
a7e609d6 50556@endif target-libiberty
8ec98d6c
NN
50557
50558.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
50559maybe-mostlyclean-target-libiberty:
a7e609d6
PB
50560@if target-libiberty
50561maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
8ec98d6c
NN
50562
50563mostlyclean-target-libiberty:
15b527ca 50564 @: $(MAKE); $(unstage)
8ec98d6c
NN
50565 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50566 r=`${PWD_COMMAND}`; export r; \
50567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50568 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50569 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
50570 for flag in $(EXTRA_TARGET_FLAGS); do \
50571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50572 done; \
50573 (cd $(TARGET_SUBDIR)/libiberty && \
50574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50576 "RANLIB=$${RANLIB}" \
bffcbe34 50577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50578 mostlyclean) \
8ec98d6c
NN
50579 || exit 1
50580
a7e609d6 50581@endif target-libiberty
8ec98d6c
NN
50582
50583.PHONY: maybe-clean-target-libiberty clean-target-libiberty
50584maybe-clean-target-libiberty:
a7e609d6
PB
50585@if target-libiberty
50586maybe-clean-target-libiberty: clean-target-libiberty
8ec98d6c
NN
50587
50588clean-target-libiberty:
15b527ca 50589 @: $(MAKE); $(unstage)
8ec98d6c
NN
50590 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50591 r=`${PWD_COMMAND}`; export r; \
50592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50593 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50594 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
50595 for flag in $(EXTRA_TARGET_FLAGS); do \
50596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50597 done; \
50598 (cd $(TARGET_SUBDIR)/libiberty && \
50599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50601 "RANLIB=$${RANLIB}" \
bffcbe34 50602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50603 clean) \
8ec98d6c
NN
50604 || exit 1
50605
a7e609d6 50606@endif target-libiberty
8ec98d6c
NN
50607
50608.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
50609maybe-distclean-target-libiberty:
a7e609d6
PB
50610@if target-libiberty
50611maybe-distclean-target-libiberty: distclean-target-libiberty
8ec98d6c
NN
50612
50613distclean-target-libiberty:
15b527ca 50614 @: $(MAKE); $(unstage)
8ec98d6c
NN
50615 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50616 r=`${PWD_COMMAND}`; export r; \
50617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50618 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50619 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
50620 for flag in $(EXTRA_TARGET_FLAGS); do \
50621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50622 done; \
50623 (cd $(TARGET_SUBDIR)/libiberty && \
50624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50626 "RANLIB=$${RANLIB}" \
bffcbe34 50627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50628 distclean) \
8ec98d6c
NN
50629 || exit 1
50630
a7e609d6 50631@endif target-libiberty
8ec98d6c
NN
50632
50633.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
50634maybe-maintainer-clean-target-libiberty:
a7e609d6
PB
50635@if target-libiberty
50636maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
8ec98d6c
NN
50637
50638maintainer-clean-target-libiberty:
15b527ca 50639 @: $(MAKE); $(unstage)
8ec98d6c
NN
50640 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
50641 r=`${PWD_COMMAND}`; export r; \
50642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50643 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50644 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
50645 for flag in $(EXTRA_TARGET_FLAGS); do \
50646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50647 done; \
50648 (cd $(TARGET_SUBDIR)/libiberty && \
50649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50651 "RANLIB=$${RANLIB}" \
bffcbe34 50652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50653 maintainer-clean) \
8ec98d6c 50654 || exit 1
70ffc148 50655
a7e609d6 50656@endif target-libiberty
d6ebd419
NN
50657
50658
43bdb69a 50659
f3fd76d4 50660
f0fdfd34
PB
50661
50662.PHONY: configure-target-gperf maybe-configure-target-gperf
50663maybe-configure-target-gperf:
e1e5148c
CD
50664@if gcc-bootstrap
50665configure-target-gperf: stage_current
50666@endif gcc-bootstrap
f0fdfd34
PB
50667@if target-gperf
50668maybe-configure-target-gperf: configure-target-gperf
ec92c4d6 50669configure-target-gperf:
15b527ca
PB
50670 @: $(MAKE); $(unstage)
50671 @r=`${PWD_COMMAND}`; export r; \
50672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50673 echo "Checking multilib configuration for gperf..."; \
50674 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
50675 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \
50676 if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \
50677 if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \
50678 rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \
50679 else \
50680 rm -f $(TARGET_SUBDIR)/gperf/Makefile; \
50681 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
50682 fi; \
50683 else \
50684 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
ec92c4d6
PB
50685 fi; \
50686 test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
8ec98d6c 50687 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
5074489a 50688 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50689 echo Configuring in $(TARGET_SUBDIR)/gperf; \
50690 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
2245eb63 50691 case $(srcdir) in \
7fc2ca22
PB
50692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
50693 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
50694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 50695 esac; \
7fc2ca22
PB
50696 srcdiroption="--srcdir=$${topdir}/gperf"; \
50697 libsrcdir="$$s/gperf"; \
2245eb63
NN
50698 rm -f no-such-file || : ; \
50699 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
50700 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
50701 --target=${target_alias} $${srcdiroption} \
2245eb63 50702 || exit 1
a7e609d6 50703@endif target-gperf
d6ebd419 50704
f0fdfd34
PB
50705
50706
a8a96878
PB
50707
50708
8ec98d6c
NN
50709.PHONY: all-target-gperf maybe-all-target-gperf
50710maybe-all-target-gperf:
e1e5148c
CD
50711@if gcc-bootstrap
50712all-target-gperf: stage_current
50713@endif gcc-bootstrap
a7e609d6 50714@if target-gperf
6a19fd82 50715TARGET-target-gperf=all
a7e609d6 50716maybe-all-target-gperf: all-target-gperf
8ec98d6c 50717all-target-gperf: configure-target-gperf
15b527ca 50718 @: $(MAKE); $(unstage)
5230d454
L
50719 @r=`${PWD_COMMAND}`; export r; \
50720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 50721 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50722 (cd $(TARGET_SUBDIR)/gperf && \
6532abb6
PB
50723 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
50724 $(TARGET-target-gperf))
a7e609d6 50725@endif target-gperf
d6ebd419 50726
f0fdfd34
PB
50727
50728
a8a96878
PB
50729
50730
8ec98d6c
NN
50731.PHONY: check-target-gperf maybe-check-target-gperf
50732maybe-check-target-gperf:
a7e609d6
PB
50733@if target-gperf
50734maybe-check-target-gperf: check-target-gperf
70ffc148 50735
8ec98d6c 50736check-target-gperf:
15b527ca 50737 @: $(MAKE); $(unstage)
5230d454
L
50738 @r=`${PWD_COMMAND}`; export r; \
50739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50740 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50741 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 50742 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 50743
a7e609d6 50744@endif target-gperf
d6ebd419 50745
8ec98d6c
NN
50746.PHONY: install-target-gperf maybe-install-target-gperf
50747maybe-install-target-gperf:
a7e609d6
PB
50748@if target-gperf
50749maybe-install-target-gperf: install-target-gperf
8ec98d6c
NN
50750
50751install-target-gperf: installdirs
15b527ca 50752 @: $(MAKE); $(unstage)
8ec98d6c
NN
50753 @r=`${PWD_COMMAND}`; export r; \
50754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50755 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 50756 (cd $(TARGET_SUBDIR)/gperf && \
63673a5b 50757 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 50758
a7e609d6 50759@endif target-gperf
8ec98d6c 50760
39bbbb69 50761# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
50762
50763.PHONY: maybe-info-target-gperf info-target-gperf
50764maybe-info-target-gperf:
a7e609d6
PB
50765@if target-gperf
50766maybe-info-target-gperf: info-target-gperf
8ec98d6c
NN
50767
50768info-target-gperf: \
50769 configure-target-gperf
15b527ca 50770 @: $(MAKE); $(unstage)
8ec98d6c
NN
50771 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50772 r=`${PWD_COMMAND}`; export r; \
50773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50774 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50775 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
50776 for flag in $(EXTRA_TARGET_FLAGS); do \
50777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50778 done; \
50779 (cd $(TARGET_SUBDIR)/gperf && \
50780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50782 "RANLIB=$${RANLIB}" \
bffcbe34 50783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50784 info) \
8ec98d6c
NN
50785 || exit 1
50786
a7e609d6 50787@endif target-gperf
8ec98d6c
NN
50788
50789.PHONY: maybe-dvi-target-gperf dvi-target-gperf
50790maybe-dvi-target-gperf:
a7e609d6
PB
50791@if target-gperf
50792maybe-dvi-target-gperf: dvi-target-gperf
8ec98d6c
NN
50793
50794dvi-target-gperf: \
50795 configure-target-gperf
15b527ca 50796 @: $(MAKE); $(unstage)
8ec98d6c
NN
50797 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50798 r=`${PWD_COMMAND}`; export r; \
50799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50800 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50801 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
50802 for flag in $(EXTRA_TARGET_FLAGS); do \
50803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50804 done; \
50805 (cd $(TARGET_SUBDIR)/gperf && \
50806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50808 "RANLIB=$${RANLIB}" \
bffcbe34 50809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50810 dvi) \
8ec98d6c
NN
50811 || exit 1
50812
a7e609d6 50813@endif target-gperf
8ec98d6c 50814
39bbbb69
DD
50815.PHONY: maybe-pdf-target-gperf pdf-target-gperf
50816maybe-pdf-target-gperf:
50817@if target-gperf
50818maybe-pdf-target-gperf: pdf-target-gperf
50819
50820pdf-target-gperf: \
50821 configure-target-gperf
50822 @: $(MAKE); $(unstage)
50823 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50824 r=`${PWD_COMMAND}`; export r; \
50825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50826 $(NORMAL_TARGET_EXPORTS) \
50827 echo "Doing pdf in $(TARGET_SUBDIR)/gperf" ; \
50828 for flag in $(EXTRA_TARGET_FLAGS); do \
50829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50830 done; \
50831 (cd $(TARGET_SUBDIR)/gperf && \
50832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50834 "RANLIB=$${RANLIB}" \
bffcbe34 50835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
50836 pdf) \
50837 || exit 1
50838
50839@endif target-gperf
50840
b6fb961f
MS
50841.PHONY: maybe-html-target-gperf html-target-gperf
50842maybe-html-target-gperf:
50843@if target-gperf
50844maybe-html-target-gperf: html-target-gperf
50845
50846html-target-gperf: \
50847 configure-target-gperf
15b527ca 50848 @: $(MAKE); $(unstage)
b6fb961f
MS
50849 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50850 r=`${PWD_COMMAND}`; export r; \
50851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
50852 $(NORMAL_TARGET_EXPORTS) \
50853 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
50854 for flag in $(EXTRA_TARGET_FLAGS); do \
50855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50856 done; \
50857 (cd $(TARGET_SUBDIR)/gperf && \
50858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50860 "RANLIB=$${RANLIB}" \
bffcbe34 50861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
50862 html) \
50863 || exit 1
50864
50865@endif target-gperf
50866
8ec98d6c
NN
50867.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
50868maybe-TAGS-target-gperf:
a7e609d6
PB
50869@if target-gperf
50870maybe-TAGS-target-gperf: TAGS-target-gperf
8ec98d6c
NN
50871
50872TAGS-target-gperf: \
50873 configure-target-gperf
15b527ca 50874 @: $(MAKE); $(unstage)
8ec98d6c
NN
50875 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50876 r=`${PWD_COMMAND}`; export r; \
50877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50878 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50879 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
50880 for flag in $(EXTRA_TARGET_FLAGS); do \
50881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50882 done; \
50883 (cd $(TARGET_SUBDIR)/gperf && \
50884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50886 "RANLIB=$${RANLIB}" \
bffcbe34 50887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50888 TAGS) \
8ec98d6c
NN
50889 || exit 1
50890
a7e609d6 50891@endif target-gperf
8ec98d6c
NN
50892
50893.PHONY: maybe-install-info-target-gperf install-info-target-gperf
50894maybe-install-info-target-gperf:
a7e609d6
PB
50895@if target-gperf
50896maybe-install-info-target-gperf: install-info-target-gperf
8ec98d6c
NN
50897
50898install-info-target-gperf: \
50899 configure-target-gperf \
50900 info-target-gperf
15b527ca 50901 @: $(MAKE); $(unstage)
8ec98d6c
NN
50902 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50903 r=`${PWD_COMMAND}`; export r; \
50904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50905 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50906 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
50907 for flag in $(EXTRA_TARGET_FLAGS); do \
50908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50909 done; \
50910 (cd $(TARGET_SUBDIR)/gperf && \
50911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50913 "RANLIB=$${RANLIB}" \
bffcbe34 50914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50915 install-info) \
8ec98d6c
NN
50916 || exit 1
50917
a7e609d6 50918@endif target-gperf
8ec98d6c 50919
d4954b6d
DD
50920.PHONY: maybe-install-pdf-target-gperf install-pdf-target-gperf
50921maybe-install-pdf-target-gperf:
50922@if target-gperf
50923maybe-install-pdf-target-gperf: install-pdf-target-gperf
50924
50925install-pdf-target-gperf: \
50926 configure-target-gperf \
50927 pdf-target-gperf
50928 @: $(MAKE); $(unstage)
50929 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50930 r=`${PWD_COMMAND}`; export r; \
50931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50932 $(NORMAL_TARGET_EXPORTS) \
50933 echo "Doing install-pdf in $(TARGET_SUBDIR)/gperf" ; \
50934 for flag in $(EXTRA_TARGET_FLAGS); do \
50935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50936 done; \
50937 (cd $(TARGET_SUBDIR)/gperf && \
50938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50940 "RANLIB=$${RANLIB}" \
bffcbe34 50941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
50942 install-pdf) \
50943 || exit 1
50944
50945@endif target-gperf
50946
83c9add4
CD
50947.PHONY: maybe-install-html-target-gperf install-html-target-gperf
50948maybe-install-html-target-gperf:
50949@if target-gperf
50950maybe-install-html-target-gperf: install-html-target-gperf
50951
50952install-html-target-gperf: \
50953 configure-target-gperf \
50954 html-target-gperf
50955 @: $(MAKE); $(unstage)
50956 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50957 r=`${PWD_COMMAND}`; export r; \
50958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50959 $(NORMAL_TARGET_EXPORTS) \
50960 echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \
50961 for flag in $(EXTRA_TARGET_FLAGS); do \
50962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50963 done; \
50964 (cd $(TARGET_SUBDIR)/gperf && \
50965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50967 "RANLIB=$${RANLIB}" \
bffcbe34 50968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
50969 install-html) \
50970 || exit 1
50971
50972@endif target-gperf
50973
8ec98d6c
NN
50974.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
50975maybe-installcheck-target-gperf:
a7e609d6
PB
50976@if target-gperf
50977maybe-installcheck-target-gperf: installcheck-target-gperf
8ec98d6c
NN
50978
50979installcheck-target-gperf: \
50980 configure-target-gperf
15b527ca 50981 @: $(MAKE); $(unstage)
8ec98d6c
NN
50982 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
50983 r=`${PWD_COMMAND}`; export r; \
50984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 50985 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
50986 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
50987 for flag in $(EXTRA_TARGET_FLAGS); do \
50988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50989 done; \
50990 (cd $(TARGET_SUBDIR)/gperf && \
50991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50993 "RANLIB=$${RANLIB}" \
bffcbe34 50994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 50995 installcheck) \
8ec98d6c
NN
50996 || exit 1
50997
a7e609d6 50998@endif target-gperf
8ec98d6c
NN
50999
51000.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
51001maybe-mostlyclean-target-gperf:
a7e609d6
PB
51002@if target-gperf
51003maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
8ec98d6c
NN
51004
51005mostlyclean-target-gperf:
15b527ca 51006 @: $(MAKE); $(unstage)
8ec98d6c
NN
51007 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
51008 r=`${PWD_COMMAND}`; export r; \
51009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51010 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51011 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
51012 for flag in $(EXTRA_TARGET_FLAGS); do \
51013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51014 done; \
51015 (cd $(TARGET_SUBDIR)/gperf && \
51016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51018 "RANLIB=$${RANLIB}" \
bffcbe34 51019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51020 mostlyclean) \
8ec98d6c
NN
51021 || exit 1
51022
a7e609d6 51023@endif target-gperf
8ec98d6c
NN
51024
51025.PHONY: maybe-clean-target-gperf clean-target-gperf
51026maybe-clean-target-gperf:
a7e609d6
PB
51027@if target-gperf
51028maybe-clean-target-gperf: clean-target-gperf
8ec98d6c
NN
51029
51030clean-target-gperf:
15b527ca 51031 @: $(MAKE); $(unstage)
8ec98d6c
NN
51032 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
51033 r=`${PWD_COMMAND}`; export r; \
51034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51035 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51036 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
51037 for flag in $(EXTRA_TARGET_FLAGS); do \
51038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51039 done; \
51040 (cd $(TARGET_SUBDIR)/gperf && \
51041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51043 "RANLIB=$${RANLIB}" \
bffcbe34 51044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51045 clean) \
8ec98d6c
NN
51046 || exit 1
51047
a7e609d6 51048@endif target-gperf
8ec98d6c
NN
51049
51050.PHONY: maybe-distclean-target-gperf distclean-target-gperf
51051maybe-distclean-target-gperf:
a7e609d6
PB
51052@if target-gperf
51053maybe-distclean-target-gperf: distclean-target-gperf
8ec98d6c
NN
51054
51055distclean-target-gperf:
15b527ca 51056 @: $(MAKE); $(unstage)
8ec98d6c
NN
51057 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
51058 r=`${PWD_COMMAND}`; export r; \
51059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51060 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51061 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
51062 for flag in $(EXTRA_TARGET_FLAGS); do \
51063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51064 done; \
51065 (cd $(TARGET_SUBDIR)/gperf && \
51066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51068 "RANLIB=$${RANLIB}" \
bffcbe34 51069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51070 distclean) \
8ec98d6c
NN
51071 || exit 1
51072
a7e609d6 51073@endif target-gperf
8ec98d6c
NN
51074
51075.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
51076maybe-maintainer-clean-target-gperf:
a7e609d6
PB
51077@if target-gperf
51078maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
8ec98d6c
NN
51079
51080maintainer-clean-target-gperf:
15b527ca 51081 @: $(MAKE); $(unstage)
8ec98d6c
NN
51082 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
51083 r=`${PWD_COMMAND}`; export r; \
51084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51085 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51086 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
51087 for flag in $(EXTRA_TARGET_FLAGS); do \
51088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51089 done; \
51090 (cd $(TARGET_SUBDIR)/gperf && \
51091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51093 "RANLIB=$${RANLIB}" \
bffcbe34 51094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51095 maintainer-clean) \
8ec98d6c 51096 || exit 1
70ffc148 51097
a7e609d6 51098@endif target-gperf
d6ebd419
NN
51099
51100
43bdb69a 51101
f0fdfd34
PB
51102
51103
51104.PHONY: configure-target-examples maybe-configure-target-examples
51105maybe-configure-target-examples:
e1e5148c
CD
51106@if gcc-bootstrap
51107configure-target-examples: stage_current
51108@endif gcc-bootstrap
f0fdfd34
PB
51109@if target-examples
51110maybe-configure-target-examples: configure-target-examples
ec92c4d6 51111configure-target-examples:
15b527ca
PB
51112 @: $(MAKE); $(unstage)
51113 @r=`${PWD_COMMAND}`; export r; \
51114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51115 echo "Checking multilib configuration for examples..."; \
51116 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
51117 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \
51118 if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \
51119 if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \
51120 rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \
51121 else \
51122 rm -f $(TARGET_SUBDIR)/examples/Makefile; \
51123 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
51124 fi; \
51125 else \
51126 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
ec92c4d6
PB
51127 fi; \
51128 test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
8ec98d6c 51129 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
5074489a 51130 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51131 echo Configuring in $(TARGET_SUBDIR)/examples; \
51132 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
2245eb63 51133 case $(srcdir) in \
7fc2ca22
PB
51134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51135 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
51136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 51137 esac; \
7fc2ca22
PB
51138 srcdiroption="--srcdir=$${topdir}/examples"; \
51139 libsrcdir="$$s/examples"; \
2245eb63
NN
51140 rm -f no-such-file || : ; \
51141 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
51142 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
51143 --target=${target_alias} $${srcdiroption} \
2245eb63 51144 || exit 1
a7e609d6 51145@endif target-examples
d6ebd419 51146
f0fdfd34
PB
51147
51148
a8a96878
PB
51149
51150
8ec98d6c
NN
51151.PHONY: all-target-examples maybe-all-target-examples
51152maybe-all-target-examples:
e1e5148c
CD
51153@if gcc-bootstrap
51154all-target-examples: stage_current
51155@endif gcc-bootstrap
a7e609d6 51156@if target-examples
6a19fd82 51157TARGET-target-examples=all
a7e609d6 51158maybe-all-target-examples: all-target-examples
8ec98d6c 51159all-target-examples: configure-target-examples
15b527ca 51160 @: $(MAKE); $(unstage)
5230d454
L
51161 @r=`${PWD_COMMAND}`; export r; \
51162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 51163 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51164 (cd $(TARGET_SUBDIR)/examples && \
6532abb6
PB
51165 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
51166 $(TARGET-target-examples))
a7e609d6 51167@endif target-examples
d6ebd419 51168
f0fdfd34
PB
51169
51170
a8a96878
PB
51171
51172
8ec98d6c
NN
51173.PHONY: check-target-examples maybe-check-target-examples
51174maybe-check-target-examples:
a7e609d6
PB
51175@if target-examples
51176maybe-check-target-examples: check-target-examples
70ffc148 51177
8ec98d6c
NN
51178# Dummy target for uncheckable module.
51179check-target-examples:
51180
a7e609d6 51181@endif target-examples
8ec98d6c
NN
51182
51183.PHONY: install-target-examples maybe-install-target-examples
51184maybe-install-target-examples:
a7e609d6
PB
51185@if target-examples
51186maybe-install-target-examples: install-target-examples
8ec98d6c
NN
51187
51188# Dummy target for uninstallable.
51189install-target-examples:
51190
a7e609d6 51191@endif target-examples
8ec98d6c 51192
39bbbb69 51193# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
51194
51195.PHONY: maybe-info-target-examples info-target-examples
51196maybe-info-target-examples:
a7e609d6
PB
51197@if target-examples
51198maybe-info-target-examples: info-target-examples
8ec98d6c
NN
51199
51200info-target-examples: \
51201 configure-target-examples
15b527ca 51202 @: $(MAKE); $(unstage)
8ec98d6c
NN
51203 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51204 r=`${PWD_COMMAND}`; export r; \
5230d454 51205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51206 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51207 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
51208 for flag in $(EXTRA_TARGET_FLAGS); do \
51209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51210 done; \
51211 (cd $(TARGET_SUBDIR)/examples && \
51212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51214 "RANLIB=$${RANLIB}" \
bffcbe34 51215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51216 info) \
8ec98d6c 51217 || exit 1
c5e4bb70 51218
a7e609d6 51219@endif target-examples
d6ebd419 51220
8ec98d6c
NN
51221.PHONY: maybe-dvi-target-examples dvi-target-examples
51222maybe-dvi-target-examples:
a7e609d6
PB
51223@if target-examples
51224maybe-dvi-target-examples: dvi-target-examples
70ffc148 51225
8ec98d6c
NN
51226dvi-target-examples: \
51227 configure-target-examples
15b527ca 51228 @: $(MAKE); $(unstage)
8ec98d6c
NN
51229 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51230 r=`${PWD_COMMAND}`; export r; \
5230d454 51231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51232 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51233 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
51234 for flag in $(EXTRA_TARGET_FLAGS); do \
51235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51236 done; \
51237 (cd $(TARGET_SUBDIR)/examples && \
51238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51240 "RANLIB=$${RANLIB}" \
bffcbe34 51241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51242 dvi) \
8ec98d6c
NN
51243 || exit 1
51244
a7e609d6 51245@endif target-examples
8ec98d6c 51246
39bbbb69
DD
51247.PHONY: maybe-pdf-target-examples pdf-target-examples
51248maybe-pdf-target-examples:
51249@if target-examples
51250maybe-pdf-target-examples: pdf-target-examples
51251
51252pdf-target-examples: \
51253 configure-target-examples
51254 @: $(MAKE); $(unstage)
51255 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51256 r=`${PWD_COMMAND}`; export r; \
51257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51258 $(NORMAL_TARGET_EXPORTS) \
51259 echo "Doing pdf in $(TARGET_SUBDIR)/examples" ; \
51260 for flag in $(EXTRA_TARGET_FLAGS); do \
51261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51262 done; \
51263 (cd $(TARGET_SUBDIR)/examples && \
51264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51266 "RANLIB=$${RANLIB}" \
bffcbe34 51267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
51268 pdf) \
51269 || exit 1
51270
51271@endif target-examples
51272
b6fb961f
MS
51273.PHONY: maybe-html-target-examples html-target-examples
51274maybe-html-target-examples:
51275@if target-examples
51276maybe-html-target-examples: html-target-examples
51277
51278html-target-examples: \
51279 configure-target-examples
15b527ca 51280 @: $(MAKE); $(unstage)
b6fb961f
MS
51281 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51282 r=`${PWD_COMMAND}`; export r; \
51283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
51284 $(NORMAL_TARGET_EXPORTS) \
51285 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
51286 for flag in $(EXTRA_TARGET_FLAGS); do \
51287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51288 done; \
51289 (cd $(TARGET_SUBDIR)/examples && \
51290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51292 "RANLIB=$${RANLIB}" \
bffcbe34 51293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
51294 html) \
51295 || exit 1
51296
51297@endif target-examples
51298
8ec98d6c
NN
51299.PHONY: maybe-TAGS-target-examples TAGS-target-examples
51300maybe-TAGS-target-examples:
a7e609d6
PB
51301@if target-examples
51302maybe-TAGS-target-examples: TAGS-target-examples
8ec98d6c
NN
51303
51304TAGS-target-examples: \
51305 configure-target-examples
15b527ca 51306 @: $(MAKE); $(unstage)
8ec98d6c
NN
51307 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51308 r=`${PWD_COMMAND}`; export r; \
51309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51310 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51311 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
51312 for flag in $(EXTRA_TARGET_FLAGS); do \
51313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51314 done; \
51315 (cd $(TARGET_SUBDIR)/examples && \
51316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51318 "RANLIB=$${RANLIB}" \
bffcbe34 51319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51320 TAGS) \
8ec98d6c
NN
51321 || exit 1
51322
a7e609d6 51323@endif target-examples
8ec98d6c
NN
51324
51325.PHONY: maybe-install-info-target-examples install-info-target-examples
51326maybe-install-info-target-examples:
a7e609d6
PB
51327@if target-examples
51328maybe-install-info-target-examples: install-info-target-examples
8ec98d6c
NN
51329
51330install-info-target-examples: \
51331 configure-target-examples \
51332 info-target-examples
15b527ca 51333 @: $(MAKE); $(unstage)
8ec98d6c
NN
51334 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51335 r=`${PWD_COMMAND}`; export r; \
51336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51337 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51338 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
51339 for flag in $(EXTRA_TARGET_FLAGS); do \
51340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51341 done; \
51342 (cd $(TARGET_SUBDIR)/examples && \
51343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51345 "RANLIB=$${RANLIB}" \
bffcbe34 51346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51347 install-info) \
8ec98d6c
NN
51348 || exit 1
51349
a7e609d6 51350@endif target-examples
8ec98d6c 51351
d4954b6d
DD
51352.PHONY: maybe-install-pdf-target-examples install-pdf-target-examples
51353maybe-install-pdf-target-examples:
51354@if target-examples
51355maybe-install-pdf-target-examples: install-pdf-target-examples
51356
51357install-pdf-target-examples: \
51358 configure-target-examples \
51359 pdf-target-examples
51360 @: $(MAKE); $(unstage)
51361 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51362 r=`${PWD_COMMAND}`; export r; \
51363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51364 $(NORMAL_TARGET_EXPORTS) \
51365 echo "Doing install-pdf in $(TARGET_SUBDIR)/examples" ; \
51366 for flag in $(EXTRA_TARGET_FLAGS); do \
51367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51368 done; \
51369 (cd $(TARGET_SUBDIR)/examples && \
51370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51372 "RANLIB=$${RANLIB}" \
bffcbe34 51373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
51374 install-pdf) \
51375 || exit 1
51376
51377@endif target-examples
51378
83c9add4
CD
51379.PHONY: maybe-install-html-target-examples install-html-target-examples
51380maybe-install-html-target-examples:
51381@if target-examples
51382maybe-install-html-target-examples: install-html-target-examples
51383
51384install-html-target-examples: \
51385 configure-target-examples \
51386 html-target-examples
51387 @: $(MAKE); $(unstage)
51388 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51389 r=`${PWD_COMMAND}`; export r; \
51390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51391 $(NORMAL_TARGET_EXPORTS) \
51392 echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \
51393 for flag in $(EXTRA_TARGET_FLAGS); do \
51394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51395 done; \
51396 (cd $(TARGET_SUBDIR)/examples && \
51397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51399 "RANLIB=$${RANLIB}" \
bffcbe34 51400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
51401 install-html) \
51402 || exit 1
51403
51404@endif target-examples
51405
8ec98d6c
NN
51406.PHONY: maybe-installcheck-target-examples installcheck-target-examples
51407maybe-installcheck-target-examples:
a7e609d6
PB
51408@if target-examples
51409maybe-installcheck-target-examples: installcheck-target-examples
8ec98d6c
NN
51410
51411installcheck-target-examples: \
51412 configure-target-examples
15b527ca 51413 @: $(MAKE); $(unstage)
8ec98d6c
NN
51414 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51415 r=`${PWD_COMMAND}`; export r; \
51416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51417 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51418 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
51419 for flag in $(EXTRA_TARGET_FLAGS); do \
51420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51421 done; \
51422 (cd $(TARGET_SUBDIR)/examples && \
51423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51425 "RANLIB=$${RANLIB}" \
bffcbe34 51426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51427 installcheck) \
8ec98d6c
NN
51428 || exit 1
51429
a7e609d6 51430@endif target-examples
8ec98d6c
NN
51431
51432.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
51433maybe-mostlyclean-target-examples:
a7e609d6
PB
51434@if target-examples
51435maybe-mostlyclean-target-examples: mostlyclean-target-examples
8ec98d6c
NN
51436
51437mostlyclean-target-examples:
15b527ca 51438 @: $(MAKE); $(unstage)
8ec98d6c
NN
51439 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51440 r=`${PWD_COMMAND}`; export r; \
51441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51442 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51443 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
51444 for flag in $(EXTRA_TARGET_FLAGS); do \
51445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51446 done; \
51447 (cd $(TARGET_SUBDIR)/examples && \
51448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51450 "RANLIB=$${RANLIB}" \
bffcbe34 51451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51452 mostlyclean) \
8ec98d6c
NN
51453 || exit 1
51454
a7e609d6 51455@endif target-examples
8ec98d6c
NN
51456
51457.PHONY: maybe-clean-target-examples clean-target-examples
51458maybe-clean-target-examples:
a7e609d6
PB
51459@if target-examples
51460maybe-clean-target-examples: clean-target-examples
8ec98d6c
NN
51461
51462clean-target-examples:
15b527ca 51463 @: $(MAKE); $(unstage)
8ec98d6c
NN
51464 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51465 r=`${PWD_COMMAND}`; export r; \
51466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51467 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51468 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
51469 for flag in $(EXTRA_TARGET_FLAGS); do \
51470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51471 done; \
51472 (cd $(TARGET_SUBDIR)/examples && \
51473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51475 "RANLIB=$${RANLIB}" \
bffcbe34 51476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51477 clean) \
8ec98d6c
NN
51478 || exit 1
51479
a7e609d6 51480@endif target-examples
8ec98d6c
NN
51481
51482.PHONY: maybe-distclean-target-examples distclean-target-examples
51483maybe-distclean-target-examples:
a7e609d6
PB
51484@if target-examples
51485maybe-distclean-target-examples: distclean-target-examples
8ec98d6c
NN
51486
51487distclean-target-examples:
15b527ca 51488 @: $(MAKE); $(unstage)
8ec98d6c
NN
51489 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51490 r=`${PWD_COMMAND}`; export r; \
51491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51492 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51493 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
51494 for flag in $(EXTRA_TARGET_FLAGS); do \
51495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51496 done; \
51497 (cd $(TARGET_SUBDIR)/examples && \
51498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51500 "RANLIB=$${RANLIB}" \
bffcbe34 51501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51502 distclean) \
8ec98d6c
NN
51503 || exit 1
51504
a7e609d6 51505@endif target-examples
8ec98d6c
NN
51506
51507.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
51508maybe-maintainer-clean-target-examples:
a7e609d6
PB
51509@if target-examples
51510maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
8ec98d6c
NN
51511
51512maintainer-clean-target-examples:
15b527ca 51513 @: $(MAKE); $(unstage)
8ec98d6c
NN
51514 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
51515 r=`${PWD_COMMAND}`; export r; \
51516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51517 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51518 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
51519 for flag in $(EXTRA_TARGET_FLAGS); do \
51520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51521 done; \
51522 (cd $(TARGET_SUBDIR)/examples && \
51523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51525 "RANLIB=$${RANLIB}" \
bffcbe34 51526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51527 maintainer-clean) \
8ec98d6c
NN
51528 || exit 1
51529
a7e609d6 51530@endif target-examples
d6ebd419
NN
51531
51532
43bdb69a 51533
f0fdfd34 51534
f3fd76d4 51535
f0fdfd34
PB
51536.PHONY: configure-target-libffi maybe-configure-target-libffi
51537maybe-configure-target-libffi:
e1e5148c
CD
51538@if gcc-bootstrap
51539configure-target-libffi: stage_current
51540@endif gcc-bootstrap
f0fdfd34
PB
51541@if target-libffi
51542maybe-configure-target-libffi: configure-target-libffi
ec92c4d6 51543configure-target-libffi:
15b527ca
PB
51544 @: $(MAKE); $(unstage)
51545 @r=`${PWD_COMMAND}`; export r; \
51546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51547 echo "Checking multilib configuration for libffi..."; \
51548 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
51549 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
51550 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
51551 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
51552 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
51553 else \
51554 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
51555 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
51556 fi; \
51557 else \
51558 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
ec92c4d6
PB
51559 fi; \
51560 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
8ec98d6c 51561 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
5074489a 51562 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51563 echo Configuring in $(TARGET_SUBDIR)/libffi; \
51564 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
2245eb63 51565 case $(srcdir) in \
7fc2ca22
PB
51566 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51567 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
51568 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 51569 esac; \
7fc2ca22
PB
51570 srcdiroption="--srcdir=$${topdir}/libffi"; \
51571 libsrcdir="$$s/libffi"; \
2245eb63
NN
51572 rm -f no-such-file || : ; \
51573 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
51574 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
51575 --target=${target_alias} $${srcdiroption} \
2245eb63 51576 || exit 1
a7e609d6 51577@endif target-libffi
d6ebd419 51578
f0fdfd34
PB
51579
51580
a8a96878
PB
51581
51582
8ec98d6c
NN
51583.PHONY: all-target-libffi maybe-all-target-libffi
51584maybe-all-target-libffi:
e1e5148c
CD
51585@if gcc-bootstrap
51586all-target-libffi: stage_current
51587@endif gcc-bootstrap
a7e609d6 51588@if target-libffi
6a19fd82 51589TARGET-target-libffi=all
a7e609d6 51590maybe-all-target-libffi: all-target-libffi
8ec98d6c 51591all-target-libffi: configure-target-libffi
15b527ca 51592 @: $(MAKE); $(unstage)
5230d454
L
51593 @r=`${PWD_COMMAND}`; export r; \
51594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 51595 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51596 (cd $(TARGET_SUBDIR)/libffi && \
6532abb6
PB
51597 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
51598 $(TARGET-target-libffi))
a7e609d6 51599@endif target-libffi
d6ebd419 51600
f0fdfd34
PB
51601
51602
a8a96878
PB
51603
51604
8ec98d6c
NN
51605.PHONY: check-target-libffi maybe-check-target-libffi
51606maybe-check-target-libffi:
a7e609d6
PB
51607@if target-libffi
51608maybe-check-target-libffi: check-target-libffi
70ffc148 51609
8ec98d6c 51610check-target-libffi:
15b527ca 51611 @: $(MAKE); $(unstage)
5230d454
L
51612 @r=`${PWD_COMMAND}`; export r; \
51613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51614 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51615 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 51616 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
c5e4bb70 51617
a7e609d6 51618@endif target-libffi
d6ebd419 51619
8ec98d6c
NN
51620.PHONY: install-target-libffi maybe-install-target-libffi
51621maybe-install-target-libffi:
a7e609d6
PB
51622@if target-libffi
51623maybe-install-target-libffi: install-target-libffi
70ffc148 51624
8ec98d6c 51625install-target-libffi: installdirs
15b527ca 51626 @: $(MAKE); $(unstage)
5230d454
L
51627 @r=`${PWD_COMMAND}`; export r; \
51628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51629 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 51630 (cd $(TARGET_SUBDIR)/libffi && \
63673a5b 51631 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 51632
a7e609d6 51633@endif target-libffi
d6ebd419 51634
39bbbb69 51635# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
51636
51637.PHONY: maybe-info-target-libffi info-target-libffi
51638maybe-info-target-libffi:
a7e609d6
PB
51639@if target-libffi
51640maybe-info-target-libffi: info-target-libffi
8ec98d6c
NN
51641
51642info-target-libffi: \
51643 configure-target-libffi
15b527ca 51644 @: $(MAKE); $(unstage)
8ec98d6c
NN
51645 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51646 r=`${PWD_COMMAND}`; export r; \
51647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51648 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51649 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
51650 for flag in $(EXTRA_TARGET_FLAGS); do \
51651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51652 done; \
51653 (cd $(TARGET_SUBDIR)/libffi && \
51654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51656 "RANLIB=$${RANLIB}" \
bffcbe34 51657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51658 info) \
8ec98d6c
NN
51659 || exit 1
51660
a7e609d6 51661@endif target-libffi
8ec98d6c
NN
51662
51663.PHONY: maybe-dvi-target-libffi dvi-target-libffi
51664maybe-dvi-target-libffi:
a7e609d6
PB
51665@if target-libffi
51666maybe-dvi-target-libffi: dvi-target-libffi
8ec98d6c
NN
51667
51668dvi-target-libffi: \
51669 configure-target-libffi
15b527ca 51670 @: $(MAKE); $(unstage)
8ec98d6c
NN
51671 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51672 r=`${PWD_COMMAND}`; export r; \
51673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51674 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51675 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
51676 for flag in $(EXTRA_TARGET_FLAGS); do \
51677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51678 done; \
51679 (cd $(TARGET_SUBDIR)/libffi && \
51680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51682 "RANLIB=$${RANLIB}" \
bffcbe34 51683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51684 dvi) \
8ec98d6c
NN
51685 || exit 1
51686
a7e609d6 51687@endif target-libffi
8ec98d6c 51688
39bbbb69
DD
51689.PHONY: maybe-pdf-target-libffi pdf-target-libffi
51690maybe-pdf-target-libffi:
51691@if target-libffi
51692maybe-pdf-target-libffi: pdf-target-libffi
51693
51694pdf-target-libffi: \
51695 configure-target-libffi
51696 @: $(MAKE); $(unstage)
51697 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51698 r=`${PWD_COMMAND}`; export r; \
51699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51700 $(NORMAL_TARGET_EXPORTS) \
51701 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
51702 for flag in $(EXTRA_TARGET_FLAGS); do \
51703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51704 done; \
51705 (cd $(TARGET_SUBDIR)/libffi && \
51706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51708 "RANLIB=$${RANLIB}" \
bffcbe34 51709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
51710 pdf) \
51711 || exit 1
51712
51713@endif target-libffi
51714
b6fb961f
MS
51715.PHONY: maybe-html-target-libffi html-target-libffi
51716maybe-html-target-libffi:
51717@if target-libffi
51718maybe-html-target-libffi: html-target-libffi
51719
51720html-target-libffi: \
51721 configure-target-libffi
15b527ca 51722 @: $(MAKE); $(unstage)
b6fb961f
MS
51723 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51724 r=`${PWD_COMMAND}`; export r; \
51725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
51726 $(NORMAL_TARGET_EXPORTS) \
51727 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
51728 for flag in $(EXTRA_TARGET_FLAGS); do \
51729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51730 done; \
51731 (cd $(TARGET_SUBDIR)/libffi && \
51732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51734 "RANLIB=$${RANLIB}" \
bffcbe34 51735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
51736 html) \
51737 || exit 1
51738
51739@endif target-libffi
51740
8ec98d6c
NN
51741.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
51742maybe-TAGS-target-libffi:
a7e609d6
PB
51743@if target-libffi
51744maybe-TAGS-target-libffi: TAGS-target-libffi
8ec98d6c
NN
51745
51746TAGS-target-libffi: \
51747 configure-target-libffi
15b527ca 51748 @: $(MAKE); $(unstage)
8ec98d6c
NN
51749 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51750 r=`${PWD_COMMAND}`; export r; \
51751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51752 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51753 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
51754 for flag in $(EXTRA_TARGET_FLAGS); do \
51755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51756 done; \
51757 (cd $(TARGET_SUBDIR)/libffi && \
51758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51760 "RANLIB=$${RANLIB}" \
bffcbe34 51761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51762 TAGS) \
8ec98d6c
NN
51763 || exit 1
51764
a7e609d6 51765@endif target-libffi
8ec98d6c
NN
51766
51767.PHONY: maybe-install-info-target-libffi install-info-target-libffi
51768maybe-install-info-target-libffi:
a7e609d6
PB
51769@if target-libffi
51770maybe-install-info-target-libffi: install-info-target-libffi
8ec98d6c
NN
51771
51772install-info-target-libffi: \
51773 configure-target-libffi \
51774 info-target-libffi
15b527ca 51775 @: $(MAKE); $(unstage)
8ec98d6c
NN
51776 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51777 r=`${PWD_COMMAND}`; export r; \
51778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51779 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51780 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
51781 for flag in $(EXTRA_TARGET_FLAGS); do \
51782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51783 done; \
51784 (cd $(TARGET_SUBDIR)/libffi && \
51785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51787 "RANLIB=$${RANLIB}" \
bffcbe34 51788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51789 install-info) \
8ec98d6c
NN
51790 || exit 1
51791
a7e609d6 51792@endif target-libffi
8ec98d6c 51793
d4954b6d
DD
51794.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
51795maybe-install-pdf-target-libffi:
51796@if target-libffi
51797maybe-install-pdf-target-libffi: install-pdf-target-libffi
51798
51799install-pdf-target-libffi: \
51800 configure-target-libffi \
51801 pdf-target-libffi
51802 @: $(MAKE); $(unstage)
51803 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51804 r=`${PWD_COMMAND}`; export r; \
51805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51806 $(NORMAL_TARGET_EXPORTS) \
51807 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
51808 for flag in $(EXTRA_TARGET_FLAGS); do \
51809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51810 done; \
51811 (cd $(TARGET_SUBDIR)/libffi && \
51812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51814 "RANLIB=$${RANLIB}" \
bffcbe34 51815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
51816 install-pdf) \
51817 || exit 1
51818
51819@endif target-libffi
51820
83c9add4
CD
51821.PHONY: maybe-install-html-target-libffi install-html-target-libffi
51822maybe-install-html-target-libffi:
51823@if target-libffi
51824maybe-install-html-target-libffi: install-html-target-libffi
51825
51826install-html-target-libffi: \
51827 configure-target-libffi \
51828 html-target-libffi
51829 @: $(MAKE); $(unstage)
51830 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51831 r=`${PWD_COMMAND}`; export r; \
51832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51833 $(NORMAL_TARGET_EXPORTS) \
51834 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
51835 for flag in $(EXTRA_TARGET_FLAGS); do \
51836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51837 done; \
51838 (cd $(TARGET_SUBDIR)/libffi && \
51839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51841 "RANLIB=$${RANLIB}" \
bffcbe34 51842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
51843 install-html) \
51844 || exit 1
51845
51846@endif target-libffi
51847
8ec98d6c
NN
51848.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
51849maybe-installcheck-target-libffi:
a7e609d6
PB
51850@if target-libffi
51851maybe-installcheck-target-libffi: installcheck-target-libffi
8ec98d6c
NN
51852
51853installcheck-target-libffi: \
51854 configure-target-libffi
15b527ca 51855 @: $(MAKE); $(unstage)
8ec98d6c
NN
51856 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51857 r=`${PWD_COMMAND}`; export r; \
51858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51859 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51860 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
51861 for flag in $(EXTRA_TARGET_FLAGS); do \
51862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51863 done; \
51864 (cd $(TARGET_SUBDIR)/libffi && \
51865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51867 "RANLIB=$${RANLIB}" \
bffcbe34 51868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51869 installcheck) \
8ec98d6c
NN
51870 || exit 1
51871
a7e609d6 51872@endif target-libffi
8ec98d6c
NN
51873
51874.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
51875maybe-mostlyclean-target-libffi:
a7e609d6
PB
51876@if target-libffi
51877maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
8ec98d6c
NN
51878
51879mostlyclean-target-libffi:
15b527ca 51880 @: $(MAKE); $(unstage)
8ec98d6c
NN
51881 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51882 r=`${PWD_COMMAND}`; export r; \
51883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51884 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51885 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
51886 for flag in $(EXTRA_TARGET_FLAGS); do \
51887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51888 done; \
51889 (cd $(TARGET_SUBDIR)/libffi && \
51890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51892 "RANLIB=$${RANLIB}" \
bffcbe34 51893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51894 mostlyclean) \
8ec98d6c
NN
51895 || exit 1
51896
a7e609d6 51897@endif target-libffi
8ec98d6c
NN
51898
51899.PHONY: maybe-clean-target-libffi clean-target-libffi
51900maybe-clean-target-libffi:
a7e609d6
PB
51901@if target-libffi
51902maybe-clean-target-libffi: clean-target-libffi
8ec98d6c
NN
51903
51904clean-target-libffi:
15b527ca 51905 @: $(MAKE); $(unstage)
8ec98d6c
NN
51906 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51907 r=`${PWD_COMMAND}`; export r; \
51908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51909 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51910 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
51911 for flag in $(EXTRA_TARGET_FLAGS); do \
51912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51913 done; \
51914 (cd $(TARGET_SUBDIR)/libffi && \
51915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51917 "RANLIB=$${RANLIB}" \
bffcbe34 51918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51919 clean) \
8ec98d6c
NN
51920 || exit 1
51921
a7e609d6 51922@endif target-libffi
8ec98d6c
NN
51923
51924.PHONY: maybe-distclean-target-libffi distclean-target-libffi
51925maybe-distclean-target-libffi:
a7e609d6
PB
51926@if target-libffi
51927maybe-distclean-target-libffi: distclean-target-libffi
8ec98d6c
NN
51928
51929distclean-target-libffi:
15b527ca 51930 @: $(MAKE); $(unstage)
8ec98d6c
NN
51931 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51932 r=`${PWD_COMMAND}`; export r; \
51933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51934 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51935 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
51936 for flag in $(EXTRA_TARGET_FLAGS); do \
51937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51938 done; \
51939 (cd $(TARGET_SUBDIR)/libffi && \
51940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51942 "RANLIB=$${RANLIB}" \
bffcbe34 51943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51944 distclean) \
8ec98d6c
NN
51945 || exit 1
51946
a7e609d6 51947@endif target-libffi
8ec98d6c
NN
51948
51949.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
51950maybe-maintainer-clean-target-libffi:
a7e609d6
PB
51951@if target-libffi
51952maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
8ec98d6c
NN
51953
51954maintainer-clean-target-libffi:
15b527ca 51955 @: $(MAKE); $(unstage)
8ec98d6c
NN
51956 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
51957 r=`${PWD_COMMAND}`; export r; \
51958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 51959 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
51960 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
51961 for flag in $(EXTRA_TARGET_FLAGS); do \
51962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51963 done; \
51964 (cd $(TARGET_SUBDIR)/libffi && \
51965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51967 "RANLIB=$${RANLIB}" \
bffcbe34 51968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 51969 maintainer-clean) \
8ec98d6c
NN
51970 || exit 1
51971
a7e609d6 51972@endif target-libffi
8ec98d6c
NN
51973
51974
43bdb69a 51975
f0fdfd34 51976
43bdb69a 51977
f0fdfd34
PB
51978.PHONY: configure-target-libjava maybe-configure-target-libjava
51979maybe-configure-target-libjava:
e1e5148c
CD
51980@if gcc-bootstrap
51981configure-target-libjava: stage_current
51982@endif gcc-bootstrap
f0fdfd34
PB
51983@if target-libjava
51984maybe-configure-target-libjava: configure-target-libjava
ec92c4d6 51985configure-target-libjava:
15b527ca
PB
51986 @: $(MAKE); $(unstage)
51987 @r=`${PWD_COMMAND}`; export r; \
51988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51989 echo "Checking multilib configuration for libjava..."; \
51990 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
51991 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
51992 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
51993 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
51994 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
51995 else \
51996 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
51997 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
51998 fi; \
51999 else \
52000 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
ec92c4d6
PB
52001 fi; \
52002 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
8ec98d6c 52003 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
5074489a 52004 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52005 echo Configuring in $(TARGET_SUBDIR)/libjava; \
52006 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
2245eb63 52007 case $(srcdir) in \
7fc2ca22
PB
52008 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52009 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
52010 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 52011 esac; \
7fc2ca22
PB
52012 srcdiroption="--srcdir=$${topdir}/libjava"; \
52013 libsrcdir="$$s/libjava"; \
2245eb63
NN
52014 rm -f no-such-file || : ; \
52015 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
52016 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
52017 --target=${target_alias} $${srcdiroption} \
2245eb63 52018 || exit 1
a7e609d6 52019@endif target-libjava
d6ebd419 52020
f0fdfd34
PB
52021
52022
a8a96878
PB
52023
52024
8ec98d6c
NN
52025.PHONY: all-target-libjava maybe-all-target-libjava
52026maybe-all-target-libjava:
e1e5148c
CD
52027@if gcc-bootstrap
52028all-target-libjava: stage_current
52029@endif gcc-bootstrap
a7e609d6 52030@if target-libjava
6a19fd82 52031TARGET-target-libjava=all
a7e609d6 52032maybe-all-target-libjava: all-target-libjava
8ec98d6c 52033all-target-libjava: configure-target-libjava
15b527ca 52034 @: $(MAKE); $(unstage)
5230d454
L
52035 @r=`${PWD_COMMAND}`; export r; \
52036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 52037 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 52038 (cd $(TARGET_SUBDIR)/libjava && \
6532abb6
PB
52039 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
52040 $(TARGET-target-libjava))
a7e609d6 52041@endif target-libjava
d6ebd419 52042
f0fdfd34
PB
52043
52044
a8a96878
PB
52045
52046
8ec98d6c
NN
52047.PHONY: check-target-libjava maybe-check-target-libjava
52048maybe-check-target-libjava:
a7e609d6
PB
52049@if target-libjava
52050maybe-check-target-libjava: check-target-libjava
70ffc148 52051
8ec98d6c 52052check-target-libjava:
15b527ca 52053 @: $(MAKE); $(unstage)
8ec98d6c
NN
52054 @r=`${PWD_COMMAND}`; export r; \
52055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52056 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 52057 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 52058 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
8ecc6504 52059
a7e609d6 52060@endif target-libjava
c5e4bb70 52061
8ec98d6c
NN
52062.PHONY: install-target-libjava maybe-install-target-libjava
52063maybe-install-target-libjava:
a7e609d6
PB
52064@if target-libjava
52065maybe-install-target-libjava: install-target-libjava
70ffc148 52066
8ec98d6c 52067install-target-libjava: installdirs
15b527ca 52068 @: $(MAKE); $(unstage)
5230d454
L
52069 @r=`${PWD_COMMAND}`; export r; \
52070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52071 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c 52072 (cd $(TARGET_SUBDIR)/libjava && \
63673a5b 52073 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 52074
a7e609d6 52075@endif target-libjava
d6ebd419 52076
39bbbb69 52077# Other targets (info, dvi, pdf, etc.)
43bdb69a 52078
8ec98d6c
NN
52079.PHONY: maybe-info-target-libjava info-target-libjava
52080maybe-info-target-libjava:
a7e609d6
PB
52081@if target-libjava
52082maybe-info-target-libjava: info-target-libjava
43bdb69a 52083
8ec98d6c
NN
52084info-target-libjava: \
52085 configure-target-libjava
15b527ca 52086 @: $(MAKE); $(unstage)
8ec98d6c 52087 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
52088 r=`${PWD_COMMAND}`; export r; \
52089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52090 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52091 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
52092 for flag in $(EXTRA_TARGET_FLAGS); do \
52093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52094 done; \
52095 (cd $(TARGET_SUBDIR)/libjava && \
52096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52098 "RANLIB=$${RANLIB}" \
bffcbe34 52099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52100 info) \
2245eb63 52101 || exit 1
d6ebd419 52102
a7e609d6 52103@endif target-libjava
8ec98d6c
NN
52104
52105.PHONY: maybe-dvi-target-libjava dvi-target-libjava
52106maybe-dvi-target-libjava:
a7e609d6
PB
52107@if target-libjava
52108maybe-dvi-target-libjava: dvi-target-libjava
8ec98d6c
NN
52109
52110dvi-target-libjava: \
52111 configure-target-libjava
15b527ca 52112 @: $(MAKE); $(unstage)
8ec98d6c
NN
52113 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52114 r=`${PWD_COMMAND}`; export r; \
5230d454 52115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52116 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52117 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
52118 for flag in $(EXTRA_TARGET_FLAGS); do \
52119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52120 done; \
52121 (cd $(TARGET_SUBDIR)/libjava && \
52122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52124 "RANLIB=$${RANLIB}" \
bffcbe34 52125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52126 dvi) \
8ec98d6c 52127 || exit 1
d6ebd419 52128
a7e609d6 52129@endif target-libjava
70ffc148 52130
39bbbb69
DD
52131.PHONY: maybe-pdf-target-libjava pdf-target-libjava
52132maybe-pdf-target-libjava:
52133@if target-libjava
52134maybe-pdf-target-libjava: pdf-target-libjava
52135
52136pdf-target-libjava: \
52137 configure-target-libjava
52138 @: $(MAKE); $(unstage)
52139 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52140 r=`${PWD_COMMAND}`; export r; \
52141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52142 $(RAW_CXX_TARGET_EXPORTS) \
52143 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
52144 for flag in $(EXTRA_TARGET_FLAGS); do \
52145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52146 done; \
52147 (cd $(TARGET_SUBDIR)/libjava && \
52148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52150 "RANLIB=$${RANLIB}" \
bffcbe34 52151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
52152 pdf) \
52153 || exit 1
52154
52155@endif target-libjava
52156
b6fb961f
MS
52157.PHONY: maybe-html-target-libjava html-target-libjava
52158maybe-html-target-libjava:
52159@if target-libjava
52160maybe-html-target-libjava: html-target-libjava
52161
52162html-target-libjava: \
52163 configure-target-libjava
15b527ca 52164 @: $(MAKE); $(unstage)
b6fb961f
MS
52165 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52166 r=`${PWD_COMMAND}`; export r; \
52167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
52168 $(RAW_CXX_TARGET_EXPORTS) \
52169 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
52170 for flag in $(EXTRA_TARGET_FLAGS); do \
52171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52172 done; \
52173 (cd $(TARGET_SUBDIR)/libjava && \
52174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52176 "RANLIB=$${RANLIB}" \
bffcbe34 52177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
52178 html) \
52179 || exit 1
52180
52181@endif target-libjava
52182
8ec98d6c
NN
52183.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
52184maybe-TAGS-target-libjava:
a7e609d6
PB
52185@if target-libjava
52186maybe-TAGS-target-libjava: TAGS-target-libjava
8ec98d6c
NN
52187
52188TAGS-target-libjava: \
52189 configure-target-libjava
15b527ca 52190 @: $(MAKE); $(unstage)
8ec98d6c
NN
52191 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52192 r=`${PWD_COMMAND}`; export r; \
5230d454 52193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52194 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52195 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
52196 for flag in $(EXTRA_TARGET_FLAGS); do \
52197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52198 done; \
52199 (cd $(TARGET_SUBDIR)/libjava && \
52200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52202 "RANLIB=$${RANLIB}" \
bffcbe34 52203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52204 TAGS) \
8ec98d6c 52205 || exit 1
d6ebd419 52206
a7e609d6 52207@endif target-libjava
c5e4bb70 52208
8ec98d6c
NN
52209.PHONY: maybe-install-info-target-libjava install-info-target-libjava
52210maybe-install-info-target-libjava:
a7e609d6
PB
52211@if target-libjava
52212maybe-install-info-target-libjava: install-info-target-libjava
70ffc148 52213
8ec98d6c
NN
52214install-info-target-libjava: \
52215 configure-target-libjava \
52216 info-target-libjava
15b527ca 52217 @: $(MAKE); $(unstage)
8ec98d6c
NN
52218 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52219 r=`${PWD_COMMAND}`; export r; \
5230d454 52220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52221 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52222 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
52223 for flag in $(EXTRA_TARGET_FLAGS); do \
52224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52225 done; \
52226 (cd $(TARGET_SUBDIR)/libjava && \
52227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52229 "RANLIB=$${RANLIB}" \
bffcbe34 52230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52231 install-info) \
8ec98d6c 52232 || exit 1
d6ebd419 52233
a7e609d6 52234@endif target-libjava
d6ebd419 52235
d4954b6d
DD
52236.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
52237maybe-install-pdf-target-libjava:
52238@if target-libjava
52239maybe-install-pdf-target-libjava: install-pdf-target-libjava
52240
52241install-pdf-target-libjava: \
52242 configure-target-libjava \
52243 pdf-target-libjava
52244 @: $(MAKE); $(unstage)
52245 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52246 r=`${PWD_COMMAND}`; export r; \
52247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52248 $(RAW_CXX_TARGET_EXPORTS) \
52249 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
52250 for flag in $(EXTRA_TARGET_FLAGS); do \
52251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52252 done; \
52253 (cd $(TARGET_SUBDIR)/libjava && \
52254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52256 "RANLIB=$${RANLIB}" \
bffcbe34 52257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
52258 install-pdf) \
52259 || exit 1
52260
52261@endif target-libjava
52262
83c9add4
CD
52263.PHONY: maybe-install-html-target-libjava install-html-target-libjava
52264maybe-install-html-target-libjava:
52265@if target-libjava
52266maybe-install-html-target-libjava: install-html-target-libjava
52267
52268install-html-target-libjava: \
52269 configure-target-libjava \
52270 html-target-libjava
52271 @: $(MAKE); $(unstage)
52272 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52273 r=`${PWD_COMMAND}`; export r; \
52274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52275 $(RAW_CXX_TARGET_EXPORTS) \
52276 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
52277 for flag in $(EXTRA_TARGET_FLAGS); do \
52278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52279 done; \
52280 (cd $(TARGET_SUBDIR)/libjava && \
52281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52283 "RANLIB=$${RANLIB}" \
bffcbe34 52284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
52285 install-html) \
52286 || exit 1
52287
52288@endif target-libjava
52289
8ec98d6c
NN
52290.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
52291maybe-installcheck-target-libjava:
a7e609d6
PB
52292@if target-libjava
52293maybe-installcheck-target-libjava: installcheck-target-libjava
43bdb69a 52294
8ec98d6c
NN
52295installcheck-target-libjava: \
52296 configure-target-libjava
15b527ca 52297 @: $(MAKE); $(unstage)
8ec98d6c
NN
52298 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52299 r=`${PWD_COMMAND}`; export r; \
52300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52301 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52302 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
52303 for flag in $(EXTRA_TARGET_FLAGS); do \
52304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52305 done; \
52306 (cd $(TARGET_SUBDIR)/libjava && \
52307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52309 "RANLIB=$${RANLIB}" \
bffcbe34 52310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52311 installcheck) \
8ec98d6c 52312 || exit 1
43bdb69a 52313
a7e609d6 52314@endif target-libjava
8ec98d6c
NN
52315
52316.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
52317maybe-mostlyclean-target-libjava:
a7e609d6
PB
52318@if target-libjava
52319maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
8ec98d6c
NN
52320
52321mostlyclean-target-libjava:
15b527ca 52322 @: $(MAKE); $(unstage)
8ec98d6c
NN
52323 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52324 r=`${PWD_COMMAND}`; export r; \
52325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52326 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52327 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
52328 for flag in $(EXTRA_TARGET_FLAGS); do \
52329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52330 done; \
52331 (cd $(TARGET_SUBDIR)/libjava && \
52332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52334 "RANLIB=$${RANLIB}" \
bffcbe34 52335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52336 mostlyclean) \
8ec98d6c
NN
52337 || exit 1
52338
a7e609d6 52339@endif target-libjava
8ec98d6c
NN
52340
52341.PHONY: maybe-clean-target-libjava clean-target-libjava
52342maybe-clean-target-libjava:
a7e609d6
PB
52343@if target-libjava
52344maybe-clean-target-libjava: clean-target-libjava
8ec98d6c
NN
52345
52346clean-target-libjava:
15b527ca 52347 @: $(MAKE); $(unstage)
8ec98d6c 52348 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
5230d454
L
52349 r=`${PWD_COMMAND}`; export r; \
52350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52351 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52352 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
52353 for flag in $(EXTRA_TARGET_FLAGS); do \
52354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52355 done; \
52356 (cd $(TARGET_SUBDIR)/libjava && \
52357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52359 "RANLIB=$${RANLIB}" \
bffcbe34 52360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52361 clean) \
2245eb63 52362 || exit 1
d6ebd419 52363
a7e609d6 52364@endif target-libjava
d6ebd419 52365
8ec98d6c
NN
52366.PHONY: maybe-distclean-target-libjava distclean-target-libjava
52367maybe-distclean-target-libjava:
a7e609d6
PB
52368@if target-libjava
52369maybe-distclean-target-libjava: distclean-target-libjava
70ffc148 52370
8ec98d6c 52371distclean-target-libjava:
15b527ca 52372 @: $(MAKE); $(unstage)
8ec98d6c
NN
52373 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52374 r=`${PWD_COMMAND}`; export r; \
52375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52376 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52377 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
52378 for flag in $(EXTRA_TARGET_FLAGS); do \
52379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52380 done; \
52381 (cd $(TARGET_SUBDIR)/libjava && \
52382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52384 "RANLIB=$${RANLIB}" \
bffcbe34 52385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52386 distclean) \
8ec98d6c 52387 || exit 1
8ecc6504 52388
a7e609d6 52389@endif target-libjava
c5e4bb70 52390
8ec98d6c
NN
52391.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
52392maybe-maintainer-clean-target-libjava:
a7e609d6
PB
52393@if target-libjava
52394maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
70ffc148 52395
8ec98d6c 52396maintainer-clean-target-libjava:
15b527ca 52397 @: $(MAKE); $(unstage)
8ec98d6c
NN
52398 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
52399 r=`${PWD_COMMAND}`; export r; \
5230d454 52400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52401 $(RAW_CXX_TARGET_EXPORTS) \
8ec98d6c
NN
52402 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
52403 for flag in $(EXTRA_TARGET_FLAGS); do \
52404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52405 done; \
52406 (cd $(TARGET_SUBDIR)/libjava && \
52407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52409 "RANLIB=$${RANLIB}" \
bffcbe34 52410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52411 maintainer-clean) \
8ec98d6c 52412 || exit 1
d6ebd419 52413
a7e609d6 52414@endif target-libjava
d6ebd419 52415
8ec98d6c 52416
43bdb69a 52417
f0fdfd34 52418
f3fd76d4 52419
f0fdfd34
PB
52420.PHONY: configure-target-zlib maybe-configure-target-zlib
52421maybe-configure-target-zlib:
e1e5148c
CD
52422@if gcc-bootstrap
52423configure-target-zlib: stage_current
52424@endif gcc-bootstrap
f0fdfd34
PB
52425@if target-zlib
52426maybe-configure-target-zlib: configure-target-zlib
ec92c4d6 52427configure-target-zlib:
15b527ca
PB
52428 @: $(MAKE); $(unstage)
52429 @r=`${PWD_COMMAND}`; export r; \
52430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52431 echo "Checking multilib configuration for zlib..."; \
52432 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
52433 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
52434 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
52435 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
52436 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
52437 else \
52438 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
52439 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
52440 fi; \
52441 else \
52442 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
ec92c4d6
PB
52443 fi; \
52444 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
8ec98d6c 52445 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
5074489a 52446 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52447 echo Configuring in $(TARGET_SUBDIR)/zlib; \
52448 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
2245eb63 52449 case $(srcdir) in \
7fc2ca22
PB
52450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52451 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
52452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 52453 esac; \
7fc2ca22
PB
52454 srcdiroption="--srcdir=$${topdir}/zlib"; \
52455 libsrcdir="$$s/zlib"; \
2245eb63
NN
52456 rm -f no-such-file || : ; \
52457 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
52458 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
52459 --target=${target_alias} $${srcdiroption} \
2245eb63 52460 || exit 1
a7e609d6 52461@endif target-zlib
d6ebd419 52462
f0fdfd34
PB
52463
52464
a8a96878
PB
52465
52466
8ec98d6c
NN
52467.PHONY: all-target-zlib maybe-all-target-zlib
52468maybe-all-target-zlib:
e1e5148c
CD
52469@if gcc-bootstrap
52470all-target-zlib: stage_current
52471@endif gcc-bootstrap
a7e609d6 52472@if target-zlib
6a19fd82 52473TARGET-target-zlib=all
a7e609d6 52474maybe-all-target-zlib: all-target-zlib
8ec98d6c 52475all-target-zlib: configure-target-zlib
15b527ca 52476 @: $(MAKE); $(unstage)
5230d454
L
52477 @r=`${PWD_COMMAND}`; export r; \
52478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 52479 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52480 (cd $(TARGET_SUBDIR)/zlib && \
6532abb6
PB
52481 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
52482 $(TARGET-target-zlib))
a7e609d6 52483@endif target-zlib
d6ebd419 52484
f0fdfd34
PB
52485
52486
a8a96878
PB
52487
52488
8ec98d6c
NN
52489.PHONY: check-target-zlib maybe-check-target-zlib
52490maybe-check-target-zlib:
a7e609d6
PB
52491@if target-zlib
52492maybe-check-target-zlib: check-target-zlib
70ffc148 52493
8ec98d6c 52494check-target-zlib:
15b527ca 52495 @: $(MAKE); $(unstage)
5230d454
L
52496 @r=`${PWD_COMMAND}`; export r; \
52497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52498 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52499 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 52500 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 52501
a7e609d6 52502@endif target-zlib
c5e4bb70 52503
8ec98d6c
NN
52504.PHONY: install-target-zlib maybe-install-target-zlib
52505maybe-install-target-zlib:
a7e609d6
PB
52506@if target-zlib
52507maybe-install-target-zlib: install-target-zlib
70ffc148 52508
8ec98d6c 52509install-target-zlib: installdirs
15b527ca 52510 @: $(MAKE); $(unstage)
5230d454
L
52511 @r=`${PWD_COMMAND}`; export r; \
52512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52513 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52514 (cd $(TARGET_SUBDIR)/zlib && \
63673a5b 52515 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 52516
a7e609d6 52517@endif target-zlib
d6ebd419 52518
39bbbb69 52519# Other targets (info, dvi, pdf, etc.)
43bdb69a 52520
8ec98d6c
NN
52521.PHONY: maybe-info-target-zlib info-target-zlib
52522maybe-info-target-zlib:
a7e609d6
PB
52523@if target-zlib
52524maybe-info-target-zlib: info-target-zlib
43bdb69a 52525
8ec98d6c
NN
52526info-target-zlib: \
52527 configure-target-zlib
15b527ca 52528 @: $(MAKE); $(unstage)
8ec98d6c 52529 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
52530 r=`${PWD_COMMAND}`; export r; \
52531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52532 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52533 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
52534 for flag in $(EXTRA_TARGET_FLAGS); do \
52535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52536 done; \
52537 (cd $(TARGET_SUBDIR)/zlib && \
52538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52540 "RANLIB=$${RANLIB}" \
bffcbe34 52541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52542 info) \
2245eb63 52543 || exit 1
d6ebd419 52544
a7e609d6 52545@endif target-zlib
d6ebd419 52546
8ec98d6c
NN
52547.PHONY: maybe-dvi-target-zlib dvi-target-zlib
52548maybe-dvi-target-zlib:
a7e609d6
PB
52549@if target-zlib
52550maybe-dvi-target-zlib: dvi-target-zlib
70ffc148 52551
8ec98d6c
NN
52552dvi-target-zlib: \
52553 configure-target-zlib
15b527ca 52554 @: $(MAKE); $(unstage)
8ec98d6c
NN
52555 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52556 r=`${PWD_COMMAND}`; export r; \
5230d454 52557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52558 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52559 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
52560 for flag in $(EXTRA_TARGET_FLAGS); do \
52561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52562 done; \
52563 (cd $(TARGET_SUBDIR)/zlib && \
52564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52566 "RANLIB=$${RANLIB}" \
bffcbe34 52567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52568 dvi) \
8ec98d6c 52569 || exit 1
d6ebd419 52570
a7e609d6 52571@endif target-zlib
c5e4bb70 52572
39bbbb69
DD
52573.PHONY: maybe-pdf-target-zlib pdf-target-zlib
52574maybe-pdf-target-zlib:
52575@if target-zlib
52576maybe-pdf-target-zlib: pdf-target-zlib
52577
52578pdf-target-zlib: \
52579 configure-target-zlib
52580 @: $(MAKE); $(unstage)
52581 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52582 r=`${PWD_COMMAND}`; export r; \
52583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52584 $(NORMAL_TARGET_EXPORTS) \
52585 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
52586 for flag in $(EXTRA_TARGET_FLAGS); do \
52587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52588 done; \
52589 (cd $(TARGET_SUBDIR)/zlib && \
52590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52592 "RANLIB=$${RANLIB}" \
bffcbe34 52593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
52594 pdf) \
52595 || exit 1
52596
52597@endif target-zlib
52598
b6fb961f
MS
52599.PHONY: maybe-html-target-zlib html-target-zlib
52600maybe-html-target-zlib:
52601@if target-zlib
52602maybe-html-target-zlib: html-target-zlib
52603
52604html-target-zlib: \
52605 configure-target-zlib
15b527ca 52606 @: $(MAKE); $(unstage)
b6fb961f
MS
52607 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52608 r=`${PWD_COMMAND}`; export r; \
52609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
52610 $(NORMAL_TARGET_EXPORTS) \
52611 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
52612 for flag in $(EXTRA_TARGET_FLAGS); do \
52613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52614 done; \
52615 (cd $(TARGET_SUBDIR)/zlib && \
52616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52618 "RANLIB=$${RANLIB}" \
bffcbe34 52619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
52620 html) \
52621 || exit 1
52622
52623@endif target-zlib
52624
8ec98d6c
NN
52625.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
52626maybe-TAGS-target-zlib:
a7e609d6
PB
52627@if target-zlib
52628maybe-TAGS-target-zlib: TAGS-target-zlib
70ffc148 52629
8ec98d6c
NN
52630TAGS-target-zlib: \
52631 configure-target-zlib
15b527ca 52632 @: $(MAKE); $(unstage)
8ec98d6c
NN
52633 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52634 r=`${PWD_COMMAND}`; export r; \
5230d454 52635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52636 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52637 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
52638 for flag in $(EXTRA_TARGET_FLAGS); do \
52639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52640 done; \
52641 (cd $(TARGET_SUBDIR)/zlib && \
52642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52644 "RANLIB=$${RANLIB}" \
bffcbe34 52645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52646 TAGS) \
8ec98d6c 52647 || exit 1
d6ebd419 52648
a7e609d6 52649@endif target-zlib
43bdb69a 52650
8ec98d6c
NN
52651.PHONY: maybe-install-info-target-zlib install-info-target-zlib
52652maybe-install-info-target-zlib:
a7e609d6
PB
52653@if target-zlib
52654maybe-install-info-target-zlib: install-info-target-zlib
43bdb69a 52655
8ec98d6c
NN
52656install-info-target-zlib: \
52657 configure-target-zlib \
52658 info-target-zlib
15b527ca 52659 @: $(MAKE); $(unstage)
8ec98d6c 52660 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
52661 r=`${PWD_COMMAND}`; export r; \
52662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52663 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52664 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
52665 for flag in $(EXTRA_TARGET_FLAGS); do \
52666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52667 done; \
52668 (cd $(TARGET_SUBDIR)/zlib && \
52669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52671 "RANLIB=$${RANLIB}" \
bffcbe34 52672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52673 install-info) \
2245eb63 52674 || exit 1
d6ebd419 52675
a7e609d6 52676@endif target-zlib
70ffc148 52677
d4954b6d
DD
52678.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
52679maybe-install-pdf-target-zlib:
52680@if target-zlib
52681maybe-install-pdf-target-zlib: install-pdf-target-zlib
52682
52683install-pdf-target-zlib: \
52684 configure-target-zlib \
52685 pdf-target-zlib
52686 @: $(MAKE); $(unstage)
52687 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52688 r=`${PWD_COMMAND}`; export r; \
52689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52690 $(NORMAL_TARGET_EXPORTS) \
52691 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
52692 for flag in $(EXTRA_TARGET_FLAGS); do \
52693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52694 done; \
52695 (cd $(TARGET_SUBDIR)/zlib && \
52696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52698 "RANLIB=$${RANLIB}" \
bffcbe34 52699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
52700 install-pdf) \
52701 || exit 1
52702
52703@endif target-zlib
52704
83c9add4
CD
52705.PHONY: maybe-install-html-target-zlib install-html-target-zlib
52706maybe-install-html-target-zlib:
52707@if target-zlib
52708maybe-install-html-target-zlib: install-html-target-zlib
52709
52710install-html-target-zlib: \
52711 configure-target-zlib \
52712 html-target-zlib
52713 @: $(MAKE); $(unstage)
52714 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52715 r=`${PWD_COMMAND}`; export r; \
52716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52717 $(NORMAL_TARGET_EXPORTS) \
52718 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
52719 for flag in $(EXTRA_TARGET_FLAGS); do \
52720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52721 done; \
52722 (cd $(TARGET_SUBDIR)/zlib && \
52723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52725 "RANLIB=$${RANLIB}" \
bffcbe34 52726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
52727 install-html) \
52728 || exit 1
52729
52730@endif target-zlib
52731
8ec98d6c
NN
52732.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
52733maybe-installcheck-target-zlib:
a7e609d6
PB
52734@if target-zlib
52735maybe-installcheck-target-zlib: installcheck-target-zlib
8ecc6504 52736
8ec98d6c
NN
52737installcheck-target-zlib: \
52738 configure-target-zlib
15b527ca 52739 @: $(MAKE); $(unstage)
8ec98d6c
NN
52740 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52741 r=`${PWD_COMMAND}`; export r; \
52742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52743 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52744 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
52745 for flag in $(EXTRA_TARGET_FLAGS); do \
52746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52747 done; \
52748 (cd $(TARGET_SUBDIR)/zlib && \
52749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52751 "RANLIB=$${RANLIB}" \
bffcbe34 52752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52753 installcheck) \
8ec98d6c 52754 || exit 1
d6ebd419 52755
a7e609d6 52756@endif target-zlib
70ffc148 52757
8ec98d6c
NN
52758.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
52759maybe-mostlyclean-target-zlib:
a7e609d6
PB
52760@if target-zlib
52761maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
c5e4bb70 52762
8ec98d6c 52763mostlyclean-target-zlib:
15b527ca 52764 @: $(MAKE); $(unstage)
8ec98d6c
NN
52765 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52766 r=`${PWD_COMMAND}`; export r; \
52767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52768 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52769 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
52770 for flag in $(EXTRA_TARGET_FLAGS); do \
52771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52772 done; \
52773 (cd $(TARGET_SUBDIR)/zlib && \
52774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52776 "RANLIB=$${RANLIB}" \
bffcbe34 52777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52778 mostlyclean) \
8ec98d6c 52779 || exit 1
d6ebd419 52780
a7e609d6 52781@endif target-zlib
43bdb69a 52782
8ec98d6c
NN
52783.PHONY: maybe-clean-target-zlib clean-target-zlib
52784maybe-clean-target-zlib:
a7e609d6
PB
52785@if target-zlib
52786maybe-clean-target-zlib: clean-target-zlib
43bdb69a 52787
8ec98d6c 52788clean-target-zlib:
15b527ca 52789 @: $(MAKE); $(unstage)
8ec98d6c 52790 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
5230d454
L
52791 r=`${PWD_COMMAND}`; export r; \
52792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52793 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52794 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
52795 for flag in $(EXTRA_TARGET_FLAGS); do \
52796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52797 done; \
52798 (cd $(TARGET_SUBDIR)/zlib && \
52799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52801 "RANLIB=$${RANLIB}" \
bffcbe34 52802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52803 clean) \
2245eb63 52804 || exit 1
d6ebd419 52805
a7e609d6 52806@endif target-zlib
d6ebd419 52807
8ec98d6c
NN
52808.PHONY: maybe-distclean-target-zlib distclean-target-zlib
52809maybe-distclean-target-zlib:
a7e609d6
PB
52810@if target-zlib
52811maybe-distclean-target-zlib: distclean-target-zlib
70ffc148 52812
8ec98d6c 52813distclean-target-zlib:
15b527ca 52814 @: $(MAKE); $(unstage)
8ec98d6c
NN
52815 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52816 r=`${PWD_COMMAND}`; export r; \
5230d454 52817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52818 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52819 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
52820 for flag in $(EXTRA_TARGET_FLAGS); do \
52821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52822 done; \
52823 (cd $(TARGET_SUBDIR)/zlib && \
52824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52826 "RANLIB=$${RANLIB}" \
bffcbe34 52827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52828 distclean) \
8ec98d6c 52829 || exit 1
d6ebd419 52830
a7e609d6 52831@endif target-zlib
d6ebd419 52832
8ec98d6c
NN
52833.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
52834maybe-maintainer-clean-target-zlib:
a7e609d6
PB
52835@if target-zlib
52836maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
70ffc148 52837
8ec98d6c 52838maintainer-clean-target-zlib:
15b527ca 52839 @: $(MAKE); $(unstage)
8ec98d6c
NN
52840 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
52841 r=`${PWD_COMMAND}`; export r; \
5230d454 52842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52843 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52844 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
52845 for flag in $(EXTRA_TARGET_FLAGS); do \
52846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52847 done; \
52848 (cd $(TARGET_SUBDIR)/zlib && \
52849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52851 "RANLIB=$${RANLIB}" \
bffcbe34 52852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52853 maintainer-clean) \
8ec98d6c 52854 || exit 1
d6ebd419 52855
a7e609d6 52856@endif target-zlib
c5e4bb70 52857
8ec98d6c 52858
43bdb69a 52859
f0fdfd34 52860
f3fd76d4 52861
f0fdfd34
PB
52862.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
52863maybe-configure-target-boehm-gc:
e1e5148c
CD
52864@if gcc-bootstrap
52865configure-target-boehm-gc: stage_current
52866@endif gcc-bootstrap
f0fdfd34
PB
52867@if target-boehm-gc
52868maybe-configure-target-boehm-gc: configure-target-boehm-gc
ec92c4d6 52869configure-target-boehm-gc:
15b527ca
PB
52870 @: $(MAKE); $(unstage)
52871 @r=`${PWD_COMMAND}`; export r; \
52872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52873 echo "Checking multilib configuration for boehm-gc..."; \
52874 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
52875 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
52876 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
52877 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
52878 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
52879 else \
52880 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
52881 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
52882 fi; \
52883 else \
52884 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
ec92c4d6
PB
52885 fi; \
52886 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
8ec98d6c 52887 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
5074489a 52888 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52889 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
52890 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
2245eb63 52891 case $(srcdir) in \
7fc2ca22
PB
52892 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52893 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
52894 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 52895 esac; \
7fc2ca22
PB
52896 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
52897 libsrcdir="$$s/boehm-gc"; \
2245eb63
NN
52898 rm -f no-such-file || : ; \
52899 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
52900 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
52901 --target=${target_alias} $${srcdiroption} \
2245eb63 52902 || exit 1
a7e609d6 52903@endif target-boehm-gc
d6ebd419 52904
f0fdfd34
PB
52905
52906
a8a96878
PB
52907
52908
8ec98d6c
NN
52909.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
52910maybe-all-target-boehm-gc:
e1e5148c
CD
52911@if gcc-bootstrap
52912all-target-boehm-gc: stage_current
52913@endif gcc-bootstrap
a7e609d6 52914@if target-boehm-gc
6a19fd82 52915TARGET-target-boehm-gc=all
a7e609d6 52916maybe-all-target-boehm-gc: all-target-boehm-gc
8ec98d6c 52917all-target-boehm-gc: configure-target-boehm-gc
15b527ca 52918 @: $(MAKE); $(unstage)
5230d454
L
52919 @r=`${PWD_COMMAND}`; export r; \
52920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 52921 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52922 (cd $(TARGET_SUBDIR)/boehm-gc && \
6532abb6
PB
52923 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
52924 $(TARGET-target-boehm-gc))
a7e609d6 52925@endif target-boehm-gc
d6ebd419 52926
f0fdfd34
PB
52927
52928
a8a96878
PB
52929
52930
8ec98d6c
NN
52931.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
52932maybe-check-target-boehm-gc:
a7e609d6
PB
52933@if target-boehm-gc
52934maybe-check-target-boehm-gc: check-target-boehm-gc
70ffc148 52935
8ec98d6c 52936check-target-boehm-gc:
15b527ca 52937 @: $(MAKE); $(unstage)
5230d454
L
52938 @r=`${PWD_COMMAND}`; export r; \
52939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52940 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52941 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 52942 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
d6ebd419 52943
a7e609d6 52944@endif target-boehm-gc
c5e4bb70 52945
8ec98d6c
NN
52946.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
52947maybe-install-target-boehm-gc:
a7e609d6
PB
52948@if target-boehm-gc
52949maybe-install-target-boehm-gc: install-target-boehm-gc
70ffc148 52950
8ec98d6c 52951install-target-boehm-gc: installdirs
15b527ca 52952 @: $(MAKE); $(unstage)
5230d454
L
52953 @r=`${PWD_COMMAND}`; export r; \
52954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52955 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 52956 (cd $(TARGET_SUBDIR)/boehm-gc && \
63673a5b 52957 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 52958
a7e609d6 52959@endif target-boehm-gc
d6ebd419 52960
39bbbb69 52961# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
52962
52963.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
52964maybe-info-target-boehm-gc:
a7e609d6
PB
52965@if target-boehm-gc
52966maybe-info-target-boehm-gc: info-target-boehm-gc
8ec98d6c
NN
52967
52968info-target-boehm-gc: \
52969 configure-target-boehm-gc
15b527ca 52970 @: $(MAKE); $(unstage)
8ec98d6c
NN
52971 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
52972 r=`${PWD_COMMAND}`; export r; \
52973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 52974 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
52975 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
52976 for flag in $(EXTRA_TARGET_FLAGS); do \
52977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52978 done; \
52979 (cd $(TARGET_SUBDIR)/boehm-gc && \
52980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52982 "RANLIB=$${RANLIB}" \
bffcbe34 52983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 52984 info) \
8ec98d6c
NN
52985 || exit 1
52986
a7e609d6 52987@endif target-boehm-gc
8ec98d6c
NN
52988
52989.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
52990maybe-dvi-target-boehm-gc:
a7e609d6
PB
52991@if target-boehm-gc
52992maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
8ec98d6c
NN
52993
52994dvi-target-boehm-gc: \
52995 configure-target-boehm-gc
15b527ca 52996 @: $(MAKE); $(unstage)
8ec98d6c
NN
52997 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
52998 r=`${PWD_COMMAND}`; export r; \
52999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53000 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53001 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
53002 for flag in $(EXTRA_TARGET_FLAGS); do \
53003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53004 done; \
53005 (cd $(TARGET_SUBDIR)/boehm-gc && \
53006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53008 "RANLIB=$${RANLIB}" \
bffcbe34 53009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53010 dvi) \
8ec98d6c
NN
53011 || exit 1
53012
a7e609d6 53013@endif target-boehm-gc
8ec98d6c 53014
39bbbb69
DD
53015.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
53016maybe-pdf-target-boehm-gc:
53017@if target-boehm-gc
53018maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
53019
53020pdf-target-boehm-gc: \
53021 configure-target-boehm-gc
53022 @: $(MAKE); $(unstage)
53023 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53024 r=`${PWD_COMMAND}`; export r; \
53025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53026 $(NORMAL_TARGET_EXPORTS) \
53027 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
53028 for flag in $(EXTRA_TARGET_FLAGS); do \
53029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53030 done; \
53031 (cd $(TARGET_SUBDIR)/boehm-gc && \
53032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53034 "RANLIB=$${RANLIB}" \
bffcbe34 53035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
53036 pdf) \
53037 || exit 1
53038
53039@endif target-boehm-gc
53040
b6fb961f
MS
53041.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
53042maybe-html-target-boehm-gc:
53043@if target-boehm-gc
53044maybe-html-target-boehm-gc: html-target-boehm-gc
53045
53046html-target-boehm-gc: \
53047 configure-target-boehm-gc
15b527ca 53048 @: $(MAKE); $(unstage)
b6fb961f
MS
53049 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53050 r=`${PWD_COMMAND}`; export r; \
53051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
53052 $(NORMAL_TARGET_EXPORTS) \
53053 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
53054 for flag in $(EXTRA_TARGET_FLAGS); do \
53055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53056 done; \
53057 (cd $(TARGET_SUBDIR)/boehm-gc && \
53058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53060 "RANLIB=$${RANLIB}" \
bffcbe34 53061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
53062 html) \
53063 || exit 1
53064
53065@endif target-boehm-gc
53066
8ec98d6c
NN
53067.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
53068maybe-TAGS-target-boehm-gc:
a7e609d6
PB
53069@if target-boehm-gc
53070maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
8ec98d6c
NN
53071
53072TAGS-target-boehm-gc: \
53073 configure-target-boehm-gc
15b527ca 53074 @: $(MAKE); $(unstage)
8ec98d6c
NN
53075 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53076 r=`${PWD_COMMAND}`; export r; \
53077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53078 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53079 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
53080 for flag in $(EXTRA_TARGET_FLAGS); do \
53081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53082 done; \
53083 (cd $(TARGET_SUBDIR)/boehm-gc && \
53084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53086 "RANLIB=$${RANLIB}" \
bffcbe34 53087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53088 TAGS) \
8ec98d6c
NN
53089 || exit 1
53090
a7e609d6 53091@endif target-boehm-gc
8ec98d6c
NN
53092
53093.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
53094maybe-install-info-target-boehm-gc:
a7e609d6
PB
53095@if target-boehm-gc
53096maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
8ec98d6c
NN
53097
53098install-info-target-boehm-gc: \
53099 configure-target-boehm-gc \
53100 info-target-boehm-gc
15b527ca 53101 @: $(MAKE); $(unstage)
8ec98d6c
NN
53102 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53103 r=`${PWD_COMMAND}`; export r; \
53104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53105 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53106 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
53107 for flag in $(EXTRA_TARGET_FLAGS); do \
53108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53109 done; \
53110 (cd $(TARGET_SUBDIR)/boehm-gc && \
53111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53113 "RANLIB=$${RANLIB}" \
bffcbe34 53114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53115 install-info) \
8ec98d6c
NN
53116 || exit 1
53117
a7e609d6 53118@endif target-boehm-gc
8ec98d6c 53119
d4954b6d
DD
53120.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
53121maybe-install-pdf-target-boehm-gc:
53122@if target-boehm-gc
53123maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
53124
53125install-pdf-target-boehm-gc: \
53126 configure-target-boehm-gc \
53127 pdf-target-boehm-gc
53128 @: $(MAKE); $(unstage)
53129 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53130 r=`${PWD_COMMAND}`; export r; \
53131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53132 $(NORMAL_TARGET_EXPORTS) \
53133 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
53134 for flag in $(EXTRA_TARGET_FLAGS); do \
53135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53136 done; \
53137 (cd $(TARGET_SUBDIR)/boehm-gc && \
53138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53140 "RANLIB=$${RANLIB}" \
bffcbe34 53141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
53142 install-pdf) \
53143 || exit 1
53144
53145@endif target-boehm-gc
53146
83c9add4
CD
53147.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
53148maybe-install-html-target-boehm-gc:
53149@if target-boehm-gc
53150maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
53151
53152install-html-target-boehm-gc: \
53153 configure-target-boehm-gc \
53154 html-target-boehm-gc
53155 @: $(MAKE); $(unstage)
53156 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53157 r=`${PWD_COMMAND}`; export r; \
53158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53159 $(NORMAL_TARGET_EXPORTS) \
53160 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
53161 for flag in $(EXTRA_TARGET_FLAGS); do \
53162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53163 done; \
53164 (cd $(TARGET_SUBDIR)/boehm-gc && \
53165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53167 "RANLIB=$${RANLIB}" \
bffcbe34 53168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
53169 install-html) \
53170 || exit 1
53171
53172@endif target-boehm-gc
53173
8ec98d6c
NN
53174.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
53175maybe-installcheck-target-boehm-gc:
a7e609d6
PB
53176@if target-boehm-gc
53177maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
8ec98d6c
NN
53178
53179installcheck-target-boehm-gc: \
53180 configure-target-boehm-gc
15b527ca 53181 @: $(MAKE); $(unstage)
8ec98d6c
NN
53182 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53183 r=`${PWD_COMMAND}`; export r; \
53184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53185 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53186 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
53187 for flag in $(EXTRA_TARGET_FLAGS); do \
53188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53189 done; \
53190 (cd $(TARGET_SUBDIR)/boehm-gc && \
53191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53193 "RANLIB=$${RANLIB}" \
bffcbe34 53194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53195 installcheck) \
8ec98d6c
NN
53196 || exit 1
53197
a7e609d6 53198@endif target-boehm-gc
8ec98d6c
NN
53199
53200.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
53201maybe-mostlyclean-target-boehm-gc:
a7e609d6
PB
53202@if target-boehm-gc
53203maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
8ec98d6c
NN
53204
53205mostlyclean-target-boehm-gc:
15b527ca 53206 @: $(MAKE); $(unstage)
8ec98d6c
NN
53207 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53208 r=`${PWD_COMMAND}`; export r; \
53209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53210 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53211 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
53212 for flag in $(EXTRA_TARGET_FLAGS); do \
53213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53214 done; \
53215 (cd $(TARGET_SUBDIR)/boehm-gc && \
53216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53218 "RANLIB=$${RANLIB}" \
bffcbe34 53219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53220 mostlyclean) \
8ec98d6c
NN
53221 || exit 1
53222
a7e609d6 53223@endif target-boehm-gc
8ec98d6c
NN
53224
53225.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
53226maybe-clean-target-boehm-gc:
a7e609d6
PB
53227@if target-boehm-gc
53228maybe-clean-target-boehm-gc: clean-target-boehm-gc
8ec98d6c
NN
53229
53230clean-target-boehm-gc:
15b527ca 53231 @: $(MAKE); $(unstage)
8ec98d6c
NN
53232 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53233 r=`${PWD_COMMAND}`; export r; \
53234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53235 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53236 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
53237 for flag in $(EXTRA_TARGET_FLAGS); do \
53238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53239 done; \
53240 (cd $(TARGET_SUBDIR)/boehm-gc && \
53241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53243 "RANLIB=$${RANLIB}" \
bffcbe34 53244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53245 clean) \
8ec98d6c
NN
53246 || exit 1
53247
a7e609d6 53248@endif target-boehm-gc
8ec98d6c
NN
53249
53250.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
53251maybe-distclean-target-boehm-gc:
a7e609d6
PB
53252@if target-boehm-gc
53253maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
8ec98d6c
NN
53254
53255distclean-target-boehm-gc:
15b527ca 53256 @: $(MAKE); $(unstage)
8ec98d6c
NN
53257 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53258 r=`${PWD_COMMAND}`; export r; \
53259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53260 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53261 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
53262 for flag in $(EXTRA_TARGET_FLAGS); do \
53263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53264 done; \
53265 (cd $(TARGET_SUBDIR)/boehm-gc && \
53266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53268 "RANLIB=$${RANLIB}" \
bffcbe34 53269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53270 distclean) \
8ec98d6c
NN
53271 || exit 1
53272
a7e609d6 53273@endif target-boehm-gc
8ec98d6c
NN
53274
53275.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
53276maybe-maintainer-clean-target-boehm-gc:
a7e609d6
PB
53277@if target-boehm-gc
53278maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
8ec98d6c
NN
53279
53280maintainer-clean-target-boehm-gc:
15b527ca 53281 @: $(MAKE); $(unstage)
8ec98d6c
NN
53282 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
53283 r=`${PWD_COMMAND}`; export r; \
53284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53285 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53286 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
53287 for flag in $(EXTRA_TARGET_FLAGS); do \
53288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53289 done; \
53290 (cd $(TARGET_SUBDIR)/boehm-gc && \
53291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53293 "RANLIB=$${RANLIB}" \
bffcbe34 53294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53295 maintainer-clean) \
8ec98d6c
NN
53296 || exit 1
53297
a7e609d6 53298@endif target-boehm-gc
8ec98d6c
NN
53299
53300
43bdb69a 53301
43bdb69a 53302
f0fdfd34
PB
53303
53304.PHONY: configure-target-qthreads maybe-configure-target-qthreads
53305maybe-configure-target-qthreads:
e1e5148c
CD
53306@if gcc-bootstrap
53307configure-target-qthreads: stage_current
53308@endif gcc-bootstrap
f0fdfd34
PB
53309@if target-qthreads
53310maybe-configure-target-qthreads: configure-target-qthreads
ec92c4d6 53311configure-target-qthreads:
15b527ca
PB
53312 @: $(MAKE); $(unstage)
53313 @r=`${PWD_COMMAND}`; export r; \
53314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53315 echo "Checking multilib configuration for qthreads..."; \
53316 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
53317 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \
53318 if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \
53319 if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \
53320 rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \
53321 else \
53322 rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \
53323 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
53324 fi; \
53325 else \
53326 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
ec92c4d6
PB
53327 fi; \
53328 test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
8ec98d6c 53329 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
5074489a 53330 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53331 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
53332 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
2245eb63 53333 case $(srcdir) in \
7fc2ca22
PB
53334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53335 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
53336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 53337 esac; \
7fc2ca22
PB
53338 srcdiroption="--srcdir=$${topdir}/qthreads"; \
53339 libsrcdir="$$s/qthreads"; \
2245eb63
NN
53340 rm -f no-such-file || : ; \
53341 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
53342 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
53343 --target=${target_alias} $${srcdiroption} \
2245eb63 53344 || exit 1
a7e609d6 53345@endif target-qthreads
a3acbf46 53346
f0fdfd34
PB
53347
53348
a8a96878
PB
53349
53350
8ec98d6c
NN
53351.PHONY: all-target-qthreads maybe-all-target-qthreads
53352maybe-all-target-qthreads:
e1e5148c
CD
53353@if gcc-bootstrap
53354all-target-qthreads: stage_current
53355@endif gcc-bootstrap
a7e609d6 53356@if target-qthreads
6a19fd82 53357TARGET-target-qthreads=all
a7e609d6 53358maybe-all-target-qthreads: all-target-qthreads
8ec98d6c 53359all-target-qthreads: configure-target-qthreads
15b527ca 53360 @: $(MAKE); $(unstage)
5230d454
L
53361 @r=`${PWD_COMMAND}`; export r; \
53362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 53363 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53364 (cd $(TARGET_SUBDIR)/qthreads && \
6532abb6
PB
53365 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
53366 $(TARGET-target-qthreads))
a7e609d6 53367@endif target-qthreads
a3acbf46 53368
f0fdfd34
PB
53369
53370
a8a96878
PB
53371
53372
8ec98d6c
NN
53373.PHONY: check-target-qthreads maybe-check-target-qthreads
53374maybe-check-target-qthreads:
a7e609d6
PB
53375@if target-qthreads
53376maybe-check-target-qthreads: check-target-qthreads
70ffc148 53377
8ec98d6c 53378check-target-qthreads:
15b527ca 53379 @: $(MAKE); $(unstage)
5230d454
L
53380 @r=`${PWD_COMMAND}`; export r; \
53381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53382 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53383 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 53384 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 53385
a7e609d6 53386@endif target-qthreads
c5e4bb70 53387
8ec98d6c
NN
53388.PHONY: install-target-qthreads maybe-install-target-qthreads
53389maybe-install-target-qthreads:
a7e609d6
PB
53390@if target-qthreads
53391maybe-install-target-qthreads: install-target-qthreads
8ec98d6c
NN
53392
53393install-target-qthreads: installdirs
15b527ca 53394 @: $(MAKE); $(unstage)
8ec98d6c
NN
53395 @r=`${PWD_COMMAND}`; export r; \
53396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53397 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53398 (cd $(TARGET_SUBDIR)/qthreads && \
63673a5b 53399 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 53400
a7e609d6 53401@endif target-qthreads
8ec98d6c 53402
39bbbb69 53403# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
53404
53405.PHONY: maybe-info-target-qthreads info-target-qthreads
53406maybe-info-target-qthreads:
a7e609d6
PB
53407@if target-qthreads
53408maybe-info-target-qthreads: info-target-qthreads
8ec98d6c
NN
53409
53410info-target-qthreads: \
53411 configure-target-qthreads
15b527ca 53412 @: $(MAKE); $(unstage)
8ec98d6c
NN
53413 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53414 r=`${PWD_COMMAND}`; export r; \
53415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53416 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53417 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
53418 for flag in $(EXTRA_TARGET_FLAGS); do \
53419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53420 done; \
53421 (cd $(TARGET_SUBDIR)/qthreads && \
53422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53424 "RANLIB=$${RANLIB}" \
bffcbe34 53425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53426 info) \
8ec98d6c
NN
53427 || exit 1
53428
a7e609d6 53429@endif target-qthreads
8ec98d6c
NN
53430
53431.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
53432maybe-dvi-target-qthreads:
a7e609d6
PB
53433@if target-qthreads
53434maybe-dvi-target-qthreads: dvi-target-qthreads
8ec98d6c
NN
53435
53436dvi-target-qthreads: \
53437 configure-target-qthreads
15b527ca 53438 @: $(MAKE); $(unstage)
8ec98d6c
NN
53439 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53440 r=`${PWD_COMMAND}`; export r; \
53441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53442 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53443 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
53444 for flag in $(EXTRA_TARGET_FLAGS); do \
53445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53446 done; \
53447 (cd $(TARGET_SUBDIR)/qthreads && \
53448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53450 "RANLIB=$${RANLIB}" \
bffcbe34 53451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53452 dvi) \
8ec98d6c
NN
53453 || exit 1
53454
a7e609d6 53455@endif target-qthreads
8ec98d6c 53456
39bbbb69
DD
53457.PHONY: maybe-pdf-target-qthreads pdf-target-qthreads
53458maybe-pdf-target-qthreads:
53459@if target-qthreads
53460maybe-pdf-target-qthreads: pdf-target-qthreads
53461
53462pdf-target-qthreads: \
53463 configure-target-qthreads
53464 @: $(MAKE); $(unstage)
53465 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53466 r=`${PWD_COMMAND}`; export r; \
53467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53468 $(NORMAL_TARGET_EXPORTS) \
53469 echo "Doing pdf in $(TARGET_SUBDIR)/qthreads" ; \
53470 for flag in $(EXTRA_TARGET_FLAGS); do \
53471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53472 done; \
53473 (cd $(TARGET_SUBDIR)/qthreads && \
53474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53476 "RANLIB=$${RANLIB}" \
bffcbe34 53477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
53478 pdf) \
53479 || exit 1
53480
53481@endif target-qthreads
53482
b6fb961f
MS
53483.PHONY: maybe-html-target-qthreads html-target-qthreads
53484maybe-html-target-qthreads:
53485@if target-qthreads
53486maybe-html-target-qthreads: html-target-qthreads
53487
53488html-target-qthreads: \
53489 configure-target-qthreads
15b527ca 53490 @: $(MAKE); $(unstage)
b6fb961f
MS
53491 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53492 r=`${PWD_COMMAND}`; export r; \
53493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
53494 $(NORMAL_TARGET_EXPORTS) \
53495 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
53496 for flag in $(EXTRA_TARGET_FLAGS); do \
53497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53498 done; \
53499 (cd $(TARGET_SUBDIR)/qthreads && \
53500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53502 "RANLIB=$${RANLIB}" \
bffcbe34 53503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
53504 html) \
53505 || exit 1
53506
53507@endif target-qthreads
53508
8ec98d6c
NN
53509.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
53510maybe-TAGS-target-qthreads:
a7e609d6
PB
53511@if target-qthreads
53512maybe-TAGS-target-qthreads: TAGS-target-qthreads
8ec98d6c
NN
53513
53514TAGS-target-qthreads: \
53515 configure-target-qthreads
15b527ca 53516 @: $(MAKE); $(unstage)
8ec98d6c
NN
53517 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53518 r=`${PWD_COMMAND}`; export r; \
53519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53520 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53521 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
53522 for flag in $(EXTRA_TARGET_FLAGS); do \
53523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53524 done; \
53525 (cd $(TARGET_SUBDIR)/qthreads && \
53526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53528 "RANLIB=$${RANLIB}" \
bffcbe34 53529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53530 TAGS) \
8ec98d6c
NN
53531 || exit 1
53532
a7e609d6 53533@endif target-qthreads
8ec98d6c
NN
53534
53535.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
53536maybe-install-info-target-qthreads:
a7e609d6
PB
53537@if target-qthreads
53538maybe-install-info-target-qthreads: install-info-target-qthreads
8ec98d6c
NN
53539
53540install-info-target-qthreads: \
53541 configure-target-qthreads \
53542 info-target-qthreads
15b527ca 53543 @: $(MAKE); $(unstage)
8ec98d6c
NN
53544 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53545 r=`${PWD_COMMAND}`; export r; \
53546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53547 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53548 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
53549 for flag in $(EXTRA_TARGET_FLAGS); do \
53550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53551 done; \
53552 (cd $(TARGET_SUBDIR)/qthreads && \
53553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53555 "RANLIB=$${RANLIB}" \
bffcbe34 53556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53557 install-info) \
8ec98d6c
NN
53558 || exit 1
53559
a7e609d6 53560@endif target-qthreads
8ec98d6c 53561
d4954b6d
DD
53562.PHONY: maybe-install-pdf-target-qthreads install-pdf-target-qthreads
53563maybe-install-pdf-target-qthreads:
53564@if target-qthreads
53565maybe-install-pdf-target-qthreads: install-pdf-target-qthreads
53566
53567install-pdf-target-qthreads: \
53568 configure-target-qthreads \
53569 pdf-target-qthreads
53570 @: $(MAKE); $(unstage)
53571 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53572 r=`${PWD_COMMAND}`; export r; \
53573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53574 $(NORMAL_TARGET_EXPORTS) \
53575 echo "Doing install-pdf in $(TARGET_SUBDIR)/qthreads" ; \
53576 for flag in $(EXTRA_TARGET_FLAGS); do \
53577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53578 done; \
53579 (cd $(TARGET_SUBDIR)/qthreads && \
53580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53582 "RANLIB=$${RANLIB}" \
bffcbe34 53583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
53584 install-pdf) \
53585 || exit 1
53586
53587@endif target-qthreads
53588
83c9add4
CD
53589.PHONY: maybe-install-html-target-qthreads install-html-target-qthreads
53590maybe-install-html-target-qthreads:
53591@if target-qthreads
53592maybe-install-html-target-qthreads: install-html-target-qthreads
53593
53594install-html-target-qthreads: \
53595 configure-target-qthreads \
53596 html-target-qthreads
53597 @: $(MAKE); $(unstage)
53598 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53599 r=`${PWD_COMMAND}`; export r; \
53600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53601 $(NORMAL_TARGET_EXPORTS) \
53602 echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \
53603 for flag in $(EXTRA_TARGET_FLAGS); do \
53604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53605 done; \
53606 (cd $(TARGET_SUBDIR)/qthreads && \
53607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53609 "RANLIB=$${RANLIB}" \
bffcbe34 53610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
53611 install-html) \
53612 || exit 1
53613
53614@endif target-qthreads
53615
8ec98d6c
NN
53616.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
53617maybe-installcheck-target-qthreads:
a7e609d6
PB
53618@if target-qthreads
53619maybe-installcheck-target-qthreads: installcheck-target-qthreads
8ec98d6c
NN
53620
53621installcheck-target-qthreads: \
53622 configure-target-qthreads
15b527ca 53623 @: $(MAKE); $(unstage)
8ec98d6c
NN
53624 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53625 r=`${PWD_COMMAND}`; export r; \
53626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53627 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53628 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
53629 for flag in $(EXTRA_TARGET_FLAGS); do \
53630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53631 done; \
53632 (cd $(TARGET_SUBDIR)/qthreads && \
53633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53635 "RANLIB=$${RANLIB}" \
bffcbe34 53636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53637 installcheck) \
8ec98d6c
NN
53638 || exit 1
53639
a7e609d6 53640@endif target-qthreads
8ec98d6c
NN
53641
53642.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
53643maybe-mostlyclean-target-qthreads:
a7e609d6
PB
53644@if target-qthreads
53645maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
8ec98d6c
NN
53646
53647mostlyclean-target-qthreads:
15b527ca 53648 @: $(MAKE); $(unstage)
8ec98d6c
NN
53649 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53650 r=`${PWD_COMMAND}`; export r; \
53651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53652 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53653 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
53654 for flag in $(EXTRA_TARGET_FLAGS); do \
53655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53656 done; \
53657 (cd $(TARGET_SUBDIR)/qthreads && \
53658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53660 "RANLIB=$${RANLIB}" \
bffcbe34 53661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53662 mostlyclean) \
8ec98d6c
NN
53663 || exit 1
53664
a7e609d6 53665@endif target-qthreads
8ec98d6c
NN
53666
53667.PHONY: maybe-clean-target-qthreads clean-target-qthreads
53668maybe-clean-target-qthreads:
a7e609d6
PB
53669@if target-qthreads
53670maybe-clean-target-qthreads: clean-target-qthreads
8ec98d6c
NN
53671
53672clean-target-qthreads:
15b527ca 53673 @: $(MAKE); $(unstage)
8ec98d6c
NN
53674 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53675 r=`${PWD_COMMAND}`; export r; \
53676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53677 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53678 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
53679 for flag in $(EXTRA_TARGET_FLAGS); do \
53680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53681 done; \
53682 (cd $(TARGET_SUBDIR)/qthreads && \
53683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53685 "RANLIB=$${RANLIB}" \
bffcbe34 53686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53687 clean) \
8ec98d6c
NN
53688 || exit 1
53689
a7e609d6 53690@endif target-qthreads
8ec98d6c
NN
53691
53692.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
53693maybe-distclean-target-qthreads:
a7e609d6
PB
53694@if target-qthreads
53695maybe-distclean-target-qthreads: distclean-target-qthreads
8ec98d6c
NN
53696
53697distclean-target-qthreads:
15b527ca 53698 @: $(MAKE); $(unstage)
8ec98d6c
NN
53699 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53700 r=`${PWD_COMMAND}`; export r; \
53701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53702 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53703 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
53704 for flag in $(EXTRA_TARGET_FLAGS); do \
53705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53706 done; \
53707 (cd $(TARGET_SUBDIR)/qthreads && \
53708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53710 "RANLIB=$${RANLIB}" \
bffcbe34 53711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53712 distclean) \
8ec98d6c
NN
53713 || exit 1
53714
a7e609d6 53715@endif target-qthreads
8ec98d6c
NN
53716
53717.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
53718maybe-maintainer-clean-target-qthreads:
a7e609d6
PB
53719@if target-qthreads
53720maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
8ec98d6c
NN
53721
53722maintainer-clean-target-qthreads:
15b527ca 53723 @: $(MAKE); $(unstage)
8ec98d6c
NN
53724 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
53725 r=`${PWD_COMMAND}`; export r; \
53726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53727 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53728 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
53729 for flag in $(EXTRA_TARGET_FLAGS); do \
53730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53731 done; \
53732 (cd $(TARGET_SUBDIR)/qthreads && \
53733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53735 "RANLIB=$${RANLIB}" \
bffcbe34 53736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53737 maintainer-clean) \
8ec98d6c 53738 || exit 1
70ffc148 53739
a7e609d6 53740@endif target-qthreads
f66d1936 53741
d6ebd419 53742
43bdb69a 53743
f3fd76d4 53744
f0fdfd34
PB
53745
53746.PHONY: configure-target-rda maybe-configure-target-rda
53747maybe-configure-target-rda:
e1e5148c
CD
53748@if gcc-bootstrap
53749configure-target-rda: stage_current
53750@endif gcc-bootstrap
f0fdfd34
PB
53751@if target-rda
53752maybe-configure-target-rda: configure-target-rda
ec92c4d6 53753configure-target-rda:
15b527ca
PB
53754 @: $(MAKE); $(unstage)
53755 @r=`${PWD_COMMAND}`; export r; \
53756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53757 echo "Checking multilib configuration for rda..."; \
53758 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
53759 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
53760 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
53761 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
53762 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
53763 else \
53764 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
53765 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
53766 fi; \
53767 else \
53768 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
ec92c4d6
PB
53769 fi; \
53770 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
8ec98d6c 53771 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
5074489a 53772 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53773 echo Configuring in $(TARGET_SUBDIR)/rda; \
53774 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
2245eb63 53775 case $(srcdir) in \
7fc2ca22
PB
53776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53777 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
53778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
2245eb63 53779 esac; \
7fc2ca22
PB
53780 srcdiroption="--srcdir=$${topdir}/rda"; \
53781 libsrcdir="$$s/rda"; \
2245eb63
NN
53782 rm -f no-such-file || : ; \
53783 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
53784 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
53785 --target=${target_alias} $${srcdiroption} \
2245eb63 53786 || exit 1
a7e609d6 53787@endif target-rda
f66d1936 53788
f0fdfd34
PB
53789
53790
a8a96878
PB
53791
53792
8ec98d6c
NN
53793.PHONY: all-target-rda maybe-all-target-rda
53794maybe-all-target-rda:
e1e5148c
CD
53795@if gcc-bootstrap
53796all-target-rda: stage_current
53797@endif gcc-bootstrap
a7e609d6 53798@if target-rda
6a19fd82 53799TARGET-target-rda=all
a7e609d6 53800maybe-all-target-rda: all-target-rda
8ec98d6c 53801all-target-rda: configure-target-rda
15b527ca 53802 @: $(MAKE); $(unstage)
5230d454
L
53803 @r=`${PWD_COMMAND}`; export r; \
53804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 53805 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53806 (cd $(TARGET_SUBDIR)/rda && \
6532abb6
PB
53807 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
53808 $(TARGET-target-rda))
a7e609d6 53809@endif target-rda
a3acbf46 53810
f0fdfd34
PB
53811
53812
a8a96878
PB
53813
53814
8ec98d6c
NN
53815.PHONY: check-target-rda maybe-check-target-rda
53816maybe-check-target-rda:
a7e609d6
PB
53817@if target-rda
53818maybe-check-target-rda: check-target-rda
70ffc148 53819
8ec98d6c 53820check-target-rda:
15b527ca 53821 @: $(MAKE); $(unstage)
5230d454
L
53822 @r=`${PWD_COMMAND}`; export r; \
53823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53824 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53825 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 53826 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
a3acbf46 53827
a7e609d6 53828@endif target-rda
c5e4bb70 53829
8ec98d6c
NN
53830.PHONY: install-target-rda maybe-install-target-rda
53831maybe-install-target-rda:
a7e609d6
PB
53832@if target-rda
53833maybe-install-target-rda: install-target-rda
70ffc148 53834
8ec98d6c 53835install-target-rda: installdirs
15b527ca 53836 @: $(MAKE); $(unstage)
5230d454
L
53837 @r=`${PWD_COMMAND}`; export r; \
53838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53839 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 53840 (cd $(TARGET_SUBDIR)/rda && \
63673a5b 53841 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
d6ebd419 53842
a7e609d6 53843@endif target-rda
d6ebd419 53844
39bbbb69 53845# Other targets (info, dvi, pdf, etc.)
43bdb69a 53846
8ec98d6c
NN
53847.PHONY: maybe-info-target-rda info-target-rda
53848maybe-info-target-rda:
a7e609d6
PB
53849@if target-rda
53850maybe-info-target-rda: info-target-rda
43bdb69a 53851
8ec98d6c
NN
53852info-target-rda: \
53853 configure-target-rda
15b527ca 53854 @: $(MAKE); $(unstage)
8ec98d6c 53855 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
53856 r=`${PWD_COMMAND}`; export r; \
53857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53858 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53859 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
53860 for flag in $(EXTRA_TARGET_FLAGS); do \
53861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53862 done; \
53863 (cd $(TARGET_SUBDIR)/rda && \
53864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53866 "RANLIB=$${RANLIB}" \
bffcbe34 53867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53868 info) \
2245eb63 53869 || exit 1
a3acbf46 53870
a7e609d6 53871@endif target-rda
8ec98d6c
NN
53872
53873.PHONY: maybe-dvi-target-rda dvi-target-rda
53874maybe-dvi-target-rda:
a7e609d6
PB
53875@if target-rda
53876maybe-dvi-target-rda: dvi-target-rda
8ec98d6c
NN
53877
53878dvi-target-rda: \
53879 configure-target-rda
15b527ca 53880 @: $(MAKE); $(unstage)
8ec98d6c
NN
53881 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
53882 r=`${PWD_COMMAND}`; export r; \
5230d454 53883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53884 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53885 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
53886 for flag in $(EXTRA_TARGET_FLAGS); do \
53887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53888 done; \
53889 (cd $(TARGET_SUBDIR)/rda && \
53890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53892 "RANLIB=$${RANLIB}" \
bffcbe34 53893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53894 dvi) \
8ec98d6c 53895 || exit 1
a3acbf46 53896
a7e609d6 53897@endif target-rda
70ffc148 53898
39bbbb69
DD
53899.PHONY: maybe-pdf-target-rda pdf-target-rda
53900maybe-pdf-target-rda:
53901@if target-rda
53902maybe-pdf-target-rda: pdf-target-rda
53903
53904pdf-target-rda: \
53905 configure-target-rda
53906 @: $(MAKE); $(unstage)
53907 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
53908 r=`${PWD_COMMAND}`; export r; \
53909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53910 $(NORMAL_TARGET_EXPORTS) \
53911 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
53912 for flag in $(EXTRA_TARGET_FLAGS); do \
53913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53914 done; \
53915 (cd $(TARGET_SUBDIR)/rda && \
53916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53918 "RANLIB=$${RANLIB}" \
bffcbe34 53919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
53920 pdf) \
53921 || exit 1
53922
53923@endif target-rda
53924
b6fb961f
MS
53925.PHONY: maybe-html-target-rda html-target-rda
53926maybe-html-target-rda:
53927@if target-rda
53928maybe-html-target-rda: html-target-rda
53929
53930html-target-rda: \
53931 configure-target-rda
15b527ca 53932 @: $(MAKE); $(unstage)
b6fb961f
MS
53933 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
53934 r=`${PWD_COMMAND}`; export r; \
53935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
53936 $(NORMAL_TARGET_EXPORTS) \
53937 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
53938 for flag in $(EXTRA_TARGET_FLAGS); do \
53939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53940 done; \
53941 (cd $(TARGET_SUBDIR)/rda && \
53942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53944 "RANLIB=$${RANLIB}" \
bffcbe34 53945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
53946 html) \
53947 || exit 1
53948
53949@endif target-rda
53950
8ec98d6c
NN
53951.PHONY: maybe-TAGS-target-rda TAGS-target-rda
53952maybe-TAGS-target-rda:
a7e609d6
PB
53953@if target-rda
53954maybe-TAGS-target-rda: TAGS-target-rda
8ec98d6c
NN
53955
53956TAGS-target-rda: \
53957 configure-target-rda
15b527ca 53958 @: $(MAKE); $(unstage)
8ec98d6c
NN
53959 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
53960 r=`${PWD_COMMAND}`; export r; \
5230d454 53961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53962 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53963 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
53964 for flag in $(EXTRA_TARGET_FLAGS); do \
53965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53966 done; \
53967 (cd $(TARGET_SUBDIR)/rda && \
53968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53970 "RANLIB=$${RANLIB}" \
bffcbe34 53971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53972 TAGS) \
8ec98d6c 53973 || exit 1
d6ebd419 53974
a7e609d6 53975@endif target-rda
c5e4bb70 53976
8ec98d6c
NN
53977.PHONY: maybe-install-info-target-rda install-info-target-rda
53978maybe-install-info-target-rda:
a7e609d6
PB
53979@if target-rda
53980maybe-install-info-target-rda: install-info-target-rda
70ffc148 53981
8ec98d6c
NN
53982install-info-target-rda: \
53983 configure-target-rda \
53984 info-target-rda
15b527ca 53985 @: $(MAKE); $(unstage)
8ec98d6c
NN
53986 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
53987 r=`${PWD_COMMAND}`; export r; \
5230d454 53988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 53989 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
53990 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
53991 for flag in $(EXTRA_TARGET_FLAGS); do \
53992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53993 done; \
53994 (cd $(TARGET_SUBDIR)/rda && \
53995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53997 "RANLIB=$${RANLIB}" \
bffcbe34 53998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 53999 install-info) \
8ec98d6c 54000 || exit 1
a3acbf46 54001
a7e609d6 54002@endif target-rda
d6ebd419 54003
d4954b6d
DD
54004.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
54005maybe-install-pdf-target-rda:
54006@if target-rda
54007maybe-install-pdf-target-rda: install-pdf-target-rda
54008
54009install-pdf-target-rda: \
54010 configure-target-rda \
54011 pdf-target-rda
54012 @: $(MAKE); $(unstage)
54013 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54014 r=`${PWD_COMMAND}`; export r; \
54015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54016 $(NORMAL_TARGET_EXPORTS) \
54017 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
54018 for flag in $(EXTRA_TARGET_FLAGS); do \
54019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54020 done; \
54021 (cd $(TARGET_SUBDIR)/rda && \
54022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54024 "RANLIB=$${RANLIB}" \
bffcbe34 54025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
54026 install-pdf) \
54027 || exit 1
54028
54029@endif target-rda
54030
83c9add4
CD
54031.PHONY: maybe-install-html-target-rda install-html-target-rda
54032maybe-install-html-target-rda:
54033@if target-rda
54034maybe-install-html-target-rda: install-html-target-rda
54035
54036install-html-target-rda: \
54037 configure-target-rda \
54038 html-target-rda
54039 @: $(MAKE); $(unstage)
54040 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54041 r=`${PWD_COMMAND}`; export r; \
54042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54043 $(NORMAL_TARGET_EXPORTS) \
54044 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
54045 for flag in $(EXTRA_TARGET_FLAGS); do \
54046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54047 done; \
54048 (cd $(TARGET_SUBDIR)/rda && \
54049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54051 "RANLIB=$${RANLIB}" \
bffcbe34 54052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
54053 install-html) \
54054 || exit 1
54055
54056@endif target-rda
54057
8ec98d6c
NN
54058.PHONY: maybe-installcheck-target-rda installcheck-target-rda
54059maybe-installcheck-target-rda:
a7e609d6
PB
54060@if target-rda
54061maybe-installcheck-target-rda: installcheck-target-rda
43bdb69a 54062
8ec98d6c
NN
54063installcheck-target-rda: \
54064 configure-target-rda
15b527ca 54065 @: $(MAKE); $(unstage)
8ec98d6c
NN
54066 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54067 r=`${PWD_COMMAND}`; export r; \
54068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54069 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54070 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
54071 for flag in $(EXTRA_TARGET_FLAGS); do \
54072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54073 done; \
54074 (cd $(TARGET_SUBDIR)/rda && \
54075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54077 "RANLIB=$${RANLIB}" \
bffcbe34 54078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54079 installcheck) \
8ec98d6c 54080 || exit 1
43bdb69a 54081
a7e609d6 54082@endif target-rda
8ec98d6c
NN
54083
54084.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
54085maybe-mostlyclean-target-rda:
a7e609d6
PB
54086@if target-rda
54087maybe-mostlyclean-target-rda: mostlyclean-target-rda
8ec98d6c
NN
54088
54089mostlyclean-target-rda:
15b527ca 54090 @: $(MAKE); $(unstage)
8ec98d6c 54091 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
5230d454
L
54092 r=`${PWD_COMMAND}`; export r; \
54093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54094 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54095 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
54096 for flag in $(EXTRA_TARGET_FLAGS); do \
54097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54098 done; \
54099 (cd $(TARGET_SUBDIR)/rda && \
54100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54102 "RANLIB=$${RANLIB}" \
bffcbe34 54103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54104 mostlyclean) \
2245eb63 54105 || exit 1
a3acbf46 54106
a7e609d6 54107@endif target-rda
8ec98d6c
NN
54108
54109.PHONY: maybe-clean-target-rda clean-target-rda
54110maybe-clean-target-rda:
a7e609d6
PB
54111@if target-rda
54112maybe-clean-target-rda: clean-target-rda
8ec98d6c
NN
54113
54114clean-target-rda:
15b527ca 54115 @: $(MAKE); $(unstage)
8ec98d6c
NN
54116 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54117 r=`${PWD_COMMAND}`; export r; \
5230d454 54118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54119 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54120 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
54121 for flag in $(EXTRA_TARGET_FLAGS); do \
54122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54123 done; \
2245eb63 54124 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
54125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54127 "RANLIB=$${RANLIB}" \
bffcbe34 54128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54129 clean) \
8ec98d6c 54130 || exit 1
a3acbf46 54131
a7e609d6 54132@endif target-rda
70ffc148 54133
8ec98d6c
NN
54134.PHONY: maybe-distclean-target-rda distclean-target-rda
54135maybe-distclean-target-rda:
a7e609d6
PB
54136@if target-rda
54137maybe-distclean-target-rda: distclean-target-rda
8ec98d6c
NN
54138
54139distclean-target-rda:
15b527ca 54140 @: $(MAKE); $(unstage)
8ec98d6c
NN
54141 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54142 r=`${PWD_COMMAND}`; export r; \
5230d454 54143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54144 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54145 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
54146 for flag in $(EXTRA_TARGET_FLAGS); do \
54147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54148 done; \
2245eb63 54149 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
54150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54152 "RANLIB=$${RANLIB}" \
bffcbe34 54153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54154 distclean) \
8ec98d6c 54155 || exit 1
a3acbf46 54156
a7e609d6 54157@endif target-rda
c5e4bb70 54158
8ec98d6c
NN
54159.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
54160maybe-maintainer-clean-target-rda:
a7e609d6
PB
54161@if target-rda
54162maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
70ffc148 54163
8ec98d6c 54164maintainer-clean-target-rda:
15b527ca 54165 @: $(MAKE); $(unstage)
8ec98d6c
NN
54166 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
54167 r=`${PWD_COMMAND}`; export r; \
5230d454 54168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54169 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54170 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
54171 for flag in $(EXTRA_TARGET_FLAGS); do \
54172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54173 done; \
2245eb63 54174 (cd $(TARGET_SUBDIR)/rda && \
8ec98d6c
NN
54175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54177 "RANLIB=$${RANLIB}" \
bffcbe34 54178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54179 maintainer-clean) \
8ec98d6c
NN
54180 || exit 1
54181
a7e609d6 54182@endif target-rda
a3acbf46 54183
d6ebd419 54184
d832a288 54185
f0fdfd34
PB
54186
54187
54188.PHONY: configure-target-libada maybe-configure-target-libada
54189maybe-configure-target-libada:
e1e5148c
CD
54190@if gcc-bootstrap
54191configure-target-libada: stage_current
54192@endif gcc-bootstrap
f0fdfd34
PB
54193@if target-libada
54194maybe-configure-target-libada: configure-target-libada
ec92c4d6 54195configure-target-libada:
15b527ca
PB
54196 @: $(MAKE); $(unstage)
54197 @r=`${PWD_COMMAND}`; export r; \
54198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54199 echo "Checking multilib configuration for libada..."; \
54200 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
54201 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
54202 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
54203 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
54204 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
54205 else \
54206 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
54207 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
54208 fi; \
54209 else \
54210 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
ec92c4d6
PB
54211 fi; \
54212 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
d832a288 54213 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
5074489a 54214 $(NORMAL_TARGET_EXPORTS) \
d832a288
DD
54215 echo Configuring in $(TARGET_SUBDIR)/libada; \
54216 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
54217 case $(srcdir) in \
7fc2ca22
PB
54218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54219 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
54220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d832a288 54221 esac; \
7fc2ca22
PB
54222 srcdiroption="--srcdir=$${topdir}/libada"; \
54223 libsrcdir="$$s/libada"; \
d832a288
DD
54224 rm -f no-such-file || : ; \
54225 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
54226 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54227 --target=${target_alias} $${srcdiroption} \
d832a288 54228 || exit 1
a7e609d6 54229@endif target-libada
d832a288 54230
f0fdfd34
PB
54231
54232
a8a96878
PB
54233
54234
8ec98d6c
NN
54235.PHONY: all-target-libada maybe-all-target-libada
54236maybe-all-target-libada:
e1e5148c
CD
54237@if gcc-bootstrap
54238all-target-libada: stage_current
54239@endif gcc-bootstrap
a7e609d6 54240@if target-libada
6a19fd82 54241TARGET-target-libada=all
a7e609d6 54242maybe-all-target-libada: all-target-libada
8ec98d6c 54243all-target-libada: configure-target-libada
15b527ca 54244 @: $(MAKE); $(unstage)
8ec98d6c
NN
54245 @r=`${PWD_COMMAND}`; export r; \
54246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 54247 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 54248 (cd $(TARGET_SUBDIR)/libada && \
6532abb6
PB
54249 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
54250 $(TARGET-target-libada))
a7e609d6 54251@endif target-libada
8ec98d6c 54252
f0fdfd34
PB
54253
54254
a8a96878
PB
54255
54256
8ec98d6c
NN
54257.PHONY: check-target-libada maybe-check-target-libada
54258maybe-check-target-libada:
a7e609d6
PB
54259@if target-libada
54260maybe-check-target-libada: check-target-libada
8ec98d6c
NN
54261
54262check-target-libada:
15b527ca 54263 @: $(MAKE); $(unstage)
8ec98d6c
NN
54264 @r=`${PWD_COMMAND}`; export r; \
54265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54266 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 54267 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 54268 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
8ec98d6c 54269
a7e609d6 54270@endif target-libada
8ec98d6c
NN
54271
54272.PHONY: install-target-libada maybe-install-target-libada
54273maybe-install-target-libada:
a7e609d6
PB
54274@if target-libada
54275maybe-install-target-libada: install-target-libada
8ec98d6c
NN
54276
54277install-target-libada: installdirs
15b527ca 54278 @: $(MAKE); $(unstage)
8ec98d6c
NN
54279 @r=`${PWD_COMMAND}`; export r; \
54280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54281 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c 54282 (cd $(TARGET_SUBDIR)/libada && \
63673a5b 54283 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
8ec98d6c 54284
a7e609d6 54285@endif target-libada
8ec98d6c 54286
39bbbb69 54287# Other targets (info, dvi, pdf, etc.)
8ec98d6c
NN
54288
54289.PHONY: maybe-info-target-libada info-target-libada
54290maybe-info-target-libada:
a7e609d6
PB
54291@if target-libada
54292maybe-info-target-libada: info-target-libada
8ec98d6c
NN
54293
54294info-target-libada: \
54295 configure-target-libada
15b527ca 54296 @: $(MAKE); $(unstage)
8ec98d6c
NN
54297 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54298 r=`${PWD_COMMAND}`; export r; \
54299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54300 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54301 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
54302 for flag in $(EXTRA_TARGET_FLAGS); do \
54303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54304 done; \
54305 (cd $(TARGET_SUBDIR)/libada && \
54306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54308 "RANLIB=$${RANLIB}" \
bffcbe34 54309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54310 info) \
8ec98d6c
NN
54311 || exit 1
54312
a7e609d6 54313@endif target-libada
8ec98d6c
NN
54314
54315.PHONY: maybe-dvi-target-libada dvi-target-libada
54316maybe-dvi-target-libada:
a7e609d6
PB
54317@if target-libada
54318maybe-dvi-target-libada: dvi-target-libada
8ec98d6c
NN
54319
54320dvi-target-libada: \
54321 configure-target-libada
15b527ca 54322 @: $(MAKE); $(unstage)
8ec98d6c
NN
54323 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54324 r=`${PWD_COMMAND}`; export r; \
54325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54326 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54327 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
54328 for flag in $(EXTRA_TARGET_FLAGS); do \
54329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54330 done; \
54331 (cd $(TARGET_SUBDIR)/libada && \
54332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54334 "RANLIB=$${RANLIB}" \
bffcbe34 54335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54336 dvi) \
8ec98d6c
NN
54337 || exit 1
54338
a7e609d6 54339@endif target-libada
8ec98d6c 54340
39bbbb69
DD
54341.PHONY: maybe-pdf-target-libada pdf-target-libada
54342maybe-pdf-target-libada:
54343@if target-libada
54344maybe-pdf-target-libada: pdf-target-libada
54345
54346pdf-target-libada: \
54347 configure-target-libada
54348 @: $(MAKE); $(unstage)
54349 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54350 r=`${PWD_COMMAND}`; export r; \
54351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54352 $(NORMAL_TARGET_EXPORTS) \
54353 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
54354 for flag in $(EXTRA_TARGET_FLAGS); do \
54355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54356 done; \
54357 (cd $(TARGET_SUBDIR)/libada && \
54358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54360 "RANLIB=$${RANLIB}" \
bffcbe34 54361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
54362 pdf) \
54363 || exit 1
54364
54365@endif target-libada
54366
b6fb961f
MS
54367.PHONY: maybe-html-target-libada html-target-libada
54368maybe-html-target-libada:
54369@if target-libada
54370maybe-html-target-libada: html-target-libada
54371
54372html-target-libada: \
54373 configure-target-libada
15b527ca 54374 @: $(MAKE); $(unstage)
b6fb961f
MS
54375 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54376 r=`${PWD_COMMAND}`; export r; \
54377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b6fb961f
MS
54378 $(NORMAL_TARGET_EXPORTS) \
54379 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
54380 for flag in $(EXTRA_TARGET_FLAGS); do \
54381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54382 done; \
54383 (cd $(TARGET_SUBDIR)/libada && \
54384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54386 "RANLIB=$${RANLIB}" \
bffcbe34 54387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b6fb961f
MS
54388 html) \
54389 || exit 1
54390
54391@endif target-libada
54392
8ec98d6c
NN
54393.PHONY: maybe-TAGS-target-libada TAGS-target-libada
54394maybe-TAGS-target-libada:
a7e609d6
PB
54395@if target-libada
54396maybe-TAGS-target-libada: TAGS-target-libada
8ec98d6c
NN
54397
54398TAGS-target-libada: \
54399 configure-target-libada
15b527ca 54400 @: $(MAKE); $(unstage)
8ec98d6c
NN
54401 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54402 r=`${PWD_COMMAND}`; export r; \
54403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54404 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54405 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
54406 for flag in $(EXTRA_TARGET_FLAGS); do \
54407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54408 done; \
54409 (cd $(TARGET_SUBDIR)/libada && \
54410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54412 "RANLIB=$${RANLIB}" \
bffcbe34 54413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54414 TAGS) \
8ec98d6c
NN
54415 || exit 1
54416
a7e609d6 54417@endif target-libada
8ec98d6c
NN
54418
54419.PHONY: maybe-install-info-target-libada install-info-target-libada
54420maybe-install-info-target-libada:
a7e609d6
PB
54421@if target-libada
54422maybe-install-info-target-libada: install-info-target-libada
8ec98d6c
NN
54423
54424install-info-target-libada: \
54425 configure-target-libada \
54426 info-target-libada
15b527ca 54427 @: $(MAKE); $(unstage)
8ec98d6c
NN
54428 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54429 r=`${PWD_COMMAND}`; export r; \
54430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54431 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54432 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
54433 for flag in $(EXTRA_TARGET_FLAGS); do \
54434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54435 done; \
54436 (cd $(TARGET_SUBDIR)/libada && \
54437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54439 "RANLIB=$${RANLIB}" \
bffcbe34 54440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54441 install-info) \
8ec98d6c
NN
54442 || exit 1
54443
a7e609d6 54444@endif target-libada
8ec98d6c 54445
d4954b6d
DD
54446.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
54447maybe-install-pdf-target-libada:
54448@if target-libada
54449maybe-install-pdf-target-libada: install-pdf-target-libada
54450
54451install-pdf-target-libada: \
54452 configure-target-libada \
54453 pdf-target-libada
54454 @: $(MAKE); $(unstage)
54455 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54456 r=`${PWD_COMMAND}`; export r; \
54457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54458 $(NORMAL_TARGET_EXPORTS) \
54459 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
54460 for flag in $(EXTRA_TARGET_FLAGS); do \
54461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54462 done; \
54463 (cd $(TARGET_SUBDIR)/libada && \
54464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54466 "RANLIB=$${RANLIB}" \
bffcbe34 54467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
54468 install-pdf) \
54469 || exit 1
54470
54471@endif target-libada
54472
83c9add4
CD
54473.PHONY: maybe-install-html-target-libada install-html-target-libada
54474maybe-install-html-target-libada:
54475@if target-libada
54476maybe-install-html-target-libada: install-html-target-libada
54477
54478install-html-target-libada: \
54479 configure-target-libada \
54480 html-target-libada
54481 @: $(MAKE); $(unstage)
54482 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54483 r=`${PWD_COMMAND}`; export r; \
54484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54485 $(NORMAL_TARGET_EXPORTS) \
54486 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
54487 for flag in $(EXTRA_TARGET_FLAGS); do \
54488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54489 done; \
54490 (cd $(TARGET_SUBDIR)/libada && \
54491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54493 "RANLIB=$${RANLIB}" \
bffcbe34 54494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
54495 install-html) \
54496 || exit 1
54497
54498@endif target-libada
54499
8ec98d6c
NN
54500.PHONY: maybe-installcheck-target-libada installcheck-target-libada
54501maybe-installcheck-target-libada:
a7e609d6
PB
54502@if target-libada
54503maybe-installcheck-target-libada: installcheck-target-libada
8ec98d6c
NN
54504
54505installcheck-target-libada: \
54506 configure-target-libada
15b527ca 54507 @: $(MAKE); $(unstage)
8ec98d6c
NN
54508 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54509 r=`${PWD_COMMAND}`; export r; \
54510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54511 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54512 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
54513 for flag in $(EXTRA_TARGET_FLAGS); do \
54514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54515 done; \
54516 (cd $(TARGET_SUBDIR)/libada && \
54517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54519 "RANLIB=$${RANLIB}" \
bffcbe34 54520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54521 installcheck) \
8ec98d6c
NN
54522 || exit 1
54523
a7e609d6 54524@endif target-libada
8ec98d6c
NN
54525
54526.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
54527maybe-mostlyclean-target-libada:
a7e609d6
PB
54528@if target-libada
54529maybe-mostlyclean-target-libada: mostlyclean-target-libada
8ec98d6c
NN
54530
54531mostlyclean-target-libada:
15b527ca 54532 @: $(MAKE); $(unstage)
8ec98d6c
NN
54533 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54534 r=`${PWD_COMMAND}`; export r; \
54535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54536 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54537 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
54538 for flag in $(EXTRA_TARGET_FLAGS); do \
54539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54540 done; \
54541 (cd $(TARGET_SUBDIR)/libada && \
54542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54544 "RANLIB=$${RANLIB}" \
bffcbe34 54545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54546 mostlyclean) \
8ec98d6c
NN
54547 || exit 1
54548
a7e609d6 54549@endif target-libada
8ec98d6c
NN
54550
54551.PHONY: maybe-clean-target-libada clean-target-libada
54552maybe-clean-target-libada:
a7e609d6
PB
54553@if target-libada
54554maybe-clean-target-libada: clean-target-libada
8ec98d6c
NN
54555
54556clean-target-libada:
15b527ca 54557 @: $(MAKE); $(unstage)
8ec98d6c
NN
54558 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54559 r=`${PWD_COMMAND}`; export r; \
54560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54561 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54562 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
54563 for flag in $(EXTRA_TARGET_FLAGS); do \
54564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54565 done; \
54566 (cd $(TARGET_SUBDIR)/libada && \
54567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54569 "RANLIB=$${RANLIB}" \
bffcbe34 54570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54571 clean) \
8ec98d6c
NN
54572 || exit 1
54573
a7e609d6 54574@endif target-libada
d832a288 54575
8ec98d6c
NN
54576.PHONY: maybe-distclean-target-libada distclean-target-libada
54577maybe-distclean-target-libada:
a7e609d6
PB
54578@if target-libada
54579maybe-distclean-target-libada: distclean-target-libada
d832a288 54580
8ec98d6c 54581distclean-target-libada:
15b527ca 54582 @: $(MAKE); $(unstage)
8ec98d6c
NN
54583 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54584 r=`${PWD_COMMAND}`; export r; \
d832a288 54585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54586 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54587 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
54588 for flag in $(EXTRA_TARGET_FLAGS); do \
54589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54590 done; \
d832a288 54591 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
54592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54594 "RANLIB=$${RANLIB}" \
bffcbe34 54595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54596 distclean) \
8ec98d6c 54597 || exit 1
d832a288 54598
a7e609d6 54599@endif target-libada
d832a288 54600
8ec98d6c
NN
54601.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
54602maybe-maintainer-clean-target-libada:
a7e609d6
PB
54603@if target-libada
54604maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d832a288 54605
8ec98d6c 54606maintainer-clean-target-libada:
15b527ca 54607 @: $(MAKE); $(unstage)
8ec98d6c
NN
54608 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
54609 r=`${PWD_COMMAND}`; export r; \
d832a288 54610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a675b75a 54611 $(NORMAL_TARGET_EXPORTS) \
8ec98d6c
NN
54612 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
54613 for flag in $(EXTRA_TARGET_FLAGS); do \
54614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54615 done; \
d832a288 54616 (cd $(TARGET_SUBDIR)/libada && \
8ec98d6c
NN
54617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54619 "RANLIB=$${RANLIB}" \
bffcbe34 54620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
63673a5b 54621 maintainer-clean) \
8ec98d6c
NN
54622 || exit 1
54623
a7e609d6 54624@endif target-libada
d832a288
DD
54625
54626
d6ebd419 54627
00bc9d7f
PB
54628
54629
54630.PHONY: configure-target-libgomp maybe-configure-target-libgomp
54631maybe-configure-target-libgomp:
e1e5148c
CD
54632@if gcc-bootstrap
54633configure-target-libgomp: stage_current
54634@endif gcc-bootstrap
00bc9d7f
PB
54635@if target-libgomp
54636maybe-configure-target-libgomp: configure-target-libgomp
ec92c4d6 54637configure-target-libgomp:
00bc9d7f
PB
54638 @r=`${PWD_COMMAND}`; export r; \
54639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54640 echo "Checking multilib configuration for libgomp..."; \
54641 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54642 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54643 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54644 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54645 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54646 else \
54647 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54648 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54649 fi; \
54650 else \
54651 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
ec92c4d6
PB
54652 fi; \
54653 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
00bc9d7f 54654 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
5074489a 54655 $(NORMAL_TARGET_EXPORTS) \
00bc9d7f
PB
54656 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
54657 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
54658 case $(srcdir) in \
54659 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54660 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54661 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54662 esac; \
54663 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54664 libsrcdir="$$s/libgomp"; \
54665 rm -f no-such-file || : ; \
54666 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
42f55f77
PB
54667 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54668 --target=${target_alias} $${srcdiroption} \
00bc9d7f
PB
54669 || exit 1
54670@endif target-libgomp
54671
54672
54673
e894eef9
JR
54674.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
54675maybe-configure-stage1-target-libgomp:
54676@if target-libgomp-bootstrap
54677maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
54678configure-stage1-target-libgomp:
54679 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
54680 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54681 @r=`${PWD_COMMAND}`; export r; \
54682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54683 TFLAGS="$(STAGE1_TFLAGS)"; \
54684 echo "Checking multilib configuration for libgomp..."; \
54685 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54686 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54687 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54688 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54689 else \
54690 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54691 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54692 fi; \
54693 else \
54694 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54695 fi; \
54696 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54697 $(NORMAL_TARGET_EXPORTS) \
54698 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54699 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54700 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54701 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
54702 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54703 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54704 case $(srcdir) in \
54705 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54706 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54707 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54708 esac; \
54709 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54710 libsrcdir="$$s/libgomp"; \
54711 $(SHELL) $${libsrcdir}/configure \
54712 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54713 --target=${target_alias} $${srcdiroption} \
54714 $(STAGE1_CONFIGURE_FLAGS)
54715@endif target-libgomp-bootstrap
54716
54717.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
54718maybe-configure-stage2-target-libgomp:
54719@if target-libgomp-bootstrap
54720maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
54721configure-stage2-target-libgomp:
54722 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
54723 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54724 @r=`${PWD_COMMAND}`; export r; \
54725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54726 TFLAGS="$(STAGE2_TFLAGS)"; \
54727 echo "Checking multilib configuration for libgomp..."; \
54728 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54729 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54730 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54731 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54732 else \
54733 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54734 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54735 fi; \
54736 else \
54737 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54738 fi; \
54739 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54740 $(NORMAL_TARGET_EXPORTS) \
54741 \
54742 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54743 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54744 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54745 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
54746 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54747 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54748 case $(srcdir) in \
54749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54750 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54752 esac; \
54753 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54754 libsrcdir="$$s/libgomp"; \
54755 $(SHELL) $${libsrcdir}/configure \
54756 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54757 --target=${target_alias} $${srcdiroption} \
54758 --with-build-libsubdir=$(HOST_SUBDIR) \
54759 $(STAGE2_CONFIGURE_FLAGS)
54760@endif target-libgomp-bootstrap
54761
54762.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
54763maybe-configure-stage3-target-libgomp:
54764@if target-libgomp-bootstrap
54765maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
54766configure-stage3-target-libgomp:
54767 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
54768 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54769 @r=`${PWD_COMMAND}`; export r; \
54770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54771 TFLAGS="$(STAGE3_TFLAGS)"; \
54772 echo "Checking multilib configuration for libgomp..."; \
54773 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54774 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54775 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54776 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54777 else \
54778 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54779 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54780 fi; \
54781 else \
54782 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54783 fi; \
54784 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54785 $(NORMAL_TARGET_EXPORTS) \
54786 \
54787 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54788 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54789 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54790 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
54791 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54792 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54793 case $(srcdir) in \
54794 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54795 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54796 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54797 esac; \
54798 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54799 libsrcdir="$$s/libgomp"; \
54800 $(SHELL) $${libsrcdir}/configure \
54801 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54802 --target=${target_alias} $${srcdiroption} \
54803 --with-build-libsubdir=$(HOST_SUBDIR) \
54804 $(STAGE3_CONFIGURE_FLAGS)
54805@endif target-libgomp-bootstrap
54806
54807.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
54808maybe-configure-stage4-target-libgomp:
54809@if target-libgomp-bootstrap
54810maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
54811configure-stage4-target-libgomp:
54812 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
54813 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54814 @r=`${PWD_COMMAND}`; export r; \
54815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54816 TFLAGS="$(STAGE4_TFLAGS)"; \
54817 echo "Checking multilib configuration for libgomp..."; \
54818 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54819 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54820 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54821 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54822 else \
54823 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54824 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54825 fi; \
54826 else \
54827 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54828 fi; \
54829 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54830 $(NORMAL_TARGET_EXPORTS) \
54831 \
54832 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54833 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54834 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54835 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
54836 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54837 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54838 case $(srcdir) in \
54839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54840 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54842 esac; \
54843 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54844 libsrcdir="$$s/libgomp"; \
54845 $(SHELL) $${libsrcdir}/configure \
54846 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54847 --target=${target_alias} $${srcdiroption} \
54848 --with-build-libsubdir=$(HOST_SUBDIR) \
54849 $(STAGE4_CONFIGURE_FLAGS)
54850@endif target-libgomp-bootstrap
54851
54852.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
54853maybe-configure-stageprofile-target-libgomp:
54854@if target-libgomp-bootstrap
54855maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
54856configure-stageprofile-target-libgomp:
54857 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
54858 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54859 @r=`${PWD_COMMAND}`; export r; \
54860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54861 TFLAGS="$(STAGEprofile_TFLAGS)"; \
54862 echo "Checking multilib configuration for libgomp..."; \
54863 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54864 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54865 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54866 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54867 else \
54868 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54869 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54870 fi; \
54871 else \
54872 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54873 fi; \
54874 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54875 $(NORMAL_TARGET_EXPORTS) \
54876 \
54877 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54880 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
54881 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54882 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54883 case $(srcdir) in \
54884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54885 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54887 esac; \
54888 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54889 libsrcdir="$$s/libgomp"; \
54890 $(SHELL) $${libsrcdir}/configure \
54891 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54892 --target=${target_alias} $${srcdiroption} \
54893 --with-build-libsubdir=$(HOST_SUBDIR) \
54894 $(STAGEprofile_CONFIGURE_FLAGS)
54895@endif target-libgomp-bootstrap
54896
54897.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
54898maybe-configure-stagefeedback-target-libgomp:
54899@if target-libgomp-bootstrap
54900maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
54901configure-stagefeedback-target-libgomp:
54902 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
54903 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
54904 @r=`${PWD_COMMAND}`; export r; \
54905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54906 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
54907 echo "Checking multilib configuration for libgomp..."; \
54908 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
54909 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54910 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
54911 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
54912 else \
54913 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
54914 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54915 fi; \
54916 else \
54917 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
54918 fi; \
54919 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
54920 $(NORMAL_TARGET_EXPORTS) \
54921 \
54922 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
54923 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
54924 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
54925 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
54926 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
54927 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
54928 case $(srcdir) in \
54929 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54930 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
54931 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54932 esac; \
54933 srcdiroption="--srcdir=$${topdir}/libgomp"; \
54934 libsrcdir="$$s/libgomp"; \
54935 $(SHELL) $${libsrcdir}/configure \
54936 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
54937 --target=${target_alias} $${srcdiroption} \
54938 --with-build-libsubdir=$(HOST_SUBDIR) \
54939 $(STAGEfeedback_CONFIGURE_FLAGS)
54940@endif target-libgomp-bootstrap
54941
54942
54943
00bc9d7f
PB
54944
54945
54946.PHONY: all-target-libgomp maybe-all-target-libgomp
54947maybe-all-target-libgomp:
e1e5148c
CD
54948@if gcc-bootstrap
54949all-target-libgomp: stage_current
54950@endif gcc-bootstrap
00bc9d7f
PB
54951@if target-libgomp
54952TARGET-target-libgomp=all
54953maybe-all-target-libgomp: all-target-libgomp
54954all-target-libgomp: configure-target-libgomp
00bc9d7f
PB
54955 @r=`${PWD_COMMAND}`; export r; \
54956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074489a 54957 $(NORMAL_TARGET_EXPORTS) \
00bc9d7f 54958 (cd $(TARGET_SUBDIR)/libgomp && \
6532abb6
PB
54959 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
54960 $(TARGET-target-libgomp))
00bc9d7f
PB
54961@endif target-libgomp
54962
54963
54964
e894eef9
JR
54965.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
54966.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
54967maybe-all-stage1-target-libgomp:
54968maybe-clean-stage1-target-libgomp:
54969@if target-libgomp-bootstrap
54970maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
54971all-stage1: all-stage1-target-libgomp
54972TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
54973all-stage1-target-libgomp: configure-stage1-target-libgomp
54974 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
54975 @r=`${PWD_COMMAND}`; export r; \
54976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54977 TFLAGS="$(STAGE1_TFLAGS)"; \
54978 $(NORMAL_TARGET_EXPORTS) \
54979 cd $(TARGET_SUBDIR)/libgomp && \
54980 $(MAKE) $(BASE_FLAGS_TO_PASS) \
54981 CFLAGS="$(CFLAGS_FOR_TARGET)" \
54982 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
54983 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
54984 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
54985 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
54986 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
54987 $(EXTRA_TARGET_FLAGS) \
54988 TFLAGS="$(STAGE1_TFLAGS)" \
54989 $(TARGET-stage1-target-libgomp)
54990
54991maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
54992clean-stage1: clean-stage1-target-libgomp
54993clean-stage1-target-libgomp:
54994 @if [ $(current_stage) = stage1 ]; then \
54995 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
54996 else \
54997 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
54998 $(MAKE) stage1-start; \
54999 fi; \
55000 cd $(TARGET_SUBDIR)/libgomp && \
55001 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55002 clean
55003@endif target-libgomp-bootstrap
55004
55005
55006.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
55007.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
55008maybe-all-stage2-target-libgomp:
55009maybe-clean-stage2-target-libgomp:
55010@if target-libgomp-bootstrap
55011maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
55012all-stage2: all-stage2-target-libgomp
55013TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
55014all-stage2-target-libgomp: configure-stage2-target-libgomp
55015 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
55016 @r=`${PWD_COMMAND}`; export r; \
55017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55018 TFLAGS="$(STAGE2_TFLAGS)"; \
55019 $(NORMAL_TARGET_EXPORTS) \
55020 \
55021 cd $(TARGET_SUBDIR)/libgomp && \
55022 $(MAKE) $(BASE_FLAGS_TO_PASS) \
55023 CFLAGS="$(CFLAGS_FOR_TARGET)" \
55024 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
55025 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
55026 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
55027 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
55028 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
55029 $(EXTRA_TARGET_FLAGS) \
55030 TFLAGS="$(STAGE2_TFLAGS)" \
55031 $(TARGET-stage2-target-libgomp)
55032
55033maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
55034clean-stage2: clean-stage2-target-libgomp
55035clean-stage2-target-libgomp:
55036 @if [ $(current_stage) = stage2 ]; then \
55037 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
55038 else \
55039 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
55040 $(MAKE) stage2-start; \
55041 fi; \
55042 cd $(TARGET_SUBDIR)/libgomp && \
55043 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55044 \
55045 clean
55046@endif target-libgomp-bootstrap
55047
55048
55049.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
55050.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
55051maybe-all-stage3-target-libgomp:
55052maybe-clean-stage3-target-libgomp:
55053@if target-libgomp-bootstrap
55054maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
55055all-stage3: all-stage3-target-libgomp
55056TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
55057all-stage3-target-libgomp: configure-stage3-target-libgomp
55058 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
55059 @r=`${PWD_COMMAND}`; export r; \
55060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55061 TFLAGS="$(STAGE3_TFLAGS)"; \
55062 $(NORMAL_TARGET_EXPORTS) \
55063 \
55064 cd $(TARGET_SUBDIR)/libgomp && \
55065 $(MAKE) $(BASE_FLAGS_TO_PASS) \
55066 CFLAGS="$(CFLAGS_FOR_TARGET)" \
55067 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
55068 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
55069 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
55070 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
55071 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
55072 $(EXTRA_TARGET_FLAGS) \
55073 TFLAGS="$(STAGE3_TFLAGS)" \
55074 $(TARGET-stage3-target-libgomp)
55075
55076maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
55077clean-stage3: clean-stage3-target-libgomp
55078clean-stage3-target-libgomp:
55079 @if [ $(current_stage) = stage3 ]; then \
55080 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
55081 else \
55082 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
55083 $(MAKE) stage3-start; \
55084 fi; \
55085 cd $(TARGET_SUBDIR)/libgomp && \
55086 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55087 \
55088 clean
55089@endif target-libgomp-bootstrap
55090
55091
55092.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
55093.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
55094maybe-all-stage4-target-libgomp:
55095maybe-clean-stage4-target-libgomp:
55096@if target-libgomp-bootstrap
55097maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
55098all-stage4: all-stage4-target-libgomp
55099TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
55100all-stage4-target-libgomp: configure-stage4-target-libgomp
55101 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
55102 @r=`${PWD_COMMAND}`; export r; \
55103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55104 TFLAGS="$(STAGE4_TFLAGS)"; \
55105 $(NORMAL_TARGET_EXPORTS) \
55106 \
55107 cd $(TARGET_SUBDIR)/libgomp && \
55108 $(MAKE) $(BASE_FLAGS_TO_PASS) \
55109 CFLAGS="$(CFLAGS_FOR_TARGET)" \
55110 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
55111 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
55112 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
55113 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
55114 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
55115 $(EXTRA_TARGET_FLAGS) \
55116 TFLAGS="$(STAGE4_TFLAGS)" \
55117 $(TARGET-stage4-target-libgomp)
55118
55119maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
55120clean-stage4: clean-stage4-target-libgomp
55121clean-stage4-target-libgomp:
55122 @if [ $(current_stage) = stage4 ]; then \
55123 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
55124 else \
55125 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
55126 $(MAKE) stage4-start; \
55127 fi; \
55128 cd $(TARGET_SUBDIR)/libgomp && \
55129 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55130 \
55131 clean
55132@endif target-libgomp-bootstrap
55133
55134
55135.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
55136.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
55137maybe-all-stageprofile-target-libgomp:
55138maybe-clean-stageprofile-target-libgomp:
55139@if target-libgomp-bootstrap
55140maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
55141all-stageprofile: all-stageprofile-target-libgomp
55142TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
55143all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
55144 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
55145 @r=`${PWD_COMMAND}`; export r; \
55146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55147 TFLAGS="$(STAGEprofile_TFLAGS)"; \
55148 $(NORMAL_TARGET_EXPORTS) \
55149 \
55150 cd $(TARGET_SUBDIR)/libgomp && \
55151 $(MAKE) $(BASE_FLAGS_TO_PASS) \
55152 CFLAGS="$(CFLAGS_FOR_TARGET)" \
55153 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
55154 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
55155 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
55156 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
55157 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
55158 $(EXTRA_TARGET_FLAGS) \
55159 TFLAGS="$(STAGEprofile_TFLAGS)" \
55160 $(TARGET-stageprofile-target-libgomp)
55161
55162maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
55163clean-stageprofile: clean-stageprofile-target-libgomp
55164clean-stageprofile-target-libgomp:
55165 @if [ $(current_stage) = stageprofile ]; then \
55166 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
55167 else \
55168 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
55169 $(MAKE) stageprofile-start; \
55170 fi; \
55171 cd $(TARGET_SUBDIR)/libgomp && \
55172 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55173 \
55174 clean
55175@endif target-libgomp-bootstrap
55176
55177
55178.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
55179.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
55180maybe-all-stagefeedback-target-libgomp:
55181maybe-clean-stagefeedback-target-libgomp:
55182@if target-libgomp-bootstrap
55183maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
55184all-stagefeedback: all-stagefeedback-target-libgomp
55185TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
55186all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
55187 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
55188 @r=`${PWD_COMMAND}`; export r; \
55189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55190 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
55191 $(NORMAL_TARGET_EXPORTS) \
55192 \
55193 cd $(TARGET_SUBDIR)/libgomp && \
55194 $(MAKE) $(BASE_FLAGS_TO_PASS) \
55195 CFLAGS="$(CFLAGS_FOR_TARGET)" \
55196 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
55197 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
55198 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
55199 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
55200 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
55201 $(EXTRA_TARGET_FLAGS) \
55202 TFLAGS="$(STAGEfeedback_TFLAGS)" \
55203 $(TARGET-stagefeedback-target-libgomp)
55204
55205maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
55206clean-stagefeedback: clean-stagefeedback-target-libgomp
55207clean-stagefeedback-target-libgomp:
55208 @if [ $(current_stage) = stagefeedback ]; then \
55209 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
55210 else \
55211 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
55212 $(MAKE) stagefeedback-start; \
55213 fi; \
55214 cd $(TARGET_SUBDIR)/libgomp && \
55215 $(MAKE) $(EXTRA_TARGET_FLAGS) \
55216 \
55217 clean
55218@endif target-libgomp-bootstrap
55219
55220
55221
55222
00bc9d7f
PB
55223
55224
55225.PHONY: check-target-libgomp maybe-check-target-libgomp
55226maybe-check-target-libgomp:
55227@if target-libgomp
55228maybe-check-target-libgomp: check-target-libgomp
55229
55230check-target-libgomp:
55231 @: $(MAKE); $(unstage)
55232 @r=`${PWD_COMMAND}`; export r; \
55233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55234 $(NORMAL_TARGET_EXPORTS) \
55235 (cd $(TARGET_SUBDIR)/libgomp && \
55236 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
55237
55238@endif target-libgomp
55239
55240.PHONY: install-target-libgomp maybe-install-target-libgomp
55241maybe-install-target-libgomp:
55242@if target-libgomp
55243maybe-install-target-libgomp: install-target-libgomp
55244
55245install-target-libgomp: installdirs
55246 @: $(MAKE); $(unstage)
55247 @r=`${PWD_COMMAND}`; export r; \
55248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55249 $(NORMAL_TARGET_EXPORTS) \
55250 (cd $(TARGET_SUBDIR)/libgomp && \
55251 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
55252
55253@endif target-libgomp
55254
39bbbb69 55255# Other targets (info, dvi, pdf, etc.)
00bc9d7f
PB
55256
55257.PHONY: maybe-info-target-libgomp info-target-libgomp
55258maybe-info-target-libgomp:
55259@if target-libgomp
55260maybe-info-target-libgomp: info-target-libgomp
55261
55262info-target-libgomp: \
55263 configure-target-libgomp
55264 @: $(MAKE); $(unstage)
55265 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55266 r=`${PWD_COMMAND}`; export r; \
55267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55268 $(NORMAL_TARGET_EXPORTS) \
55269 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
55270 for flag in $(EXTRA_TARGET_FLAGS); do \
55271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55272 done; \
55273 (cd $(TARGET_SUBDIR)/libgomp && \
55274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55276 "RANLIB=$${RANLIB}" \
bffcbe34 55277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55278 info) \
55279 || exit 1
55280
55281@endif target-libgomp
55282
55283.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
55284maybe-dvi-target-libgomp:
55285@if target-libgomp
55286maybe-dvi-target-libgomp: dvi-target-libgomp
55287
55288dvi-target-libgomp: \
55289 configure-target-libgomp
55290 @: $(MAKE); $(unstage)
55291 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55292 r=`${PWD_COMMAND}`; export r; \
55293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55294 $(NORMAL_TARGET_EXPORTS) \
55295 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
55296 for flag in $(EXTRA_TARGET_FLAGS); do \
55297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55298 done; \
55299 (cd $(TARGET_SUBDIR)/libgomp && \
55300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55302 "RANLIB=$${RANLIB}" \
bffcbe34 55303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55304 dvi) \
55305 || exit 1
55306
55307@endif target-libgomp
55308
39bbbb69
DD
55309.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
55310maybe-pdf-target-libgomp:
55311@if target-libgomp
55312maybe-pdf-target-libgomp: pdf-target-libgomp
55313
55314pdf-target-libgomp: \
55315 configure-target-libgomp
55316 @: $(MAKE); $(unstage)
55317 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55318 r=`${PWD_COMMAND}`; export r; \
55319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55320 $(NORMAL_TARGET_EXPORTS) \
55321 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
55322 for flag in $(EXTRA_TARGET_FLAGS); do \
55323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55324 done; \
55325 (cd $(TARGET_SUBDIR)/libgomp && \
55326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55328 "RANLIB=$${RANLIB}" \
bffcbe34 55329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39bbbb69
DD
55330 pdf) \
55331 || exit 1
55332
55333@endif target-libgomp
55334
00bc9d7f
PB
55335.PHONY: maybe-html-target-libgomp html-target-libgomp
55336maybe-html-target-libgomp:
55337@if target-libgomp
55338maybe-html-target-libgomp: html-target-libgomp
55339
55340html-target-libgomp: \
55341 configure-target-libgomp
55342 @: $(MAKE); $(unstage)
55343 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55344 r=`${PWD_COMMAND}`; export r; \
55345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55346 $(NORMAL_TARGET_EXPORTS) \
55347 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
55348 for flag in $(EXTRA_TARGET_FLAGS); do \
55349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55350 done; \
55351 (cd $(TARGET_SUBDIR)/libgomp && \
55352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55354 "RANLIB=$${RANLIB}" \
bffcbe34 55355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55356 html) \
55357 || exit 1
55358
55359@endif target-libgomp
55360
55361.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
55362maybe-TAGS-target-libgomp:
55363@if target-libgomp
55364maybe-TAGS-target-libgomp: TAGS-target-libgomp
55365
55366TAGS-target-libgomp: \
55367 configure-target-libgomp
55368 @: $(MAKE); $(unstage)
55369 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55370 r=`${PWD_COMMAND}`; export r; \
55371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55372 $(NORMAL_TARGET_EXPORTS) \
55373 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
55374 for flag in $(EXTRA_TARGET_FLAGS); do \
55375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55376 done; \
55377 (cd $(TARGET_SUBDIR)/libgomp && \
55378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55380 "RANLIB=$${RANLIB}" \
bffcbe34 55381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55382 TAGS) \
55383 || exit 1
55384
55385@endif target-libgomp
55386
55387.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
55388maybe-install-info-target-libgomp:
55389@if target-libgomp
55390maybe-install-info-target-libgomp: install-info-target-libgomp
55391
55392install-info-target-libgomp: \
55393 configure-target-libgomp \
55394 info-target-libgomp
55395 @: $(MAKE); $(unstage)
55396 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55397 r=`${PWD_COMMAND}`; export r; \
55398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55399 $(NORMAL_TARGET_EXPORTS) \
55400 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
55401 for flag in $(EXTRA_TARGET_FLAGS); do \
55402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55403 done; \
55404 (cd $(TARGET_SUBDIR)/libgomp && \
55405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55407 "RANLIB=$${RANLIB}" \
bffcbe34 55408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55409 install-info) \
55410 || exit 1
55411
55412@endif target-libgomp
55413
d4954b6d
DD
55414.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
55415maybe-install-pdf-target-libgomp:
55416@if target-libgomp
55417maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
55418
55419install-pdf-target-libgomp: \
55420 configure-target-libgomp \
55421 pdf-target-libgomp
55422 @: $(MAKE); $(unstage)
55423 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55424 r=`${PWD_COMMAND}`; export r; \
55425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55426 $(NORMAL_TARGET_EXPORTS) \
55427 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
55428 for flag in $(EXTRA_TARGET_FLAGS); do \
55429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55430 done; \
55431 (cd $(TARGET_SUBDIR)/libgomp && \
55432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55434 "RANLIB=$${RANLIB}" \
bffcbe34 55435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d4954b6d
DD
55436 install-pdf) \
55437 || exit 1
55438
55439@endif target-libgomp
55440
83c9add4
CD
55441.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
55442maybe-install-html-target-libgomp:
55443@if target-libgomp
55444maybe-install-html-target-libgomp: install-html-target-libgomp
55445
55446install-html-target-libgomp: \
55447 configure-target-libgomp \
55448 html-target-libgomp
55449 @: $(MAKE); $(unstage)
55450 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55451 r=`${PWD_COMMAND}`; export r; \
55452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55453 $(NORMAL_TARGET_EXPORTS) \
55454 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
55455 for flag in $(EXTRA_TARGET_FLAGS); do \
55456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55457 done; \
55458 (cd $(TARGET_SUBDIR)/libgomp && \
55459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55461 "RANLIB=$${RANLIB}" \
bffcbe34 55462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
83c9add4
CD
55463 install-html) \
55464 || exit 1
55465
55466@endif target-libgomp
55467
00bc9d7f
PB
55468.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
55469maybe-installcheck-target-libgomp:
55470@if target-libgomp
55471maybe-installcheck-target-libgomp: installcheck-target-libgomp
55472
55473installcheck-target-libgomp: \
55474 configure-target-libgomp
55475 @: $(MAKE); $(unstage)
55476 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55477 r=`${PWD_COMMAND}`; export r; \
55478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55479 $(NORMAL_TARGET_EXPORTS) \
55480 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
55481 for flag in $(EXTRA_TARGET_FLAGS); do \
55482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55483 done; \
55484 (cd $(TARGET_SUBDIR)/libgomp && \
55485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55487 "RANLIB=$${RANLIB}" \
bffcbe34 55488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55489 installcheck) \
55490 || exit 1
55491
55492@endif target-libgomp
55493
55494.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
55495maybe-mostlyclean-target-libgomp:
55496@if target-libgomp
55497maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
55498
55499mostlyclean-target-libgomp:
55500 @: $(MAKE); $(unstage)
55501 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55502 r=`${PWD_COMMAND}`; export r; \
55503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55504 $(NORMAL_TARGET_EXPORTS) \
55505 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
55506 for flag in $(EXTRA_TARGET_FLAGS); do \
55507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55508 done; \
55509 (cd $(TARGET_SUBDIR)/libgomp && \
55510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55512 "RANLIB=$${RANLIB}" \
bffcbe34 55513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55514 mostlyclean) \
55515 || exit 1
55516
55517@endif target-libgomp
55518
55519.PHONY: maybe-clean-target-libgomp clean-target-libgomp
55520maybe-clean-target-libgomp:
55521@if target-libgomp
55522maybe-clean-target-libgomp: clean-target-libgomp
55523
55524clean-target-libgomp:
55525 @: $(MAKE); $(unstage)
55526 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55527 r=`${PWD_COMMAND}`; export r; \
55528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55529 $(NORMAL_TARGET_EXPORTS) \
55530 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
55531 for flag in $(EXTRA_TARGET_FLAGS); do \
55532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55533 done; \
55534 (cd $(TARGET_SUBDIR)/libgomp && \
55535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55537 "RANLIB=$${RANLIB}" \
bffcbe34 55538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55539 clean) \
55540 || exit 1
55541
55542@endif target-libgomp
55543
55544.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
55545maybe-distclean-target-libgomp:
55546@if target-libgomp
55547maybe-distclean-target-libgomp: distclean-target-libgomp
55548
55549distclean-target-libgomp:
55550 @: $(MAKE); $(unstage)
55551 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55552 r=`${PWD_COMMAND}`; export r; \
55553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55554 $(NORMAL_TARGET_EXPORTS) \
55555 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
55556 for flag in $(EXTRA_TARGET_FLAGS); do \
55557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55558 done; \
55559 (cd $(TARGET_SUBDIR)/libgomp && \
55560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55562 "RANLIB=$${RANLIB}" \
bffcbe34 55563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55564 distclean) \
55565 || exit 1
55566
55567@endif target-libgomp
55568
55569.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
55570maybe-maintainer-clean-target-libgomp:
55571@if target-libgomp
55572maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
55573
55574maintainer-clean-target-libgomp:
55575 @: $(MAKE); $(unstage)
55576 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
55577 r=`${PWD_COMMAND}`; export r; \
55578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55579 $(NORMAL_TARGET_EXPORTS) \
55580 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
55581 for flag in $(EXTRA_TARGET_FLAGS); do \
55582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55583 done; \
55584 (cd $(TARGET_SUBDIR)/libgomp && \
55585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55587 "RANLIB=$${RANLIB}" \
bffcbe34 55588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
00bc9d7f
PB
55589 maintainer-clean) \
55590 || exit 1
55591
55592@endif target-libgomp
55593
55594
55595
43bdb69a
NN
55596# ----------
55597# GCC module
55598# ----------
55599
e1666221 55600@if gcc-no-bootstrap
a3acbf46 55601.PHONY: cross
6a19fd82 55602cross: all-build all-gas all-ld
5230d454
L
55603 @r=`${PWD_COMMAND}`; export r; \
55604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
63673a5b 55605 $(HOST_EXPORTS) \
a3acbf46 55606 echo "Building the C and C++ compiler"; \
25688b70 55607 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
5230d454
L
55608 @r=`${PWD_COMMAND}`; export r; \
55609 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a3acbf46 55610 echo "Building runtime libraries"; \
21ff191e 55611 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
e1666221 55612@endif gcc-no-bootstrap
a3acbf46 55613
a7e609d6 55614@if gcc
45449169
L
55615
55616.PHONY: check-gcc-c check-c
55617check-gcc-c:
55618 r=`${PWD_COMMAND}`; export r; \
55619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55620 $(HOST_EXPORTS) \
55621 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
55622check-c: check-gcc-c
55623
55624.PHONY: check-gcc-c++ check-c++
d97f0f72 55625check-gcc-c++:
45449169
L
55626 r=`${PWD_COMMAND}`; export r; \
55627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55628 $(HOST_EXPORTS) \
55629 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
55630check-c++: check-gcc-c++ check-target-libstdc++-v3
55631
55632.PHONY: check-gcc-fortran check-fortran
55633check-gcc-fortran:
55634 r=`${PWD_COMMAND}`; export r; \
55635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55636 $(HOST_EXPORTS) \
55637 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
55638check-fortran: check-gcc-fortran check-target-libgfortran
55639
55640.PHONY: check-gcc-java check-java
55641check-gcc-java:
55642 r=`${PWD_COMMAND}`; export r; \
55643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55644 $(HOST_EXPORTS) \
55645 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
55646check-java: check-gcc-java check-target-libjava
55647
55648.PHONY: check-gcc-ada check-ada
55649check-gcc-ada:
55650 r=`${PWD_COMMAND}`; export r; \
55651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55652 $(HOST_EXPORTS) \
55653 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
55654check-ada: check-gcc-ada check-target-libada
55655
55656.PHONY: check-gcc-objc check-objc
55657check-gcc-objc:
55658 r=`${PWD_COMMAND}`; export r; \
55659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55660 $(HOST_EXPORTS) \
55661 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
55662check-objc: check-gcc-objc check-target-libobjc
55663
55664.PHONY: check-gcc-obj-c++ check-obj-c++
55665check-gcc-obj-c++:
55666 r=`${PWD_COMMAND}`; export r; \
55667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55668 $(HOST_EXPORTS) \
55669 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
55670check-obj-c++: check-gcc-obj-c++
d97f0f72 55671
a3acbf46 55672
43bdb69a
NN
55673# Install the gcc headers files, but not the fixed include files,
55674# which Cygnus is not allowed to distribute. This rule is very
55675# dependent on the workings of the gcc Makefile.in.
55676.PHONY: gcc-no-fixedincludes
55677gcc-no-fixedincludes:
55678 @if [ -f ./gcc/Makefile ]; then \
55679 rm -rf gcc/tmp-include; \
55680 mv gcc/include gcc/tmp-include 2>/dev/null; \
55681 mkdir gcc/include; \
55682 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
55683 touch gcc/stmp-fixinc gcc/include/fixed; \
55684 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
5230d454
L
55685 r=`${PWD_COMMAND}`; export r; \
55686 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
63673a5b 55687 $(HOST_EXPORTS) \
6dbec167 55688 (cd ./gcc && \
43bdb69a
NN
55689 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
55690 rm -rf gcc/include; \
55691 mv gcc/tmp-include gcc/include 2>/dev/null; \
55692 else true; fi
a7e609d6 55693@endif gcc
8ec98d6c 55694
d5eec917
PB
55695# ---------------------
55696# GCC bootstrap support
55697# ---------------------
8ec98d6c 55698
d5eec917
PB
55699# We track the current stage (the one in 'gcc') in the stage_current file.
55700# stage_last instead tracks the stage that was built last. These targets
55701# are dummy when toplevel bootstrap is not active.
8ec98d6c 55702
168b158c 55703# While making host and target tools, symlinks to the final stage must be
15b527ca
PB
55704# there, so $(unstage) should be run at various points. To avoid excessive
55705# recursive invocations of make, we "inline" them using a variable. These
55706# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
55707# to avoid warnings from the GNU Make job server.
168b158c
PB
55708
55709unstage = :
55710stage = :
ec92c4d6 55711current_stage = ""
168b158c 55712
d5eec917 55713@if gcc-bootstrap
0b66ef4c 55714unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
7e958b2e 55715stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
ec92c4d6 55716current_stage = "`cat stage_current 2> /dev/null`"
d5eec917 55717@endif gcc-bootstrap
8ec98d6c 55718
168b158c
PB
55719.PHONY: unstage stage
55720unstage:
15b527ca 55721 @: $(MAKE); $(unstage)
d5eec917 55722stage:
15b527ca 55723 @: $(MAKE); $(stage)
457eaf16 55724
e3c08f94
PB
55725# Disable commands for lean bootstrap.
55726LEAN = false
55727
35269421
PB
55728# We name the build directories for the various stages "stage1-gcc",
55729# "stage2-gcc","stage3-gcc", etc.
55730
55731# Since the 'compare' process will fail (on debugging information) if any
55732# directory names are different, we need to link the gcc directory for
15b527ca 55733# the previous stage to a constant name ('prev-gcc'), and to make the name of
35269421
PB
55734# the build directories constant as well. For the latter, we use naked names
55735# like 'gcc', because the scripts in that directory assume it. We use
55736# mv on platforms where symlinks to directories do not work or are not
55737# reliable.
55738
457eaf16
NN
55739# 'touch' doesn't work right on some platforms.
55740STAMP = echo timestamp >
55741
35269421
PB
55742# We only want to compare .o files, so set this!
55743objext = .o
55744
35269421 55745
e1666221 55746.PHONY: stage1-start stage1-end
35269421 55747
21ff191e 55748stage1-start::
15b527ca 55749 @: $(MAKE); $(stage); \
d5eec917 55750 echo stage1 > stage_current ; \
7fc2ca22 55751 echo stage1 > stage_last; \
15b527ca 55752 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 55753@if bfd
7fc2ca22
PB
55754 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
55755 mkdir stage1-bfd; \
e3c08f94 55756 mv stage1-bfd bfd
6a19fd82
PB
55757@endif bfd
55758@if opcodes
7fc2ca22
PB
55759 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
55760 mkdir stage1-opcodes; \
e3c08f94 55761 mv stage1-opcodes opcodes
6a19fd82
PB
55762@endif opcodes
55763@if binutils
7fc2ca22
PB
55764 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
55765 mkdir stage1-binutils; \
e3c08f94 55766 mv stage1-binutils binutils
6a19fd82
PB
55767@endif binutils
55768@if gas
7fc2ca22
PB
55769 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
55770 mkdir stage1-gas; \
e3c08f94 55771 mv stage1-gas gas
6a19fd82
PB
55772@endif gas
55773@if gcc
7fc2ca22
PB
55774 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
55775 mkdir stage1-gcc; \
e3c08f94 55776 mv stage1-gcc gcc
6a19fd82 55777@endif gcc
42f55f77
PB
55778@if gmp
55779 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
55780 mkdir stage1-gmp; \
55781 mv stage1-gmp gmp
55782@endif gmp
55783@if mpfr
55784 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
55785 mkdir stage1-mpfr; \
55786 mv stage1-mpfr mpfr
55787@endif mpfr
121f0eb2
RW
55788@if mpc
55789 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
55790 mkdir stage1-mpc; \
55791 mv stage1-mpc mpc
55792@endif mpc
311b6756
JM
55793@if ppl
55794 @cd $(HOST_SUBDIR); [ -d stage1-ppl ] || \
55795 mkdir stage1-ppl; \
55796 mv stage1-ppl ppl
55797@endif ppl
55798@if cloog
55799 @cd $(HOST_SUBDIR); [ -d stage1-cloog ] || \
55800 mkdir stage1-cloog; \
55801 mv stage1-cloog cloog
55802@endif cloog
5074489a
AO
55803@if libelf
55804 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
55805 mkdir stage1-libelf; \
55806 mv stage1-libelf libelf
55807@endif libelf
b916272a
ILT
55808@if gold
55809 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
55810 mkdir stage1-gold; \
55811 mv stage1-gold gold
55812@endif gold
6a19fd82 55813@if intl
7fc2ca22
PB
55814 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
55815 mkdir stage1-intl; \
e3c08f94 55816 mv stage1-intl intl
6a19fd82
PB
55817@endif intl
55818@if ld
7fc2ca22
PB
55819 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
55820 mkdir stage1-ld; \
e3c08f94 55821 mv stage1-ld ld
6a19fd82
PB
55822@endif ld
55823@if libcpp
7fc2ca22
PB
55824 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
55825 mkdir stage1-libcpp; \
e3c08f94 55826 mv stage1-libcpp libcpp
6a19fd82 55827@endif libcpp
a7dc05b5
PB
55828@if libdecnumber
55829 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
55830 mkdir stage1-libdecnumber; \
e3c08f94 55831 mv stage1-libdecnumber libdecnumber
a7dc05b5 55832@endif libdecnumber
6a19fd82 55833@if libiberty
7fc2ca22
PB
55834 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
55835 mkdir stage1-libiberty; \
e3c08f94 55836 mv stage1-libiberty libiberty
6a19fd82
PB
55837@endif libiberty
55838@if zlib
7fc2ca22
PB
55839 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
55840 mkdir stage1-zlib; \
e3c08f94 55841 mv stage1-zlib zlib
6a19fd82 55842@endif zlib
bd45d6fa
ILT
55843@if lto-plugin
55844 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
55845 mkdir stage1-lto-plugin; \
55846 mv stage1-lto-plugin lto-plugin
55847@endif lto-plugin
15b527ca
PB
55848 @[ -d stage1-$(TARGET_SUBDIR) ] || \
55849 mkdir stage1-$(TARGET_SUBDIR); \
e3c08f94 55850 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
35269421 55851
e3c08f94 55852stage1-end::
6a19fd82 55853@if bfd
e3c08f94
PB
55854 @if test -d $(HOST_SUBDIR)/bfd ; then \
55855 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
15b527ca 55856 fi
6a19fd82
PB
55857@endif bfd
55858@if opcodes
e3c08f94
PB
55859 @if test -d $(HOST_SUBDIR)/opcodes ; then \
55860 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
15b527ca 55861 fi
6a19fd82
PB
55862@endif opcodes
55863@if binutils
e3c08f94
PB
55864 @if test -d $(HOST_SUBDIR)/binutils ; then \
55865 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
15b527ca 55866 fi
6a19fd82
PB
55867@endif binutils
55868@if gas
e3c08f94
PB
55869 @if test -d $(HOST_SUBDIR)/gas ; then \
55870 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
15b527ca 55871 fi
6a19fd82
PB
55872@endif gas
55873@if gcc
e3c08f94
PB
55874 @if test -d $(HOST_SUBDIR)/gcc ; then \
55875 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
15b527ca 55876 fi
6a19fd82 55877@endif gcc
42f55f77
PB
55878@if gmp
55879 @if test -d $(HOST_SUBDIR)/gmp ; then \
55880 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
55881 fi
55882@endif gmp
55883@if mpfr
55884 @if test -d $(HOST_SUBDIR)/mpfr ; then \
55885 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
55886 fi
55887@endif mpfr
121f0eb2
RW
55888@if mpc
55889 @if test -d $(HOST_SUBDIR)/mpc ; then \
55890 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
55891 fi
55892@endif mpc
311b6756
JM
55893@if ppl
55894 @if test -d $(HOST_SUBDIR)/ppl ; then \
55895 cd $(HOST_SUBDIR); mv ppl stage1-ppl ; \
55896 fi
55897@endif ppl
55898@if cloog
55899 @if test -d $(HOST_SUBDIR)/cloog ; then \
55900 cd $(HOST_SUBDIR); mv cloog stage1-cloog ; \
55901 fi
55902@endif cloog
5074489a
AO
55903@if libelf
55904 @if test -d $(HOST_SUBDIR)/libelf ; then \
55905 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
55906 fi
55907@endif libelf
b916272a
ILT
55908@if gold
55909 @if test -d $(HOST_SUBDIR)/gold ; then \
55910 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
55911 fi
55912@endif gold
6a19fd82 55913@if intl
e3c08f94
PB
55914 @if test -d $(HOST_SUBDIR)/intl ; then \
55915 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
15b527ca 55916 fi
6a19fd82
PB
55917@endif intl
55918@if ld
e3c08f94
PB
55919 @if test -d $(HOST_SUBDIR)/ld ; then \
55920 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
15b527ca 55921 fi
6a19fd82
PB
55922@endif ld
55923@if libcpp
e3c08f94
PB
55924 @if test -d $(HOST_SUBDIR)/libcpp ; then \
55925 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
15b527ca 55926 fi
6a19fd82 55927@endif libcpp
a7dc05b5 55928@if libdecnumber
e3c08f94
PB
55929 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
55930 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
15b527ca 55931 fi
a7dc05b5 55932@endif libdecnumber
6a19fd82 55933@if libiberty
e3c08f94
PB
55934 @if test -d $(HOST_SUBDIR)/libiberty ; then \
55935 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
15b527ca 55936 fi
6a19fd82
PB
55937@endif libiberty
55938@if zlib
e3c08f94
PB
55939 @if test -d $(HOST_SUBDIR)/zlib ; then \
55940 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
15b527ca 55941 fi
6a19fd82 55942@endif zlib
bd45d6fa
ILT
55943@if lto-plugin
55944 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
55945 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
55946 fi
55947@endif lto-plugin
15b527ca 55948 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94 55949 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
15b527ca 55950 fi
e3c08f94 55951 rm -f stage_current
35269421 55952
d3531b73 55953# Bubble a bug fix through all the stages up to stage 1. They are
15b527ca 55954# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 55955# reconfigured either.
e1666221 55956.PHONY: stage1-bubble
21ff191e 55957stage1-bubble::
ecebee48
PB
55958 @r=`${PWD_COMMAND}`; export r; \
55959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55960 if test -f stage1-lean ; then \
ebc58bf8
PB
55961 echo Skipping rebuild of stage1 ; \
55962 else \
168b158c
PB
55963 $(MAKE) stage1-start; \
55964 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ebc58bf8 55965 fi
6a19fd82 55966
99df82b9 55967.PHONY: all-stage1 clean-stage1
99df82b9 55968do-clean: clean-stage1
99df82b9 55969
6a19fd82
PB
55970# FIXME: Will not need to be conditional when toplevel bootstrap is the
55971# only possibility, but now it conflicts with no-bootstrap rules
55972@if gcc-bootstrap
55973
55974
55975
55976
99df82b9 55977# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 55978
99df82b9 55979.PHONY: distclean-stage1
6a19fd82 55980distclean-stage1::
15b527ca 55981 @: $(MAKE); $(stage)
28826d8f 55982 @test "`cat stage_last`" != stage1 || rm -f stage_last
ebc58bf8 55983 rm -rf stage1-*
6a19fd82
PB
55984
55985
55986@endif gcc-bootstrap
55987
55988
55989.PHONY: stage2-start stage2-end
55990
55991stage2-start::
15b527ca 55992 @: $(MAKE); $(stage); \
6a19fd82 55993 echo stage2 > stage_current ; \
7fc2ca22 55994 echo stage2 > stage_last; \
15b527ca 55995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 55996@if bfd
7fc2ca22
PB
55997 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
55998 mkdir stage2-bfd; \
e3c08f94
PB
55999 mv stage2-bfd bfd ; \
56000 mv stage1-bfd prev-bfd || test -f stage1-lean
6a19fd82
PB
56001@endif bfd
56002@if opcodes
7fc2ca22
PB
56003 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
56004 mkdir stage2-opcodes; \
e3c08f94
PB
56005 mv stage2-opcodes opcodes ; \
56006 mv stage1-opcodes prev-opcodes || test -f stage1-lean
6a19fd82
PB
56007@endif opcodes
56008@if binutils
7fc2ca22
PB
56009 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
56010 mkdir stage2-binutils; \
e3c08f94
PB
56011 mv stage2-binutils binutils ; \
56012 mv stage1-binutils prev-binutils || test -f stage1-lean
6a19fd82
PB
56013@endif binutils
56014@if gas
7fc2ca22
PB
56015 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
56016 mkdir stage2-gas; \
e3c08f94
PB
56017 mv stage2-gas gas ; \
56018 mv stage1-gas prev-gas || test -f stage1-lean
6a19fd82
PB
56019@endif gas
56020@if gcc
7fc2ca22
PB
56021 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
56022 mkdir stage2-gcc; \
e3c08f94
PB
56023 mv stage2-gcc gcc ; \
56024 mv stage1-gcc prev-gcc || test -f stage1-lean
6a19fd82 56025@endif gcc
42f55f77
PB
56026@if gmp
56027 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
56028 mkdir stage2-gmp; \
56029 mv stage2-gmp gmp ; \
56030 mv stage1-gmp prev-gmp || test -f stage1-lean
56031@endif gmp
56032@if mpfr
56033 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
56034 mkdir stage2-mpfr; \
56035 mv stage2-mpfr mpfr ; \
56036 mv stage1-mpfr prev-mpfr || test -f stage1-lean
56037@endif mpfr
121f0eb2
RW
56038@if mpc
56039 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
56040 mkdir stage2-mpc; \
56041 mv stage2-mpc mpc ; \
56042 mv stage1-mpc prev-mpc || test -f stage1-lean
56043@endif mpc
311b6756
JM
56044@if ppl
56045 @cd $(HOST_SUBDIR); [ -d stage2-ppl ] || \
56046 mkdir stage2-ppl; \
56047 mv stage2-ppl ppl ; \
56048 mv stage1-ppl prev-ppl || test -f stage1-lean
56049@endif ppl
56050@if cloog
56051 @cd $(HOST_SUBDIR); [ -d stage2-cloog ] || \
56052 mkdir stage2-cloog; \
56053 mv stage2-cloog cloog ; \
56054 mv stage1-cloog prev-cloog || test -f stage1-lean
56055@endif cloog
5074489a
AO
56056@if libelf
56057 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
56058 mkdir stage2-libelf; \
56059 mv stage2-libelf libelf ; \
56060 mv stage1-libelf prev-libelf || test -f stage1-lean
56061@endif libelf
b916272a
ILT
56062@if gold
56063 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
56064 mkdir stage2-gold; \
56065 mv stage2-gold gold ; \
56066 mv stage1-gold prev-gold || test -f stage1-lean
56067@endif gold
6a19fd82 56068@if intl
7fc2ca22
PB
56069 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
56070 mkdir stage2-intl; \
e3c08f94
PB
56071 mv stage2-intl intl ; \
56072 mv stage1-intl prev-intl || test -f stage1-lean
6a19fd82
PB
56073@endif intl
56074@if ld
7fc2ca22
PB
56075 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
56076 mkdir stage2-ld; \
e3c08f94
PB
56077 mv stage2-ld ld ; \
56078 mv stage1-ld prev-ld || test -f stage1-lean
6a19fd82
PB
56079@endif ld
56080@if libcpp
7fc2ca22
PB
56081 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
56082 mkdir stage2-libcpp; \
e3c08f94
PB
56083 mv stage2-libcpp libcpp ; \
56084 mv stage1-libcpp prev-libcpp || test -f stage1-lean
6a19fd82 56085@endif libcpp
a7dc05b5
PB
56086@if libdecnumber
56087 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
56088 mkdir stage2-libdecnumber; \
e3c08f94
PB
56089 mv stage2-libdecnumber libdecnumber ; \
56090 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a7dc05b5 56091@endif libdecnumber
6a19fd82 56092@if libiberty
7fc2ca22
PB
56093 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
56094 mkdir stage2-libiberty; \
e3c08f94
PB
56095 mv stage2-libiberty libiberty ; \
56096 mv stage1-libiberty prev-libiberty || test -f stage1-lean
6a19fd82
PB
56097@endif libiberty
56098@if zlib
7fc2ca22
PB
56099 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
56100 mkdir stage2-zlib; \
e3c08f94
PB
56101 mv stage2-zlib zlib ; \
56102 mv stage1-zlib prev-zlib || test -f stage1-lean
6a19fd82 56103@endif zlib
bd45d6fa
ILT
56104@if lto-plugin
56105 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
56106 mkdir stage2-lto-plugin; \
56107 mv stage2-lto-plugin lto-plugin ; \
56108 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
56109@endif lto-plugin
15b527ca
PB
56110 @[ -d stage2-$(TARGET_SUBDIR) ] || \
56111 mkdir stage2-$(TARGET_SUBDIR); \
e3c08f94
PB
56112 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
56113 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
6a19fd82 56114
e3c08f94 56115stage2-end::
6a19fd82 56116@if bfd
e3c08f94
PB
56117 @if test -d $(HOST_SUBDIR)/bfd ; then \
56118 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
56119 mv prev-bfd stage1-bfd ; : ; \
15b527ca 56120 fi
6a19fd82
PB
56121@endif bfd
56122@if opcodes
e3c08f94
PB
56123 @if test -d $(HOST_SUBDIR)/opcodes ; then \
56124 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
56125 mv prev-opcodes stage1-opcodes ; : ; \
15b527ca 56126 fi
6a19fd82
PB
56127@endif opcodes
56128@if binutils
e3c08f94
PB
56129 @if test -d $(HOST_SUBDIR)/binutils ; then \
56130 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
56131 mv prev-binutils stage1-binutils ; : ; \
15b527ca 56132 fi
6a19fd82
PB
56133@endif binutils
56134@if gas
e3c08f94
PB
56135 @if test -d $(HOST_SUBDIR)/gas ; then \
56136 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
56137 mv prev-gas stage1-gas ; : ; \
15b527ca 56138 fi
6a19fd82
PB
56139@endif gas
56140@if gcc
e3c08f94
PB
56141 @if test -d $(HOST_SUBDIR)/gcc ; then \
56142 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
56143 mv prev-gcc stage1-gcc ; : ; \
15b527ca 56144 fi
6a19fd82 56145@endif gcc
42f55f77
PB
56146@if gmp
56147 @if test -d $(HOST_SUBDIR)/gmp ; then \
56148 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
56149 mv prev-gmp stage1-gmp ; : ; \
56150 fi
56151@endif gmp
56152@if mpfr
56153 @if test -d $(HOST_SUBDIR)/mpfr ; then \
56154 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
56155 mv prev-mpfr stage1-mpfr ; : ; \
56156 fi
56157@endif mpfr
121f0eb2
RW
56158@if mpc
56159 @if test -d $(HOST_SUBDIR)/mpc ; then \
56160 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
56161 mv prev-mpc stage1-mpc ; : ; \
56162 fi
56163@endif mpc
311b6756
JM
56164@if ppl
56165 @if test -d $(HOST_SUBDIR)/ppl ; then \
56166 cd $(HOST_SUBDIR); mv ppl stage2-ppl ; \
56167 mv prev-ppl stage1-ppl ; : ; \
56168 fi
56169@endif ppl
56170@if cloog
56171 @if test -d $(HOST_SUBDIR)/cloog ; then \
56172 cd $(HOST_SUBDIR); mv cloog stage2-cloog ; \
56173 mv prev-cloog stage1-cloog ; : ; \
56174 fi
56175@endif cloog
5074489a
AO
56176@if libelf
56177 @if test -d $(HOST_SUBDIR)/libelf ; then \
56178 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
56179 mv prev-libelf stage1-libelf ; : ; \
56180 fi
56181@endif libelf
b916272a
ILT
56182@if gold
56183 @if test -d $(HOST_SUBDIR)/gold ; then \
56184 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
56185 mv prev-gold stage1-gold ; : ; \
56186 fi
56187@endif gold
6a19fd82 56188@if intl
e3c08f94
PB
56189 @if test -d $(HOST_SUBDIR)/intl ; then \
56190 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
56191 mv prev-intl stage1-intl ; : ; \
15b527ca 56192 fi
6a19fd82
PB
56193@endif intl
56194@if ld
e3c08f94
PB
56195 @if test -d $(HOST_SUBDIR)/ld ; then \
56196 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
56197 mv prev-ld stage1-ld ; : ; \
15b527ca 56198 fi
6a19fd82
PB
56199@endif ld
56200@if libcpp
e3c08f94
PB
56201 @if test -d $(HOST_SUBDIR)/libcpp ; then \
56202 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
56203 mv prev-libcpp stage1-libcpp ; : ; \
15b527ca 56204 fi
6a19fd82 56205@endif libcpp
a7dc05b5 56206@if libdecnumber
e3c08f94
PB
56207 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
56208 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
56209 mv prev-libdecnumber stage1-libdecnumber ; : ; \
15b527ca 56210 fi
a7dc05b5 56211@endif libdecnumber
6a19fd82 56212@if libiberty
e3c08f94
PB
56213 @if test -d $(HOST_SUBDIR)/libiberty ; then \
56214 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
56215 mv prev-libiberty stage1-libiberty ; : ; \
15b527ca 56216 fi
6a19fd82
PB
56217@endif libiberty
56218@if zlib
e3c08f94
PB
56219 @if test -d $(HOST_SUBDIR)/zlib ; then \
56220 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
56221 mv prev-zlib stage1-zlib ; : ; \
15b527ca 56222 fi
6a19fd82 56223@endif zlib
bd45d6fa
ILT
56224@if lto-plugin
56225 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
56226 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
56227 mv prev-lto-plugin stage1-lto-plugin ; : ; \
56228 fi
56229@endif lto-plugin
15b527ca 56230 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
56231 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
56232 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
15b527ca 56233 fi
e3c08f94 56234 rm -f stage_current
6a19fd82 56235
d3531b73 56236# Bubble a bug fix through all the stages up to stage 2. They are
15b527ca 56237# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 56238# reconfigured either.
6a19fd82
PB
56239.PHONY: stage2-bubble
56240stage2-bubble:: stage1-bubble
ecebee48
PB
56241 @r=`${PWD_COMMAND}`; export r; \
56242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56243 if test -f stage2-lean || test -f stage1-lean ; then \
ebc58bf8
PB
56244 echo Skipping rebuild of stage2 ; \
56245 else \
168b158c
PB
56246 $(MAKE) stage2-start; \
56247 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ebc58bf8 56248 fi
6a19fd82 56249
99df82b9 56250.PHONY: all-stage2 clean-stage2
99df82b9 56251do-clean: clean-stage2
99df82b9 56252
6a19fd82
PB
56253# FIXME: Will not need to be conditional when toplevel bootstrap is the
56254# only possibility, but now it conflicts with no-bootstrap rules
56255@if gcc-bootstrap
56256
56257
56258
e3c08f94 56259.PHONY: bootstrap2 bootstrap2-lean
a7dc05b5
PB
56260bootstrap2:
56261 echo stage2 > stage_final
56262 @r=`${PWD_COMMAND}`; export r; \
56263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56264 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
15b527ca 56265 @: $(MAKE); $(unstage)
a7dc05b5
PB
56266 @r=`${PWD_COMMAND}`; export r; \
56267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56268 TFLAGS="$(STAGE2_TFLAGS)"; \
a7dc05b5 56269 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
6a19fd82 56270
e3c08f94
PB
56271bootstrap2-lean:
56272 echo stage2 > stage_final
56273 @r=`${PWD_COMMAND}`; export r; \
56274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56275 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
56276 @: $(MAKE); $(unstage)
56277 @r=`${PWD_COMMAND}`; export r; \
56278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56279 TFLAGS="$(STAGE2_TFLAGS)"; \
e3c08f94
PB
56280 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56281
6a19fd82 56282
99df82b9 56283# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 56284distclean-stage1:: distclean-stage2
99df82b9 56285.PHONY: distclean-stage2
6a19fd82 56286distclean-stage2::
15b527ca 56287 @: $(MAKE); $(stage)
28826d8f 56288 @test "`cat stage_last`" != stage2 || rm -f stage_last
ebc58bf8 56289 rm -rf stage2-*
6a19fd82
PB
56290
56291
56292@endif gcc-bootstrap
56293
56294
56295.PHONY: stage3-start stage3-end
56296
56297stage3-start::
15b527ca 56298 @: $(MAKE); $(stage); \
6a19fd82 56299 echo stage3 > stage_current ; \
7fc2ca22 56300 echo stage3 > stage_last; \
15b527ca 56301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 56302@if bfd
7fc2ca22
PB
56303 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
56304 mkdir stage3-bfd; \
e3c08f94
PB
56305 mv stage3-bfd bfd ; \
56306 mv stage2-bfd prev-bfd || test -f stage2-lean
6a19fd82
PB
56307@endif bfd
56308@if opcodes
7fc2ca22
PB
56309 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
56310 mkdir stage3-opcodes; \
e3c08f94
PB
56311 mv stage3-opcodes opcodes ; \
56312 mv stage2-opcodes prev-opcodes || test -f stage2-lean
6a19fd82
PB
56313@endif opcodes
56314@if binutils
7fc2ca22
PB
56315 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
56316 mkdir stage3-binutils; \
e3c08f94
PB
56317 mv stage3-binutils binutils ; \
56318 mv stage2-binutils prev-binutils || test -f stage2-lean
6a19fd82
PB
56319@endif binutils
56320@if gas
7fc2ca22
PB
56321 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
56322 mkdir stage3-gas; \
e3c08f94
PB
56323 mv stage3-gas gas ; \
56324 mv stage2-gas prev-gas || test -f stage2-lean
6a19fd82
PB
56325@endif gas
56326@if gcc
7fc2ca22
PB
56327 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
56328 mkdir stage3-gcc; \
e3c08f94
PB
56329 mv stage3-gcc gcc ; \
56330 mv stage2-gcc prev-gcc || test -f stage2-lean
6a19fd82 56331@endif gcc
42f55f77
PB
56332@if gmp
56333 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
56334 mkdir stage3-gmp; \
56335 mv stage3-gmp gmp ; \
56336 mv stage2-gmp prev-gmp || test -f stage2-lean
56337@endif gmp
56338@if mpfr
56339 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
56340 mkdir stage3-mpfr; \
56341 mv stage3-mpfr mpfr ; \
56342 mv stage2-mpfr prev-mpfr || test -f stage2-lean
56343@endif mpfr
121f0eb2
RW
56344@if mpc
56345 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
56346 mkdir stage3-mpc; \
56347 mv stage3-mpc mpc ; \
56348 mv stage2-mpc prev-mpc || test -f stage2-lean
56349@endif mpc
311b6756
JM
56350@if ppl
56351 @cd $(HOST_SUBDIR); [ -d stage3-ppl ] || \
56352 mkdir stage3-ppl; \
56353 mv stage3-ppl ppl ; \
56354 mv stage2-ppl prev-ppl || test -f stage2-lean
56355@endif ppl
56356@if cloog
56357 @cd $(HOST_SUBDIR); [ -d stage3-cloog ] || \
56358 mkdir stage3-cloog; \
56359 mv stage3-cloog cloog ; \
56360 mv stage2-cloog prev-cloog || test -f stage2-lean
56361@endif cloog
5074489a
AO
56362@if libelf
56363 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
56364 mkdir stage3-libelf; \
56365 mv stage3-libelf libelf ; \
56366 mv stage2-libelf prev-libelf || test -f stage2-lean
56367@endif libelf
b916272a
ILT
56368@if gold
56369 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
56370 mkdir stage3-gold; \
56371 mv stage3-gold gold ; \
56372 mv stage2-gold prev-gold || test -f stage2-lean
56373@endif gold
6a19fd82 56374@if intl
7fc2ca22
PB
56375 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
56376 mkdir stage3-intl; \
e3c08f94
PB
56377 mv stage3-intl intl ; \
56378 mv stage2-intl prev-intl || test -f stage2-lean
6a19fd82
PB
56379@endif intl
56380@if ld
7fc2ca22
PB
56381 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
56382 mkdir stage3-ld; \
e3c08f94
PB
56383 mv stage3-ld ld ; \
56384 mv stage2-ld prev-ld || test -f stage2-lean
6a19fd82
PB
56385@endif ld
56386@if libcpp
7fc2ca22
PB
56387 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
56388 mkdir stage3-libcpp; \
e3c08f94
PB
56389 mv stage3-libcpp libcpp ; \
56390 mv stage2-libcpp prev-libcpp || test -f stage2-lean
6a19fd82 56391@endif libcpp
a7dc05b5
PB
56392@if libdecnumber
56393 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
56394 mkdir stage3-libdecnumber; \
e3c08f94
PB
56395 mv stage3-libdecnumber libdecnumber ; \
56396 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a7dc05b5 56397@endif libdecnumber
6a19fd82 56398@if libiberty
7fc2ca22
PB
56399 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
56400 mkdir stage3-libiberty; \
e3c08f94
PB
56401 mv stage3-libiberty libiberty ; \
56402 mv stage2-libiberty prev-libiberty || test -f stage2-lean
6a19fd82
PB
56403@endif libiberty
56404@if zlib
7fc2ca22
PB
56405 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
56406 mkdir stage3-zlib; \
e3c08f94
PB
56407 mv stage3-zlib zlib ; \
56408 mv stage2-zlib prev-zlib || test -f stage2-lean
6a19fd82 56409@endif zlib
bd45d6fa
ILT
56410@if lto-plugin
56411 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
56412 mkdir stage3-lto-plugin; \
56413 mv stage3-lto-plugin lto-plugin ; \
56414 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
56415@endif lto-plugin
15b527ca
PB
56416 @[ -d stage3-$(TARGET_SUBDIR) ] || \
56417 mkdir stage3-$(TARGET_SUBDIR); \
e3c08f94
PB
56418 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
56419 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
6a19fd82 56420
e3c08f94 56421stage3-end::
6a19fd82 56422@if bfd
e3c08f94
PB
56423 @if test -d $(HOST_SUBDIR)/bfd ; then \
56424 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
56425 mv prev-bfd stage2-bfd ; : ; \
15b527ca 56426 fi
6a19fd82
PB
56427@endif bfd
56428@if opcodes
e3c08f94
PB
56429 @if test -d $(HOST_SUBDIR)/opcodes ; then \
56430 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
56431 mv prev-opcodes stage2-opcodes ; : ; \
15b527ca 56432 fi
6a19fd82
PB
56433@endif opcodes
56434@if binutils
e3c08f94
PB
56435 @if test -d $(HOST_SUBDIR)/binutils ; then \
56436 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
56437 mv prev-binutils stage2-binutils ; : ; \
15b527ca 56438 fi
6a19fd82
PB
56439@endif binutils
56440@if gas
e3c08f94
PB
56441 @if test -d $(HOST_SUBDIR)/gas ; then \
56442 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
56443 mv prev-gas stage2-gas ; : ; \
15b527ca 56444 fi
6a19fd82
PB
56445@endif gas
56446@if gcc
e3c08f94
PB
56447 @if test -d $(HOST_SUBDIR)/gcc ; then \
56448 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
56449 mv prev-gcc stage2-gcc ; : ; \
15b527ca 56450 fi
6a19fd82 56451@endif gcc
42f55f77
PB
56452@if gmp
56453 @if test -d $(HOST_SUBDIR)/gmp ; then \
56454 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
56455 mv prev-gmp stage2-gmp ; : ; \
56456 fi
56457@endif gmp
56458@if mpfr
56459 @if test -d $(HOST_SUBDIR)/mpfr ; then \
56460 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
56461 mv prev-mpfr stage2-mpfr ; : ; \
56462 fi
56463@endif mpfr
121f0eb2
RW
56464@if mpc
56465 @if test -d $(HOST_SUBDIR)/mpc ; then \
56466 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
56467 mv prev-mpc stage2-mpc ; : ; \
56468 fi
56469@endif mpc
311b6756
JM
56470@if ppl
56471 @if test -d $(HOST_SUBDIR)/ppl ; then \
56472 cd $(HOST_SUBDIR); mv ppl stage3-ppl ; \
56473 mv prev-ppl stage2-ppl ; : ; \
56474 fi
56475@endif ppl
56476@if cloog
56477 @if test -d $(HOST_SUBDIR)/cloog ; then \
56478 cd $(HOST_SUBDIR); mv cloog stage3-cloog ; \
56479 mv prev-cloog stage2-cloog ; : ; \
56480 fi
56481@endif cloog
5074489a
AO
56482@if libelf
56483 @if test -d $(HOST_SUBDIR)/libelf ; then \
56484 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
56485 mv prev-libelf stage2-libelf ; : ; \
56486 fi
56487@endif libelf
b916272a
ILT
56488@if gold
56489 @if test -d $(HOST_SUBDIR)/gold ; then \
56490 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
56491 mv prev-gold stage2-gold ; : ; \
56492 fi
56493@endif gold
6a19fd82 56494@if intl
e3c08f94
PB
56495 @if test -d $(HOST_SUBDIR)/intl ; then \
56496 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
56497 mv prev-intl stage2-intl ; : ; \
15b527ca 56498 fi
6a19fd82
PB
56499@endif intl
56500@if ld
e3c08f94
PB
56501 @if test -d $(HOST_SUBDIR)/ld ; then \
56502 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
56503 mv prev-ld stage2-ld ; : ; \
15b527ca 56504 fi
6a19fd82
PB
56505@endif ld
56506@if libcpp
e3c08f94
PB
56507 @if test -d $(HOST_SUBDIR)/libcpp ; then \
56508 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
56509 mv prev-libcpp stage2-libcpp ; : ; \
15b527ca 56510 fi
6a19fd82 56511@endif libcpp
a7dc05b5 56512@if libdecnumber
e3c08f94
PB
56513 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
56514 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
56515 mv prev-libdecnumber stage2-libdecnumber ; : ; \
15b527ca 56516 fi
a7dc05b5 56517@endif libdecnumber
6a19fd82 56518@if libiberty
e3c08f94
PB
56519 @if test -d $(HOST_SUBDIR)/libiberty ; then \
56520 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
56521 mv prev-libiberty stage2-libiberty ; : ; \
15b527ca 56522 fi
6a19fd82
PB
56523@endif libiberty
56524@if zlib
e3c08f94
PB
56525 @if test -d $(HOST_SUBDIR)/zlib ; then \
56526 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
56527 mv prev-zlib stage2-zlib ; : ; \
15b527ca 56528 fi
6a19fd82 56529@endif zlib
bd45d6fa
ILT
56530@if lto-plugin
56531 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
56532 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
56533 mv prev-lto-plugin stage2-lto-plugin ; : ; \
56534 fi
56535@endif lto-plugin
15b527ca 56536 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
56537 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
56538 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
15b527ca 56539 fi
e3c08f94 56540 rm -f stage_current
6a19fd82 56541
d3531b73 56542# Bubble a bug fix through all the stages up to stage 3. They are
15b527ca 56543# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 56544# reconfigured either.
6a19fd82
PB
56545.PHONY: stage3-bubble
56546stage3-bubble:: stage2-bubble
ecebee48
PB
56547 @r=`${PWD_COMMAND}`; export r; \
56548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56549 if test -f stage3-lean || test -f stage2-lean ; then \
ebc58bf8
PB
56550 echo Skipping rebuild of stage3 ; \
56551 else \
168b158c 56552 $(MAKE) stage3-start; \
e3c08f94
PB
56553 if $(LEAN); then \
56554 rm -rf stage1-* ; \
56555 $(STAMP) stage1-lean ; \
56556 fi; \
168b158c 56557 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ebc58bf8 56558 fi
7e958b2e 56559 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
6a19fd82 56560
99df82b9 56561.PHONY: all-stage3 clean-stage3
99df82b9 56562do-clean: clean-stage3
99df82b9 56563
a8a96878
PB
56564# FIXME: Will not need to be conditional when toplevel bootstrap is the
56565# only possibility, but now it conflicts with no-bootstrap rules
56566@if gcc-bootstrap
6a19fd82 56567
a8a96878 56568compare:
ecebee48
PB
56569 @r=`${PWD_COMMAND}`; export r; \
56570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56571 if test -f stage2-lean; then \
a8a96878
PB
56572 echo Cannot compare object files as stage 2 was deleted. ; \
56573 exit 0 ; \
56574 fi; \
15b527ca 56575 : $(MAKE); $(stage); \
a8a96878 56576 rm -f .bad_compare ; \
ec92c4d6 56577 echo Comparing stages 2 and 3 ; \
6f15a1a0
AO
56578 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
56579 files=`find stage3-* -name "*$(objext)" -print | \
56580 sed -n s,^stage$$sed-,,p` ; \
a8a96878 56581 for file in $${files} ; do \
6f15a1a0
AO
56582 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
56583 if test ! -f $$f1; then continue; fi; \
2b41ef78 56584 $(do-compare) > /dev/null 2>&1; \
168b158c
PB
56585 if test $$? -eq 1; then \
56586 case $$file in \
121f0eb2 56587 @compare_exclusions@) \
168b158c
PB
56588 echo warning: $$file differs ;; \
56589 *) \
56590 echo $$file differs >> .bad_compare ;; \
56591 esac ; \
56592 fi ; \
a8a96878
PB
56593 done ; \
56594 if [ -f .bad_compare ]; then \
56595 echo "Bootstrap comparison failure!"; \
56596 cat .bad_compare; \
56597 exit 1; \
56598 else \
ec92c4d6 56599 echo Comparison successful.; \
a8a96878
PB
56600 fi ; \
56601 $(STAMP) compare
e3c08f94
PB
56602 if $(LEAN); then \
56603 rm -rf stage2-*; \
56604 $(STAMP) stage2-lean; \
56605 fi
ebc58bf8 56606
6a19fd82 56607
6a19fd82 56608
e3c08f94 56609.PHONY: bootstrap bootstrap-lean
a7dc05b5
PB
56610bootstrap:
56611 echo stage3 > stage_final
56612 @r=`${PWD_COMMAND}`; export r; \
56613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56614 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
15b527ca 56615 @: $(MAKE); $(unstage)
a7dc05b5
PB
56616 @r=`${PWD_COMMAND}`; export r; \
56617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56618 TFLAGS="$(STAGE3_TFLAGS)"; \
a7dc05b5 56619 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
99df82b9 56620
e3c08f94
PB
56621bootstrap-lean:
56622 echo stage3 > stage_final
56623 @r=`${PWD_COMMAND}`; export r; \
56624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56625 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
56626 @: $(MAKE); $(unstage)
56627 @r=`${PWD_COMMAND}`; export r; \
56628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56629 TFLAGS="$(STAGE3_TFLAGS)"; \
e3c08f94
PB
56630 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56631
6a19fd82 56632
a8a96878
PB
56633# Rules to wipe a stage and all the following ones, also used for cleanstrap
56634distclean-stage2:: distclean-stage3
56635.PHONY: distclean-stage3
56636distclean-stage3::
15b527ca 56637 @: $(MAKE); $(stage)
28826d8f 56638 @test "`cat stage_last`" != stage3 || rm -f stage_last
a8a96878 56639 rm -rf stage3-* compare
99df82b9 56640
ebc58bf8 56641
a8a96878 56642.PHONY: cleanstrap
28826d8f
PB
56643cleanstrap: do-distclean local-clean
56644 echo stage3 > stage_final
56645 @r=`${PWD_COMMAND}`; export r; \
56646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56647 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
56648 @: $(MAKE); $(unstage)
56649 @r=`${PWD_COMMAND}`; export r; \
56650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56651 TFLAGS="$(STAGE3_TFLAGS)"; \
2b41ef78
AO
56652 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56653
56654@endif gcc-bootstrap
56655
56656
6a19fd82
PB
56657.PHONY: stage4-start stage4-end
56658
56659stage4-start::
15b527ca 56660 @: $(MAKE); $(stage); \
6a19fd82 56661 echo stage4 > stage_current ; \
7fc2ca22 56662 echo stage4 > stage_last; \
15b527ca 56663 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 56664@if bfd
7fc2ca22
PB
56665 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
56666 mkdir stage4-bfd; \
e3c08f94
PB
56667 mv stage4-bfd bfd ; \
56668 mv stage3-bfd prev-bfd || test -f stage3-lean
6a19fd82
PB
56669@endif bfd
56670@if opcodes
7fc2ca22
PB
56671 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
56672 mkdir stage4-opcodes; \
e3c08f94
PB
56673 mv stage4-opcodes opcodes ; \
56674 mv stage3-opcodes prev-opcodes || test -f stage3-lean
6a19fd82
PB
56675@endif opcodes
56676@if binutils
7fc2ca22
PB
56677 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
56678 mkdir stage4-binutils; \
e3c08f94
PB
56679 mv stage4-binutils binutils ; \
56680 mv stage3-binutils prev-binutils || test -f stage3-lean
6a19fd82
PB
56681@endif binutils
56682@if gas
7fc2ca22
PB
56683 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
56684 mkdir stage4-gas; \
e3c08f94
PB
56685 mv stage4-gas gas ; \
56686 mv stage3-gas prev-gas || test -f stage3-lean
6a19fd82
PB
56687@endif gas
56688@if gcc
7fc2ca22
PB
56689 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
56690 mkdir stage4-gcc; \
e3c08f94
PB
56691 mv stage4-gcc gcc ; \
56692 mv stage3-gcc prev-gcc || test -f stage3-lean
6a19fd82 56693@endif gcc
42f55f77
PB
56694@if gmp
56695 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
56696 mkdir stage4-gmp; \
56697 mv stage4-gmp gmp ; \
56698 mv stage3-gmp prev-gmp || test -f stage3-lean
56699@endif gmp
56700@if mpfr
56701 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
56702 mkdir stage4-mpfr; \
56703 mv stage4-mpfr mpfr ; \
56704 mv stage3-mpfr prev-mpfr || test -f stage3-lean
56705@endif mpfr
121f0eb2
RW
56706@if mpc
56707 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
56708 mkdir stage4-mpc; \
56709 mv stage4-mpc mpc ; \
56710 mv stage3-mpc prev-mpc || test -f stage3-lean
56711@endif mpc
311b6756
JM
56712@if ppl
56713 @cd $(HOST_SUBDIR); [ -d stage4-ppl ] || \
56714 mkdir stage4-ppl; \
56715 mv stage4-ppl ppl ; \
56716 mv stage3-ppl prev-ppl || test -f stage3-lean
56717@endif ppl
56718@if cloog
56719 @cd $(HOST_SUBDIR); [ -d stage4-cloog ] || \
56720 mkdir stage4-cloog; \
56721 mv stage4-cloog cloog ; \
56722 mv stage3-cloog prev-cloog || test -f stage3-lean
56723@endif cloog
5074489a
AO
56724@if libelf
56725 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
56726 mkdir stage4-libelf; \
56727 mv stage4-libelf libelf ; \
56728 mv stage3-libelf prev-libelf || test -f stage3-lean
56729@endif libelf
b916272a
ILT
56730@if gold
56731 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
56732 mkdir stage4-gold; \
56733 mv stage4-gold gold ; \
56734 mv stage3-gold prev-gold || test -f stage3-lean
56735@endif gold
6a19fd82 56736@if intl
7fc2ca22
PB
56737 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
56738 mkdir stage4-intl; \
e3c08f94
PB
56739 mv stage4-intl intl ; \
56740 mv stage3-intl prev-intl || test -f stage3-lean
6a19fd82
PB
56741@endif intl
56742@if ld
7fc2ca22
PB
56743 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
56744 mkdir stage4-ld; \
e3c08f94
PB
56745 mv stage4-ld ld ; \
56746 mv stage3-ld prev-ld || test -f stage3-lean
6a19fd82
PB
56747@endif ld
56748@if libcpp
7fc2ca22
PB
56749 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
56750 mkdir stage4-libcpp; \
e3c08f94
PB
56751 mv stage4-libcpp libcpp ; \
56752 mv stage3-libcpp prev-libcpp || test -f stage3-lean
6a19fd82 56753@endif libcpp
a7dc05b5
PB
56754@if libdecnumber
56755 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
56756 mkdir stage4-libdecnumber; \
e3c08f94
PB
56757 mv stage4-libdecnumber libdecnumber ; \
56758 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a7dc05b5 56759@endif libdecnumber
6a19fd82 56760@if libiberty
7fc2ca22
PB
56761 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
56762 mkdir stage4-libiberty; \
e3c08f94
PB
56763 mv stage4-libiberty libiberty ; \
56764 mv stage3-libiberty prev-libiberty || test -f stage3-lean
6a19fd82
PB
56765@endif libiberty
56766@if zlib
7fc2ca22
PB
56767 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
56768 mkdir stage4-zlib; \
e3c08f94
PB
56769 mv stage4-zlib zlib ; \
56770 mv stage3-zlib prev-zlib || test -f stage3-lean
6a19fd82 56771@endif zlib
bd45d6fa
ILT
56772@if lto-plugin
56773 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
56774 mkdir stage4-lto-plugin; \
56775 mv stage4-lto-plugin lto-plugin ; \
56776 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
56777@endif lto-plugin
15b527ca
PB
56778 @[ -d stage4-$(TARGET_SUBDIR) ] || \
56779 mkdir stage4-$(TARGET_SUBDIR); \
e3c08f94
PB
56780 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
56781 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
6a19fd82 56782
e3c08f94 56783stage4-end::
6a19fd82 56784@if bfd
e3c08f94
PB
56785 @if test -d $(HOST_SUBDIR)/bfd ; then \
56786 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
56787 mv prev-bfd stage3-bfd ; : ; \
15b527ca 56788 fi
6a19fd82
PB
56789@endif bfd
56790@if opcodes
e3c08f94
PB
56791 @if test -d $(HOST_SUBDIR)/opcodes ; then \
56792 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
56793 mv prev-opcodes stage3-opcodes ; : ; \
15b527ca 56794 fi
6a19fd82
PB
56795@endif opcodes
56796@if binutils
e3c08f94
PB
56797 @if test -d $(HOST_SUBDIR)/binutils ; then \
56798 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
56799 mv prev-binutils stage3-binutils ; : ; \
15b527ca 56800 fi
6a19fd82
PB
56801@endif binutils
56802@if gas
e3c08f94
PB
56803 @if test -d $(HOST_SUBDIR)/gas ; then \
56804 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
56805 mv prev-gas stage3-gas ; : ; \
15b527ca 56806 fi
6a19fd82
PB
56807@endif gas
56808@if gcc
e3c08f94
PB
56809 @if test -d $(HOST_SUBDIR)/gcc ; then \
56810 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
56811 mv prev-gcc stage3-gcc ; : ; \
15b527ca 56812 fi
6a19fd82 56813@endif gcc
42f55f77
PB
56814@if gmp
56815 @if test -d $(HOST_SUBDIR)/gmp ; then \
56816 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
56817 mv prev-gmp stage3-gmp ; : ; \
56818 fi
56819@endif gmp
56820@if mpfr
56821 @if test -d $(HOST_SUBDIR)/mpfr ; then \
56822 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
56823 mv prev-mpfr stage3-mpfr ; : ; \
56824 fi
56825@endif mpfr
121f0eb2
RW
56826@if mpc
56827 @if test -d $(HOST_SUBDIR)/mpc ; then \
56828 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
56829 mv prev-mpc stage3-mpc ; : ; \
56830 fi
56831@endif mpc
311b6756
JM
56832@if ppl
56833 @if test -d $(HOST_SUBDIR)/ppl ; then \
56834 cd $(HOST_SUBDIR); mv ppl stage4-ppl ; \
56835 mv prev-ppl stage3-ppl ; : ; \
56836 fi
56837@endif ppl
56838@if cloog
56839 @if test -d $(HOST_SUBDIR)/cloog ; then \
56840 cd $(HOST_SUBDIR); mv cloog stage4-cloog ; \
56841 mv prev-cloog stage3-cloog ; : ; \
56842 fi
56843@endif cloog
5074489a
AO
56844@if libelf
56845 @if test -d $(HOST_SUBDIR)/libelf ; then \
56846 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
56847 mv prev-libelf stage3-libelf ; : ; \
56848 fi
56849@endif libelf
b916272a
ILT
56850@if gold
56851 @if test -d $(HOST_SUBDIR)/gold ; then \
56852 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
56853 mv prev-gold stage3-gold ; : ; \
56854 fi
56855@endif gold
6a19fd82 56856@if intl
e3c08f94
PB
56857 @if test -d $(HOST_SUBDIR)/intl ; then \
56858 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
56859 mv prev-intl stage3-intl ; : ; \
15b527ca 56860 fi
6a19fd82
PB
56861@endif intl
56862@if ld
e3c08f94
PB
56863 @if test -d $(HOST_SUBDIR)/ld ; then \
56864 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
56865 mv prev-ld stage3-ld ; : ; \
15b527ca 56866 fi
6a19fd82
PB
56867@endif ld
56868@if libcpp
e3c08f94
PB
56869 @if test -d $(HOST_SUBDIR)/libcpp ; then \
56870 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
56871 mv prev-libcpp stage3-libcpp ; : ; \
15b527ca 56872 fi
6a19fd82 56873@endif libcpp
a7dc05b5 56874@if libdecnumber
e3c08f94
PB
56875 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
56876 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
56877 mv prev-libdecnumber stage3-libdecnumber ; : ; \
15b527ca 56878 fi
a7dc05b5 56879@endif libdecnumber
6a19fd82 56880@if libiberty
e3c08f94
PB
56881 @if test -d $(HOST_SUBDIR)/libiberty ; then \
56882 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
56883 mv prev-libiberty stage3-libiberty ; : ; \
15b527ca 56884 fi
6a19fd82
PB
56885@endif libiberty
56886@if zlib
e3c08f94
PB
56887 @if test -d $(HOST_SUBDIR)/zlib ; then \
56888 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
56889 mv prev-zlib stage3-zlib ; : ; \
15b527ca 56890 fi
6a19fd82 56891@endif zlib
bd45d6fa
ILT
56892@if lto-plugin
56893 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
56894 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
56895 mv prev-lto-plugin stage3-lto-plugin ; : ; \
56896 fi
56897@endif lto-plugin
15b527ca 56898 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
56899 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
56900 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
15b527ca 56901 fi
e3c08f94 56902 rm -f stage_current
6a19fd82 56903
d3531b73 56904# Bubble a bug fix through all the stages up to stage 4. They are
15b527ca 56905# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 56906# reconfigured either.
6a19fd82
PB
56907.PHONY: stage4-bubble
56908stage4-bubble:: stage3-bubble
ecebee48
PB
56909 @r=`${PWD_COMMAND}`; export r; \
56910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56911 if test -f stage4-lean || test -f stage3-lean ; then \
ebc58bf8
PB
56912 echo Skipping rebuild of stage4 ; \
56913 else \
168b158c 56914 $(MAKE) stage4-start; \
e3c08f94
PB
56915 if $(LEAN); then \
56916 rm -rf stage2-* ; \
56917 $(STAMP) stage2-lean ; \
56918 fi; \
168b158c 56919 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ebc58bf8 56920 fi
7e958b2e 56921 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
6a19fd82 56922
99df82b9 56923.PHONY: all-stage4 clean-stage4
99df82b9 56924do-clean: clean-stage4
99df82b9 56925
a8a96878
PB
56926# FIXME: Will not need to be conditional when toplevel bootstrap is the
56927# only possibility, but now it conflicts with no-bootstrap rules
56928@if gcc-bootstrap
6a19fd82 56929
a8a96878 56930compare3:
ecebee48
PB
56931 @r=`${PWD_COMMAND}`; export r; \
56932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56933 if test -f stage3-lean; then \
a8a96878
PB
56934 echo Cannot compare object files as stage 3 was deleted. ; \
56935 exit 0 ; \
56936 fi; \
15b527ca 56937 : $(MAKE); $(stage); \
a8a96878 56938 rm -f .bad_compare ; \
ec92c4d6 56939 echo Comparing stages 3 and 4 ; \
6f15a1a0
AO
56940 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
56941 files=`find stage4-* -name "*$(objext)" -print | \
56942 sed -n s,^stage$$sed-,,p` ; \
a8a96878 56943 for file in $${files} ; do \
6f15a1a0
AO
56944 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
56945 if test ! -f $$f1; then continue; fi; \
2b41ef78 56946 $(do-compare3) > /dev/null 2>&1; \
168b158c
PB
56947 if test $$? -eq 1; then \
56948 case $$file in \
121f0eb2 56949 @compare_exclusions@) \
168b158c
PB
56950 echo warning: $$file differs ;; \
56951 *) \
56952 echo $$file differs >> .bad_compare ;; \
56953 esac ; \
56954 fi ; \
a8a96878
PB
56955 done ; \
56956 if [ -f .bad_compare ]; then \
56957 echo "Bootstrap comparison failure!"; \
56958 cat .bad_compare; \
56959 exit 1; \
56960 else \
ec92c4d6 56961 echo Comparison successful.; \
a8a96878
PB
56962 fi ; \
56963 $(STAMP) compare3
e3c08f94
PB
56964 if $(LEAN); then \
56965 rm -rf stage3-*; \
56966 $(STAMP) stage3-lean; \
56967 fi
ebc58bf8 56968
6a19fd82 56969
6a19fd82 56970
e3c08f94 56971.PHONY: bootstrap4 bootstrap4-lean
a7dc05b5
PB
56972bootstrap4:
56973 echo stage4 > stage_final
56974 @r=`${PWD_COMMAND}`; export r; \
56975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56976 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
15b527ca 56977 @: $(MAKE); $(unstage)
a7dc05b5
PB
56978 @r=`${PWD_COMMAND}`; export r; \
56979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56980 TFLAGS="$(STAGE4_TFLAGS)"; \
a7dc05b5 56981 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
99df82b9 56982
e3c08f94
PB
56983bootstrap4-lean:
56984 echo stage4 > stage_final
56985 @r=`${PWD_COMMAND}`; export r; \
56986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56987 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
56988 @: $(MAKE); $(unstage)
56989 @r=`${PWD_COMMAND}`; export r; \
56990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 56991 TFLAGS="$(STAGE4_TFLAGS)"; \
e3c08f94
PB
56992 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56993
6a19fd82 56994
a8a96878
PB
56995# Rules to wipe a stage and all the following ones, also used for cleanstrap
56996distclean-stage3:: distclean-stage4
56997.PHONY: distclean-stage4
56998distclean-stage4::
15b527ca 56999 @: $(MAKE); $(stage)
28826d8f 57000 @test "`cat stage_last`" != stage4 || rm -f stage_last
a8a96878 57001 rm -rf stage4-* compare3
99df82b9 57002
ebc58bf8 57003
a8a96878 57004@endif gcc-bootstrap
6a19fd82
PB
57005
57006
57007.PHONY: stageprofile-start stageprofile-end
57008
57009stageprofile-start::
15b527ca 57010 @: $(MAKE); $(stage); \
6a19fd82 57011 echo stageprofile > stage_current ; \
7fc2ca22 57012 echo stageprofile > stage_last; \
15b527ca 57013 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 57014@if bfd
7fc2ca22
PB
57015 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
57016 mkdir stageprofile-bfd; \
e3c08f94
PB
57017 mv stageprofile-bfd bfd ; \
57018 mv stage1-bfd prev-bfd || test -f stage1-lean
6a19fd82
PB
57019@endif bfd
57020@if opcodes
7fc2ca22
PB
57021 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
57022 mkdir stageprofile-opcodes; \
e3c08f94
PB
57023 mv stageprofile-opcodes opcodes ; \
57024 mv stage1-opcodes prev-opcodes || test -f stage1-lean
6a19fd82
PB
57025@endif opcodes
57026@if binutils
7fc2ca22
PB
57027 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
57028 mkdir stageprofile-binutils; \
e3c08f94
PB
57029 mv stageprofile-binutils binutils ; \
57030 mv stage1-binutils prev-binutils || test -f stage1-lean
6a19fd82
PB
57031@endif binutils
57032@if gas
7fc2ca22
PB
57033 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
57034 mkdir stageprofile-gas; \
e3c08f94
PB
57035 mv stageprofile-gas gas ; \
57036 mv stage1-gas prev-gas || test -f stage1-lean
6a19fd82
PB
57037@endif gas
57038@if gcc
7fc2ca22
PB
57039 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
57040 mkdir stageprofile-gcc; \
e3c08f94
PB
57041 mv stageprofile-gcc gcc ; \
57042 mv stage1-gcc prev-gcc || test -f stage1-lean
6a19fd82 57043@endif gcc
42f55f77
PB
57044@if gmp
57045 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
57046 mkdir stageprofile-gmp; \
57047 mv stageprofile-gmp gmp ; \
57048 mv stage1-gmp prev-gmp || test -f stage1-lean
57049@endif gmp
57050@if mpfr
57051 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
57052 mkdir stageprofile-mpfr; \
57053 mv stageprofile-mpfr mpfr ; \
57054 mv stage1-mpfr prev-mpfr || test -f stage1-lean
57055@endif mpfr
121f0eb2
RW
57056@if mpc
57057 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
57058 mkdir stageprofile-mpc; \
57059 mv stageprofile-mpc mpc ; \
57060 mv stage1-mpc prev-mpc || test -f stage1-lean
57061@endif mpc
311b6756
JM
57062@if ppl
57063 @cd $(HOST_SUBDIR); [ -d stageprofile-ppl ] || \
57064 mkdir stageprofile-ppl; \
57065 mv stageprofile-ppl ppl ; \
57066 mv stage1-ppl prev-ppl || test -f stage1-lean
57067@endif ppl
57068@if cloog
57069 @cd $(HOST_SUBDIR); [ -d stageprofile-cloog ] || \
57070 mkdir stageprofile-cloog; \
57071 mv stageprofile-cloog cloog ; \
57072 mv stage1-cloog prev-cloog || test -f stage1-lean
57073@endif cloog
5074489a
AO
57074@if libelf
57075 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
57076 mkdir stageprofile-libelf; \
57077 mv stageprofile-libelf libelf ; \
57078 mv stage1-libelf prev-libelf || test -f stage1-lean
57079@endif libelf
b916272a
ILT
57080@if gold
57081 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
57082 mkdir stageprofile-gold; \
57083 mv stageprofile-gold gold ; \
57084 mv stage1-gold prev-gold || test -f stage1-lean
57085@endif gold
6a19fd82 57086@if intl
7fc2ca22
PB
57087 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
57088 mkdir stageprofile-intl; \
e3c08f94
PB
57089 mv stageprofile-intl intl ; \
57090 mv stage1-intl prev-intl || test -f stage1-lean
6a19fd82
PB
57091@endif intl
57092@if ld
7fc2ca22
PB
57093 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
57094 mkdir stageprofile-ld; \
e3c08f94
PB
57095 mv stageprofile-ld ld ; \
57096 mv stage1-ld prev-ld || test -f stage1-lean
6a19fd82
PB
57097@endif ld
57098@if libcpp
7fc2ca22
PB
57099 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
57100 mkdir stageprofile-libcpp; \
e3c08f94
PB
57101 mv stageprofile-libcpp libcpp ; \
57102 mv stage1-libcpp prev-libcpp || test -f stage1-lean
6a19fd82 57103@endif libcpp
a7dc05b5
PB
57104@if libdecnumber
57105 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
57106 mkdir stageprofile-libdecnumber; \
e3c08f94
PB
57107 mv stageprofile-libdecnumber libdecnumber ; \
57108 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a7dc05b5 57109@endif libdecnumber
6a19fd82 57110@if libiberty
7fc2ca22
PB
57111 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
57112 mkdir stageprofile-libiberty; \
e3c08f94
PB
57113 mv stageprofile-libiberty libiberty ; \
57114 mv stage1-libiberty prev-libiberty || test -f stage1-lean
6a19fd82
PB
57115@endif libiberty
57116@if zlib
a8a96878
PB
57117 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
57118 mkdir stageprofile-zlib; \
e3c08f94
PB
57119 mv stageprofile-zlib zlib ; \
57120 mv stage1-zlib prev-zlib || test -f stage1-lean
a8a96878 57121@endif zlib
bd45d6fa
ILT
57122@if lto-plugin
57123 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
57124 mkdir stageprofile-lto-plugin; \
57125 mv stageprofile-lto-plugin lto-plugin ; \
57126 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
57127@endif lto-plugin
15b527ca
PB
57128 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
57129 mkdir stageprofile-$(TARGET_SUBDIR); \
e3c08f94
PB
57130 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
57131 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
99df82b9 57132
e3c08f94 57133stageprofile-end::
a8a96878 57134@if bfd
e3c08f94
PB
57135 @if test -d $(HOST_SUBDIR)/bfd ; then \
57136 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
57137 mv prev-bfd stage1-bfd ; : ; \
15b527ca 57138 fi
a8a96878
PB
57139@endif bfd
57140@if opcodes
e3c08f94
PB
57141 @if test -d $(HOST_SUBDIR)/opcodes ; then \
57142 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
57143 mv prev-opcodes stage1-opcodes ; : ; \
15b527ca 57144 fi
a8a96878
PB
57145@endif opcodes
57146@if binutils
e3c08f94
PB
57147 @if test -d $(HOST_SUBDIR)/binutils ; then \
57148 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
57149 mv prev-binutils stage1-binutils ; : ; \
15b527ca 57150 fi
a8a96878
PB
57151@endif binutils
57152@if gas
e3c08f94
PB
57153 @if test -d $(HOST_SUBDIR)/gas ; then \
57154 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
57155 mv prev-gas stage1-gas ; : ; \
15b527ca 57156 fi
a8a96878
PB
57157@endif gas
57158@if gcc
e3c08f94
PB
57159 @if test -d $(HOST_SUBDIR)/gcc ; then \
57160 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
57161 mv prev-gcc stage1-gcc ; : ; \
15b527ca 57162 fi
a8a96878 57163@endif gcc
42f55f77
PB
57164@if gmp
57165 @if test -d $(HOST_SUBDIR)/gmp ; then \
57166 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
57167 mv prev-gmp stage1-gmp ; : ; \
57168 fi
57169@endif gmp
57170@if mpfr
57171 @if test -d $(HOST_SUBDIR)/mpfr ; then \
57172 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
57173 mv prev-mpfr stage1-mpfr ; : ; \
57174 fi
57175@endif mpfr
121f0eb2
RW
57176@if mpc
57177 @if test -d $(HOST_SUBDIR)/mpc ; then \
57178 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
57179 mv prev-mpc stage1-mpc ; : ; \
57180 fi
57181@endif mpc
311b6756
JM
57182@if ppl
57183 @if test -d $(HOST_SUBDIR)/ppl ; then \
57184 cd $(HOST_SUBDIR); mv ppl stageprofile-ppl ; \
57185 mv prev-ppl stage1-ppl ; : ; \
57186 fi
57187@endif ppl
57188@if cloog
57189 @if test -d $(HOST_SUBDIR)/cloog ; then \
57190 cd $(HOST_SUBDIR); mv cloog stageprofile-cloog ; \
57191 mv prev-cloog stage1-cloog ; : ; \
57192 fi
57193@endif cloog
5074489a
AO
57194@if libelf
57195 @if test -d $(HOST_SUBDIR)/libelf ; then \
57196 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
57197 mv prev-libelf stage1-libelf ; : ; \
57198 fi
57199@endif libelf
b916272a
ILT
57200@if gold
57201 @if test -d $(HOST_SUBDIR)/gold ; then \
57202 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
57203 mv prev-gold stage1-gold ; : ; \
57204 fi
57205@endif gold
a8a96878 57206@if intl
e3c08f94
PB
57207 @if test -d $(HOST_SUBDIR)/intl ; then \
57208 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
57209 mv prev-intl stage1-intl ; : ; \
15b527ca 57210 fi
a8a96878
PB
57211@endif intl
57212@if ld
e3c08f94
PB
57213 @if test -d $(HOST_SUBDIR)/ld ; then \
57214 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
57215 mv prev-ld stage1-ld ; : ; \
15b527ca 57216 fi
a8a96878
PB
57217@endif ld
57218@if libcpp
e3c08f94
PB
57219 @if test -d $(HOST_SUBDIR)/libcpp ; then \
57220 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
57221 mv prev-libcpp stage1-libcpp ; : ; \
15b527ca 57222 fi
a8a96878 57223@endif libcpp
a7dc05b5 57224@if libdecnumber
e3c08f94
PB
57225 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
57226 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
57227 mv prev-libdecnumber stage1-libdecnumber ; : ; \
15b527ca 57228 fi
a7dc05b5 57229@endif libdecnumber
a8a96878 57230@if libiberty
e3c08f94
PB
57231 @if test -d $(HOST_SUBDIR)/libiberty ; then \
57232 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
57233 mv prev-libiberty stage1-libiberty ; : ; \
15b527ca 57234 fi
a8a96878
PB
57235@endif libiberty
57236@if zlib
e3c08f94
PB
57237 @if test -d $(HOST_SUBDIR)/zlib ; then \
57238 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
57239 mv prev-zlib stage1-zlib ; : ; \
15b527ca 57240 fi
a8a96878 57241@endif zlib
bd45d6fa
ILT
57242@if lto-plugin
57243 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
57244 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
57245 mv prev-lto-plugin stage1-lto-plugin ; : ; \
57246 fi
57247@endif lto-plugin
15b527ca 57248 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
57249 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
57250 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
15b527ca 57251 fi
e3c08f94 57252 rm -f stage_current
6a19fd82 57253
d3531b73 57254# Bubble a bug fix through all the stages up to stage profile. They are
15b527ca 57255# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 57256# reconfigured either.
a8a96878
PB
57257.PHONY: stageprofile-bubble
57258stageprofile-bubble:: stage1-bubble
ecebee48
PB
57259 @r=`${PWD_COMMAND}`; export r; \
57260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57261 if test -f stageprofile-lean || test -f stage1-lean ; then \
a8a96878
PB
57262 echo Skipping rebuild of stageprofile ; \
57263 else \
168b158c
PB
57264 $(MAKE) stageprofile-start; \
57265 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
a8a96878 57266 fi
6a19fd82 57267
a8a96878
PB
57268.PHONY: all-stageprofile clean-stageprofile
57269do-clean: clean-stageprofile
99df82b9 57270
6a19fd82
PB
57271# FIXME: Will not need to be conditional when toplevel bootstrap is the
57272# only possibility, but now it conflicts with no-bootstrap rules
57273@if gcc-bootstrap
57274
57275
57276
57277
99df82b9 57278# Rules to wipe a stage and all the following ones, also used for cleanstrap
6a19fd82 57279distclean-stage1:: distclean-stageprofile
99df82b9 57280.PHONY: distclean-stageprofile
6a19fd82 57281distclean-stageprofile::
15b527ca 57282 @: $(MAKE); $(stage)
28826d8f 57283 @test "`cat stage_last`" != stageprofile || rm -f stage_last
ebc58bf8 57284 rm -rf stageprofile-*
35269421
PB
57285
57286
6a19fd82 57287@endif gcc-bootstrap
35269421
PB
57288
57289
6a19fd82 57290.PHONY: stagefeedback-start stagefeedback-end
35269421 57291
6a19fd82 57292stagefeedback-start::
15b527ca 57293 @: $(MAKE); $(stage); \
6a19fd82 57294 echo stagefeedback > stage_current ; \
7fc2ca22 57295 echo stagefeedback > stage_last; \
15b527ca 57296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
6a19fd82 57297@if bfd
7fc2ca22
PB
57298 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
57299 mkdir stagefeedback-bfd; \
e3c08f94
PB
57300 mv stagefeedback-bfd bfd ; \
57301 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
6a19fd82
PB
57302@endif bfd
57303@if opcodes
7fc2ca22
PB
57304 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
57305 mkdir stagefeedback-opcodes; \
e3c08f94
PB
57306 mv stagefeedback-opcodes opcodes ; \
57307 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
6a19fd82
PB
57308@endif opcodes
57309@if binutils
7fc2ca22
PB
57310 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
57311 mkdir stagefeedback-binutils; \
e3c08f94
PB
57312 mv stagefeedback-binutils binutils ; \
57313 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
6a19fd82
PB
57314@endif binutils
57315@if gas
7fc2ca22
PB
57316 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
57317 mkdir stagefeedback-gas; \
e3c08f94
PB
57318 mv stagefeedback-gas gas ; \
57319 mv stageprofile-gas prev-gas || test -f stageprofile-lean
6a19fd82
PB
57320@endif gas
57321@if gcc
7fc2ca22
PB
57322 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
57323 mkdir stagefeedback-gcc; \
e3c08f94
PB
57324 mv stagefeedback-gcc gcc ; \
57325 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
6a19fd82 57326@endif gcc
42f55f77
PB
57327@if gmp
57328 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
57329 mkdir stagefeedback-gmp; \
57330 mv stagefeedback-gmp gmp ; \
57331 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
57332@endif gmp
57333@if mpfr
57334 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
57335 mkdir stagefeedback-mpfr; \
57336 mv stagefeedback-mpfr mpfr ; \
57337 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
57338@endif mpfr
121f0eb2
RW
57339@if mpc
57340 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
57341 mkdir stagefeedback-mpc; \
57342 mv stagefeedback-mpc mpc ; \
57343 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
57344@endif mpc
311b6756
JM
57345@if ppl
57346 @cd $(HOST_SUBDIR); [ -d stagefeedback-ppl ] || \
57347 mkdir stagefeedback-ppl; \
57348 mv stagefeedback-ppl ppl ; \
57349 mv stageprofile-ppl prev-ppl || test -f stageprofile-lean
57350@endif ppl
57351@if cloog
57352 @cd $(HOST_SUBDIR); [ -d stagefeedback-cloog ] || \
57353 mkdir stagefeedback-cloog; \
57354 mv stagefeedback-cloog cloog ; \
57355 mv stageprofile-cloog prev-cloog || test -f stageprofile-lean
57356@endif cloog
5074489a
AO
57357@if libelf
57358 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
57359 mkdir stagefeedback-libelf; \
57360 mv stagefeedback-libelf libelf ; \
57361 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
57362@endif libelf
b916272a
ILT
57363@if gold
57364 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
57365 mkdir stagefeedback-gold; \
57366 mv stagefeedback-gold gold ; \
57367 mv stageprofile-gold prev-gold || test -f stageprofile-lean
57368@endif gold
6a19fd82 57369@if intl
7fc2ca22
PB
57370 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
57371 mkdir stagefeedback-intl; \
e3c08f94
PB
57372 mv stagefeedback-intl intl ; \
57373 mv stageprofile-intl prev-intl || test -f stageprofile-lean
6a19fd82
PB
57374@endif intl
57375@if ld
7fc2ca22
PB
57376 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
57377 mkdir stagefeedback-ld; \
e3c08f94
PB
57378 mv stagefeedback-ld ld ; \
57379 mv stageprofile-ld prev-ld || test -f stageprofile-lean
6a19fd82
PB
57380@endif ld
57381@if libcpp
7fc2ca22
PB
57382 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
57383 mkdir stagefeedback-libcpp; \
e3c08f94
PB
57384 mv stagefeedback-libcpp libcpp ; \
57385 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
6a19fd82 57386@endif libcpp
a7dc05b5
PB
57387@if libdecnumber
57388 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
57389 mkdir stagefeedback-libdecnumber; \
e3c08f94
PB
57390 mv stagefeedback-libdecnumber libdecnumber ; \
57391 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a7dc05b5 57392@endif libdecnumber
6a19fd82 57393@if libiberty
7fc2ca22
PB
57394 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
57395 mkdir stagefeedback-libiberty; \
e3c08f94
PB
57396 mv stagefeedback-libiberty libiberty ; \
57397 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
6a19fd82
PB
57398@endif libiberty
57399@if zlib
7fc2ca22
PB
57400 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
57401 mkdir stagefeedback-zlib; \
e3c08f94
PB
57402 mv stagefeedback-zlib zlib ; \
57403 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
6a19fd82 57404@endif zlib
bd45d6fa
ILT
57405@if lto-plugin
57406 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
57407 mkdir stagefeedback-lto-plugin; \
57408 mv stagefeedback-lto-plugin lto-plugin ; \
57409 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
57410@endif lto-plugin
15b527ca
PB
57411 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
57412 mkdir stagefeedback-$(TARGET_SUBDIR); \
e3c08f94
PB
57413 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
57414 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
35269421 57415
e3c08f94 57416stagefeedback-end::
6a19fd82 57417@if bfd
e3c08f94
PB
57418 @if test -d $(HOST_SUBDIR)/bfd ; then \
57419 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
57420 mv prev-bfd stageprofile-bfd ; : ; \
15b527ca 57421 fi
6a19fd82
PB
57422@endif bfd
57423@if opcodes
e3c08f94
PB
57424 @if test -d $(HOST_SUBDIR)/opcodes ; then \
57425 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
57426 mv prev-opcodes stageprofile-opcodes ; : ; \
15b527ca 57427 fi
6a19fd82
PB
57428@endif opcodes
57429@if binutils
e3c08f94
PB
57430 @if test -d $(HOST_SUBDIR)/binutils ; then \
57431 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
57432 mv prev-binutils stageprofile-binutils ; : ; \
15b527ca 57433 fi
6a19fd82
PB
57434@endif binutils
57435@if gas
e3c08f94
PB
57436 @if test -d $(HOST_SUBDIR)/gas ; then \
57437 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
57438 mv prev-gas stageprofile-gas ; : ; \
15b527ca 57439 fi
6a19fd82
PB
57440@endif gas
57441@if gcc
e3c08f94
PB
57442 @if test -d $(HOST_SUBDIR)/gcc ; then \
57443 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
57444 mv prev-gcc stageprofile-gcc ; : ; \
15b527ca 57445 fi
6a19fd82 57446@endif gcc
42f55f77
PB
57447@if gmp
57448 @if test -d $(HOST_SUBDIR)/gmp ; then \
57449 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
57450 mv prev-gmp stageprofile-gmp ; : ; \
57451 fi
57452@endif gmp
57453@if mpfr
57454 @if test -d $(HOST_SUBDIR)/mpfr ; then \
57455 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
57456 mv prev-mpfr stageprofile-mpfr ; : ; \
57457 fi
57458@endif mpfr
121f0eb2
RW
57459@if mpc
57460 @if test -d $(HOST_SUBDIR)/mpc ; then \
57461 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
57462 mv prev-mpc stageprofile-mpc ; : ; \
57463 fi
57464@endif mpc
311b6756
JM
57465@if ppl
57466 @if test -d $(HOST_SUBDIR)/ppl ; then \
57467 cd $(HOST_SUBDIR); mv ppl stagefeedback-ppl ; \
57468 mv prev-ppl stageprofile-ppl ; : ; \
57469 fi
57470@endif ppl
57471@if cloog
57472 @if test -d $(HOST_SUBDIR)/cloog ; then \
57473 cd $(HOST_SUBDIR); mv cloog stagefeedback-cloog ; \
57474 mv prev-cloog stageprofile-cloog ; : ; \
57475 fi
57476@endif cloog
5074489a
AO
57477@if libelf
57478 @if test -d $(HOST_SUBDIR)/libelf ; then \
57479 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
57480 mv prev-libelf stageprofile-libelf ; : ; \
57481 fi
57482@endif libelf
b916272a
ILT
57483@if gold
57484 @if test -d $(HOST_SUBDIR)/gold ; then \
57485 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
57486 mv prev-gold stageprofile-gold ; : ; \
57487 fi
57488@endif gold
6a19fd82 57489@if intl
e3c08f94
PB
57490 @if test -d $(HOST_SUBDIR)/intl ; then \
57491 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
57492 mv prev-intl stageprofile-intl ; : ; \
15b527ca 57493 fi
6a19fd82
PB
57494@endif intl
57495@if ld
e3c08f94
PB
57496 @if test -d $(HOST_SUBDIR)/ld ; then \
57497 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
57498 mv prev-ld stageprofile-ld ; : ; \
15b527ca 57499 fi
6a19fd82
PB
57500@endif ld
57501@if libcpp
e3c08f94
PB
57502 @if test -d $(HOST_SUBDIR)/libcpp ; then \
57503 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
57504 mv prev-libcpp stageprofile-libcpp ; : ; \
15b527ca 57505 fi
6a19fd82 57506@endif libcpp
a7dc05b5 57507@if libdecnumber
e3c08f94
PB
57508 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
57509 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
57510 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
15b527ca 57511 fi
a7dc05b5 57512@endif libdecnumber
6a19fd82 57513@if libiberty
e3c08f94
PB
57514 @if test -d $(HOST_SUBDIR)/libiberty ; then \
57515 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
57516 mv prev-libiberty stageprofile-libiberty ; : ; \
15b527ca 57517 fi
6a19fd82
PB
57518@endif libiberty
57519@if zlib
e3c08f94
PB
57520 @if test -d $(HOST_SUBDIR)/zlib ; then \
57521 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
57522 mv prev-zlib stageprofile-zlib ; : ; \
15b527ca 57523 fi
6a19fd82 57524@endif zlib
bd45d6fa
ILT
57525@if lto-plugin
57526 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
57527 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
57528 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
57529 fi
57530@endif lto-plugin
15b527ca 57531 @if test -d $(TARGET_SUBDIR) ; then \
e3c08f94
PB
57532 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
57533 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
15b527ca 57534 fi
e3c08f94 57535 rm -f stage_current
35269421 57536
d3531b73 57537# Bubble a bug fix through all the stages up to stage feedback. They are
15b527ca 57538# remade, but not reconfigured. The next stage (if any) will not be
5edf1524 57539# reconfigured either.
6a19fd82 57540.PHONY: stagefeedback-bubble
6bfab24e 57541stagefeedback-bubble:: stageprofile-bubble
ecebee48
PB
57542 @r=`${PWD_COMMAND}`; export r; \
57543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57544 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ebc58bf8
PB
57545 echo Skipping rebuild of stagefeedback ; \
57546 else \
168b158c
PB
57547 $(MAKE) stagefeedback-start; \
57548 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ebc58bf8 57549 fi
6a19fd82 57550
99df82b9 57551.PHONY: all-stagefeedback clean-stagefeedback
99df82b9 57552do-clean: clean-stagefeedback
99df82b9 57553
6a19fd82
PB
57554# FIXME: Will not need to be conditional when toplevel bootstrap is the
57555# only possibility, but now it conflicts with no-bootstrap rules
57556@if gcc-bootstrap
21ff191e
PB
57557
57558
57559
e3c08f94 57560.PHONY: profiledbootstrap profiledbootstrap-lean
a7dc05b5
PB
57561profiledbootstrap:
57562 echo stagefeedback > stage_final
57563 @r=`${PWD_COMMAND}`; export r; \
57564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57565 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
15b527ca 57566 @: $(MAKE); $(unstage)
a7dc05b5
PB
57567 @r=`${PWD_COMMAND}`; export r; \
57568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 57569 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a7dc05b5 57570 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
6bfab24e 57571
e3c08f94
PB
57572profiledbootstrap-lean:
57573 echo stagefeedback > stage_final
57574 @r=`${PWD_COMMAND}`; export r; \
57575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57576 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
57577 @: $(MAKE); $(unstage)
57578 @r=`${PWD_COMMAND}`; export r; \
57579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c91ae28f 57580 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e3c08f94
PB
57581 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
57582
21ff191e 57583
99df82b9 57584# Rules to wipe a stage and all the following ones, also used for cleanstrap
6bfab24e 57585distclean-stageprofile:: distclean-stagefeedback
99df82b9 57586.PHONY: distclean-stagefeedback
21ff191e 57587distclean-stagefeedback::
15b527ca 57588 @: $(MAKE); $(stage)
28826d8f 57589 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
ebc58bf8 57590 rm -rf stagefeedback-*
21ff191e
PB
57591
57592
6a19fd82 57593@endif gcc-bootstrap
21ff191e
PB
57594
57595
57596
6bfab24e
PB
57597stageprofile-end::
57598 $(MAKE) distclean-stagefeedback
21ff191e 57599
6bfab24e 57600stagefeedback-start::
21ff191e
PB
57601 @r=`${PWD_COMMAND}`; export r; \
57602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6bfab24e
PB
57603 for i in prev-*; do \
57604 j=`echo $$i | sed s/^prev-//` ; \
57605 cd $$r/$$i && \
57606 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
57607 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
57608 done
866c244e 57609
99df82b9 57610@if gcc-bootstrap
99df82b9 57611do-distclean: distclean-stage1
ec92c4d6
PB
57612
57613# Provide a GCC build when we're building target libraries. This does
57614# not work as a dependency, just as the minimum necessary to avoid errors.
57615stage_last:
57c9bccb
AS
57616 @r=`${PWD_COMMAND}`; export r; \
57617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
ec92c4d6 57618 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
99df82b9 57619
e1e5148c
CD
57620# Same as unstage, but not phony and defaulting to stage1-start. We place
57621# it in the dependency so that for example `make -j3 all-gcc' works.
57622stage_current:
57623 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
57624
ec92c4d6 57625.PHONY: restrap
edd8c172 57626restrap::
ec92c4d6 57627 @: $(MAKE); $(stage)
c91ae28f 57628 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
edd8c172 57629restrap:: all
5544eee7 57630@endif gcc-bootstrap
ec92c4d6 57631
c5ab3a90
NN
57632# --------------------------------------
57633# Dependencies between different modules
57634# --------------------------------------
a3acbf46 57635
364b9683 57636# Generic dependencies for target modules on host stuff, especially gcc
ec92c4d6 57637@if gcc-bootstrap
121f0eb2
RW
57638configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
57639configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
57640configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
57641configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
57642configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
57643configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
ec92c4d6
PB
57644configure-target-libmudflap: stage_last
57645configure-target-libssp: stage_last
ec92c4d6 57646configure-target-newlib: stage_last
1f316156
DJ
57647configure-stage1-target-libgcc: maybe-all-stage1-gcc
57648configure-stage2-target-libgcc: maybe-all-stage2-gcc
57649configure-stage3-target-libgcc: maybe-all-stage3-gcc
57650configure-stage4-target-libgcc: maybe-all-stage4-gcc
57651configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
57652configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
ec92c4d6
PB
57653configure-target-libgfortran: stage_last
57654configure-target-libobjc: stage_last
57655configure-target-libtermcap: stage_last
57656configure-target-winsup: stage_last
57657configure-target-libgloss: stage_last
57658configure-target-libiberty: stage_last
57659configure-target-gperf: stage_last
57660configure-target-examples: stage_last
57661configure-target-libffi: stage_last
57662configure-target-libjava: stage_last
57663configure-target-zlib: stage_last
57664configure-target-boehm-gc: stage_last
57665configure-target-qthreads: stage_last
57666configure-target-rda: stage_last
57667configure-target-libada: stage_last
e894eef9
JR
57668configure-stage1-target-libgomp: maybe-all-stage1-gcc
57669configure-stage2-target-libgomp: maybe-all-stage2-gcc
57670configure-stage3-target-libgomp: maybe-all-stage3-gcc
57671configure-stage4-target-libgomp: maybe-all-stage4-gcc
57672configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
57673configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
ec92c4d6 57674@endif gcc-bootstrap
364b9683 57675
ec92c4d6 57676@if gcc-no-bootstrap
364b9683 57677configure-target-libstdc++-v3: maybe-all-gcc
364b9683 57678configure-target-libmudflap: maybe-all-gcc
4c3e061c 57679configure-target-libssp: maybe-all-gcc
364b9683 57680configure-target-newlib: maybe-all-gcc
1f316156 57681configure-target-libgcc: maybe-all-gcc
364b9683 57682configure-target-libgfortran: maybe-all-gcc
364b9683 57683configure-target-libobjc: maybe-all-gcc
364b9683 57684configure-target-libtermcap: maybe-all-gcc
364b9683 57685configure-target-winsup: maybe-all-gcc
364b9683 57686configure-target-libgloss: maybe-all-gcc
364b9683 57687configure-target-libiberty: maybe-all-gcc
364b9683 57688configure-target-gperf: maybe-all-gcc
364b9683 57689configure-target-examples: maybe-all-gcc
364b9683 57690configure-target-libffi: maybe-all-gcc
364b9683 57691configure-target-libjava: maybe-all-gcc
364b9683 57692configure-target-zlib: maybe-all-gcc
364b9683 57693configure-target-boehm-gc: maybe-all-gcc
364b9683 57694configure-target-qthreads: maybe-all-gcc
364b9683 57695configure-target-rda: maybe-all-gcc
364b9683 57696configure-target-libada: maybe-all-gcc
00bc9d7f 57697configure-target-libgomp: maybe-all-gcc
ec92c4d6 57698@endif gcc-no-bootstrap
00bc9d7f 57699
364b9683 57700
c5ab3a90
NN
57701# There are two types of dependencies here: 'hard' dependencies, where one
57702# module simply won't build without the other; and 'soft' dependencies, where
57703# if the depended-on module is missing, the depending module will do without
57704# or find a substitute somewhere (perhaps installed). Soft dependencies
364b9683 57705# are made here to depend on a 'maybe-' target. If you're not sure,
c5ab3a90
NN
57706# it's safer to use a soft dependency.
57707
364b9683
PB
57708
57709
57710
57711
10b25909 57712
364b9683
PB
57713# With all the machinery above in place, it is pretty easy to generate
57714# dependencies. Host dependencies are a bit more complex because we have
57715# to check for bootstrap/prebootstrap dependencies. To resolve
57716# prebootstrap dependencies, prebootstrap modules are gathered in
57717# a hash table.
2cb47d68 57718all-build-bison: maybe-all-build-texinfo
364b9683 57719all-build-byacc: maybe-all-build-texinfo
2cb47d68 57720all-build-flex: maybe-all-build-texinfo
364b9683
PB
57721all-build-flex: maybe-all-build-bison
57722all-build-flex: maybe-all-build-byacc
57723all-build-flex: maybe-all-build-m4
2cb47d68 57724all-build-libiberty: maybe-all-build-texinfo
364b9683 57725all-build-m4: maybe-all-build-texinfo
607d4caf 57726all-build-fixincludes: maybe-all-build-libiberty
364b9683
PB
57727configure-gcc: maybe-configure-intl
57728
57729configure-stage1-gcc: maybe-configure-stage1-intl
57730configure-stage2-gcc: maybe-configure-stage2-intl
57731configure-stage3-gcc: maybe-configure-stage3-intl
57732configure-stage4-gcc: maybe-configure-stage4-intl
57733configure-stageprofile-gcc: maybe-configure-stageprofile-intl
57734configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
10b25909
PB
57735configure-gcc: maybe-all-binutils
57736
57737configure-stage1-gcc: maybe-all-stage1-binutils
57738configure-stage2-gcc: maybe-all-stage2-binutils
57739configure-stage3-gcc: maybe-all-stage3-binutils
57740configure-stage4-gcc: maybe-all-stage4-binutils
57741configure-stageprofile-gcc: maybe-all-stageprofile-binutils
57742configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
57743configure-gcc: maybe-all-gas
57744
57745configure-stage1-gcc: maybe-all-stage1-gas
57746configure-stage2-gcc: maybe-all-stage2-gas
57747configure-stage3-gcc: maybe-all-stage3-gas
57748configure-stage4-gcc: maybe-all-stage4-gas
57749configure-stageprofile-gcc: maybe-all-stageprofile-gas
57750configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
57751configure-gcc: maybe-all-ld
57752
57753configure-stage1-gcc: maybe-all-stage1-ld
57754configure-stage2-gcc: maybe-all-stage2-ld
57755configure-stage3-gcc: maybe-all-stage3-ld
57756configure-stage4-gcc: maybe-all-stage4-ld
57757configure-stageprofile-gcc: maybe-all-stageprofile-ld
57758configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
b916272a
ILT
57759configure-gcc: maybe-all-gold
57760
57761configure-stage1-gcc: maybe-all-stage1-gold
57762configure-stage2-gcc: maybe-all-stage2-gold
b916272a 57763configure-stage3-gcc: maybe-all-stage3-gold
b916272a
ILT
57764configure-stage4-gcc: maybe-all-stage4-gold
57765configure-stageprofile-gcc: maybe-all-stageprofile-gold
57766configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
e0a451ae
AO
57767configure-gcc: maybe-all-libelf
57768
57769configure-stage1-gcc: maybe-all-stage1-libelf
57770configure-stage2-gcc: maybe-all-stage2-libelf
57771configure-stage3-gcc: maybe-all-stage3-libelf
57772configure-stage4-gcc: maybe-all-stage4-libelf
57773configure-stageprofile-gcc: maybe-all-stageprofile-libelf
57774configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
364b9683
PB
57775all-gcc: all-libiberty
57776
57777all-stage1-gcc: all-stage1-libiberty
57778all-stage2-gcc: all-stage2-libiberty
57779all-stage3-gcc: all-stage3-libiberty
57780all-stage4-gcc: all-stage4-libiberty
57781all-stageprofile-gcc: all-stageprofile-libiberty
57782all-stagefeedback-gcc: all-stagefeedback-libiberty
42f55f77
PB
57783all-gcc: maybe-all-gmp
57784
57785all-stage1-gcc: maybe-all-stage1-gmp
57786all-stage2-gcc: maybe-all-stage2-gmp
57787all-stage3-gcc: maybe-all-stage3-gmp
57788all-stage4-gcc: maybe-all-stage4-gmp
57789all-stageprofile-gcc: maybe-all-stageprofile-gmp
57790all-stagefeedback-gcc: maybe-all-stagefeedback-gmp
364b9683
PB
57791all-gcc: maybe-all-intl
57792
57793all-stage1-gcc: maybe-all-stage1-intl
57794all-stage2-gcc: maybe-all-stage2-intl
57795all-stage3-gcc: maybe-all-stage3-intl
57796all-stage4-gcc: maybe-all-stage4-intl
57797all-stageprofile-gcc: maybe-all-stageprofile-intl
57798all-stagefeedback-gcc: maybe-all-stagefeedback-intl
42f55f77
PB
57799all-gcc: maybe-all-mpfr
57800
57801all-stage1-gcc: maybe-all-stage1-mpfr
57802all-stage2-gcc: maybe-all-stage2-mpfr
57803all-stage3-gcc: maybe-all-stage3-mpfr
57804all-stage4-gcc: maybe-all-stage4-mpfr
57805all-stageprofile-gcc: maybe-all-stageprofile-mpfr
57806all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
121f0eb2
RW
57807all-gcc: maybe-all-mpc
57808
57809all-stage1-gcc: maybe-all-stage1-mpc
57810all-stage2-gcc: maybe-all-stage2-mpc
57811all-stage3-gcc: maybe-all-stage3-mpc
57812all-stage4-gcc: maybe-all-stage4-mpc
57813all-stageprofile-gcc: maybe-all-stageprofile-mpc
57814all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
311b6756
JM
57815all-gcc: maybe-all-ppl
57816
57817all-stage1-gcc: maybe-all-stage1-ppl
57818all-stage2-gcc: maybe-all-stage2-ppl
311b6756 57819all-stage3-gcc: maybe-all-stage3-ppl
311b6756
JM
57820all-stage4-gcc: maybe-all-stage4-ppl
57821all-stageprofile-gcc: maybe-all-stageprofile-ppl
57822all-stagefeedback-gcc: maybe-all-stagefeedback-ppl
57823all-gcc: maybe-all-cloog
57824
57825all-stage1-gcc: maybe-all-stage1-cloog
57826all-stage2-gcc: maybe-all-stage2-cloog
311b6756 57827all-stage3-gcc: maybe-all-stage3-cloog
311b6756
JM
57828all-stage4-gcc: maybe-all-stage4-cloog
57829all-stageprofile-gcc: maybe-all-stageprofile-cloog
57830all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
6a19fd82
PB
57831all-gcc: maybe-all-build-texinfo
57832
57833all-stage1-gcc: maybe-all-build-texinfo
57834all-stage2-gcc: maybe-all-build-texinfo
57835all-stage3-gcc: maybe-all-build-texinfo
57836all-stage4-gcc: maybe-all-build-texinfo
57837all-stageprofile-gcc: maybe-all-build-texinfo
57838all-stagefeedback-gcc: maybe-all-build-texinfo
6a19fd82
PB
57839all-gcc: maybe-all-build-bison
57840
57841all-stage1-gcc: maybe-all-build-bison
57842all-stage2-gcc: maybe-all-build-bison
57843all-stage3-gcc: maybe-all-build-bison
57844all-stage4-gcc: maybe-all-build-bison
57845all-stageprofile-gcc: maybe-all-build-bison
57846all-stagefeedback-gcc: maybe-all-build-bison
6a19fd82
PB
57847all-gcc: maybe-all-build-byacc
57848
57849all-stage1-gcc: maybe-all-build-byacc
57850all-stage2-gcc: maybe-all-build-byacc
57851all-stage3-gcc: maybe-all-build-byacc
57852all-stage4-gcc: maybe-all-build-byacc
57853all-stageprofile-gcc: maybe-all-build-byacc
57854all-stagefeedback-gcc: maybe-all-build-byacc
6a19fd82
PB
57855all-gcc: maybe-all-build-flex
57856
57857all-stage1-gcc: maybe-all-build-flex
57858all-stage2-gcc: maybe-all-build-flex
57859all-stage3-gcc: maybe-all-build-flex
57860all-stage4-gcc: maybe-all-build-flex
57861all-stageprofile-gcc: maybe-all-build-flex
57862all-stagefeedback-gcc: maybe-all-build-flex
607d4caf
PB
57863all-gcc: maybe-all-build-libiberty
57864
57865all-stage1-gcc: maybe-all-build-libiberty
57866all-stage2-gcc: maybe-all-build-libiberty
57867all-stage3-gcc: maybe-all-build-libiberty
57868all-stage4-gcc: maybe-all-build-libiberty
57869all-stageprofile-gcc: maybe-all-build-libiberty
57870all-stagefeedback-gcc: maybe-all-build-libiberty
607d4caf
PB
57871all-gcc: maybe-all-build-fixincludes
57872
57873all-stage1-gcc: maybe-all-build-fixincludes
57874all-stage2-gcc: maybe-all-build-fixincludes
57875all-stage3-gcc: maybe-all-build-fixincludes
57876all-stage4-gcc: maybe-all-build-fixincludes
57877all-stageprofile-gcc: maybe-all-build-fixincludes
57878all-stagefeedback-gcc: maybe-all-build-fixincludes
364b9683
PB
57879all-gcc: maybe-all-zlib
57880
57881all-stage1-gcc: maybe-all-stage1-zlib
57882all-stage2-gcc: maybe-all-stage2-zlib
57883all-stage3-gcc: maybe-all-stage3-zlib
57884all-stage4-gcc: maybe-all-stage4-zlib
57885all-stageprofile-gcc: maybe-all-stageprofile-zlib
57886all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
364b9683
PB
57887all-gcc: all-libcpp
57888
57889all-stage1-gcc: all-stage1-libcpp
57890all-stage2-gcc: all-stage2-libcpp
57891all-stage3-gcc: all-stage3-libcpp
57892all-stage4-gcc: all-stage4-libcpp
57893all-stageprofile-gcc: all-stageprofile-libcpp
57894all-stagefeedback-gcc: all-stagefeedback-libcpp
a7dc05b5
PB
57895all-gcc: all-libdecnumber
57896
57897all-stage1-gcc: all-stage1-libdecnumber
57898all-stage2-gcc: all-stage2-libdecnumber
57899all-stage3-gcc: all-stage3-libdecnumber
57900all-stage4-gcc: all-stage4-libdecnumber
57901all-stageprofile-gcc: all-stageprofile-libdecnumber
57902all-stagefeedback-gcc: all-stagefeedback-libdecnumber
5350aa8b
GK
57903all-gcc: maybe-all-libiberty
57904
57905all-stage1-gcc: maybe-all-stage1-libiberty
57906all-stage2-gcc: maybe-all-stage2-libiberty
57907all-stage3-gcc: maybe-all-stage3-libiberty
57908all-stage4-gcc: maybe-all-stage4-libiberty
57909all-stageprofile-gcc: maybe-all-stageprofile-libiberty
57910all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
57911all-gcc: maybe-all-fixincludes
dc9d9c73
RW
57912info-gcc: maybe-all-build-libiberty
57913
57914info-stage1-gcc: maybe-all-build-libiberty
57915info-stage2-gcc: maybe-all-build-libiberty
57916info-stage3-gcc: maybe-all-build-libiberty
57917info-stage4-gcc: maybe-all-build-libiberty
57918info-stageprofile-gcc: maybe-all-build-libiberty
57919info-stagefeedback-gcc: maybe-all-build-libiberty
57920dvi-gcc: maybe-all-build-libiberty
57921
57922dvi-stage1-gcc: maybe-all-build-libiberty
57923dvi-stage2-gcc: maybe-all-build-libiberty
57924dvi-stage3-gcc: maybe-all-build-libiberty
57925dvi-stage4-gcc: maybe-all-build-libiberty
57926dvi-stageprofile-gcc: maybe-all-build-libiberty
57927dvi-stagefeedback-gcc: maybe-all-build-libiberty
57928pdf-gcc: maybe-all-build-libiberty
57929
57930pdf-stage1-gcc: maybe-all-build-libiberty
57931pdf-stage2-gcc: maybe-all-build-libiberty
57932pdf-stage3-gcc: maybe-all-build-libiberty
57933pdf-stage4-gcc: maybe-all-build-libiberty
57934pdf-stageprofile-gcc: maybe-all-build-libiberty
57935pdf-stagefeedback-gcc: maybe-all-build-libiberty
57936html-gcc: maybe-all-build-libiberty
57937
57938html-stage1-gcc: maybe-all-build-libiberty
57939html-stage2-gcc: maybe-all-build-libiberty
57940html-stage3-gcc: maybe-all-build-libiberty
57941html-stage4-gcc: maybe-all-build-libiberty
57942html-stageprofile-gcc: maybe-all-build-libiberty
57943html-stagefeedback-gcc: maybe-all-build-libiberty
afaa92f9 57944install-gcc: maybe-install-fixincludes
364b9683
PB
57945configure-libcpp: configure-libiberty
57946
57947configure-stage1-libcpp: configure-stage1-libiberty
57948configure-stage2-libcpp: configure-stage2-libiberty
57949configure-stage3-libcpp: configure-stage3-libiberty
57950configure-stage4-libcpp: configure-stage4-libiberty
57951configure-stageprofile-libcpp: configure-stageprofile-libiberty
57952configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
57953configure-libcpp: maybe-configure-intl
57954
57955configure-stage1-libcpp: maybe-configure-stage1-intl
57956configure-stage2-libcpp: maybe-configure-stage2-intl
57957configure-stage3-libcpp: maybe-configure-stage3-intl
57958configure-stage4-libcpp: maybe-configure-stage4-intl
57959configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
57960configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
57961all-libcpp: all-libiberty
57962
57963all-stage1-libcpp: all-stage1-libiberty
57964all-stage2-libcpp: all-stage2-libiberty
57965all-stage3-libcpp: all-stage3-libiberty
57966all-stage4-libcpp: all-stage4-libiberty
57967all-stageprofile-libcpp: all-stageprofile-libiberty
57968all-stagefeedback-libcpp: all-stagefeedback-libiberty
57969all-libcpp: maybe-all-intl
57970
57971all-stage1-libcpp: maybe-all-stage1-intl
57972all-stage2-libcpp: maybe-all-stage2-intl
57973all-stage3-libcpp: maybe-all-stage3-intl
57974all-stage4-libcpp: maybe-all-stage4-intl
57975all-stageprofile-libcpp: maybe-all-stageprofile-intl
57976all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
5350aa8b 57977all-fixincludes: maybe-all-libiberty
7fc2ca22 57978all-gnattools: maybe-all-target-libada
90db0fb0
JM
57979all-lto-plugin: maybe-all-gcc
57980
57981all-stage1-lto-plugin: maybe-all-stage1-gcc
57982all-stage2-lto-plugin: maybe-all-stage2-gcc
57983all-stage3-lto-plugin: maybe-all-stage3-gcc
57984all-stage4-lto-plugin: maybe-all-stage4-gcc
57985all-stageprofile-lto-plugin: maybe-all-stageprofile-gcc
57986all-stagefeedback-lto-plugin: maybe-all-stagefeedback-gcc
42f55f77
PB
57987configure-mpfr: maybe-all-gmp
57988
57989configure-stage1-mpfr: maybe-all-stage1-gmp
57990configure-stage2-mpfr: maybe-all-stage2-gmp
57991configure-stage3-mpfr: maybe-all-stage3-gmp
57992configure-stage4-mpfr: maybe-all-stage4-gmp
57993configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
57994configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
121f0eb2
RW
57995configure-mpc: maybe-all-mpfr
57996
57997configure-stage1-mpc: maybe-all-stage1-mpfr
57998configure-stage2-mpc: maybe-all-stage2-mpfr
57999configure-stage3-mpc: maybe-all-stage3-mpfr
58000configure-stage4-mpc: maybe-all-stage4-mpfr
58001configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
58002configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
311b6756
JM
58003configure-ppl: maybe-all-gmp
58004
58005configure-stage1-ppl: maybe-all-stage1-gmp
58006configure-stage2-ppl: maybe-all-stage2-gmp
311b6756 58007configure-stage3-ppl: maybe-all-stage3-gmp
311b6756
JM
58008configure-stage4-ppl: maybe-all-stage4-gmp
58009configure-stageprofile-ppl: maybe-all-stageprofile-gmp
58010configure-stagefeedback-ppl: maybe-all-stagefeedback-gmp
58011configure-ppl: maybe-all-mpfr
58012
58013configure-stage1-ppl: maybe-all-stage1-mpfr
58014configure-stage2-ppl: maybe-all-stage2-mpfr
311b6756 58015configure-stage3-ppl: maybe-all-stage3-mpfr
311b6756
JM
58016configure-stage4-ppl: maybe-all-stage4-mpfr
58017configure-stageprofile-ppl: maybe-all-stageprofile-mpfr
58018configure-stagefeedback-ppl: maybe-all-stagefeedback-mpfr
58019configure-cloog: maybe-all-ppl
58020
58021configure-stage1-cloog: maybe-all-stage1-ppl
58022configure-stage2-cloog: maybe-all-stage2-ppl
311b6756 58023configure-stage3-cloog: maybe-all-stage3-ppl
311b6756
JM
58024configure-stage4-cloog: maybe-all-stage4-ppl
58025configure-stageprofile-cloog: maybe-all-stageprofile-ppl
58026configure-stagefeedback-cloog: maybe-all-stagefeedback-ppl
5b9de9d9 58027configure-gdb: maybe-all-intl
364b9683 58028configure-gdb: maybe-configure-sim
94b5321e 58029configure-gdb: maybe-all-bfd
59455d2f 58030configure-gdb: maybe-all-libiconv
364b9683 58031all-gdb: maybe-all-libiberty
59455d2f 58032all-gdb: maybe-all-libiconv
364b9683 58033all-gdb: maybe-all-opcodes
364b9683 58034all-gdb: maybe-all-readline
6a19fd82
PB
58035all-gdb: maybe-all-build-bison
58036all-gdb: maybe-all-build-byacc
364b9683 58037all-gdb: maybe-all-sim
8cca1e6c 58038all-gdb: maybe-all-libdecnumber
364b9683
PB
58039configure-libgui: maybe-configure-tcl
58040configure-libgui: maybe-configure-tk
58041all-libgui: maybe-all-tcl
58042all-libgui: maybe-all-tk
58043all-libgui: maybe-all-itcl
5f7308ff 58044configure-bfd: configure-libiberty
364b9683
PB
58045
58046configure-stage1-bfd: configure-stage1-libiberty
58047configure-stage2-bfd: configure-stage2-libiberty
58048configure-stage3-bfd: configure-stage3-libiberty
58049configure-stage4-bfd: configure-stage4-libiberty
58050configure-stageprofile-bfd: configure-stageprofile-libiberty
58051configure-stagefeedback-bfd: configure-stagefeedback-libiberty
0505defa
DJ
58052configure-bfd: maybe-configure-intl
58053
58054configure-stage1-bfd: maybe-configure-stage1-intl
58055configure-stage2-bfd: maybe-configure-stage2-intl
58056configure-stage3-bfd: maybe-configure-stage3-intl
58057configure-stage4-bfd: maybe-configure-stage4-intl
58058configure-stageprofile-bfd: maybe-configure-stageprofile-intl
58059configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
364b9683
PB
58060all-bfd: maybe-all-libiberty
58061
58062all-stage1-bfd: maybe-all-stage1-libiberty
58063all-stage2-bfd: maybe-all-stage2-libiberty
58064all-stage3-bfd: maybe-all-stage3-libiberty
58065all-stage4-bfd: maybe-all-stage4-libiberty
58066all-stageprofile-bfd: maybe-all-stageprofile-libiberty
58067all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
58068all-bfd: maybe-all-intl
58069
58070all-stage1-bfd: maybe-all-stage1-intl
58071all-stage2-bfd: maybe-all-stage2-intl
58072all-stage3-bfd: maybe-all-stage3-intl
58073all-stage4-bfd: maybe-all-stage4-intl
58074all-stageprofile-bfd: maybe-all-stageprofile-intl
58075all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d89fcc43
AM
58076configure-opcodes: configure-libiberty
58077
58078configure-stage1-opcodes: configure-stage1-libiberty
58079configure-stage2-opcodes: configure-stage2-libiberty
d89fcc43 58080configure-stage3-opcodes: configure-stage3-libiberty
d89fcc43
AM
58081configure-stage4-opcodes: configure-stage4-libiberty
58082configure-stageprofile-opcodes: configure-stageprofile-libiberty
58083configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
58084all-opcodes: maybe-all-libiberty
58085
58086all-stage1-opcodes: maybe-all-stage1-libiberty
58087all-stage2-opcodes: maybe-all-stage2-libiberty
d89fcc43 58088all-stage3-opcodes: maybe-all-stage3-libiberty
d89fcc43
AM
58089all-stage4-opcodes: maybe-all-stage4-libiberty
58090all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
58091all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
0505defa
DJ
58092configure-binutils: maybe-configure-intl
58093
58094configure-stage1-binutils: maybe-configure-stage1-intl
58095configure-stage2-binutils: maybe-configure-stage2-intl
58096configure-stage3-binutils: maybe-configure-stage3-intl
58097configure-stage4-binutils: maybe-configure-stage4-intl
58098configure-stageprofile-binutils: maybe-configure-stageprofile-intl
58099configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
364b9683
PB
58100all-binutils: maybe-all-libiberty
58101
58102all-stage1-binutils: maybe-all-stage1-libiberty
58103all-stage2-binutils: maybe-all-stage2-libiberty
58104all-stage3-binutils: maybe-all-stage3-libiberty
58105all-stage4-binutils: maybe-all-stage4-libiberty
58106all-stageprofile-binutils: maybe-all-stageprofile-libiberty
58107all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
58108all-binutils: maybe-all-opcodes
58109
58110all-stage1-binutils: maybe-all-stage1-opcodes
58111all-stage2-binutils: maybe-all-stage2-opcodes
58112all-stage3-binutils: maybe-all-stage3-opcodes
58113all-stage4-binutils: maybe-all-stage4-opcodes
58114all-stageprofile-binutils: maybe-all-stageprofile-opcodes
58115all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
58116all-binutils: maybe-all-bfd
58117
58118all-stage1-binutils: maybe-all-stage1-bfd
58119all-stage2-binutils: maybe-all-stage2-bfd
58120all-stage3-binutils: maybe-all-stage3-bfd
58121all-stage4-binutils: maybe-all-stage4-bfd
58122all-stageprofile-binutils: maybe-all-stageprofile-bfd
58123all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
6a19fd82
PB
58124all-binutils: maybe-all-build-flex
58125
58126all-stage1-binutils: maybe-all-build-flex
58127all-stage2-binutils: maybe-all-build-flex
58128all-stage3-binutils: maybe-all-build-flex
58129all-stage4-binutils: maybe-all-build-flex
58130all-stageprofile-binutils: maybe-all-build-flex
58131all-stagefeedback-binutils: maybe-all-build-flex
6a19fd82
PB
58132all-binutils: maybe-all-build-bison
58133
58134all-stage1-binutils: maybe-all-build-bison
58135all-stage2-binutils: maybe-all-build-bison
58136all-stage3-binutils: maybe-all-build-bison
58137all-stage4-binutils: maybe-all-build-bison
58138all-stageprofile-binutils: maybe-all-build-bison
58139all-stagefeedback-binutils: maybe-all-build-bison
6a19fd82
PB
58140all-binutils: maybe-all-build-byacc
58141
58142all-stage1-binutils: maybe-all-build-byacc
58143all-stage2-binutils: maybe-all-build-byacc
58144all-stage3-binutils: maybe-all-build-byacc
58145all-stage4-binutils: maybe-all-build-byacc
58146all-stageprofile-binutils: maybe-all-build-byacc
58147all-stagefeedback-binutils: maybe-all-build-byacc
364b9683
PB
58148all-binutils: maybe-all-intl
58149
58150all-stage1-binutils: maybe-all-stage1-intl
58151all-stage2-binutils: maybe-all-stage2-intl
58152all-stage3-binutils: maybe-all-stage3-intl
58153all-stage4-binutils: maybe-all-stage4-intl
58154all-stageprofile-binutils: maybe-all-stageprofile-intl
58155all-stagefeedback-binutils: maybe-all-stagefeedback-intl
c5ab3a90 58156install-binutils: maybe-install-opcodes
7deb4540 58157install-opcodes: maybe-install-bfd
0505defa
DJ
58158configure-gas: maybe-configure-intl
58159
58160configure-stage1-gas: maybe-configure-stage1-intl
58161configure-stage2-gas: maybe-configure-stage2-intl
58162configure-stage3-gas: maybe-configure-stage3-intl
58163configure-stage4-gas: maybe-configure-stage4-intl
58164configure-stageprofile-gas: maybe-configure-stageprofile-intl
58165configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
364b9683
PB
58166all-gas: maybe-all-libiberty
58167
58168all-stage1-gas: maybe-all-stage1-libiberty
58169all-stage2-gas: maybe-all-stage2-libiberty
58170all-stage3-gas: maybe-all-stage3-libiberty
58171all-stage4-gas: maybe-all-stage4-libiberty
58172all-stageprofile-gas: maybe-all-stageprofile-libiberty
58173all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
58174all-gas: maybe-all-opcodes
58175
58176all-stage1-gas: maybe-all-stage1-opcodes
58177all-stage2-gas: maybe-all-stage2-opcodes
58178all-stage3-gas: maybe-all-stage3-opcodes
58179all-stage4-gas: maybe-all-stage4-opcodes
58180all-stageprofile-gas: maybe-all-stageprofile-opcodes
58181all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
58182all-gas: maybe-all-bfd
58183
58184all-stage1-gas: maybe-all-stage1-bfd
58185all-stage2-gas: maybe-all-stage2-bfd
58186all-stage3-gas: maybe-all-stage3-bfd
58187all-stage4-gas: maybe-all-stage4-bfd
58188all-stageprofile-gas: maybe-all-stageprofile-bfd
58189all-stagefeedback-gas: maybe-all-stagefeedback-bfd
58190all-gas: maybe-all-intl
58191
58192all-stage1-gas: maybe-all-stage1-intl
58193all-stage2-gas: maybe-all-stage2-intl
58194all-stage3-gas: maybe-all-stage3-intl
58195all-stage4-gas: maybe-all-stage4-intl
58196all-stageprofile-gas: maybe-all-stageprofile-intl
58197all-stagefeedback-gas: maybe-all-stagefeedback-intl
0505defa 58198configure-gprof: maybe-configure-intl
364b9683
PB
58199all-gprof: maybe-all-libiberty
58200all-gprof: maybe-all-bfd
58201all-gprof: maybe-all-opcodes
58202all-gprof: maybe-all-intl
0505defa
DJ
58203configure-ld: maybe-configure-intl
58204
58205configure-stage1-ld: maybe-configure-stage1-intl
58206configure-stage2-ld: maybe-configure-stage2-intl
58207configure-stage3-ld: maybe-configure-stage3-intl
58208configure-stage4-ld: maybe-configure-stage4-intl
58209configure-stageprofile-ld: maybe-configure-stageprofile-intl
58210configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
364b9683
PB
58211all-ld: maybe-all-libiberty
58212
58213all-stage1-ld: maybe-all-stage1-libiberty
58214all-stage2-ld: maybe-all-stage2-libiberty
58215all-stage3-ld: maybe-all-stage3-libiberty
58216all-stage4-ld: maybe-all-stage4-libiberty
58217all-stageprofile-ld: maybe-all-stageprofile-libiberty
58218all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
58219all-ld: maybe-all-bfd
58220
58221all-stage1-ld: maybe-all-stage1-bfd
58222all-stage2-ld: maybe-all-stage2-bfd
58223all-stage3-ld: maybe-all-stage3-bfd
58224all-stage4-ld: maybe-all-stage4-bfd
58225all-stageprofile-ld: maybe-all-stageprofile-bfd
58226all-stagefeedback-ld: maybe-all-stagefeedback-bfd
58227all-ld: maybe-all-opcodes
58228
58229all-stage1-ld: maybe-all-stage1-opcodes
58230all-stage2-ld: maybe-all-stage2-opcodes
58231all-stage3-ld: maybe-all-stage3-opcodes
58232all-stage4-ld: maybe-all-stage4-opcodes
58233all-stageprofile-ld: maybe-all-stageprofile-opcodes
58234all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
6a19fd82
PB
58235all-ld: maybe-all-build-bison
58236
58237all-stage1-ld: maybe-all-build-bison
58238all-stage2-ld: maybe-all-build-bison
58239all-stage3-ld: maybe-all-build-bison
58240all-stage4-ld: maybe-all-build-bison
58241all-stageprofile-ld: maybe-all-build-bison
58242all-stagefeedback-ld: maybe-all-build-bison
6a19fd82
PB
58243all-ld: maybe-all-build-byacc
58244
58245all-stage1-ld: maybe-all-build-byacc
58246all-stage2-ld: maybe-all-build-byacc
58247all-stage3-ld: maybe-all-build-byacc
58248all-stage4-ld: maybe-all-build-byacc
58249all-stageprofile-ld: maybe-all-build-byacc
58250all-stagefeedback-ld: maybe-all-build-byacc
6a19fd82
PB
58251all-ld: maybe-all-build-flex
58252
58253all-stage1-ld: maybe-all-build-flex
58254all-stage2-ld: maybe-all-build-flex
58255all-stage3-ld: maybe-all-build-flex
58256all-stage4-ld: maybe-all-build-flex
58257all-stageprofile-ld: maybe-all-build-flex
58258all-stagefeedback-ld: maybe-all-build-flex
364b9683
PB
58259all-ld: maybe-all-intl
58260
58261all-stage1-ld: maybe-all-stage1-intl
58262all-stage2-ld: maybe-all-stage2-intl
58263all-stage3-ld: maybe-all-stage3-intl
58264all-stage4-ld: maybe-all-stage4-intl
58265all-stageprofile-ld: maybe-all-stageprofile-intl
58266all-stagefeedback-ld: maybe-all-stagefeedback-intl
32c2e09b 58267install-ld: maybe-install-gold
b916272a
ILT
58268configure-gold: maybe-configure-intl
58269
58270configure-stage1-gold: maybe-configure-stage1-intl
58271configure-stage2-gold: maybe-configure-stage2-intl
b916272a 58272configure-stage3-gold: maybe-configure-stage3-intl
b916272a
ILT
58273configure-stage4-gold: maybe-configure-stage4-intl
58274configure-stageprofile-gold: maybe-configure-stageprofile-intl
58275configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
58276all-gold: maybe-all-libiberty
58277
58278all-stage1-gold: maybe-all-stage1-libiberty
58279all-stage2-gold: maybe-all-stage2-libiberty
b916272a 58280all-stage3-gold: maybe-all-stage3-libiberty
b916272a
ILT
58281all-stage4-gold: maybe-all-stage4-libiberty
58282all-stageprofile-gold: maybe-all-stageprofile-libiberty
58283all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
58284all-gold: maybe-all-intl
58285
58286all-stage1-gold: maybe-all-stage1-intl
58287all-stage2-gold: maybe-all-stage2-intl
b916272a 58288all-stage3-gold: maybe-all-stage3-intl
b916272a
ILT
58289all-stage4-gold: maybe-all-stage4-intl
58290all-stageprofile-gold: maybe-all-stageprofile-intl
58291all-stagefeedback-gold: maybe-all-stagefeedback-intl
58292all-gold: maybe-all-bfd
58293
58294all-stage1-gold: maybe-all-stage1-bfd
58295all-stage2-gold: maybe-all-stage2-bfd
b916272a 58296all-stage3-gold: maybe-all-stage3-bfd
b916272a
ILT
58297all-stage4-gold: maybe-all-stage4-bfd
58298all-stageprofile-gold: maybe-all-stageprofile-bfd
58299all-stagefeedback-gold: maybe-all-stagefeedback-bfd
58300all-gold: maybe-all-build-bison
58301
58302all-stage1-gold: maybe-all-build-bison
58303all-stage2-gold: maybe-all-build-bison
b916272a 58304all-stage3-gold: maybe-all-build-bison
b916272a
ILT
58305all-stage4-gold: maybe-all-build-bison
58306all-stageprofile-gold: maybe-all-build-bison
58307all-stagefeedback-gold: maybe-all-build-bison
58308all-gold: maybe-all-build-byacc
58309
58310all-stage1-gold: maybe-all-build-byacc
58311all-stage2-gold: maybe-all-build-byacc
b916272a 58312all-stage3-gold: maybe-all-build-byacc
b916272a
ILT
58313all-stage4-gold: maybe-all-build-byacc
58314all-stageprofile-gold: maybe-all-build-byacc
58315all-stagefeedback-gold: maybe-all-build-byacc
0838c752
ILT
58316check-gold: maybe-all-binutils
58317
58318check-stage1-gold: maybe-all-stage1-binutils
58319check-stage2-gold: maybe-all-stage2-binutils
0838c752 58320check-stage3-gold: maybe-all-stage3-binutils
0838c752
ILT
58321check-stage4-gold: maybe-all-stage4-binutils
58322check-stageprofile-gold: maybe-all-stageprofile-binutils
58323check-stagefeedback-gold: maybe-all-stagefeedback-binutils
bd45d6fa
ILT
58324check-gold: maybe-all-gas
58325
58326check-stage1-gold: maybe-all-stage1-gas
58327check-stage2-gold: maybe-all-stage2-gas
58328check-stage3-gold: maybe-all-stage3-gas
58329check-stage4-gold: maybe-all-stage4-gas
58330check-stageprofile-gold: maybe-all-stageprofile-gas
58331check-stagefeedback-gold: maybe-all-stagefeedback-gas
b04b2e6b
JJ
58332configure-opcodes: maybe-configure-intl
58333
58334configure-stage1-opcodes: maybe-configure-stage1-intl
58335configure-stage2-opcodes: maybe-configure-stage2-intl
58336configure-stage3-opcodes: maybe-configure-stage3-intl
58337configure-stage4-opcodes: maybe-configure-stage4-intl
58338configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
58339configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
364b9683
PB
58340all-opcodes: maybe-all-bfd
58341
58342all-stage1-opcodes: maybe-all-stage1-bfd
58343all-stage2-opcodes: maybe-all-stage2-bfd
58344all-stage3-opcodes: maybe-all-stage3-bfd
58345all-stage4-opcodes: maybe-all-stage4-bfd
58346all-stageprofile-opcodes: maybe-all-stageprofile-bfd
58347all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
58348all-opcodes: maybe-all-libiberty
58349
58350all-stage1-opcodes: maybe-all-stage1-libiberty
58351all-stage2-opcodes: maybe-all-stage2-libiberty
58352all-stage3-opcodes: maybe-all-stage3-libiberty
58353all-stage4-opcodes: maybe-all-stage4-libiberty
58354all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
58355all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
b04b2e6b
JJ
58356all-opcodes: maybe-all-intl
58357
58358all-stage1-opcodes: maybe-all-stage1-intl
58359all-stage2-opcodes: maybe-all-stage2-intl
58360all-stage3-opcodes: maybe-all-stage3-intl
58361all-stage4-opcodes: maybe-all-stage4-intl
58362all-stageprofile-opcodes: maybe-all-stageprofile-intl
58363all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
364b9683
PB
58364all-dejagnu: maybe-all-tcl
58365all-dejagnu: maybe-all-expect
58366all-dejagnu: maybe-all-tk
58367configure-expect: maybe-configure-tcl
58368configure-expect: maybe-configure-tk
58369all-expect: maybe-all-tcl
58370all-expect: maybe-all-tk
58371configure-itcl: maybe-configure-tcl
58372configure-itcl: maybe-configure-tk
58373all-itcl: maybe-all-tcl
58374all-itcl: maybe-all-tk
c5ab3a90 58375install-itcl: maybe-install-tcl
5f7308ff 58376configure-tk: maybe-configure-tcl
c5ab3a90 58377all-tk: maybe-all-tcl
364b9683
PB
58378all-sid: maybe-all-libiberty
58379all-sid: maybe-all-bfd
58380all-sid: maybe-all-opcodes
58381all-sid: maybe-all-tcl
58382all-sid: maybe-all-tk
58383install-sid: maybe-install-tcl
58384install-sid: maybe-install-tk
0505defa
DJ
58385configure-sim: maybe-configure-intl
58386all-sim: maybe-all-intl
364b9683
PB
58387all-sim: maybe-all-libiberty
58388all-sim: maybe-all-bfd
58389all-sim: maybe-all-opcodes
58390all-sim: maybe-all-readline
58391all-sim: maybe-configure-gdb
58392all-fastjar: maybe-all-zlib
6a19fd82 58393all-fastjar: maybe-all-build-texinfo
364b9683
PB
58394all-fastjar: maybe-all-libiberty
58395all-autoconf: maybe-all-m4
6a19fd82 58396all-autoconf: maybe-all-build-texinfo
364b9683 58397all-automake: maybe-all-m4
6a19fd82 58398all-automake: maybe-all-build-texinfo
364b9683
PB
58399all-automake: maybe-all-autoconf
58400all-bison: maybe-all-intl
6a19fd82 58401all-bison: maybe-all-build-texinfo
364b9683 58402all-diff: maybe-all-intl
6a19fd82 58403all-diff: maybe-all-build-texinfo
364b9683 58404all-fileutils: maybe-all-intl
6a19fd82
PB
58405all-fileutils: maybe-all-build-texinfo
58406all-flex: maybe-all-build-bison
58407all-flex: maybe-all-build-byacc
364b9683
PB
58408all-flex: maybe-all-intl
58409all-flex: maybe-all-m4
6a19fd82 58410all-flex: maybe-all-build-texinfo
364b9683
PB
58411all-gzip: maybe-all-intl
58412all-gzip: maybe-all-zlib
6a19fd82 58413all-gzip: maybe-all-build-texinfo
364b9683 58414all-hello: maybe-all-intl
6a19fd82 58415all-hello: maybe-all-build-texinfo
364b9683 58416all-m4: maybe-all-intl
6a19fd82 58417all-m4: maybe-all-build-texinfo
364b9683 58418all-make: maybe-all-intl
6a19fd82
PB
58419all-make: maybe-all-build-texinfo
58420all-patch: maybe-all-build-texinfo
58421all-make: maybe-all-build-texinfo
c5e4bb70 58422all-prms: maybe-all-libiberty
6a19fd82
PB
58423all-recode: maybe-all-build-texinfo
58424all-sed: maybe-all-build-texinfo
c5e4bb70 58425all-send-pr: maybe-all-prms
6a19fd82
PB
58426all-tar: maybe-all-build-texinfo
58427all-uudecode: maybe-all-build-texinfo
364b9683 58428configure-target-boehm-gc: maybe-configure-target-qthreads
ea7630b0 58429configure-target-boehm-gc: maybe-all-target-libstdc++-v3
5f7308ff 58430configure-target-fastjar: maybe-configure-target-zlib
364b9683
PB
58431all-target-fastjar: maybe-all-target-zlib
58432all-target-fastjar: maybe-all-target-libiberty
58433configure-target-libjava: maybe-configure-target-zlib
58434configure-target-libjava: maybe-configure-target-boehm-gc
58435configure-target-libjava: maybe-configure-target-qthreads
58436configure-target-libjava: maybe-configure-target-libffi
58437all-target-libjava: maybe-all-fastjar
58438all-target-libjava: maybe-all-target-zlib
58439all-target-libjava: maybe-all-target-boehm-gc
58440all-target-libjava: maybe-all-target-qthreads
58441all-target-libjava: maybe-all-target-libffi
e1e5148c 58442configure-target-libobjc: maybe-configure-target-boehm-gc
c5ab3a90 58443all-target-libobjc: maybe-all-target-libiberty
e1e5148c 58444all-target-libobjc: maybe-all-target-boehm-gc
c5ab3a90 58445all-target-libstdc++-v3: maybe-all-target-libiberty
a8c17d42 58446configure-target-libstdc++-v3: maybe-configure-target-libgomp
e894eef9
JR
58447
58448configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
58449configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
58450configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
58451configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
58452configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
58453configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
58454all-target-libstdc++-v3: maybe-configure-target-libgomp
58455
58456all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
58457all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
58458all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
58459all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
58460all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
58461all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
8eea1bd7 58462all-target-libgloss: maybe-all-target-newlib
364b9683
PB
58463all-target-winsup: maybe-all-target-libiberty
58464all-target-winsup: maybe-all-target-libtermcap
b46f14f7
RW
58465configure-target-libiberty: maybe-all-binutils
58466configure-target-libiberty: maybe-all-ld
58467configure-target-newlib: maybe-all-binutils
58468configure-target-newlib: maybe-all-ld
364b9683
PB
58469
58470
1f316156
DJ
58471# Dependencies for target modules on other target modules are
58472# described by lang_env_dependencies; the defaults apply to anything
58473# not mentioned there.
58474
58475
58476@if gcc-bootstrap
121f0eb2
RW
58477configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
58478configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
58479configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
58480configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
58481configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
58482configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
e894eef9
JR
58483configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
58484configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
58485configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
58486configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
58487configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
58488configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
1f316156
DJ
58489@endif gcc-bootstrap
58490
58491@if gcc-no-bootstrap
58492configure-target-libstdc++-v3: maybe-all-target-libgcc
58493configure-target-libmudflap: maybe-all-target-libgcc
58494configure-target-libssp: maybe-all-target-libgcc
58495configure-target-newlib: maybe-all-target-libgcc
58496configure-target-libgfortran: maybe-all-target-libgcc
58497configure-target-libobjc: maybe-all-target-libgcc
58498configure-target-libtermcap: maybe-all-target-libgcc
58499configure-target-winsup: maybe-all-target-libgcc
58500configure-target-libgloss: maybe-all-target-libgcc
58501configure-target-libiberty: maybe-all-target-libgcc
58502configure-target-gperf: maybe-all-target-libgcc
58503configure-target-examples: maybe-all-target-libgcc
58504configure-target-libffi: maybe-all-target-libgcc
58505configure-target-libjava: maybe-all-target-libgcc
58506configure-target-zlib: maybe-all-target-libgcc
58507configure-target-boehm-gc: maybe-all-target-libgcc
58508configure-target-qthreads: maybe-all-target-libgcc
58509configure-target-rda: maybe-all-target-libgcc
58510configure-target-libada: maybe-all-target-libgcc
58511configure-target-libgomp: maybe-all-target-libgcc
58512@endif gcc-no-bootstrap
58513
58514
58515configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
58516
58517configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
58518
58519configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
58520
58521
58522
58523configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
58524
58525configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
58526
58527configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
58528
58529configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
58530
58531
58532
58533configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
58534configure-target-gperf: maybe-all-target-libstdc++-v3
58535
58536configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
58537
58538configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
58539
58540configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
58541configure-target-libjava: maybe-all-target-libstdc++-v3
58542
58543configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
58544
58545configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
58546
58547configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
58548
58549configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
58550
58551configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
58552
58553configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
58554
58555
81cdf522 58556CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
364b9683 58557GDB_TK = @GDB_TK@
81cdf522
DJ
58558INSTALL_GDB_TK = @INSTALL_GDB_TK@
58559configure-gdb: $(CONFIGURE_GDB_TK)
364b9683 58560all-gdb: $(gdbnlmrequirements) $(GDB_TK)
81cdf522 58561install-gdb: $(INSTALL_GDB_TK)
00f56d7b 58562
d8e6f006
NN
58563# Serialization dependencies. Host configures don't work well in parallel to
58564# each other, due to contention over config.cache. Target configures and
58565# build configures are similar.
58566@serialization_dependencies@
58567
43bdb69a
NN
58568# --------------------------------
58569# Regenerating top level configury
58570# --------------------------------
a3acbf46 58571
862fb445 58572# Rebuilding Makefile.in, using autogen.
81011f17 58573AUTOGEN = autogen
3728f201 58574$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
81011f17 58575 cd $(srcdir) && $(AUTOGEN) Makefile.def
862fb445 58576
bafecfd6 58577# Rebuilding Makefile.
81011f17
AO
58578Makefile: $(srcdir)/Makefile.in config.status
58579 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
58580
9e6daff1 58581config.status: configure
08bf2e60 58582 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
a3acbf46 58583
bafecfd6 58584# Rebuilding configure.
81011f17 58585AUTOCONF = autoconf
9ad2ea2f
PB
58586$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
58587 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
81011f17 58588 cd $(srcdir) && $(AUTOCONF)
a3acbf46 58589
1c53cd00
NN
58590# ------------------------------
58591# Special directives to GNU Make
58592# ------------------------------
58593
1c53cd00
NN
58594# Don't pass command-line variables to submakes.
58595.NOEXPORT:
58596MAKEOVERRIDES=
58597
a3acbf46 58598# end of Makefile.in
This page took 8.638423 seconds and 5 git commands to generate.